2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
728 NATIVE_SYSTEM_HEADER_DIR
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
770 ENABLE_BUILD_WITH_CXX
773 valgrind_path_defines
847 program_transform_name
858 ac_subst_files
='option_includes
861 enable_option_checking
866 enable_generated_files_in_srcdir
876 enable_gather_detailed_mem_stats
877 enable_build_with_cxx
887 with_upc_pts_vaddr_order
889 with_upc_pts_packed_bits
890 enable_upc_link_script
893 with_native_system_header_dir
903 enable_sjlj_exceptions
905 enable_leading_mingw64_underscores
908 enable_win32_registry
914 enable_gnu_indirect_function
915 enable_initfini_array
917 enable_gnu_unique_object
918 enable_linker_build_id
922 enable_maintainer_mode
923 enable_version_specific_runtime_libs
925 enable_libquadmath_support
926 with_linker_hash_style
928 ac_precious_vars
='build_alias
949 # Initialize some variables set by options.
951 ac_init_version
=false
952 ac_unrecognized_opts
=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
963 program_transform_name
=s
,x
,x
,
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir
='${exec_prefix}/bin'
978 sbindir
='${exec_prefix}/sbin'
979 libexecdir
='${exec_prefix}/libexec'
980 datarootdir
='${prefix}/share'
981 datadir
='${datarootdir}'
982 sysconfdir
='${prefix}/etc'
983 sharedstatedir
='${prefix}/com'
984 localstatedir
='${prefix}/var'
985 includedir
='${prefix}/include'
986 oldincludedir
='/usr/include'
987 docdir
='${datarootdir}/doc/${PACKAGE}'
988 infodir
='${datarootdir}/info'
993 libdir
='${exec_prefix}/lib'
994 localedir
='${datarootdir}/locale'
995 mandir
='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\
$ac_option
1009 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1021 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1022 bindir
=$ac_optarg ;;
1024 -build |
--build |
--buil |
--bui |
--bu)
1025 ac_prev
=build_alias
;;
1026 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1027 build_alias
=$ac_optarg ;;
1029 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1030 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1031 ac_prev
=cache_file
;;
1032 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1033 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1034 cache_file
=$ac_optarg ;;
1036 --config-cache |
-C)
1037 cache_file
=config.cache
;;
1039 -datadir |
--datadir |
--datadi |
--datad)
1041 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1042 datadir
=$ac_optarg ;;
1044 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1045 |
--dataroo |
--dataro |
--datar)
1046 ac_prev
=datarootdir
;;
1047 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1048 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1049 datarootdir
=$ac_optarg ;;
1051 -disable-* |
--disable-*)
1052 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1055 as_fn_error
"invalid feature name: $ac_useropt"
1056 ac_useropt_orig
=$ac_useropt
1057 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_
$ac_useropt"
1062 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep
=', ';;
1065 eval enable_
$ac_useropt=no
;;
1067 -docdir |
--docdir |
--docdi |
--doc |
--do)
1069 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1070 docdir
=$ac_optarg ;;
1072 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1074 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1075 dvidir
=$ac_optarg ;;
1077 -enable-* |
--enable-*)
1078 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1081 as_fn_error
"invalid feature name: $ac_useropt"
1082 ac_useropt_orig
=$ac_useropt
1083 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_
$ac_useropt"
1088 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep
=', ';;
1091 eval enable_
$ac_useropt=\
$ac_optarg ;;
1093 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1094 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1095 |
--exec |
--exe |
--ex)
1096 ac_prev
=exec_prefix
;;
1097 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1098 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1099 |
--exec=* |
--exe=* |
--ex=*)
1100 exec_prefix
=$ac_optarg ;;
1102 -gas |
--gas |
--ga |
--g)
1103 # Obsolete; use --with-gas.
1106 -help |
--help |
--hel |
--he |
-h)
1107 ac_init_help
=long
;;
1108 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1109 ac_init_help
=recursive
;;
1110 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1111 ac_init_help
=short
;;
1113 -host |
--host |
--hos |
--ho)
1114 ac_prev
=host_alias
;;
1115 -host=* |
--host=* |
--hos=* |
--ho=*)
1116 host_alias
=$ac_optarg ;;
1118 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1120 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1122 htmldir
=$ac_optarg ;;
1124 -includedir |
--includedir |
--includedi |
--included |
--include \
1125 |
--includ |
--inclu |
--incl |
--inc)
1126 ac_prev
=includedir
;;
1127 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1128 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1129 includedir
=$ac_optarg ;;
1131 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1133 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1134 infodir
=$ac_optarg ;;
1136 -libdir |
--libdir |
--libdi |
--libd)
1138 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1139 libdir
=$ac_optarg ;;
1141 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1142 |
--libexe |
--libex |
--libe)
1143 ac_prev
=libexecdir
;;
1144 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1145 |
--libexe=* |
--libex=* |
--libe=*)
1146 libexecdir
=$ac_optarg ;;
1148 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1149 ac_prev
=localedir
;;
1150 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1151 localedir
=$ac_optarg ;;
1153 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1154 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1155 ac_prev
=localstatedir
;;
1156 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1157 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1158 localstatedir
=$ac_optarg ;;
1160 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1162 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1163 mandir
=$ac_optarg ;;
1165 -nfp |
--nfp |
--nf)
1166 # Obsolete; use --without-fp.
1169 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1170 |
--no-cr |
--no-c |
-n)
1173 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1174 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1177 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1178 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1179 |
--oldin |
--oldi |
--old |
--ol |
--o)
1180 ac_prev
=oldincludedir
;;
1181 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1182 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1183 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1184 oldincludedir
=$ac_optarg ;;
1186 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1188 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1189 prefix
=$ac_optarg ;;
1191 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1192 |
--program-pre |
--program-pr |
--program-p)
1193 ac_prev
=program_prefix
;;
1194 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1195 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1196 program_prefix
=$ac_optarg ;;
1198 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1199 |
--program-suf |
--program-su |
--program-s)
1200 ac_prev
=program_suffix
;;
1201 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1202 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1203 program_suffix
=$ac_optarg ;;
1205 -program-transform-name |
--program-transform-name \
1206 |
--program-transform-nam |
--program-transform-na \
1207 |
--program-transform-n |
--program-transform- \
1208 |
--program-transform |
--program-transfor \
1209 |
--program-transfo |
--program-transf \
1210 |
--program-trans |
--program-tran \
1211 |
--progr-tra |
--program-tr |
--program-t)
1212 ac_prev
=program_transform_name
;;
1213 -program-transform-name=* |
--program-transform-name=* \
1214 |
--program-transform-nam=* |
--program-transform-na=* \
1215 |
--program-transform-n=* |
--program-transform-=* \
1216 |
--program-transform=* |
--program-transfor=* \
1217 |
--program-transfo=* |
--program-transf=* \
1218 |
--program-trans=* |
--program-tran=* \
1219 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1220 program_transform_name
=$ac_optarg ;;
1222 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1224 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1225 pdfdir
=$ac_optarg ;;
1227 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1229 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1232 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1233 |
-silent |
--silent |
--silen |
--sile |
--sil)
1236 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1238 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1240 sbindir
=$ac_optarg ;;
1242 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1243 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1244 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1246 ac_prev
=sharedstatedir
;;
1247 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1248 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1249 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1251 sharedstatedir
=$ac_optarg ;;
1253 -site |
--site |
--sit)
1255 -site=* |
--site=* |
--sit=*)
1258 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1260 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1261 srcdir
=$ac_optarg ;;
1263 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1264 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1265 ac_prev
=sysconfdir
;;
1266 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1267 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1268 sysconfdir
=$ac_optarg ;;
1270 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1271 ac_prev
=target_alias
;;
1272 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1273 target_alias
=$ac_optarg ;;
1275 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1278 -version |
--version |
--versio |
--versi |
--vers |
-V)
1279 ac_init_version
=: ;;
1282 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1285 as_fn_error
"invalid package name: $ac_useropt"
1286 ac_useropt_orig
=$ac_useropt
1287 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1292 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep
=', ';;
1295 eval with_
$ac_useropt=\
$ac_optarg ;;
1297 -without-* |
--without-*)
1298 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1301 as_fn_error
"invalid package name: $ac_useropt"
1302 ac_useropt_orig
=$ac_useropt
1303 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1308 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep
=', ';;
1311 eval with_
$ac_useropt=no
;;
1314 # Obsolete; use --with-x.
1317 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1318 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1319 ac_prev
=x_includes
;;
1320 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1321 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1322 x_includes
=$ac_optarg ;;
1324 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1325 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1326 ac_prev
=x_libraries
;;
1327 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1328 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1329 x_libraries
=$ac_optarg ;;
1331 -*) as_fn_error
"unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1336 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1340 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1342 eval $ac_envvar=\
$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 if test -n "$ac_prev"; then
1357 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error
"missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1364 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 # Check all directory arguments for consistency.
1370 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val
=\$
$ac_var
1376 # Remove trailing slashes.
1379 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\
$ac_val;;
1382 # Be sure to have absolute directory names.
1384 [\\/$
]* | ?
:[\\/]* ) continue;;
1385 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1387 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1395 target
=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x
; then
1399 if test "x$build_alias" = x
; then
1400 cross_compiling
=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1409 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1411 test "$silent" = yes && exec 6>/dev
/null
1414 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di
=`ls -di .` &&
1416 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error
"working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error
"pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted
=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir
=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1454 ac_srcdir_defaulted
=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1458 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1472 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 for ac_var
in $ac_precious_vars; do
1475 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1477 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1488 \`configure' configures this package to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1551 --build=BUILD configure
for building on BUILD
[guessed
]
1552 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1553 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1557 if test -n "$ac_init_help"; then
1562 --disable-option-checking ignore unrecognized
--enable/--with options
1563 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1564 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1565 --enable-generated-files-in-srcdir
1566 put copies of generated files
in source dir intended
1567 for creating
source tarballs
for users without
1568 texinfo bison or flex
1569 --disable-largefile omit support
for large files
1570 --enable-werror-always enable -Werror despite compiler version
1571 --enable-checking[=LIST
]
1572 enable expensive run-time checks. With LIST
, enable
1573 only specific categories of checks. Categories are
:
1574 yes,no
,all
,none
,release. Flags are
:
1575 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1576 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1577 --enable-coverage[=LEVEL
]
1578 enable compiler
's code coverage collection. Use to
1579 measure compiler performance and locate unused parts
1580 of the compiler. With LEVEL, specify optimization.
1581 Values are opt, noopt, default is noopt
1582 --enable-gather-detailed-mem-stats
1583 enable detailed memory allocation stats gathering
1584 --enable-build-with-cxx build with C++ compiler instead of C compiler
1585 --enable-multilib enable library support for multiple ABIs
1586 --enable-__cxa_atexit enable __cxa_atexit for C++
1587 --enable-decimal-float={no,yes,bid,dpd}
1588 enable decimal float extension to C. Selecting 'bid
'
1589 or 'dpd
' choses which decimal floating point format
1591 --enable-fixed-point enable fixed-point arithmetic extension to C
1592 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1594 --enable-tls enable or disable generation of tls code overriding
1595 the assembler check for tls support
1596 --enable-objc-gc enable the use of Boehm's garbage collector with the
1597 GNU Objective-C runtime
1598 --enable-upc-link-script
1599 enable UPC
's use of a custom linker script; this
1600 will define the UPC shared section as a no load
1601 section on targets where this feature is supported
1603 --disable-shared don't provide a shared libgcc
1604 --enable-languages=LIST specify
which front-ends to build
1605 --disable-rpath do not hardcode runtime library paths
1606 --enable-sjlj-exceptions
1607 arrange to use setjmp
/longjmp exception handling
1608 --enable-secureplt enable -msecure-plt by default
for PowerPC
1609 --enable-leading-mingw64-underscores
1610 enable leading underscores on
64 bit mingw targets
1611 --enable-cld enable -mcld by default
for 32bit x86
1612 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1614 --disable-win32-registry
1615 disable lookup of installation paths
in the Registry
1617 --enable-win32-registry enable registry lookup
(default
)
1618 --enable-win32-registry=KEY
1619 use KEY instead of GCC version as the last portion
1621 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1622 --enable-static[=PKGS
] build static libraries
[default
=yes]
1623 --enable-fast-install[=PKGS
]
1624 optimize
for fast installation
[default
=yes]
1625 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1626 --enable-gnu-indirect-function
1627 enable the use of the @gnu_indirect_function to
1629 --enable-initfini-array use .init_array
/.fini_array sections
1630 --enable-comdat enable COMDAT group support
1631 --enable-gnu-unique-object
1632 enable the use of the @gnu_unique_object ELF
1633 extension on glibc systems
1634 --enable-linker-build-id
1635 compiler will always pass
--build-id to linker
1636 --enable-maintainer-mode
1637 enable make rules and dependencies not useful
(and
1638 sometimes confusing
) to the casual installer
1639 --enable-version-specific-runtime-libs
1640 specify that runtime libraries should be installed
1641 in a compiler-specific directory
1642 --enable-plugin enable plugin support
1643 --disable-libquadmath-support
1644 disable libquadmath support
for Fortran
1647 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1648 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1649 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1650 --with-local-prefix=DIR specifies directory to put
local include
1651 --with-gxx-include-dir=DIR
1652 specifies directory to put g
++ header files
1653 --with-cpp-install-dir=DIR
1654 install the user visible C preprocessor
in DIR
1655 (relative to PREFIX
) as well as PREFIX
/bin
1656 --with-gnu-ld arrange to work with GNU ld
1657 --with-ld arrange to use the specified ld
(full pathname
)
1658 --with-demangler-in-ld try to use demangler
in GNU ld
1659 --with-gnu-as arrange to work with GNU as
1660 --with-as arrange to use the specified as
(full pathname
)
1661 --with-stabs arrange to use stabs instead of
host debug format
1662 --with-upc-pts={struct
,packed
}
1663 choose the representation of a UPC pointer-to-shared
1664 --with-upc-pts-vaddr-order={last
,first
}
1665 choose position of the address field
in UPC
1666 pointer-to-shared representation
1668 --with-upc-pts-packed-bits=phase
,thread
,vaddr
1669 choose bit distribution
in packed UPC
1670 pointer-to-shared representation
1671 --with-dwarf2 force the default debug format to be DWARF
2
1672 --with-native-system-header-dir=dir
1673 use dir as the directory to
look for standard
1674 system header files
in. Defaults to
/usr
/include.
1675 --with-build-sysroot=sysroot
1676 use sysroot as the system root during the build
1677 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1678 --with-specs=SPECS add SPECS to driver command-line processing
1679 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1680 --with-bugurl=URL Direct users to URL to report a bug
1681 --with-multilib-list select multilibs
(SH and x86-64 only
)
1682 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1683 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1684 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1685 --with-pic try to use only PIC/non-PIC objects [default=use
1687 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1688 --with-plugin-ld=[ARG] specify the plugin linker
1689 --with-long-double-128 use 128-bit long double by default
1690 --with-gc={page,zone} choose the garbage collection mechanism to use with
1692 --with-system-zlib use installed libz
1693 --with-linker-hash-style={sysv,gnu,both}
1694 specify the linker hash style
1696 Some influential environment variables:
1697 CC C compiler command
1698 CFLAGS C compiler flags
1699 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1700 nonstandard directory <lib dir>
1701 LIBS libraries to pass to the linker, e.g. -l<library>
1702 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1703 you have headers in a nonstandard directory <include dir>
1704 CXX C++ compiler command
1705 CXXFLAGS C++ compiler flags
1707 CXXCPP C++ preprocessor
1708 GMPLIBS How to link GMP
1709 GMPINC How to find GMP include files
1710 PPLLIBS How to link PPL
1711 PPLINC How to find PPL include files
1712 CLOOGLIBS How to link CLOOG
1713 CLOOGINC How to find CLOOG include files
1715 Use these variables to override the choices made by `configure' or to
help
1716 it to
find libraries and programs with nonstandard names
/locations.
1718 Report bugs to the package provider.
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1732 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1734 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1739 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1742 ac_abs_top_builddir
=$ac_pwd
1743 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir
=$ac_top_build_prefix
1748 .
) # We are building in place.
1750 ac_top_srcdir
=$ac_top_builddir_sub
1751 ac_abs_top_srcdir
=$ac_pwd ;;
1752 [\\/]* | ?
:[\\/]* ) # Absolute name.
1753 ac_srcdir
=$srcdir$ac_dir_suffix;
1754 ac_top_srcdir
=$srcdir
1755 ac_abs_top_srcdir
=$srcdir ;;
1757 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1761 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1763 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1774 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1782 generated by GNU Autoconf
2.64
1784 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1785 This configure
script is free software
; the Free Software Foundation
1786 gives unlimited permission to copy
, distribute and modify it.
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile
()
1800 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1801 rm -f conftest.
$ac_objext
1802 if { { ac_try
="$ac_compile"
1804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831 } # ac_fn_c_try_compile
1833 # ac_fn_cxx_try_compile LINENO
1834 # ----------------------------
1835 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_cxx_try_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1843 *) ac_try_echo
=$ac_try;;
1845 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1849 if test -s conftest.err
; then
1850 grep -v '^ *+' conftest.err
>conftest.er1
1851 cat conftest.er1
>&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.
$ac_objext; then :
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.
$ac_ext >&5
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1869 } # ac_fn_cxx_try_compile
1871 # ac_fn_c_try_cpp LINENO
1872 # ----------------------
1873 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1876 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1877 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } >/dev/null && {
1893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1911 # the include files in INCLUDES and setting the cache variable VAR
1913 ac_fn_c_check_header_mongrel ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1926 # Is the header compilable?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1928 $as_echo_n "checking $2 usability... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 ac_header_compiler=yes
1937 ac_header_compiler=no
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1941 $as_echo "$ac_header_compiler" >&6; }
1943 # Is the header present?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1945 $as_echo_n "checking $2 presence... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1951 ac_header_preproc=yes
1953 ac_header_preproc=no
1955 rm -f conftest.err conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1957 $as_echo "$ac_header_preproc" >&6; }
1959 # So? What about this header?
1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1971 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1975 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1985 eval "$3=\$ac_header_compiler"
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 } # ac_fn_c_check_header_mongrel
1995 # ac_fn_c_try_run LINENO
1996 # ----------------------
1997 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1998 # that executables *can* be run.
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if { { ac_try="$ac_link"
2004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2005 *) ac_try_echo
=$ac_try;;
2007 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_link") 2>&5
2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2013 { { case "(($ac_try" in
2014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_try") 2>&5
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; }; }; then :
2025 $as_echo "$as_me: program exited with status $ac_status" >&5
2026 $as_echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2029 ac_retval=$ac_status
2031 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2038 # -------------------------------------------------------
2039 # Tests whether HEADER exists and can be compiled using the include files in
2040 # INCLUDES, setting the cache variable VAR accordingly.
2041 ac_fn_c_check_header_compile ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2047 $as_echo_n "(cached) " >&6
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2054 if ac_fn_c_try_compile "$LINENO"; then :
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 } # ac_fn_c_check_header_compile
2068 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2069 # --------------------------------------------
2070 # Tries to find the compile-time value of EXPR in a program that includes
2071 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2073 ac_fn_c_compute_int ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 if test "$cross_compiling" = yes; then
2077 # Depending upon the size, compute the lo and hi bounds.
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2084 static int test_array [1 - 2 * !(($2) >= 0)];
2091 if ac_fn_c_try_compile "$LINENO"; then :
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2100 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_hi=$ac_mid; break
2110 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2111 if test $ac_lo -le $ac_mid; then
2115 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2126 static int test_array [1 - 2 * !(($2) < 0)];
2133 if ac_fn_c_try_compile "$LINENO"; then :
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2142 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_lo=$ac_mid; break
2152 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2153 if test $ac_mid -le $ac_hi; then
2157 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 # Binary search between lo and hi bounds.
2168 while test "x$ac_lo" != "x$ac_hi"; do
2169 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2176 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2183 if ac_fn_c_try_compile "$LINENO"; then :
2186 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2198 static long int longval () { return $2; }
2199 static unsigned long int ulongval () { return $2; }
2206 FILE *f = fopen ("conftest.val", "w");
2211 long int i = longval ();
2214 fprintf (f, "%ld", i);
2218 unsigned long int i = ulongval ();
2221 fprintf (f, "%lu", i);
2223 /* Do not output a trailing newline, as this causes \r\n confusion
2224 on some platforms. */
2225 return ferror (f) || fclose (f) != 0;
2231 if ac_fn_c_try_run "$LINENO"; then :
2232 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2237 conftest.$ac_objext conftest.beam conftest.$ac_ext
2241 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 } # ac_fn_c_compute_int
2246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247 # -------------------------------------------
2248 # Tests whether TYPE exists after having included INCLUDES, setting cache
2249 # variable VAR accordingly.
2250 ac_fn_c_check_type ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256 $as_echo_n "(cached) " >&6
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2284 if ac_fn_c_try_compile "$LINENO"; then :
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2298 } # ac_fn_c_check_type
2300 # ac_fn_c_find_intX_t LINENO BITS VAR
2301 # -----------------------------------
2302 # Finds a signed integer type with width BITS, setting cache variable VAR
2304 ac_fn_c_find_intX_t ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2308 $as_echo_n "checking for int$2_t... " >&6; }
2309 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2310 $as_echo_n "(cached) " >&6
2313 for ac_type in int$2_t 'int' 'long int' \
2314 'long long int' 'short int' 'signed char'; do
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2317 $ac_includes_default
2321 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2328 if ac_fn_c_try_compile "$LINENO"; then :
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2331 $ac_includes_default
2335 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2336 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2343 if ac_fn_c_try_compile "$LINENO"; then :
2350 eval "$3=\$ac_type" ;;
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 if test "x$as_val" = x""no; then :
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2369 } # ac_fn_c_find_intX_t
2371 # ac_fn_c_try_link LINENO
2372 # -----------------------
2373 # Try to link conftest.$ac_ext, and return whether this succeeded.
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 rm -f conftest.$ac_objext conftest$ac_exeext
2378 if { { ac_try="$ac_link"
2380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2381 *) ac_try_echo
=$ac_try;;
2383 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2384 $as_echo "$ac_try_echo"; } >&5
2385 (eval "$ac_link") 2>conftest.err
2387 if test -s conftest.err
; then
2388 grep -v '^ *+' conftest.err
>conftest.er1
2389 cat conftest.er1
>&5
2390 mv -f conftest.er1 conftest.err
2392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2393 test $ac_status = 0; } && {
2394 test -z "$ac_c_werror_flag" ||
2395 test ! -s conftest.err
2396 } && test -s conftest
$ac_exeext && {
2397 test "$cross_compiling" = yes ||
2398 $as_test_x conftest
$ac_exeext
2402 $as_echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.
$ac_ext >&5
2407 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2408 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2409 # interfere with the next link command; also delete a directory that is
2410 # left behind by Apple's compiler. We do this before executing the actions.
2411 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2412 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2415 } # ac_fn_c_try_link
2417 # ac_fn_c_find_uintX_t LINENO BITS VAR
2418 # ------------------------------------
2419 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2421 ac_fn_c_find_uintX_t
()
2423 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2425 $as_echo_n "checking for uint$2_t... " >&6; }
2426 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2427 $as_echo_n "(cached) " >&6
2430 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2431 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2433 /* end confdefs.h. */
2434 $ac_includes_default
2438 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2445 if ac_fn_c_try_compile
"$LINENO"; then :
2450 eval "$3=\$ac_type" ;;
2453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2455 if test "x$as_val" = x
""no
; then :
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2467 } # ac_fn_c_find_uintX_t
2469 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2470 # ----------------------------------------------
2471 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2472 ac_fn_c_check_header_preproc
()
2474 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478 $as_echo_n "(cached) " >&6
2480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2484 if ac_fn_c_try_cpp
"$LINENO"; then :
2489 rm -f conftest.err conftest.
$ac_ext
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2496 } # ac_fn_c_check_header_preproc
2498 # ac_fn_cxx_try_cpp LINENO
2499 # ------------------------
2500 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2501 ac_fn_cxx_try_cpp
()
2503 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2504 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2510 $as_echo "$ac_try_echo"; } >&5
2511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2513 if test -s conftest.err; then
2514 grep -v '^ *+' conftest.err >conftest.er1
2515 cat conftest.er1 >&5
2516 mv -f conftest.er1 conftest.err
2518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2519 test $ac_status = 0; } >/dev/null && {
2520 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2521 test ! -s conftest.err
2525 $as_echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2533 } # ac_fn_cxx_try_cpp
2535 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2536 # ------------------------------------------------
2537 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2538 ac_fn_cxx_check_header_preproc ()
2540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542 $as_echo_n "checking for $2... " >&6; }
2543 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2544 $as_echo_n "(cached) " >&6
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2550 if ac_fn_cxx_try_cpp "$LINENO"; then :
2555 rm -f conftest.err conftest.$ac_ext
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559 $as_echo "$ac_res" >&6; }
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562 } # ac_fn_cxx_check_header_preproc
2564 # ac_fn_c_check_func LINENO FUNC VAR
2565 # ----------------------------------
2566 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2567 ac_fn_c_check_func ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2579 #define $2 innocuous_$2
2581 /* System header to define __stub macros and hopefully few prototypes,
2582 which can conflict with char $2 (); below.
2583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2584 <limits.h> exists even on freestanding compilers. */
2587 # include <limits.h>
2589 # include <assert.h>
2594 /* Override any GCC internal prototype to avoid an error.
2595 Use char because int might match the return type of a GCC
2596 builtin and then its argument prototype would still apply. */
2601 /* The GNU C library defines this for functions which it implements
2602 to always fail with ENOSYS. Some functions are actually named
2603 something starting with __ and the normal name is an alias. */
2604 #if defined __stub_$2 || defined __stub___$2
2616 if ac_fn_c_try_link "$LINENO"; then :
2621 rm -f core conftest.err conftest.$ac_objext \
2622 conftest$ac_exeext conftest.$ac_ext
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2629 } # ac_fn_c_check_func
2631 # ac_fn_cxx_try_link LINENO
2632 # -------------------------
2633 # Try to link conftest.$ac_ext, and return whether this succeeded.
2634 ac_fn_cxx_try_link ()
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 rm -f conftest.$ac_objext conftest$ac_exeext
2638 if { { ac_try="$ac_link"
2640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2641 *) ac_try_echo
=$ac_try;;
2643 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_link") 2>conftest.err
2647 if test -s conftest.err
; then
2648 grep -v '^ *+' conftest.err
>conftest.er1
2649 cat conftest.er1
>&5
2650 mv -f conftest.er1 conftest.err
2652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653 test $ac_status = 0; } && {
2654 test -z "$ac_cxx_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest
$ac_exeext && {
2657 test "$cross_compiling" = yes ||
2658 $as_test_x conftest
$ac_exeext
2662 $as_echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.
$ac_ext >&5
2667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2669 # interfere with the next link command; also delete a directory that is
2670 # left behind by Apple's compiler. We do this before executing the actions.
2671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2672 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2675 } # ac_fn_cxx_try_link
2676 cat >config.log
<<_ACEOF
2677 This file contains any messages produced by compilers while
2678 running configure, to aid debugging if configure makes a mistake.
2680 It was created by $as_me, which was
2681 generated by GNU Autoconf 2.64. Invocation command line was
2693 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2694 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2695 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2696 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2697 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2699 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2700 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2702 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2703 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2704 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2705 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2706 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2707 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2708 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2716 test -z "$as_dir" && as_dir
=.
2717 $as_echo "PATH: $as_dir"
2733 # Keep a trace of the command line.
2734 # Strip out --no-create and --no-recursion so they do not pile up.
2735 # Strip out --silent because we don't want to record it for future runs.
2736 # Also quote any args containing shell meta-characters.
2737 # Make two passes to allow for proper duplicate-argument suppression.
2741 ac_must_keep_next
=false
2747 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2748 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2749 |
-silent |
--silent |
--silen |
--sile |
--sil)
2752 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2755 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2757 as_fn_append ac_configure_args1
" '$ac_arg'"
2758 if test $ac_must_keep_next = true
; then
2759 ac_must_keep_next
=false
# Got value, back to normal.
2762 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2763 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2764 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2765 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2766 case "$ac_configure_args0 " in
2767 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2770 -* ) ac_must_keep_next
=true
;;
2773 as_fn_append ac_configure_args
" '$ac_arg'"
2778 { ac_configure_args0
=; unset ac_configure_args0
;}
2779 { ac_configure_args1
=; unset ac_configure_args1
;}
2781 # When interrupted or exit'd, cleanup temporary files, and complete
2782 # config.log. We remove comments because anyway the quotes in there
2783 # would cause problems or look ugly.
2784 # WARNING: Use '\'' to represent an apostrophe within the trap.
2785 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2786 trap 'exit_status=$?
2787 # Save into config.log some information that might help in debugging.
2792 ## ---------------- ##
2793 ## Cache variables. ##
2794 ## ---------------- ##
2797 # The following way of writing the cache mishandles newlines in values,
2799 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2800 eval ac_val=\$$ac_var
2804 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2805 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2808 _ | IFS | as_nl) ;; #(
2809 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2810 *) { eval $ac_var=; unset $ac_var;} ;;
2815 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2816 *${as_nl}ac_space=\ *)
2818 "s/'\''/'\''\\\\'\'''\''/g;
2819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2830 ## ----------------- ##
2831 ## Output variables. ##
2832 ## ----------------- ##
2835 for ac_var in $ac_subst_vars
2837 eval ac_val=\$$ac_var
2839 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2841 $as_echo "$ac_var='\''$ac_val'\''"
2845 if test -n "$ac_subst_files"; then
2847 ## ------------------- ##
2848 ## File substitutions. ##
2849 ## ------------------- ##
2852 for ac_var
in $ac_subst_files
2854 eval ac_val
=\$
$ac_var
2856 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2858 $as_echo "$ac_var='\''$ac_val'\''"
2863 if test -s confdefs.h; then
2873 test "$ac_signal" != 0 &&
2874 $as_echo "$as_me: caught signal $ac_signal"
2875 $as_echo "$as_me: exit $exit_status"
2877 rm -f core *.core core.conftest.* &&
2878 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2881 for ac_signal
in 1 2 13 15; do
2882 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2886 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2887 rm -f -r conftest
* confdefs.h
2889 $as_echo "/* confdefs.h */" > confdefs.h
2891 # Predefined preprocessor variables.
2893 cat >>confdefs.h
<<_ACEOF
2894 #define PACKAGE_NAME "$PACKAGE_NAME"
2897 cat >>confdefs.h
<<_ACEOF
2898 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2901 cat >>confdefs.h
<<_ACEOF
2902 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2905 cat >>confdefs.h
<<_ACEOF
2906 #define PACKAGE_STRING "$PACKAGE_STRING"
2909 cat >>confdefs.h
<<_ACEOF
2910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2913 cat >>confdefs.h
<<_ACEOF
2914 #define PACKAGE_URL "$PACKAGE_URL"
2918 # Let the site file select an alternate cache file if it wants to.
2919 # Prefer an explicitly selected file to automatically selected ones.
2922 if test -n "$CONFIG_SITE"; then
2923 ac_site_file1
=$CONFIG_SITE
2924 elif test "x$prefix" != xNONE
; then
2925 ac_site_file1
=$prefix/share
/config.site
2926 ac_site_file2
=$prefix/etc
/config.site
2928 ac_site_file1
=$ac_default_prefix/share
/config.site
2929 ac_site_file2
=$ac_default_prefix/etc
/config.site
2931 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2933 test "x$ac_site_file" = xNONE
&& continue
2934 if test -r "$ac_site_file"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2936 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2937 sed 's/^/| /' "$ac_site_file" >&5
2942 if test -r "$cache_file"; then
2943 # Some versions of bash will fail to source /dev/null (special
2944 # files actually), so we avoid doing that.
2945 if test -f "$cache_file"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2947 $as_echo "$as_me: loading cache $cache_file" >&6;}
2949 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2950 *) .
"./$cache_file";;
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2955 $as_echo "$as_me: creating cache $cache_file" >&6;}
2959 # Check that the precious variables saved in the cache have kept the same
2961 ac_cache_corrupted
=false
2962 for ac_var
in $ac_precious_vars; do
2963 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2964 eval ac_new_set
=\
$ac_env_${ac_var}_set
2965 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2966 eval ac_new_val
=\
$ac_env_${ac_var}_value
2967 case $ac_old_set,$ac_new_set in
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2970 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2971 ac_cache_corrupted
=: ;;
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2974 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2975 ac_cache_corrupted
=: ;;
2978 if test "x$ac_old_val" != "x$ac_new_val"; then
2979 # differences in whitespace do not lead to failure.
2980 ac_old_val_w
=`echo x $ac_old_val`
2981 ac_new_val_w
=`echo x $ac_new_val`
2982 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2984 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2985 ac_cache_corrupted
=:
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2988 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2989 eval $ac_var=\
$ac_old_val
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2992 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2994 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2997 # Pass precious variables to config.status.
2998 if test "$ac_new_set" = set; then
3000 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3001 *) ac_arg
=$ac_var=$ac_new_val ;;
3003 case " $ac_configure_args " in
3004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3005 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3009 if $ac_cache_corrupted; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3013 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3014 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3016 ## -------------------- ##
3017 ## Main body of script. ##
3018 ## -------------------- ##
3021 ac_cpp
='$CPP $CPPFLAGS'
3022 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3031 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3034 gcc_version
=`cat $srcdir/BASE-VER`
3036 # Determine the host, build, and target systems
3038 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3039 for ac_t
in install-sh
install.sh shtool
; do
3040 if test -f "$ac_dir/$ac_t"; then
3042 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3047 if test -z "$ac_aux_dir"; then
3048 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3051 # These three variables are undocumented and unsupported,
3052 # and are intended to be withdrawn in a future Autoconf release.
3053 # They can cause serious problems if a builder's source tree is in a directory
3054 # whose full name contains unusual characters.
3055 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3056 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3057 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3060 # Make sure we can run config.sub.
3061 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3062 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3065 $as_echo_n "checking build system type... " >&6; }
3066 if test "${ac_cv_build+set}" = set; then :
3067 $as_echo_n "(cached) " >&6
3069 ac_build_alias
=$build_alias
3070 test "x$ac_build_alias" = x
&&
3071 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3072 test "x$ac_build_alias" = x
&&
3073 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3074 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3075 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3079 $as_echo "$ac_cv_build" >&6; }
3080 case $ac_cv_build in
3082 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3085 ac_save_IFS
=$IFS; IFS
='-'
3091 # Remember, the first character of IFS is used to create $*,
3092 # except with old shells:
3095 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3099 $as_echo_n "checking host system type... " >&6; }
3100 if test "${ac_cv_host+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3103 if test "x$host_alias" = x
; then
3104 ac_cv_host
=$ac_cv_build
3106 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3107 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3112 $as_echo "$ac_cv_host" >&6; }
3115 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3118 ac_save_IFS
=$IFS; IFS
='-'
3124 # Remember, the first character of IFS is used to create $*,
3125 # except with old shells:
3128 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3132 $as_echo_n "checking target system type... " >&6; }
3133 if test "${ac_cv_target+set}" = set; then :
3134 $as_echo_n "(cached) " >&6
3136 if test "x$target_alias" = x
; then
3137 ac_cv_target
=$ac_cv_host
3139 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3140 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3145 $as_echo "$ac_cv_target" >&6; }
3146 case $ac_cv_target in
3148 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3150 target
=$ac_cv_target
3151 ac_save_IFS
=$IFS; IFS
='-'
3157 # Remember, the first character of IFS is used to create $*,
3158 # except with old shells:
3161 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3164 # The aliases save the names the user supplied, while $host etc.
3165 # will get canonicalized.
3166 test -n "$target_alias" &&
3167 test "$program_prefix$program_suffix$program_transform_name" = \
3169 program_prefix
=${target_alias}-
3171 # Determine the noncanonical target name, for directory use.
3172 case ${build_alias} in
3173 "") build_noncanonical
=${build} ;;
3174 *) build_noncanonical
=${build_alias} ;;
3177 case ${host_alias} in
3178 "") host_noncanonical
=${build_noncanonical} ;;
3179 *) host_noncanonical
=${host_alias} ;;
3182 case ${target_alias} in
3183 "") target_noncanonical
=${host_noncanonical} ;;
3184 *) target_noncanonical
=${target_alias} ;;
3190 # Determine the target- and build-specific subdirectories
3192 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3193 # have matching libraries, they should use host libraries: Makefile.tpl
3194 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3195 # However, they still use the build modules, because the corresponding
3196 # host modules (e.g. bison) are only built for the host when bootstrap
3198 # - build_subdir is where we find build modules, and never changes.
3199 # - build_libsubdir is where we find build libraries, and can be overridden.
3201 # Prefix 'build-' so this never conflicts with target_subdir.
3202 build_subdir
="build-${build_noncanonical}"
3204 # Check whether --with-build-libsubdir was given.
3205 if test "${with_build_libsubdir+set}" = set; then :
3206 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3208 build_libsubdir
="$build_subdir"
3211 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3212 if ( test $srcdir = .
&& test -d gcc
) \
3213 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3214 host_subdir
="host-${host_noncanonical}"
3219 target_subdir
=${target_noncanonical}
3222 # Set program_transform_name
3223 test "$program_prefix" != NONE
&&
3224 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3225 # Use a double $ so make ignores it.
3226 test "$program_suffix" != NONE
&&
3227 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3228 # Double any \ or $.
3229 # By default was `s,x,x', remove it if useless.
3230 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3231 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3234 # Check for bogus environment variables.
3235 # Test if LIBRARY_PATH contains the notation for the current directory
3236 # since this would lead to problems installing/building glibc.
3237 # LIBRARY_PATH contains the current directory if one of the following
3239 # - one of the terminals (":" and ";") is the first or last sign
3240 # - two terminals occur directly after each other
3241 # - the path contains an element with a dot in it
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3243 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3244 case ${LIBRARY_PATH} in
3245 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3246 library_path_setting
="contains current directory"
3249 library_path_setting
="ok"
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3253 $as_echo "$library_path_setting" >&6; }
3254 if test "$library_path_setting" != "ok"; then
3256 *** LIBRARY_PATH shouldn't contain the current directory when
3257 *** building gcc. Please change the environment variable
3258 *** and run configure again." "$LINENO" 5
3261 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3262 # since this would lead to problems installing/building glibc.
3263 # GCC_EXEC_PREFIX contains the current directory if one of the following
3265 # - one of the terminals (":" and ";") is the first or last sign
3266 # - two terminals occur directly after each other
3267 # - the path contains an element with a dot in it
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3269 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3270 case ${GCC_EXEC_PREFIX} in
3271 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3272 gcc_exec_prefix_setting
="contains current directory"
3275 gcc_exec_prefix_setting
="ok"
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3279 $as_echo "$gcc_exec_prefix_setting" >&6; }
3280 if test "$gcc_exec_prefix_setting" != "ok"; then
3282 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3283 *** building gcc. Please change the environment variable
3284 *** and run configure again." "$LINENO" 5
3291 # Specify the local prefix
3294 # Check whether --with-local-prefix was given.
3295 if test "${with_local_prefix+set}" = set; then :
3296 withval
=$with_local_prefix; case "${withval}" in
3297 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3299 *) local_prefix
=$with_local_prefix ;;
3304 # Default local prefix if it is empty
3305 if test x
$local_prefix = x
; then
3306 local_prefix
=/usr
/local
3309 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3310 # passed in by the toplevel make and thus we'd get different behavior
3311 # depending on where we built the sources.
3312 gcc_gxx_include_dir
=
3313 # Specify the g++ header file directory
3315 # Check whether --with-gxx-include-dir was given.
3316 if test "${with_gxx_include_dir+set}" = set; then :
3317 withval
=$with_gxx_include_dir; case "${withval}" in
3318 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3320 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3325 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3326 if test x
${gcc_gxx_include_dir} = x
; then
3327 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3328 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3330 libstdcxx_incdir
='include/c++/$(version)'
3331 if test x
$host != x
$target; then
3332 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3334 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3338 gcc_gxx_include_dir_add_sysroot
=0
3339 if test "${with_sysroot+set}" = set; then
3340 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3341 if test "${gcc_gxx_without_sysroot}"; then
3342 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3343 gcc_gxx_include_dir_add_sysroot
=1
3348 # Check whether --with-cpp_install_dir was given.
3349 if test "${with_cpp_install_dir+set}" = set; then :
3350 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3351 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3352 elif test x
$withval != xno
; then
3353 cpp_install_dir
=$withval
3358 # We would like to our source tree to be readonly. However when releases or
3359 # pre-releases are generated, the flex/bison generated files as well as the
3360 # various formats of manuals need to be included along with the rest of the
3361 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3365 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3366 # Check whether --enable-generated-files-in-srcdir was given.
3367 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3368 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3370 generated_files_in_srcdir
=no
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3375 $as_echo "$generated_files_in_srcdir" >&6; }
3377 if test "$generated_files_in_srcdir" = "yes"; then
3384 # -------------------
3385 # Find default linker
3386 # -------------------
3390 # Check whether --with-gnu-ld was given.
3391 if test "${with_gnu_ld+set}" = set; then :
3392 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3398 # With pre-defined ld
3400 # Check whether --with-ld was given.
3401 if test "${with_ld+set}" = set; then :
3402 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3405 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3406 if test ! -x "$DEFAULT_LINKER"; then
3407 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3408 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3412 cat >>confdefs.h
<<_ACEOF
3413 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3419 $as_echo_n "checking whether a default linker was specified... " >&6; }
3420 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3421 if test x
"$gnu_ld_flag" = x
"no"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3423 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3426 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3433 # With demangler in GNU ld
3435 # Check whether --with-demangler-in-ld was given.
3436 if test "${with_demangler_in_ld+set}" = set; then :
3437 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3443 # ----------------------
3444 # Find default assembler
3445 # ----------------------
3449 # Check whether --with-gnu-as was given.
3450 if test "${with_gnu_as+set}" = set; then :
3451 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3458 # Check whether --with-as was given.
3459 if test "${with_as+set}" = set; then :
3460 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3463 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3464 if test ! -x "$DEFAULT_ASSEMBLER"; then
3465 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3466 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3470 cat >>confdefs.h
<<_ACEOF
3471 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3477 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3478 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3479 if test x
"$gas_flag" = x
"no"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3481 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3484 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3495 # If a non-executable a.out is present (e.g. created by GNU as above even if
3496 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3497 # file, even when creating an executable, so an execution test fails.
3498 # Remove possible default executable files to avoid this.
3500 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3501 # Autoconf includes it.
3502 rm -f a.out a.exe b.out
3504 # Find the native compiler
3506 ac_cpp
='$CPP $CPPFLAGS'
3507 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3510 if test -n "$ac_tool_prefix"; then
3511 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3512 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_CC+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC
="$CC" # Let the user override the test.
3521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir
=.
3526 for ac_exec_ext
in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 if test -n "$CC"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3541 $as_echo "$CC" >&6; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3549 if test -z "$ac_cv_prog_CC"; then
3551 # Extract the first word of "gcc", so it can be a program name with args.
3552 set dummy gcc
; ac_word
=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$ac_ct_CC"; then
3559 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir
=.
3566 for ac_exec_ext
in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_ac_ct_CC
="gcc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3579 if test -n "$ac_ct_CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581 $as_echo "$ac_ct_CC" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3587 if test "x$ac_ct_CC" = x
; then
3590 case $cross_compiling:$ac_tool_warned in
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned
=yes ;;
3602 if test -z "$CC"; then
3603 if test -n "$ac_tool_prefix"; then
3604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3605 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if test "${ac_cv_prog_CC+set}" = set; then :
3609 $as_echo_n "(cached) " >&6
3611 if test -n "$CC"; then
3612 ac_cv_prog_CC
="$CC" # Let the user override the test.
3614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3618 test -z "$as_dir" && as_dir
=.
3619 for ac_exec_ext
in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3643 if test -z "$CC"; then
3644 # Extract the first word of "cc", so it can be a program name with args.
3645 set dummy cc
; ac_word
=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC
="$CC" # Let the user override the test.
3655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3659 test -z "$as_dir" && as_dir
=.
3660 for ac_exec_ext
in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3663 ac_prog_rejected
=yes
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 if test $ac_prog_rejected = yes; then
3675 # We found a bogon in the path, so make sure we never use it.
3676 set dummy
$ac_cv_prog_CC
3678 if test $# != 0; then
3679 # We chose a different compiler from the bogus one.
3680 # However, it has the same basename, so the bogon will be chosen
3681 # first if we set CC to just the basename; use the full file name.
3683 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3689 if test -n "$CC"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 $as_echo "$CC" >&6; }
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3699 if test -z "$CC"; then
3700 if test -n "$ac_tool_prefix"; then
3701 for ac_prog
in cl.exe
3703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3704 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if test "${ac_cv_prog_CC+set}" = set; then :
3708 $as_echo_n "(cached) " >&6
3710 if test -n "$CC"; then
3711 ac_cv_prog_CC
="$CC" # Let the user override the test.
3713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3717 test -z "$as_dir" && as_dir
=.
3718 for ac_exec_ext
in '' $ac_executable_extensions; do
3719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 if test -n "$CC"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733 $as_echo "$CC" >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3740 test -n "$CC" && break
3743 if test -z "$CC"; then
3745 for ac_prog
in cl.exe
3747 # Extract the first word of "$ac_prog", so it can be a program name with args.
3748 set dummy
$ac_prog; ac_word
=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3754 if test -n "$ac_ct_CC"; then
3755 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir
=.
3762 for ac_exec_ext
in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_ac_ct_CC
="$ac_prog"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3775 if test -n "$ac_ct_CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777 $as_echo "$ac_ct_CC" >&6; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3784 test -n "$ac_ct_CC" && break
3787 if test "x$ac_ct_CC" = x
; then
3790 case $cross_compiling:$ac_tool_warned in
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3794 ac_tool_warned
=yes ;;
3803 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error
"no acceptable C compiler found in \$PATH
3806 See \`config.log' for more details." "$LINENO" 5; }
3808 # Provide some information about the compiler.
3809 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3812 for ac_option
in --version -v -V -qversion; do
3813 { { ac_try
="$ac_compiler $ac_option >&5"
3815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3822 if test -s conftest.err; then
3824 ... rest of stderr output deleted ...
3825 10q' conftest.err >conftest.er1
3826 cat conftest.er1 >&5
3827 rm -f conftest.er1 conftest.err
3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3844 ac_clean_files_save=$ac_clean_files
3845 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3846 # Try to create an executable without -o first, disregard a.out.
3847 # It will help us diagnose broken compilers, and finding out an intuition
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3850 $as_echo_n "checking for C compiler default output file name... " >&6; }
3851 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3853 # The possible output files:
3854 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3857 for ac_file in $ac_files
3860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3861 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3866 if { { ac_try="$ac_link_default"
3868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3869 *) ac_try_echo
=$ac_try;;
3871 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_link_default") 2>&5
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }; then :
3877 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3878 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3879 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3880 # so that the user can short-circuit this test for compilers unknown to
3882 for ac_file
in $ac_files ''
3884 test -f "$ac_file" ||
continue
3886 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3889 # We found the default executable, but exeext='' is most
3893 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3895 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3897 # We set ac_cv_exeext here because the later test for it is not
3898 # safe: cross compilers may not add the suffix if given an `-o'
3899 # argument, so we may need to know it at that point already.
3900 # Even if this section looks crufty: it has the advantage of
3907 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3913 $as_echo "$ac_file" >&6; }
3914 if test -z "$ac_file"; then :
3915 $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.
$ac_ext >&5
3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 { as_fn_set_status
77
3921 as_fn_error
"C compiler cannot create executables
3922 See \`config.log' for more details." "$LINENO" 5; }; }
3924 ac_exeext
=$ac_cv_exeext
3926 # Check that the compiler produces executables we can run. If not, either
3927 # the compiler is broken, or we cross compile.
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3929 $as_echo_n "checking whether the C compiler works... " >&6; }
3930 # If not cross compiling, check that we can run a simple program.
3931 if test "$cross_compiling" != yes; then
3932 if { ac_try
='./$ac_file'
3933 { { case "(($ac_try" in
3934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938 $as_echo "$ac_try_echo"; } >&5
3939 (eval "$ac_try") 2>&5
3941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942 test $ac_status = 0; }; }; then
3945 if test "$cross_compiling" = maybe; then
3948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error "cannot run C compiled programs.
3951 If you meant to cross compile
, use \
`--host'.
3952 See \`config.log
' for more details." "$LINENO" 5; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3957 $as_echo "yes" >&6; }
3959 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3960 ac_clean_files=$ac_clean_files_save
3961 # Check that the compiler produces executables we can run. If not, either
3962 # the compiler is broken, or we cross compile.
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3964 $as_echo_n "checking whether we are cross compiling... " >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3966 $as_echo "$cross_compiling" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3969 $as_echo_n "checking for suffix of executables... " >&6; }
3970 if { { ac_try="$ac_link"
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_link") 2>&5
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }; then :
3981 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3982 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3983 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3985 for ac_file
in conftest.exe conftest conftest.
*; do
3986 test -f "$ac_file" ||
continue
3988 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3989 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3998 See \`config.log' for more details." "$LINENO" 5; }
4000 rm -f conftest
$ac_cv_exeext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4002 $as_echo "$ac_cv_exeext" >&6; }
4004 rm -f conftest.
$ac_ext
4005 EXEEXT
=$ac_cv_exeext
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4008 $as_echo_n "checking for suffix of object files... " >&6; }
4009 if test "${ac_cv_objext+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
4012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4023 rm -f conftest.o conftest.obj
4024 if { { ac_try
="$ac_compile"
4026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030 $as_echo "$ac_try_echo"; } >&5
4031 (eval "$ac_compile") 2>&5
4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034 test $ac_status = 0; }; then :
4035 for ac_file in conftest.o conftest.obj conftest.*; do
4036 test -f "$ac_file" || continue;
4038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4044 $as_echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error "cannot compute suffix of object files
: cannot compile
4050 See \
`config.log' for more details." "$LINENO" 5; }
4052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4055 $as_echo "$ac_cv_objext" >&6; }
4056 OBJEXT=$ac_cv_objext
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4059 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4060 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4077 if ac_fn_c_try_compile "$LINENO"; then :
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4087 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4088 if test $ac_compiler_gnu = yes; then
4093 ac_test_CFLAGS=${CFLAGS+set}
4094 ac_save_CFLAGS=$CFLAGS
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4096 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4097 if test "${ac_cv_prog_cc_g+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4100 ac_save_c_werror_flag=$ac_c_werror_flag
4101 ac_c_werror_flag=yes
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4115 if ac_fn_c_try_compile "$LINENO"; then :
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4130 if ac_fn_c_try_compile "$LINENO"; then :
4133 ac_c_werror_flag=$ac_save_c_werror_flag
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4146 if ac_fn_c_try_compile "$LINENO"; then :
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4157 $as_echo "$ac_cv_prog_cc_g" >&6; }
4158 if test "$ac_test_CFLAGS" = set; then
4159 CFLAGS=$ac_save_CFLAGS
4160 elif test $ac_cv_prog_cc_g = yes; then
4161 if test "$GCC" = yes; then
4167 if test "$GCC" = yes; then
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4174 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4175 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4178 ac_cv_prog_cc_c89=no
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4184 #include <sys/types.h>
4185 #include <sys/stat.h>
4186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4187 struct buf { int x; };
4188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4189 static char *e (p, i)
4195 static char *f (char * (*g) (char **, int), char **p, ...)
4200 s = g (p, va_arg (v,int));
4205 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4206 function prototypes and stuff, but not '\xHH' hex character constants.
4207 These don't provoke an error unfortunately, instead are silently treated
4208 as 'x'. The following induces an error, until -std is added to get
4209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4210 array size at least. It's necessary to write '\x00'==0 to get something
4211 that's true only with -std. */
4212 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4214 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4215 inside strings and character constants. */
4217 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4219 int test (int i, double x);
4220 struct s1 {int (*f) (int a);};
4221 struct s2 {int (*f) (double a);};
4222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4233 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4236 CC="$ac_save_CC $ac_arg"
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_prog_cc_c89=$ac_arg
4240 rm -f core conftest.err conftest.$ac_objext
4241 test "x$ac_cv_prog_cc_c89" != "xno" && break
4243 rm -f conftest.$ac_ext
4248 case "x$ac_cv_prog_cc_c89" in
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4251 $as_echo "none needed" >&6; } ;;
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254 $as_echo "unsupported" >&6; } ;;
4256 CC="$CC $ac_cv_prog_cc_c89"
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4258 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4260 if test "x$ac_cv_prog_cc_c89" != xno; then :
4265 ac_cpp='$CPP $CPPFLAGS'
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 if test "x$CC" != xcc; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4272 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4275 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4277 set dummy $CC; ac_cc=`$as_echo "$2" |
4278 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4279 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4280 $as_echo_n "(cached) " >&6
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4293 # Make sure it works both with $CC and with simple cc.
4294 # We do the test twice because some compilers refuse to overwrite an
4295 # existing .o file with -o, though they will create one.
4296 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4298 if { { case "(($ac_try" in
4299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4300 *) ac_try_echo
=$ac_try;;
4302 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_try") 2>&5
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; } &&
4308 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313 $as_echo "$ac_try_echo"; } >&5
4314 (eval "$ac_try") 2>&5
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; };
4319 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4320 if test "x$CC" != xcc; then
4321 # Test first that cc exists at all.
4322 if { ac_try='cc -c conftest.$ac_ext >&5'
4323 { { case "(($ac_try" in
4324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4325 *) ac_try_echo
=$ac_try;;
4327 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328 $as_echo "$ac_try_echo"; } >&5
4329 (eval "$ac_try") 2>&5
4331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332 test $ac_status = 0; }; }; then
4333 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4335 if { { case "(($ac_try" in
4336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_try") 2>&5
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; } &&
4345 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4347 *) ac_try_echo
=$ac_try;;
4349 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_try") 2>&5
4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; };
4359 # cc exists but doesn't like -o.
4360 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4365 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4367 rm -f core conftest
*
4370 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372 $as_echo "yes" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4377 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4381 # expand $ac_aux_dir to an absolute path
4382 am_aux_dir
=`cd $ac_aux_dir && pwd`
4384 # FIXME: we rely on the cache variable name because
4385 # there is no other way.
4387 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4388 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4389 if test "$am_t" != yes; then
4390 # Losing compiler, so override with the script.
4391 # FIXME: It is wrong to rewrite CC.
4392 # But if we don't then we get into trouble of one sort or another.
4393 # A longer-term fix would be to have automake use am__CC in this case,
4394 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4395 CC
="$am_aux_dir/compile $CC"
4400 ac_cpp
='$CXXCPP $CPPFLAGS'
4401 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4404 if test -z "$CXX"; then
4405 if test -n "$CCC"; then
4408 if test -n "$ac_tool_prefix"; then
4409 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4412 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if test "${ac_cv_prog_CXX+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4418 if test -n "$CXX"; then
4419 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir
=.
4426 for ac_exec_ext
in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 if test -n "$CXX"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4441 $as_echo "$CXX" >&6; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4448 test -n "$CXX" && break
4451 if test -z "$CXX"; then
4453 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4455 # Extract the first word of "$ac_prog", so it can be a program name with args.
4456 set dummy
$ac_prog; ac_word
=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4462 if test -n "$ac_ct_CXX"; then
4463 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir
=.
4470 for ac_exec_ext
in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4483 if test -n "$ac_ct_CXX"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4485 $as_echo "$ac_ct_CXX" >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4492 test -n "$ac_ct_CXX" && break
4495 if test "x$ac_ct_CXX" = x
; then
4498 case $cross_compiling:$ac_tool_warned in
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4502 ac_tool_warned
=yes ;;
4510 # Provide some information about the compiler.
4511 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4514 for ac_option
in --version -v -V -qversion; do
4515 { { ac_try
="$ac_compiler $ac_option >&5"
4517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521 $as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4524 if test -s conftest.err; then
4526 ... rest of stderr output deleted ...
4527 10q' conftest.err >conftest.er1
4528 cat conftest.er1 >&5
4529 rm -f conftest.er1 conftest.err
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4536 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4537 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4564 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4565 if test $ac_compiler_gnu = yes; then
4570 ac_test_CXXFLAGS=${CXXFLAGS+set}
4571 ac_save_CXXFLAGS=$CXXFLAGS
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4573 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4574 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4577 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4578 ac_cxx_werror_flag=yes
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4592 if ac_fn_cxx_try_compile "$LINENO"; then :
4593 ac_cv_prog_cxx_g=yes
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4610 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4623 if ac_fn_cxx_try_compile "$LINENO"; then :
4624 ac_cv_prog_cxx_g=yes
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4634 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4635 if test "$ac_test_CXXFLAGS" = set; then
4636 CXXFLAGS=$ac_save_CXXFLAGS
4637 elif test $ac_cv_prog_cxx_g = yes; then
4638 if test "$GXX" = yes; then
4644 if test "$GXX" = yes; then
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$GNATBIND"; then
4668 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 GNATBIND=$ac_cv_prog_GNATBIND
4688 if test -n "$GNATBIND"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4690 $as_echo "$GNATBIND" >&6; }
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4698 if test -z "$ac_cv_prog_GNATBIND"; then
4699 ac_ct_GNATBIND=$GNATBIND
4700 # Extract the first word of "gnatbind", so it can be a program name with args.
4701 set dummy gnatbind; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4707 if test -n "$ac_ct_GNATBIND"; then
4708 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4728 if test -n "$ac_ct_GNATBIND"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4730 $as_echo "$ac_ct_GNATBIND" >&6; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4736 if test "x$ac_ct_GNATBIND" = x; then
4739 case $cross_compiling:$ac_tool_warned in
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4745 GNATBIND=$ac_ct_GNATBIND
4748 GNATBIND="$ac_cv_prog_GNATBIND"
4751 if test -n "$ac_tool_prefix"; then
4752 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4753 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4759 if test -n "$GNATMAKE"; then
4760 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 GNATMAKE=$ac_cv_prog_GNATMAKE
4780 if test -n "$GNATMAKE"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4782 $as_echo "$GNATMAKE" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4790 if test -z "$ac_cv_prog_GNATMAKE"; then
4791 ac_ct_GNATMAKE=$GNATMAKE
4792 # Extract the first word of "gnatmake", so it can be a program name with args.
4793 set dummy gnatmake; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4799 if test -n "$ac_ct_GNATMAKE"; then
4800 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4820 if test -n "$ac_ct_GNATMAKE"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4822 $as_echo "$ac_ct_GNATMAKE" >&6; }
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4828 if test "x$ac_ct_GNATMAKE" = x; then
4831 case $cross_compiling:$ac_tool_warned in
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4835 ac_tool_warned=yes ;;
4837 GNATMAKE=$ac_ct_GNATMAKE
4840 GNATMAKE="$ac_cv_prog_GNATMAKE"
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4844 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4845 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4848 cat >conftest.adb <<EOF
4849 procedure conftest is begin null; end conftest;
4851 acx_cv_cc_gcc_supports_ada=no
4852 # There is a bug in old released versions of GCC which causes the
4853 # driver to exit successfully when the appropriate language module
4854 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4855 # Therefore we must check for the error message as well as an
4856 # unsuccessful exit.
4857 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4858 # given a .adb file, but produce no object file. So we must check
4859 # if an object file was really produced to guard against this.
4860 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4861 if test x"$errors" = x && test -f conftest.$ac_objext; then
4862 acx_cv_cc_gcc_supports_ada=yes
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4867 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4869 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4876 # autoconf is lame and doesn't give us any substitution variable for this.
4877 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4878 NO_MINUS_C_MINUS_O=yes
4880 OUTPUT_OPTION='-o $@'
4885 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4886 # optimizations to be activated explicitly by the toplevel.
4888 */prev-gcc/xgcc*) ;;
4889 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4893 # Determine PICFLAG for target gnatlib.
4899 # PIC is the default on some targets or must not be used.
4901 # PIC is the default on this platform
4902 # Common symbols not allowed in MH_DYLIB files
4903 PICFLAG_FOR_TARGET=-fno-common
4906 # PIC is the default.
4909 # PIC is the default for 64-bit PA HP-UX.
4911 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4913 i[34567]86-*-interix[3-9]*)
4914 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4915 # Instead, we relocate shared libraries at runtime.
4917 i[34567]86-*-nto-qnx*)
4918 # QNX uses GNU C++, but need to define -shared option too, otherwise
4920 PICFLAG_FOR_TARGET='-fPIC -shared'
4922 i[34567]86-pc-msdosdjgpp*)
4923 # DJGPP does not support shared libraries at all.
4926 # On IA64 HP-UX, PIC is the default but the pic flag
4927 # sets the default TLS model and affects inlining.
4928 PICFLAG_FOR_TARGET=-fPIC
4931 # PIC is the default.
4933 rs6000-ibm-aix* | powerpc-ibm-aix*)
4934 # All AIX code is PIC.
4937 # Some targets support both -fPIC and -fpic, but prefer the latter.
4939 i[34567]86-*-* | x86_64-*-*)
4940 PICFLAG_FOR_TARGET=-fpic
4943 PICFLAG_FOR_TARGET=-fpic
4945 # FIXME: Override -fPIC default in libgcc only?
4946 sh-*-linux* | sh[2346lbe]*-*-linux*)
4947 PICFLAG_FOR_TARGET=-fpic
4949 # FIXME: Simplify to sh*-*-netbsd*?
4950 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4951 sh64-*-netbsd* | sh64l*-*-netbsd*)
4952 PICFLAG_FOR_TARGET=-fpic
4954 # Default to -fPIC unless specified otherwise.
4956 PICFLAG_FOR_TARGET=-fPIC
4960 # If the user explicitly uses -fpic/-fPIC, keep that.
4961 case "${CFLAGS_FOR_TARGET}" in
4963 PICFLAG_FOR_TARGET=-fpic
4966 PICFLAG_FOR_TARGET=-fPIC
4972 # -------------------------
4973 # Check C compiler features
4974 # -------------------------
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4983 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4984 # On Suns, sometimes $CPP names a directory.
4985 if test -n "$CPP" && test -d "$CPP"; then
4988 if test -z "$CPP"; then
4989 if test "${ac_cv_prog_CPP+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4992 # Double quotes because CPP needs to be expanded
4993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4996 for ac_c_preproc_warn_flag in '' yes
4998 # Use a header file that comes with gcc, so configuring glibc
4999 # with a fresh cross-compiler works.
5000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5001 # <limits.h> exists even on freestanding compilers.
5002 # On the NeXT, cc -E runs the code through the compiler's parser,
5003 # not just through cpp. "Syntax error" is here to catch this case.
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5007 # include <limits.h>
5009 # include <assert.h>
5013 if ac_fn_c_try_cpp "$LINENO"; then :
5016 # Broken: fails on valid input.
5019 rm -f conftest.err conftest.$ac_ext
5021 # OK, works on sane cases. Now check whether nonexistent headers
5022 # can be detected and how.
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 #include <ac_nonexistent.h>
5027 if ac_fn_c_try_cpp "$LINENO"; then :
5028 # Broken: success on invalid input.
5031 # Passes both tests.
5035 rm -f conftest.err conftest.$ac_ext
5038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5039 rm -f conftest.err conftest.
$ac_ext
5040 if $ac_preproc_ok; then :
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5053 $as_echo "$CPP" >&6; }
5055 for ac_c_preproc_warn_flag
in '' yes
5057 # Use a header file that comes with gcc, so configuring glibc
5058 # with a fresh cross-compiler works.
5059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5060 # <limits.h> exists even on freestanding compilers.
5061 # On the NeXT, cc -E runs the code through the compiler's parser,
5062 # not just through cpp. "Syntax error" is here to catch this case.
5063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5066 # include <limits.h>
5068 # include <assert.h>
5072 if ac_fn_c_try_cpp
"$LINENO"; then :
5075 # Broken: fails on valid input.
5078 rm -f conftest.err conftest.
$ac_ext
5080 # OK, works on sane cases. Now check whether nonexistent headers
5081 # can be detected and how.
5082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 #include <ac_nonexistent.h>
5086 if ac_fn_c_try_cpp
"$LINENO"; then :
5087 # Broken: success on invalid input.
5090 # Passes both tests.
5094 rm -f conftest.err conftest.
$ac_ext
5097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5098 rm -f conftest.err conftest.
$ac_ext
5099 if $ac_preproc_ok; then :
5102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5104 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5105 See \`config.log' for more details." "$LINENO" 5; }
5109 ac_cpp
='$CPP $CPPFLAGS'
5110 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5116 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5117 if test "${ac_cv_path_GREP+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5120 if test -z "$GREP"; then
5121 ac_path_GREP_found
=false
5122 # Loop through the user's path and test for each of PROGNAME-LIST
5123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5124 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5127 test -z "$as_dir" && as_dir
=.
5128 for ac_prog
in grep ggrep
; do
5129 for ac_exec_ext
in '' $ac_executable_extensions; do
5130 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5131 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5132 # Check for GNU ac_path_GREP and select it if it is found.
5133 # Check for GNU $ac_path_GREP
5134 case `"$ac_path_GREP" --version 2>&1` in
5136 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5139 $as_echo_n 0123456789 >"conftest.in"
5142 cat "conftest.in" "conftest.in" >"conftest.tmp"
5143 mv "conftest.tmp" "conftest.in"
5144 cp "conftest.in" "conftest.nl"
5145 $as_echo 'GREP' >> "conftest.nl"
5146 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5147 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5148 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5149 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5150 # Best one so far, save it but keep looking for a better one
5151 ac_cv_path_GREP
="$ac_path_GREP"
5152 ac_path_GREP_max
=$ac_count
5154 # 10*(2^10) chars as input seems more than enough
5155 test $ac_count -gt 10 && break
5157 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5160 $ac_path_GREP_found && break 3
5165 if test -z "$ac_cv_path_GREP"; then
5166 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5169 ac_cv_path_GREP
=$GREP
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5174 $as_echo "$ac_cv_path_GREP" >&6; }
5175 GREP
="$ac_cv_path_GREP"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5179 $as_echo_n "checking for egrep... " >&6; }
5180 if test "${ac_cv_path_EGREP+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5183 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5184 then ac_cv_path_EGREP
="$GREP -E"
5186 if test -z "$EGREP"; then
5187 ac_path_EGREP_found
=false
5188 # Loop through the user's path and test for each of PROGNAME-LIST
5189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5190 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5193 test -z "$as_dir" && as_dir
=.
5194 for ac_prog
in egrep; do
5195 for ac_exec_ext
in '' $ac_executable_extensions; do
5196 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5197 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5198 # Check for GNU ac_path_EGREP and select it if it is found.
5199 # Check for GNU $ac_path_EGREP
5200 case `"$ac_path_EGREP" --version 2>&1` in
5202 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5205 $as_echo_n 0123456789 >"conftest.in"
5208 cat "conftest.in" "conftest.in" >"conftest.tmp"
5209 mv "conftest.tmp" "conftest.in"
5210 cp "conftest.in" "conftest.nl"
5211 $as_echo 'EGREP' >> "conftest.nl"
5212 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5213 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5214 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5215 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5216 # Best one so far, save it but keep looking for a better one
5217 ac_cv_path_EGREP
="$ac_path_EGREP"
5218 ac_path_EGREP_max
=$ac_count
5220 # 10*(2^10) chars as input seems more than enough
5221 test $ac_count -gt 10 && break
5223 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5226 $ac_path_EGREP_found && break 3
5231 if test -z "$ac_cv_path_EGREP"; then
5232 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5235 ac_cv_path_EGREP
=$EGREP
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5241 $as_echo "$ac_cv_path_EGREP" >&6; }
5242 EGREP
="$ac_cv_path_EGREP"
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5246 $as_echo_n "checking for ANSI C header files... " >&6; }
5247 if test "${ac_cv_header_stdc+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5265 if ac_fn_c_try_compile
"$LINENO"; then :
5266 ac_cv_header_stdc
=yes
5268 ac_cv_header_stdc
=no
5270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5272 if test $ac_cv_header_stdc = yes; then
5273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "memchr" >/dev
/null
2>&1; then :
5283 ac_cv_header_stdc
=no
5289 if test $ac_cv_header_stdc = yes; then
5290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "free" >/dev
/null
2>&1; then :
5300 ac_cv_header_stdc
=no
5306 if test $ac_cv_header_stdc = yes; then
5307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5308 if test "$cross_compiling" = yes; then :
5311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5315 #if ((' ' & 0x0FF) == 0x020)
5316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5319 # define ISLOWER(c) \
5320 (('a' <= (c) && (c) <= 'i') \
5321 || ('j' <= (c) && (c) <= 'r') \
5322 || ('s' <= (c) && (c) <= 'z'))
5323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5331 for (i = 0; i < 256; i++)
5332 if (XOR (islower (i), ISLOWER (i))
5333 || toupper (i) != TOUPPER (i))
5338 if ac_fn_c_try_run
"$LINENO"; then :
5341 ac_cv_header_stdc
=no
5343 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5344 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5350 $as_echo "$ac_cv_header_stdc" >&6; }
5351 if test $ac_cv_header_stdc = yes; then
5353 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5358 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5359 inttypes.h stdint.h unistd.h
5361 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5362 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5364 eval as_val
=\$
$as_ac_Header
5365 if test "x$as_val" = x
""yes; then :
5366 cat >>confdefs.h
<<_ACEOF
5367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5376 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5377 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5384 if test "$MINIX" = yes; then
5386 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5389 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5392 $as_echo "#define _MINIX 1" >>confdefs.h
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5398 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5399 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5405 # define __EXTENSIONS__ 1
5406 $ac_includes_default
5415 if ac_fn_c_try_compile
"$LINENO"; then :
5416 ac_cv_safe_to_define___extensions__
=yes
5418 ac_cv_safe_to_define___extensions__
=no
5420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5423 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5424 test $ac_cv_safe_to_define___extensions__ = yes &&
5425 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5427 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5437 ac_cpp
='$CPP $CPPFLAGS'
5438 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5442 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5443 # On Suns, sometimes $CPP names a directory.
5444 if test -n "$CPP" && test -d "$CPP"; then
5447 if test -z "$CPP"; then
5448 if test "${ac_cv_prog_CPP+set}" = set; then :
5449 $as_echo_n "(cached) " >&6
5451 # Double quotes because CPP needs to be expanded
5452 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5455 for ac_c_preproc_warn_flag
in '' yes
5457 # Use a header file that comes with gcc, so configuring glibc
5458 # with a fresh cross-compiler works.
5459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5460 # <limits.h> exists even on freestanding compilers.
5461 # On the NeXT, cc -E runs the code through the compiler's parser,
5462 # not just through cpp. "Syntax error" is here to catch this case.
5463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5466 # include <limits.h>
5468 # include <assert.h>
5472 if ac_fn_c_try_cpp
"$LINENO"; then :
5475 # Broken: fails on valid input.
5478 rm -f conftest.err conftest.
$ac_ext
5480 # OK, works on sane cases. Now check whether nonexistent headers
5481 # can be detected and how.
5482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #include <ac_nonexistent.h>
5486 if ac_fn_c_try_cpp
"$LINENO"; then :
5487 # Broken: success on invalid input.
5490 # Passes both tests.
5494 rm -f conftest.err conftest.
$ac_ext
5497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5498 rm -f conftest.err conftest.
$ac_ext
5499 if $ac_preproc_ok; then :
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5512 $as_echo "$CPP" >&6; }
5514 for ac_c_preproc_warn_flag
in '' yes
5516 # Use a header file that comes with gcc, so configuring glibc
5517 # with a fresh cross-compiler works.
5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519 # <limits.h> exists even on freestanding compilers.
5520 # On the NeXT, cc -E runs the code through the compiler's parser,
5521 # not just through cpp. "Syntax error" is here to catch this case.
5522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5525 # include <limits.h>
5527 # include <assert.h>
5531 if ac_fn_c_try_cpp
"$LINENO"; then :
5534 # Broken: fails on valid input.
5537 rm -f conftest.err conftest.
$ac_ext
5539 # OK, works on sane cases. Now check whether nonexistent headers
5540 # can be detected and how.
5541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 #include <ac_nonexistent.h>
5545 if ac_fn_c_try_cpp
"$LINENO"; then :
5546 # Broken: success on invalid input.
5549 # Passes both tests.
5553 rm -f conftest.err conftest.
$ac_ext
5556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5557 rm -f conftest.err conftest.
$ac_ext
5558 if $ac_preproc_ok; then :
5561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5563 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5564 See \`config.log' for more details." "$LINENO" 5; }
5568 ac_cpp
='$CPP $CPPFLAGS'
5569 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5574 $as_echo_n "checking for inline... " >&6; }
5575 if test "${ac_cv_c_inline+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5579 for ac_kw
in inline __inline__ __inline
; do
5580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5584 static $ac_kw foo_t static_foo () {return 0; }
5585 $ac_kw foo_t foo () {return 0; }
5589 if ac_fn_c_try_compile
"$LINENO"; then :
5590 ac_cv_c_inline
=$ac_kw
5592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5593 test "$ac_cv_c_inline" != no
&& break
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5598 $as_echo "$ac_cv_c_inline" >&6; }
5600 case $ac_cv_c_inline in
5603 case $ac_cv_c_inline in
5605 *) ac_val
=$ac_cv_c_inline;;
5607 cat >>confdefs.h
<<_ACEOF
5609 #define inline $ac_val
5616 # Check whether --enable-largefile was given.
5617 if test "${enable_largefile+set}" = set; then :
5618 enableval
=$enable_largefile;
5621 if test "$enable_largefile" != no
; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5624 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5625 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
5628 ac_cv_sys_largefile_CC
=no
5629 if test "$GCC" != yes; then
5632 # IRIX 6.2 and later do not support large files by default,
5633 # so use the C compiler's -n32 option if that helps.
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 :
5656 rm -f core conftest.err conftest.
$ac_objext
5658 if ac_fn_c_try_compile
"$LINENO"; then :
5659 ac_cv_sys_largefile_CC
=' -n32'; break
5661 rm -f core conftest.err conftest.
$ac_objext
5665 rm -f conftest.
$ac_ext
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5669 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5670 if test "$ac_cv_sys_largefile_CC" != no
; then
5671 CC
=$CC$ac_cv_sys_largefile_CC
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5675 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5676 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <sys/types.h>
5683 /* Check that off_t can represent 2**63 - 1 correctly.
5684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5685 since some C++ compilers masquerading as C compilers
5686 incorrectly reject 9223372036854775807. */
5687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5689 && LARGE_OFF_T % 2147483647 == 1)
5699 if ac_fn_c_try_compile
"$LINENO"; then :
5700 ac_cv_sys_file_offset_bits
=no
; break
5702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705 #define _FILE_OFFSET_BITS 64
5706 #include <sys/types.h>
5707 /* Check that off_t can represent 2**63 - 1 correctly.
5708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5709 since some C++ compilers masquerading as C compilers
5710 incorrectly reject 9223372036854775807. */
5711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5713 && LARGE_OFF_T % 2147483647 == 1)
5723 if ac_fn_c_try_compile
"$LINENO"; then :
5724 ac_cv_sys_file_offset_bits
=64; break
5726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5727 ac_cv_sys_file_offset_bits
=unknown
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5732 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5733 case $ac_cv_sys_file_offset_bits in #(
5736 cat >>confdefs.h
<<_ACEOF
5737 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5742 if test $ac_cv_sys_file_offset_bits = unknown
; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5744 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5745 if test "${ac_cv_sys_large_files+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #include <sys/types.h>
5752 /* Check that off_t can represent 2**63 - 1 correctly.
5753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5754 since some C++ compilers masquerading as C compilers
5755 incorrectly reject 9223372036854775807. */
5756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5758 && LARGE_OFF_T % 2147483647 == 1)
5768 if ac_fn_c_try_compile
"$LINENO"; then :
5769 ac_cv_sys_large_files
=no
; break
5771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #define _LARGE_FILES 1
5775 #include <sys/types.h>
5776 /* Check that off_t can represent 2**63 - 1 correctly.
5777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5778 since some C++ compilers masquerading as C compilers
5779 incorrectly reject 9223372036854775807. */
5780 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5782 && LARGE_OFF_T % 2147483647 == 1)
5792 if ac_fn_c_try_compile
"$LINENO"; then :
5793 ac_cv_sys_large_files
=1; break
5795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5796 ac_cv_sys_large_files
=unknown
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5801 $as_echo "$ac_cv_sys_large_files" >&6; }
5802 case $ac_cv_sys_large_files in #(
5805 cat >>confdefs.h
<<_ACEOF
5806 #define _LARGE_FILES $ac_cv_sys_large_files
5815 # sizeof(char) is 1 by definition.
5816 # The cast to long int works around a bug in the HP C Compiler
5817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5819 # This bug is HP SR number 8606223364.
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5821 $as_echo_n "checking size of void *... " >&6; }
5822 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5825 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5828 if test "$ac_cv_type_void_p" = yes; then
5829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5831 { as_fn_set_status
77
5832 as_fn_error
"cannot compute sizeof (void *)
5833 See \`config.log' for more details." "$LINENO" 5; }; }
5835 ac_cv_sizeof_void_p
=0
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5841 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5845 cat >>confdefs.h
<<_ACEOF
5846 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5850 # The cast to long int works around a bug in the HP C Compiler
5851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5853 # This bug is HP SR number 8606223364.
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5855 $as_echo_n "checking size of short... " >&6; }
5856 if test "${ac_cv_sizeof_short+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5859 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5862 if test "$ac_cv_type_short" = yes; then
5863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5865 { as_fn_set_status
77
5866 as_fn_error
"cannot compute sizeof (short)
5867 See \`config.log' for more details." "$LINENO" 5; }; }
5869 ac_cv_sizeof_short
=0
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5875 $as_echo "$ac_cv_sizeof_short" >&6; }
5879 cat >>confdefs.h
<<_ACEOF
5880 #define SIZEOF_SHORT $ac_cv_sizeof_short
5884 # The cast to long int works around a bug in the HP C Compiler
5885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5887 # This bug is HP SR number 8606223364.
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5889 $as_echo_n "checking size of int... " >&6; }
5890 if test "${ac_cv_sizeof_int+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
5893 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5896 if test "$ac_cv_type_int" = yes; then
5897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5899 { as_fn_set_status
77
5900 as_fn_error
"cannot compute sizeof (int)
5901 See \`config.log' for more details." "$LINENO" 5; }; }
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5909 $as_echo "$ac_cv_sizeof_int" >&6; }
5913 cat >>confdefs.h
<<_ACEOF
5914 #define SIZEOF_INT $ac_cv_sizeof_int
5918 # The cast to long int works around a bug in the HP C Compiler
5919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5921 # This bug is HP SR number 8606223364.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5923 $as_echo_n "checking size of long... " >&6; }
5924 if test "${ac_cv_sizeof_long+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5927 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5930 if test "$ac_cv_type_long" = yes; then
5931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5933 { as_fn_set_status
77
5934 as_fn_error
"cannot compute sizeof (long)
5935 See \`config.log' for more details." "$LINENO" 5; }; }
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5943 $as_echo "$ac_cv_sizeof_long" >&6; }
5947 cat >>confdefs.h
<<_ACEOF
5948 #define SIZEOF_LONG $ac_cv_sizeof_long
5952 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5953 if test "x$ac_cv_type_long_long" = x
""yes; then :
5955 cat >>confdefs.h
<<_ACEOF
5956 #define HAVE_LONG_LONG 1
5959 # The cast to long int works around a bug in the HP C Compiler
5960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5962 # This bug is HP SR number 8606223364.
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5964 $as_echo_n "checking size of long long... " >&6; }
5965 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5968 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5971 if test "$ac_cv_type_long_long" = yes; then
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 { as_fn_set_status
77
5975 as_fn_error
"cannot compute sizeof (long long)
5976 See \`config.log' for more details." "$LINENO" 5; }; }
5978 ac_cv_sizeof_long_long
=0
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5984 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5988 cat >>confdefs.h
<<_ACEOF
5989 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5995 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5996 if test "x$ac_cv_type___int64" = x
""yes; then :
5998 cat >>confdefs.h
<<_ACEOF
5999 #define HAVE___INT64 1
6002 # The cast to long int works around a bug in the HP C Compiler
6003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6005 # This bug is HP SR number 8606223364.
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6007 $as_echo_n "checking size of __int64... " >&6; }
6008 if test "${ac_cv_sizeof___int64+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6011 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6014 if test "$ac_cv_type___int64" = yes; then
6015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6017 { as_fn_set_status
77
6018 as_fn_error
"cannot compute sizeof (__int64)
6019 See \`config.log' for more details." "$LINENO" 5; }; }
6021 ac_cv_sizeof___int64
=0
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6027 $as_echo "$ac_cv_sizeof___int64" >&6; }
6031 cat >>confdefs.h
<<_ACEOF
6032 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6038 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6039 case $ac_cv_c_int8_t in #(
6043 cat >>confdefs.h
<<_ACEOF
6044 #define int8_t $ac_cv_c_int8_t
6049 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6050 case $ac_cv_c_int16_t in #(
6054 cat >>confdefs.h
<<_ACEOF
6055 #define int16_t $ac_cv_c_int16_t
6060 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6061 case $ac_cv_c_int32_t in #(
6065 cat >>confdefs.h
<<_ACEOF
6066 #define int32_t $ac_cv_c_int32_t
6071 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6072 case $ac_cv_c_int64_t in #(
6076 cat >>confdefs.h
<<_ACEOF
6077 #define int64_t $ac_cv_c_int64_t
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6084 $as_echo_n "checking for long long int... " >&6; }
6085 if test "${ac_cv_type_long_long_int+set}" = set; then :
6086 $as_echo_n "(cached) " >&6
6088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6091 /* For now, do not test the preprocessor; as of 2007 there are too many
6092 implementations with broken preprocessors. Perhaps this can
6093 be revisited in 2012. In the meantime, code should not expect
6094 #if to work with literals wider than 32 bits. */
6095 /* Test literals. */
6096 long long int ll = 9223372036854775807ll;
6097 long long int nll = -9223372036854775807LL;
6098 unsigned long long int ull = 18446744073709551615ULL;
6099 /* Test constant expressions. */
6100 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6102 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6108 /* Test availability of runtime routines for shift and division. */
6109 long long int llmax = 9223372036854775807ll;
6110 unsigned long long int ullmax = 18446744073709551615ull;
6111 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6112 | (llmax / ll) | (llmax % ll)
6113 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6114 | (ullmax / ull) | (ullmax % ull));
6120 if ac_fn_c_try_link
"$LINENO"; then :
6121 if test "$cross_compiling" = yes; then :
6122 ac_cv_type_long_long_int
=yes
6124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6129 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6130 # define LLONG_MAX (HALF - 1 + HALF)
6135 long long int n = 1;
6139 long long int m = n << i;
6142 if (LLONG_MAX / 2 < m)
6150 if ac_fn_c_try_run
"$LINENO"; then :
6151 ac_cv_type_long_long_int
=yes
6153 ac_cv_type_long_long_int
=no
6155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6156 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6160 ac_cv_type_long_long_int
=no
6162 rm -f core conftest.err conftest.
$ac_objext \
6163 conftest
$ac_exeext conftest.
$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6166 $as_echo "$ac_cv_type_long_long_int" >&6; }
6167 if test $ac_cv_type_long_long_int = yes; then
6169 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6175 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6176 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6178 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6181 test $ac_cv_type_long_long_int = yes \
6182 && ac_type
='long long int' \
6183 || ac_type
='long int'
6185 cat >>confdefs.h
<<_ACEOF
6186 #define intmax_t $ac_type
6193 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6194 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6196 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6199 for ac_type
in 'int' 'long int' 'long long int'; do
6200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 $ac_includes_default
6206 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6213 if ac_fn_c_try_compile
"$LINENO"; then :
6215 cat >>confdefs.h
<<_ACEOF
6216 #define intptr_t $ac_type
6221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6222 test -z "$ac_type" && break
6227 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6228 case $ac_cv_c_uint8_t in #(
6232 $as_echo "#define _UINT8_T 1" >>confdefs.h
6235 cat >>confdefs.h
<<_ACEOF
6236 #define uint8_t $ac_cv_c_uint8_t
6241 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6242 case $ac_cv_c_uint16_t in #(
6247 cat >>confdefs.h
<<_ACEOF
6248 #define uint16_t $ac_cv_c_uint16_t
6253 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6254 case $ac_cv_c_uint32_t in #(
6258 $as_echo "#define _UINT32_T 1" >>confdefs.h
6261 cat >>confdefs.h
<<_ACEOF
6262 #define uint32_t $ac_cv_c_uint32_t
6267 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6268 case $ac_cv_c_uint64_t in #(
6272 $as_echo "#define _UINT64_T 1" >>confdefs.h
6275 cat >>confdefs.h
<<_ACEOF
6276 #define uint64_t $ac_cv_c_uint64_t
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6283 $as_echo_n "checking for unsigned long long int... " >&6; }
6284 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6290 /* For now, do not test the preprocessor; as of 2007 there are too many
6291 implementations with broken preprocessors. Perhaps this can
6292 be revisited in 2012. In the meantime, code should not expect
6293 #if to work with literals wider than 32 bits. */
6294 /* Test literals. */
6295 long long int ll = 9223372036854775807ll;
6296 long long int nll = -9223372036854775807LL;
6297 unsigned long long int ull = 18446744073709551615ULL;
6298 /* Test constant expressions. */
6299 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6301 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6307 /* Test availability of runtime routines for shift and division. */
6308 long long int llmax = 9223372036854775807ll;
6309 unsigned long long int ullmax = 18446744073709551615ull;
6310 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6311 | (llmax / ll) | (llmax % ll)
6312 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6313 | (ullmax / ull) | (ullmax % ull));
6319 if ac_fn_c_try_link
"$LINENO"; then :
6320 ac_cv_type_unsigned_long_long_int
=yes
6322 ac_cv_type_unsigned_long_long_int
=no
6324 rm -f core conftest.err conftest.
$ac_objext \
6325 conftest
$ac_exeext conftest.
$ac_ext
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6328 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6329 if test $ac_cv_type_unsigned_long_long_int = yes; then
6331 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6337 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6338 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6340 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6343 test $ac_cv_type_unsigned_long_long_int = yes \
6344 && ac_type
='unsigned long long int' \
6345 || ac_type
='unsigned long int'
6347 cat >>confdefs.h
<<_ACEOF
6348 #define uintmax_t $ac_type
6355 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6356 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6358 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6361 for ac_type
in 'unsigned int' 'unsigned long int' \
6362 'unsigned long long int'; do
6363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 $ac_includes_default
6369 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6376 if ac_fn_c_try_compile
"$LINENO"; then :
6378 cat >>confdefs.h
<<_ACEOF
6379 #define uintptr_t $ac_type
6384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6385 test -z "$ac_type" && break
6403 # ---------------------
6404 # Warnings and checking
6405 # ---------------------
6407 # Check $CC warning features (if it's GCC).
6408 # We want to use -pedantic, but we don't want warnings about
6411 # * overlong strings
6412 # * C++11 narrowing conversions in { }
6413 # So, we only use -pedantic if we can disable those warnings.
6416 save_CFLAGS
="$CFLAGS"
6417 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6418 # Do the check with the no- prefix removed since gcc silently
6419 # accepts any -Wno-* option on purpose
6420 case $real_option in
6421 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6422 *) option
=$real_option ;;
6424 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6427 $as_echo_n "checking whether $CC supports $option... " >&6; }
6428 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6429 $as_echo_n "(cached) " >&6
6432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6443 if ac_fn_c_try_compile
"$LINENO"; then :
6444 eval "$as_acx_Woption=yes"
6446 eval "$as_acx_Woption=no"
6448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6451 eval ac_res
=\$
$as_acx_Woption
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6453 $as_echo "$ac_res" >&6; }
6454 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6455 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6458 CFLAGS
="$save_CFLAGS"
6461 save_CFLAGS
="$CFLAGS"
6462 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6463 # Do the check with the no- prefix removed since gcc silently
6464 # accepts any -Wno-* option on purpose
6465 case $real_option in
6466 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6467 *) option
=$real_option ;;
6469 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6472 $as_echo_n "checking whether $CC supports $option... " >&6; }
6473 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6474 $as_echo_n "(cached) " >&6
6477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6488 if ac_fn_c_try_compile
"$LINENO"; then :
6489 eval "$as_acx_Woption=yes"
6491 eval "$as_acx_Woption=no"
6493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6496 eval ac_res
=\$
$as_acx_Woption
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6498 $as_echo "$ac_res" >&6; }
6499 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6500 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6503 CFLAGS
="$save_CFLAGS"
6506 save_CFLAGS
="$CFLAGS"
6507 for real_option
in -Wmissing-format-attribute; do
6508 # Do the check with the no- prefix removed since gcc silently
6509 # accepts any -Wno-* option on purpose
6510 case $real_option in
6511 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6512 *) option
=$real_option ;;
6514 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6517 $as_echo_n "checking whether $CC supports $option... " >&6; }
6518 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6519 $as_echo_n "(cached) " >&6
6522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6533 if ac_fn_c_try_compile
"$LINENO"; then :
6534 eval "$as_acx_Woption=yes"
6536 eval "$as_acx_Woption=no"
6538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6541 eval ac_res
=\$
$as_acx_Woption
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6543 $as_echo "$ac_res" >&6; }
6544 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6545 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6548 CFLAGS
="$save_CFLAGS"
6551 save_CFLAGS
="$CFLAGS"
6552 for real_option
in -Wold-style-definition -Wc++-compat; do
6553 # Do the check with the no- prefix removed since gcc silently
6554 # accepts any -Wno-* option on purpose
6555 case $real_option in
6556 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6557 *) option
=$real_option ;;
6559 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6562 $as_echo_n "checking whether $CC supports $option... " >&6; }
6563 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6564 $as_echo_n "(cached) " >&6
6567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6578 if ac_fn_c_try_compile
"$LINENO"; then :
6579 eval "$as_acx_Woption=yes"
6581 eval "$as_acx_Woption=no"
6583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6586 eval ac_res
=\$
$as_acx_Woption
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6588 $as_echo "$ac_res" >&6; }
6589 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6590 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6593 CFLAGS
="$save_CFLAGS"
6595 # Do the check with the no- prefix removed from the warning options
6596 # since gcc silently accepts any -Wno-* option on purpose
6597 if test "$GCC" = yes; then :
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6599 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6600 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6603 save_CFLAGS
="$CFLAGS"
6604 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6616 if ac_fn_c_try_compile
"$LINENO"; then :
6617 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6619 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6622 CFLAGS
="$save_CFLAGS"
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6625 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6626 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6627 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6632 # Check whether --enable-werror-always was given.
6633 if test "${enable_werror_always+set}" = set; then :
6634 enableval
=$enable_werror_always;
6636 enable_werror_always
=no
6639 if test $enable_werror_always = yes; then :
6640 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6645 # The above macros do nothing if the compiler is not GCC. However, the
6646 # Makefile has more goo to add other flags, so these variables are used
6647 # to enable warnings only for GCC.
6650 if test "x$GCC" = "xyes"; then
6651 warn_cflags
='$(GCC_WARN_CFLAGS)'
6652 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6657 # Disable exceptions and RTTI if building with g++
6659 save_CFLAGS
="$CFLAGS"
6660 for real_option
in -fno-exceptions -fno-rtti; do
6661 # Do the check with the no- prefix removed since gcc silently
6662 # accepts any -Wno-* option on purpose
6663 case $real_option in
6664 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6665 *) option
=$real_option ;;
6667 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6670 $as_echo_n "checking whether $CC supports $option... " >&6; }
6671 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6672 $as_echo_n "(cached) " >&6
6675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6686 if ac_fn_c_try_compile
"$LINENO"; then :
6687 eval "$as_acx_Woption=yes"
6689 eval "$as_acx_Woption=no"
6691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6694 eval ac_res
=\$
$as_acx_Woption
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6696 $as_echo "$ac_res" >&6; }
6697 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6698 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6701 CFLAGS
="$save_CFLAGS"
6704 # Enable expensive internal checks
6706 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6710 # Check whether --enable-checking was given.
6711 if test "${enable_checking+set}" = set; then :
6712 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6715 # Determine the default checks.
6716 if test x
$is_release = x
; then
6717 ac_checking_flags
=yes
6719 ac_checking_flags
=release
6723 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6724 for check
in release
$ac_checking_flags
6727 # these set all the flags to specific states
6728 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6729 ac_fold_checking
= ; ac_gc_checking
=1 ;
6730 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6731 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6732 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6733 ac_types_checking
=1 ;;
6734 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6735 ac_fold_checking
= ; ac_gc_checking
= ;
6736 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6737 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6738 ac_tree_checking
= ; ac_valgrind_checking
= ;
6739 ac_types_checking
= ;;
6740 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6741 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6742 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6743 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6744 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6745 ac_types_checking
=1 ;;
6746 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6747 ac_fold_checking
= ; ac_gc_checking
= ;
6748 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6749 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6750 ac_tree_checking
= ; ac_valgrind_checking
= ;
6751 ac_types_checking
= ;;
6752 # these enable particular checks
6753 assert
) ac_assert_checking
=1 ;;
6754 df
) ac_df_checking
=1 ;;
6755 fold) ac_fold_checking
=1 ;;
6756 gc
) ac_gc_checking
=1 ;;
6757 gcac
) ac_gc_always_collect
=1 ;;
6758 gimple
) ac_gimple_checking
=1 ;;
6759 misc
) ac_checking
=1 ;;
6760 rtl
) ac_rtl_checking
=1 ;;
6761 rtlflag
) ac_rtlflag_checking
=1 ;;
6762 runtime
) ac_runtime_checking
=1 ;;
6763 tree
) ac_tree_checking
=1 ;;
6764 types
) ac_types_checking
=1 ;;
6765 valgrind
) ac_valgrind_checking
=1 ;;
6766 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6772 if test x
$ac_checking != x
; then
6774 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6776 nocommon_flag
=-fno-common
6779 if test x
$ac_df_checking != x
; then
6781 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6784 if test x
$ac_assert_checking != x
; then
6786 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6789 if test x
$ac_gimple_checking != x
; then
6791 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6795 if test x
$ac_runtime_checking != x
; then
6797 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6800 if test x
$ac_tree_checking != x
; then
6802 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6804 TREEBROWSER
=tree-browser.o
6806 if test x
$ac_types_checking != x
; then
6808 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6812 if test x
$ac_rtl_checking != x
; then
6814 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6817 if test x
$ac_rtlflag_checking != x
; then
6819 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6822 if test x
$ac_gc_checking != x
; then
6824 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6827 if test x
$ac_gc_always_collect != x
; then
6829 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6832 if test x
$ac_fold_checking != x
; then
6834 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6837 valgrind_path_defines
=
6840 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6841 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6849 if test x
$ac_valgrind_checking != x
; then
6850 # It is certainly possible that there's valgrind but no valgrind.h.
6851 # GCC relies on making annotations so we must have both.
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6853 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 #include <valgrind/memcheck.h>
6857 #ifndef VALGRIND_DISCARD
6858 #error VALGRIND_DISCARD not defined
6861 if ac_fn_c_try_cpp
"$LINENO"; then :
6862 gcc_cv_header_valgrind_memcheck_h
=yes
6864 gcc_cv_header_valgrind_memcheck_h
=no
6866 rm -f conftest.err conftest.
$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6868 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6870 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 #include <memcheck.h>
6874 #ifndef VALGRIND_DISCARD
6875 #error VALGRIND_DISCARD not defined
6878 if ac_fn_c_try_cpp
"$LINENO"; then :
6879 gcc_cv_header_memcheck_h
=yes
6881 gcc_cv_header_memcheck_h
=no
6883 rm -f conftest.err conftest.
$ac_ext
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6885 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6887 # Prepare PATH_SEPARATOR.
6888 # The user is always right.
6889 if test "${PATH_SEPARATOR+set}" != set; then
6890 echo "#! /bin/sh" >conf$$.sh
6891 echo "exit 0" >>conf$$.sh
6893 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6901 # Find out how to test for executable files. Don't use a zero-byte file,
6902 # as systems may use methods other than mode bits to determine executability.
6903 cat >conf$$.
file <<_ASEOF
6907 chmod +x conf$$.
file
6908 if test -x conf$$.
file >/dev
/null
2>&1; then
6909 ac_executable_p
="test -x"
6911 ac_executable_p
="test -f"
6915 # Extract the first word of "valgrind", so it can be a program name with args.
6916 set dummy valgrind
; ac_word
=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6922 case "$valgrind_path" in
6924 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6927 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6928 for ac_dir
in $PATH; do
6930 test -z "$ac_dir" && ac_dir
=.
6931 for ac_exec_ext
in '' $ac_executable_extensions; do
6932 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6933 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6934 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6944 valgrind_path
="$ac_cv_path_valgrind_path"
6945 if test -n "$valgrind_path"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6947 $as_echo "$valgrind_path" >&6; }
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6953 if test "x$valgrind_path" = "x" \
6954 ||
(test $have_valgrind_h = no \
6955 && test $gcc_cv_header_memcheck_h = no \
6956 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6957 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6959 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6960 valgrind_command
="$valgrind_path -q"
6962 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6964 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6966 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6969 if test $gcc_cv_header_memcheck_h = yes; then
6971 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6978 # Enable code coverage collection
6979 # Check whether --enable-coverage was given.
6980 if test "${enable_coverage+set}" = set; then :
6981 enableval
=$enable_coverage; case "${enableval}" in
6983 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6986 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6989 # a.k.a. --disable-coverage
6993 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7002 # Check whether --enable-gather-detailed-mem-stats was given.
7003 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7004 enableval
=$enable_gather_detailed_mem_stats;
7006 enable_gather_detailed_mem_stats
=no
7009 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7011 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
7015 # -------------------------------
7016 # Miscenalleous configure options
7017 # -------------------------------
7019 # See if we are building gcc with C++.
7020 # Check whether --enable-build-with-cxx was given.
7021 if test "${enable_build_with_cxx+set}" = set; then :
7022 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
7024 ENABLE_BUILD_WITH_CXX
=no
7028 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7030 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7036 # Check whether --with-stabs was given.
7037 if test "${with_stabs+set}" = set; then :
7038 withval
=$with_stabs; stabs
="$with_stabs"
7044 # Determine whether or not multilibs are enabled.
7045 # Check whether --enable-multilib was given.
7046 if test "${enable_multilib+set}" = set; then :
7047 enableval
=$enable_multilib;
7054 # Enable __cxa_atexit for C++.
7055 # Check whether --enable-__cxa_atexit was given.
7056 if test "${enable___cxa_atexit+set}" = set; then :
7057 enableval
=$enable___cxa_atexit;
7061 # Enable C extension for decimal float if target supports it.
7063 # Check whether --enable-decimal-float was given.
7064 if test "${enable_decimal_float+set}" = set; then :
7065 enableval
=$enable_decimal_float;
7066 case $enable_decimal_float in
7067 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7068 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7069 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7075 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7076 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7078 enable_decimal_float
=yes
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7082 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7083 enable_decimal_float
=no
7090 # x86's use BID format instead of DPD
7091 case x
$enable_decimal_float in
7094 i?
86*-*-* | x86_64
*-*-*)
7095 enable_decimal_float
=bid
7098 enable_decimal_float
=dpd
7101 default_decimal_float
=$enable_decimal_float
7104 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7105 # dependency on libdecnumber.
7106 default_decimal_float
=dpd
7113 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7115 cat >>confdefs.h
<<_ACEOF
7116 #define ENABLE_DECIMAL_FLOAT $dfp
7120 # Use default_decimal_float for dependency.
7121 enable_decimal_float
=$default_decimal_float
7123 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7125 cat >>confdefs.h
<<_ACEOF
7126 #define ENABLE_DECIMAL_BID_FORMAT $bid
7130 # Enable C extension for fixed-point arithmetic.
7131 # Check whether --enable-fixed-point was given.
7132 if test "${enable_fixed_point+set}" = set; then :
7133 enableval
=$enable_fixed_point;
7138 enable_fixed_point
=yes
7142 enable_fixed_point
=yes
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7146 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7147 enable_fixed_point
=no
7155 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7157 cat >>confdefs.h
<<_ACEOF
7158 #define ENABLE_FIXED_POINT $fixedpoint
7163 # Pass with no value to take the default
7164 # Pass with a value to specify a thread package
7165 # Check whether --enable-threads was given.
7166 if test "${enable_threads+set}" = set; then :
7167 enableval
=$enable_threads;
7173 # Check whether --enable-tls was given.
7174 if test "${enable_tls+set}" = set; then :
7175 enableval
=$enable_tls;
7178 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7179 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7187 # Check whether --enable-objc-gc was given.
7188 if test "${enable_objc_gc+set}" = set; then :
7189 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7199 case ,${enable_languages}, in
7200 *,upc
,) lang_upc_enabled
="yes" ;;
7205 # Check whether --with-upc-pts was given.
7206 if test "${with_upc_pts+set}" = set; then :
7207 withval
=$with_upc_pts;
7208 if test x
"$lang_upc_enabled" = x
"yes" ; then
7210 packed|struct
) upc_pts_rep
="$withval" ;;
7211 *) as_fn_error
"$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts is allowed only when UPC
7216 support has been enabled" >&5
7217 $as_echo "$as_me: WARNING: --with-upc-pts is allowed only when UPC
7218 support has been enabled" >&2;}
7223 if test x
"$lang_upc_enabled" = x
"yes" ; then
7224 upc_pts_rep
="packed"
7231 # Perl is required for checking pts representation
7232 # Extract the first word of "perl", so it can be a program name with args.
7233 set dummy perl
; ac_word
=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if test "${ac_cv_prog_PERL+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7239 if test -n "$PERL"; then
7240 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7246 test -z "$as_dir" && as_dir
=.
7247 for ac_exec_ext
in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_prog_PERL
="perl"
7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 PERL
=$ac_cv_prog_PERL
7260 if test -n "$PERL"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7262 $as_echo "$PERL" >&6; }
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7271 # Check whether --with-upc-pts-vaddr-order was given.
7272 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7273 withval
=$with_upc_pts_vaddr_order;
7274 if test x
"$lang_upc_enabled" = x
"yes" ; then
7275 upc_vaddr_order
="$withval"
7276 case "$upc_vaddr_order" in
7278 *) as_fn_error
"$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5 ;;
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7282 support has been enabled" >&5
7283 $as_echo "$as_me: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7284 support has been enabled" >&2;}
7289 if test x
"$lang_upc_enabled" = x
"yes" ; then
7290 # Default UPC PTS vaddr order to "first"
7291 upc_vaddr_order
="first"
7298 # Check whether --with-upc-packed-bits was given.
7299 if test "${with_upc_packed_bits+set}" = set; then :
7300 withval
=$with_upc_packed_bits;
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-packed-bits is deprecated.
7302 Use --with-upc-pts-packed-bits instead." >&5
7303 $as_echo "$as_me: WARNING: --with-upc-packed-bits is deprecated.
7304 Use --with-upc-pts-packed-bits instead." >&2;}
7305 with_upc_pts_packed_bits
="$withval";
7311 # Check whether --with-upc-pts-packed-bits was given.
7312 if test "${with_upc_pts_packed_bits+set}" = set; then :
7313 withval
=$with_upc_pts_packed_bits;
7314 if test x
"$lang_upc_enabled" = x
"yes" ; then
7315 if test x
"$upc_pts_rep" = x
"packed"; then
7316 UPC_PTS_PHASE_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7317 print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7318 UPC_PTS_THREAD_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7319 print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7320 UPC_PTS_VADDR_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7321 print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7322 if test -z "$UPC_PTS_PHASE_SIZE" \
7323 ||
test -z "$UPC_PTS_THREAD_SIZE" \
7324 ||
test -z "$UPC_PTS_VADDR_SIZE" ; then
7325 as_fn_error
"--with-upc-pts-packed-bits=phase,thread,vaddr requires
7326 phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7329 as_fn_error
"--with-upc-pts-packed-bits is only supported for
7330 the packed UPC pointer-to-shared representation" "$LINENO" 5
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7334 support has been enabled" >&5
7335 $as_echo "$as_me: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7336 support has been enabled" >&2;}
7341 if test x
"$lang_upc_enabled" = x
"yes" ; then
7342 # GNU UPC packed pointer representation defaults.
7345 UPC_PTS_PHASE_SIZE
=20
7346 UPC_PTS_THREAD_SIZE
=12
7347 UPC_PTS_VADDR_SIZE
=32
7350 UPC_PTS_PHASE_SIZE
=20
7351 UPC_PTS_THREAD_SIZE
=10
7352 UPC_PTS_VADDR_SIZE
=34
7359 # Check whether --enable-upc-link-script was given.
7360 if test "${enable_upc_link_script+set}" = set; then :
7361 enableval
=$enable_upc_link_script;
7362 if test x
"$lang_upc_enabled" = x
"yes" ; then
7366 as_fn_error
"--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-upc-link-script is allowed only when UPC
7370 support has been enabled" >&5
7371 $as_echo "$as_me: WARNING: --enable-upc-link-script is allowed only when UPC
7372 support has been enabled" >&2;}
7377 if test x
"$lang_upc_enabled" = x
"yes" ; then
7378 enable_upc_link_script
=no
7384 if test x
"$lang_upc_enabled" = x
"yes" ; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared representation" >&5
7386 $as_echo_n "checking for UPC pointer-to-shared representation... " >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep" >&5
7388 $as_echo "$upc_pts_rep" >&6; }
7389 case "$upc_pts_rep" in
7392 $as_echo "#define HAVE_UPC_PTS_PACKED_REP 1" >>confdefs.h
7397 $as_echo "#define HAVE_UPC_PTS_STRUCT_REP 1" >>confdefs.h
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared address field position" >&5
7402 $as_echo_n "checking for UPC pointer-to-shared address field position... " >&6; }
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7404 $as_echo "$upc_vaddr_order" >&6; }
7405 if test x
"$upc_vaddr_order" = x
"first"; then
7407 $as_echo "#define HAVE_UPC_PTS_VADDR_FIRST 1" >>confdefs.h
7410 if test x
"$upc_pts_rep" = x
"packed"; then
7412 cat >>confdefs.h
<<_ACEOF
7413 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7417 cat >>confdefs.h
<<_ACEOF
7418 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7422 cat >>confdefs.h
<<_ACEOF
7423 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packed UPC pointer-to-shared layout" >&5
7427 $as_echo_n "checking for packed UPC pointer-to-shared layout... " >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7429 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&5
7430 $as_echo "\"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7431 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7434 $as_echo_n "checking for UPC link script support... " >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7436 $as_echo "$enable_upc_link_script" >&6; }
7437 if test "$enable_upc_link_script" = yes; then
7439 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7445 # Check whether --with-dwarf2 was given.
7446 if test "${with_dwarf2+set}" = set; then :
7447 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7453 # Check whether --enable-shared was given.
7454 if test "${enable_shared+set}" = set; then :
7455 enableval
=$enable_shared;
7456 case $enable_shared in
7460 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7461 for pkg
in $enableval; do
7462 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7477 # Check whether --with-native-system-header-dir was given.
7478 if test "${with_native_system_header_dir+set}" = set; then :
7479 withval
=$with_native_system_header_dir;
7480 case ${with_native_system_header_dir} in
7481 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7482 /* |
[A-Za-z
]:[\\/]*) ;;
7483 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7485 configured_native_system_header_dir
="${withval}"
7488 configured_native_system_header_dir
=
7493 # Check whether --with-build-sysroot was given.
7494 if test "${with_build_sysroot+set}" = set; then :
7495 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7496 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7499 SYSROOT_CFLAGS_FOR_TARGET
=
7505 # Check whether --with-sysroot was given.
7506 if test "${with_sysroot+set}" = set; then :
7507 withval
=$with_sysroot;
7508 case ${with_sysroot} in
7509 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7510 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7513 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7514 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7516 if test "x$prefix" = xNONE
; then
7517 test_prefix
=/usr
/local
7521 if test "x$exec_prefix" = xNONE
; then
7522 test_exec_prefix
=$test_prefix
7524 test_exec_prefix
=$exec_prefix
7526 case ${TARGET_SYSTEM_ROOT} in
7527 "${test_prefix}"|
"${test_prefix}/"*|\
7528 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7529 '${prefix}'|
'${prefix}/'*|\
7530 '${exec_prefix}'|
'${exec_prefix}/'*)
7531 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7532 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7539 TARGET_SYSTEM_ROOT_DEFINE
=
7540 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7549 # Check whether --with-specs was given.
7550 if test "${with_specs+set}" = set; then :
7551 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7561 # Check whether --with-pkgversion was given.
7562 if test "${with_pkgversion+set}" = set; then :
7563 withval
=$with_pkgversion; case "$withval" in
7564 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7566 *) PKGVERSION
="($withval) " ;;
7577 # Check whether --with-bugurl was given.
7578 if test "${with_bugurl+set}" = set; then :
7579 withval
=$with_bugurl; case "$withval" in
7580 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7583 *) BUGURL
="$withval"
7587 BUGURL
="http://gccupc.org/bugs"
7597 REPORT_BUGS_TO
="<$BUGURL>"
7598 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7605 # Sanity check enable_languages in case someone does not run the toplevel
7606 # configure # script.
7607 # Check whether --enable-languages was given.
7608 if test "${enable_languages+set}" = set; then :
7609 enableval
=$enable_languages; case ,${enable_languages}, in
7611 # go safe -- we cannot be much sure without the toplevel
7613 # analysis of which target libs are present and usable
7617 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7622 enable_languages
=c
,${enable_languages}
7631 # Check whether --with-multilib-list was given.
7632 if test "${with_multilib_list+set}" = set; then :
7633 withval
=$with_multilib_list; :
7635 with_multilib_list
=default
7639 # -------------------------
7640 # Checks for other programs
7641 # -------------------------
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7644 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7646 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7647 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7648 $as_echo_n "(cached) " >&6
7650 cat >conftest.
make <<\_ACEOF
7653 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7655 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7656 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7658 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7660 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7664 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7666 $as_echo "yes" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7671 SET_MAKE
="MAKE=${MAKE-make}"
7675 # Find some useful tools
7676 for ac_prog
in gawk mawk nawk
awk
7678 # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy
$ac_prog; ac_word
=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if test "${ac_cv_prog_AWK+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
7685 if test -n "$AWK"; then
7686 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7692 test -z "$as_dir" && as_dir
=.
7693 for ac_exec_ext
in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_prog_AWK
="$ac_prog"
7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 if test -n "$AWK"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7708 $as_echo "$AWK" >&6; }
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7715 test -n "$AWK" && break
7718 # We need awk to create options.c and options.h.
7719 # Bail out if it's missing.
7721 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7725 $as_echo_n "checking whether ln -s works... " >&6; }
7726 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7729 rm -f conftestdata_t
7730 echo >conftestdata_f
7731 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7733 gcc_cv_prog_LN_S
="ln -s"
7735 if ln conftestdata_f conftestdata_t
2>/dev
/null
7739 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7741 gcc_cv_prog_LN_S
="cp -p"
7747 rm -f conftestdata_f conftestdata_t
7750 LN_S
="$gcc_cv_prog_LN_S"
7751 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7753 $as_echo "yes" >&6; }
7755 if test "$gcc_cv_prog_LN_S" = "ln"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7757 $as_echo "no, using ln" >&6; }
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7760 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7765 $as_echo_n "checking whether ln works... " >&6; }
7766 if test "${acx_cv_prog_LN+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7769 rm -f conftestdata_t
7770 echo >conftestdata_f
7771 if ln conftestdata_f conftestdata_t
2>/dev
/null
7777 rm -f conftestdata_f conftestdata_t
7780 if test $acx_cv_prog_LN = no
; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7783 $as_echo "no, using $LN" >&6; }
7785 LN
="$acx_cv_prog_LN"
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7787 $as_echo "yes" >&6; }
7790 if test -n "$ac_tool_prefix"; then
7791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7792 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7798 if test -n "$RANLIB"; then
7799 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7805 test -z "$as_dir" && as_dir
=.
7806 for ac_exec_ext
in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 RANLIB
=$ac_cv_prog_RANLIB
7819 if test -n "$RANLIB"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7821 $as_echo "$RANLIB" >&6; }
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7829 if test -z "$ac_cv_prog_RANLIB"; then
7830 ac_ct_RANLIB
=$RANLIB
7831 # Extract the first word of "ranlib", so it can be a program name with args.
7832 set dummy ranlib
; ac_word
=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7838 if test -n "$ac_ct_RANLIB"; then
7839 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7845 test -z "$as_dir" && as_dir
=.
7846 for ac_exec_ext
in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7859 if test -n "$ac_ct_RANLIB"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7861 $as_echo "$ac_ct_RANLIB" >&6; }
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7867 if test "x$ac_ct_RANLIB" = x
; then
7870 case $cross_compiling:$ac_tool_warned in
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7874 ac_tool_warned
=yes ;;
7876 RANLIB
=$ac_ct_RANLIB
7879 RANLIB
="$ac_cv_prog_RANLIB"
7885 # Find a good install program. We prefer a C program (faster),
7886 # so one script is as good as another. But avoid the broken or
7887 # incompatible versions:
7888 # SysV /etc/install, /usr/sbin/install
7889 # SunOS /usr/etc/install
7890 # IRIX /sbin/install
7892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7894 # ./install, which can be erroneously created by make from ./install.sh.
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7896 $as_echo_n "checking for a BSD compatible install... " >&6; }
7897 if test -z "$INSTALL"; then
7898 if test "${ac_cv_path_install+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7901 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7902 for ac_dir
in $PATH; do
7903 # Account for people who put trailing slashes in PATH elements.
7905 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7907 # OSF1 and SCO ODT 3.0 have their own names for install.
7908 for ac_prog
in ginstall scoinst
install; do
7909 if test -f $ac_dir/$ac_prog; then
7910 if test $ac_prog = install &&
7911 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7912 # AIX install. It has an incompatible calling convention.
7913 # OSF/1 installbsd also uses dspmsg, but is usable.
7916 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7927 if test "${ac_cv_path_install+set}" = set; then
7928 INSTALL
="$ac_cv_path_install"
7930 # As a last resort, use the slow shell script. We don't cache a
7931 # path for INSTALL within a source directory, because that will
7932 # break other packages using the cache if that directory is
7933 # removed, or if the path is relative.
7934 INSTALL
="$ac_install_sh"
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7938 $as_echo "$INSTALL" >&6; }
7940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7941 # It thinks the first close brace ends the variable substitution.
7942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7944 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7947 # See if cmp has --ignore-initial.
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7949 $as_echo_n "checking for cmp's capabilities... " >&6; }
7950 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7955 gcc_cv_prog_cmp_skip
=slowcompare
7956 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7957 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7960 gcc_cv_prog_cmp_skip
=gnucompare
7963 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7964 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7965 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7968 gcc_cv_prog_cmp_skip
=fastcompare
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7976 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7977 make_compare_target
=$gcc_cv_prog_cmp_skip
7981 # See if we have the mktemp command.
7982 # Extract the first word of "mktemp", so it can be a program name with args.
7983 set dummy mktemp
; ac_word
=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7989 if test -n "$have_mktemp_command"; then
7990 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7996 test -z "$as_dir" && as_dir
=.
7997 for ac_exec_ext
in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_have_mktemp_command
="yes"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8010 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8011 if test -n "$have_mktemp_command"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8013 $as_echo "$have_mktemp_command" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8021 # See if makeinfo has been installed and is modern enough
8022 # that we can use it.
8024 # Extract the first word of "makeinfo", so it can be a program name with args.
8025 set dummy makeinfo
; ac_word
=$2
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 $as_echo_n "checking for $ac_word... " >&6; }
8028 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8029 $as_echo_n "(cached) " >&6
8031 if test -n "$MAKEINFO"; then
8032 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8038 test -z "$as_dir" && as_dir
=.
8039 for ac_exec_ext
in '' $ac_executable_extensions; do
8040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8041 ac_cv_prog_MAKEINFO
="makeinfo"
8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 MAKEINFO
=$ac_cv_prog_MAKEINFO
8052 if test -n "$MAKEINFO"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8054 $as_echo "$MAKEINFO" >&6; }
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8061 if test -n "$MAKEINFO"; then
8062 # Found it, now check the version.
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8064 $as_echo_n "checking for modern makeinfo... " >&6; }
8065 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8068 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8069 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8071 case $ac_prog_version in
8072 '') gcc_cv_prog_makeinfo_modern
=no
;;
8073 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8074 *) gcc_cv_prog_makeinfo_modern
=no
;;
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8079 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8081 gcc_cv_prog_makeinfo_modern
=no
8083 if test $gcc_cv_prog_makeinfo_modern = no
; then
8084 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8087 if test $gcc_cv_prog_makeinfo_modern = no
; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8089 *** Makeinfo is missing or too old.
8090 *** Info documentation will not be built." >&5
8091 $as_echo "$as_me: WARNING:
8092 *** Makeinfo is missing or too old.
8093 *** Info documentation will not be built." >&2;}
8100 # Is pod2man recent enough to regenerate manpages?
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8102 $as_echo_n "checking for recent Pod::Man... " >&6; }
8103 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8105 $as_echo "yes" >&6; }
8106 GENERATED_MANPAGES
=generated-manpages
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8114 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8119 # Extract the first word of "$ac_prog", so it can be a program name with args.
8120 set dummy
$ac_prog; ac_word
=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if test "${ac_cv_prog_FLEX+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8126 if test -n "$FLEX"; then
8127 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8133 test -z "$as_dir" && as_dir
=.
8134 for ac_exec_ext
in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 ac_cv_prog_FLEX
="$ac_prog"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 FLEX
=$ac_cv_prog_FLEX
8147 if test -n "$FLEX"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8149 $as_echo "$FLEX" >&6; }
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8156 test -n "$FLEX" && break
8158 test -n "$FLEX" || FLEX
="$MISSING flex"
8162 for ac_prog
in bison
8164 # Extract the first word of "$ac_prog", so it can be a program name with args.
8165 set dummy
$ac_prog; ac_word
=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if test "${ac_cv_prog_BISON+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8171 if test -n "$BISON"; then
8172 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8178 test -z "$as_dir" && as_dir
=.
8179 for ac_exec_ext
in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_prog_BISON
="$ac_prog"
8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 BISON
=$ac_cv_prog_BISON
8192 if test -n "$BISON"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8194 $as_echo "$BISON" >&6; }
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8201 test -n "$BISON" && break
8203 test -n "$BISON" || BISON
="$MISSING bison"
8206 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8207 # check for build == host before using them.
8210 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8211 && test -d ..
/binutils
; then
8212 NM
='${objdir}/../binutils/nm-new'
8214 # Extract the first word of "nm", so it can be a program name with args.
8215 set dummy nm
; ac_word
=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_prog_NM+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8221 if test -n "$NM"; then
8222 ac_cv_prog_NM
="$NM" # Let the user override the test.
8224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8228 test -z "$as_dir" && as_dir
=.
8229 for ac_exec_ext
in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8243 if test -n "$NM"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8245 $as_echo "$NM" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8255 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8256 && test -d ..
/binutils
; then
8257 AR
='${objdir}/../binutils/ar'
8259 # Extract the first word of "ar", so it can be a program name with args.
8260 set dummy
ar; ac_word
=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if test "${ac_cv_prog_AR+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8266 if test -n "$AR"; then
8267 ac_cv_prog_AR
="$AR" # Let the user override the test.
8269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8273 test -z "$as_dir" && as_dir
=.
8274 for ac_exec_ext
in '' $ac_executable_extensions; do
8275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8288 if test -n "$AR"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8290 $as_echo "$AR" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8300 # --------------------
8301 # Checks for C headers
8302 # --------------------
8304 # Need to reject headers which give warnings, so that the -Werror bootstrap
8305 # works later. *sigh* This needs to come before all header checks.
8307 ac_c_preproc_warn_flag
=yes
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8310 $as_echo_n "checking for ANSI C header files... " >&6; }
8311 if test "${ac_cv_header_stdc+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8329 if ac_fn_c_try_compile
"$LINENO"; then :
8330 ac_cv_header_stdc
=yes
8332 ac_cv_header_stdc
=no
8334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8336 if test $ac_cv_header_stdc = yes; then
8337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8344 $EGREP "memchr" >/dev
/null
2>&1; then :
8347 ac_cv_header_stdc
=no
8353 if test $ac_cv_header_stdc = yes; then
8354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8361 $EGREP "free" >/dev
/null
2>&1; then :
8364 ac_cv_header_stdc
=no
8370 if test $ac_cv_header_stdc = yes; then
8371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8372 if test "$cross_compiling" = yes; then :
8375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8379 #if ((' ' & 0x0FF) == 0x020)
8380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8383 # define ISLOWER(c) \
8384 (('a' <= (c) && (c) <= 'i') \
8385 || ('j' <= (c) && (c) <= 'r') \
8386 || ('s' <= (c) && (c) <= 'z'))
8387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8395 for (i = 0; i < 256; i++)
8396 if (XOR (islower (i), ISLOWER (i))
8397 || toupper (i) != TOUPPER (i))
8402 if ac_fn_c_try_run
"$LINENO"; then :
8405 ac_cv_header_stdc
=no
8407 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8408 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8414 $as_echo "$ac_cv_header_stdc" >&6; }
8415 if test $ac_cv_header_stdc = yes; then
8417 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8422 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8423 if test "${ac_cv_header_time+set}" = set; then :
8424 $as_echo_n "(cached) " >&6
8426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 #include <sys/types.h>
8429 #include <sys/time.h>
8435 if ((struct tm *) 0)
8441 if ac_fn_c_try_compile
"$LINENO"; then :
8442 ac_cv_header_time
=yes
8444 ac_cv_header_time
=no
8446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8449 $as_echo "$ac_cv_header_time" >&6; }
8450 if test $ac_cv_header_time = yes; then
8452 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8457 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8458 if test "${gcc_cv_header_string+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8464 #include <strings.h>
8473 if ac_fn_c_try_compile
"$LINENO"; then :
8474 gcc_cv_header_string
=yes
8476 gcc_cv_header_string
=no
8478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8481 $as_echo "$gcc_cv_header_string" >&6; }
8482 if test $gcc_cv_header_string = yes; then
8484 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8489 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8490 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 #include <sys/types.h>
8496 #include <sys/wait.h>
8498 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8501 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8509 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8514 if ac_fn_c_try_compile
"$LINENO"; then :
8515 ac_cv_header_sys_wait_h
=yes
8517 ac_cv_header_sys_wait_h
=no
8519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8522 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8523 if test $ac_cv_header_sys_wait_h = yes; then
8525 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8529 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8530 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8531 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8532 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8534 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8535 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8536 eval as_val
=\$
$as_ac_Header
8537 if test "x$as_val" = x
""yes; then :
8538 cat >>confdefs.h
<<_ACEOF
8539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8546 # Check for thread headers.
8547 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8548 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8554 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8555 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8562 # These tests can't be done till we know if we have limits.h.
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8564 $as_echo_n "checking for CHAR_BIT... " >&6; }
8565 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8570 #ifdef HAVE_LIMITS_H
8577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8578 $EGREP "found" >/dev
/null
2>&1; then :
8579 gcc_cv_decl_char_bit
=yes
8581 gcc_cv_decl_char_bit
=no
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8588 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8589 if test $gcc_cv_decl_char_bit = no
; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8591 $as_echo_n "checking number of bits in a byte... " >&6; }
8592 if test "${gcc_cv_c_nbby+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8597 while test $i -lt 65; do
8598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8605 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8606 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8612 if ac_fn_c_try_compile
"$LINENO"; then :
8613 gcc_cv_c_nbby
=$i; break
8615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8618 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8622 $as_echo "$gcc_cv_c_nbby" >&6; }
8623 if test $gcc_cv_c_nbby = failed
; then
8624 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8627 cat >>confdefs.h
<<_ACEOF
8628 #define CHAR_BIT $gcc_cv_c_nbby
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8634 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8635 if test "${ac_cv_c_bigendian+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
8638 ac_cv_c_bigendian
=unknown
8639 # See if we're dealing with a universal compiler.
8640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #ifndef __APPLE_CC__
8643 not a universal capable compiler
8648 if ac_fn_c_try_compile
"$LINENO"; then :
8650 # Check for potential -arch flags. It is not universal unless
8651 # there are at least two -arch flags with different values.
8654 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8655 if test -n "$ac_prev"; then
8657 i?
86 | x86_64 | ppc | ppc64
)
8658 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8661 ac_cv_c_bigendian
=universal
8667 elif test "x$ac_word" = "x-arch"; then
8672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8673 if test $ac_cv_c_bigendian = unknown
; then
8674 # See if sys/param.h defines the BYTE_ORDER macro.
8675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 #include <sys/types.h>
8678 #include <sys/param.h>
8683 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8684 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8693 if ac_fn_c_try_compile
"$LINENO"; then :
8694 # It does; now see whether it defined to BIG_ENDIAN or not.
8695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 #include <sys/types.h>
8698 #include <sys/param.h>
8703 #if BYTE_ORDER != BIG_ENDIAN
8711 if ac_fn_c_try_compile
"$LINENO"; then :
8712 ac_cv_c_bigendian
=yes
8714 ac_cv_c_bigendian
=no
8716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8720 if test $ac_cv_c_bigendian = unknown
; then
8721 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8729 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8737 if ac_fn_c_try_compile
"$LINENO"; then :
8738 # It does; now see whether it defined to _BIG_ENDIAN or not.
8739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8754 if ac_fn_c_try_compile
"$LINENO"; then :
8755 ac_cv_c_bigendian
=yes
8757 ac_cv_c_bigendian
=no
8759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8763 if test $ac_cv_c_bigendian = unknown
; then
8764 # Compile a test program.
8765 if test "$cross_compiling" = yes; then :
8766 # Try to guess by grepping values from an object file.
8767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 short int ascii_mm[] =
8770 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8771 short int ascii_ii[] =
8772 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8773 int use_ascii (int i) {
8774 return ascii_mm[i] + ascii_ii[i];
8776 short int ebcdic_ii[] =
8777 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8778 short int ebcdic_mm[] =
8779 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8780 int use_ebcdic (int i) {
8781 return ebcdic_mm[i] + ebcdic_ii[i];
8788 return use_ascii (foo) == use_ebcdic (foo);
8793 if ac_fn_c_try_compile
"$LINENO"; then :
8794 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8795 ac_cv_c_bigendian
=yes
8797 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8798 if test "$ac_cv_c_bigendian" = unknown
; then
8799 ac_cv_c_bigendian
=no
8801 # finding both strings is unlikely to happen, but who knows?
8802 ac_cv_c_bigendian
=unknown
8806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8810 $ac_includes_default
8815 /* Are we little or big endian? From Harbison&Steele. */
8819 char c[sizeof (long int)];
8822 return u.c[sizeof (long int) - 1] == 1;
8828 if ac_fn_c_try_run
"$LINENO"; then :
8829 ac_cv_c_bigendian
=no
8831 ac_cv_c_bigendian
=yes
8833 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8834 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8840 $as_echo "$ac_cv_c_bigendian" >&6; }
8841 case $ac_cv_c_bigendian in #(
8843 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8849 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8853 as_fn_error
"unknown endianness
8854 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8858 # ----------------------
8859 # Checks for C++ headers
8860 # ----------------------
8863 ac_cpp
='$CXXCPP $CPPFLAGS'
8864 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8865 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8866 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8868 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8869 if test -z "$CXXCPP"; then
8870 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8873 # Double quotes because CXXCPP needs to be expanded
8874 for CXXCPP
in "$CXX -E" "/lib/cpp"
8877 for ac_cxx_preproc_warn_flag
in '' yes
8879 # Use a header file that comes with gcc, so configuring glibc
8880 # with a fresh cross-compiler works.
8881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8882 # <limits.h> exists even on freestanding compilers.
8883 # On the NeXT, cc -E runs the code through the compiler's parser,
8884 # not just through cpp. "Syntax error" is here to catch this case.
8885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8886 /* end confdefs.h. */
8888 # include <limits.h>
8890 # include <assert.h>
8894 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8897 # Broken: fails on valid input.
8900 rm -f conftest.err conftest.
$ac_ext
8902 # OK, works on sane cases. Now check whether nonexistent headers
8903 # can be detected and how.
8904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8906 #include <ac_nonexistent.h>
8908 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8909 # Broken: success on invalid input.
8912 # Passes both tests.
8916 rm -f conftest.err conftest.
$ac_ext
8919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8920 rm -f conftest.err conftest.
$ac_ext
8921 if $ac_preproc_ok; then :
8926 ac_cv_prog_CXXCPP
=$CXXCPP
8929 CXXCPP
=$ac_cv_prog_CXXCPP
8931 ac_cv_prog_CXXCPP
=$CXXCPP
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8934 $as_echo "$CXXCPP" >&6; }
8936 for ac_cxx_preproc_warn_flag
in '' yes
8938 # Use a header file that comes with gcc, so configuring glibc
8939 # with a fresh cross-compiler works.
8940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8941 # <limits.h> exists even on freestanding compilers.
8942 # On the NeXT, cc -E runs the code through the compiler's parser,
8943 # not just through cpp. "Syntax error" is here to catch this case.
8944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8947 # include <limits.h>
8949 # include <assert.h>
8953 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8956 # Broken: fails on valid input.
8959 rm -f conftest.err conftest.
$ac_ext
8961 # OK, works on sane cases. Now check whether nonexistent headers
8962 # can be detected and how.
8963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 #include <ac_nonexistent.h>
8967 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8968 # Broken: success on invalid input.
8971 # Passes both tests.
8975 rm -f conftest.err conftest.
$ac_ext
8978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8979 rm -f conftest.err conftest.
$ac_ext
8980 if $ac_preproc_ok; then :
8983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8986 See \`config.log' for more details." >&5
8987 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8988 See \`config.log' for more details." >&2;}; }
8992 ac_cpp
='$CPP $CPPFLAGS'
8993 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8994 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8995 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8999 ac_cpp
='$CXXCPP $CPPFLAGS'
9000 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9007 for ac_header
in unordered_map
9009 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9010 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9011 cat >>confdefs.h
<<_ACEOF
9012 #define HAVE_UNORDERED_MAP 1
9018 for ac_header
in tr1/unordered_map
9020 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9021 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9022 cat >>confdefs.h
<<_ACEOF
9023 #define HAVE_TR1_UNORDERED_MAP 1
9029 for ac_header
in ext
/hash_map
9031 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9032 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9033 cat >>confdefs.h
<<_ACEOF
9034 #define HAVE_EXT_HASH_MAP 1
9042 ac_cpp
='$CPP $CPPFLAGS'
9043 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9044 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9045 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9053 # These libraries may be used by collect2.
9054 # We may need a special search path to get them linked.
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9056 $as_echo_n "checking for collect2 libraries... " >&6; }
9057 if test "${gcc_cv_collect2_libs+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9061 for libs
in '' -lld -lmld \
9062 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9063 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9069 /* Override any GCC internal prototype to avoid an error.
9070 Use char because int might match the return type of a GCC
9071 builtin and then its argument prototype would still apply. */
9084 if ac_fn_c_try_link
"$LINENO"; then :
9085 gcc_cv_collect2_libs
="$libs"; break
9087 rm -f core conftest.err conftest.
$ac_objext \
9088 conftest
$ac_exeext conftest.
$ac_ext
9091 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9094 $as_echo "$gcc_cv_collect2_libs" >&6; }
9095 case $gcc_cv_collect2_libs in
9097 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9101 # When building Ada code on Alpha, we need exc_resume which is usually in
9102 # -lexc. So test for it.
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9106 $as_echo_n "checking for library containing exc_resume... " >&6; }
9107 if test "${ac_cv_search_exc_resume+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9110 ac_func_search_save_LIBS
=$LIBS
9111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9114 /* Override any GCC internal prototype to avoid an error.
9115 Use char because int might match the return type of a GCC
9116 builtin and then its argument prototype would still apply. */
9124 return exc_resume ();
9129 for ac_lib
in '' exc
; do
9130 if test -z "$ac_lib"; then
9131 ac_res
="none required"
9134 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9136 if ac_fn_c_try_link
"$LINENO"; then :
9137 ac_cv_search_exc_resume
=$ac_res
9139 rm -f core conftest.err conftest.
$ac_objext \
9141 if test "${ac_cv_search_exc_resume+set}" = set; then :
9145 if test "${ac_cv_search_exc_resume+set}" = set; then :
9148 ac_cv_search_exc_resume
=no
9151 LIBS
=$ac_func_search_save_LIBS
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9154 $as_echo "$ac_cv_search_exc_resume" >&6; }
9155 ac_res
=$ac_cv_search_exc_resume
9156 if test "$ac_res" != no
; then :
9157 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9165 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9169 $as_echo_n "checking for library containing kstat_open... " >&6; }
9170 if test "${ac_cv_search_kstat_open+set}" = set; then :
9171 $as_echo_n "(cached) " >&6
9173 ac_func_search_save_LIBS
=$LIBS
9174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9177 /* Override any GCC internal prototype to avoid an error.
9178 Use char because int might match the return type of a GCC
9179 builtin and then its argument prototype would still apply. */
9187 return kstat_open ();
9192 for ac_lib
in '' kstat
; do
9193 if test -z "$ac_lib"; then
9194 ac_res
="none required"
9197 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9199 if ac_fn_c_try_link
"$LINENO"; then :
9200 ac_cv_search_kstat_open
=$ac_res
9202 rm -f core conftest.err conftest.
$ac_objext \
9204 if test "${ac_cv_search_kstat_open+set}" = set; then :
9208 if test "${ac_cv_search_kstat_open+set}" = set; then :
9211 ac_cv_search_kstat_open
=no
9214 LIBS
=$ac_func_search_save_LIBS
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9217 $as_echo "$ac_cv_search_kstat_open" >&6; }
9218 ac_res
=$ac_cv_search_kstat_open
9219 if test "$ac_res" != no
; then :
9220 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9224 EXTRA_GCC_LIBS
="$LIBS"
9228 # Some systems put ldexp and frexp in libm instead of libc; assume
9229 # they're both in the same place. jcf-dump needs them.
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9233 $as_echo_n "checking for library containing ldexp... " >&6; }
9234 if test "${ac_cv_search_ldexp+set}" = set; then :
9235 $as_echo_n "(cached) " >&6
9237 ac_func_search_save_LIBS
=$LIBS
9238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9241 /* Override any GCC internal prototype to avoid an error.
9242 Use char because int might match the return type of a GCC
9243 builtin and then its argument prototype would still apply. */
9256 for ac_lib
in '' m
; do
9257 if test -z "$ac_lib"; then
9258 ac_res
="none required"
9261 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9263 if ac_fn_c_try_link
"$LINENO"; then :
9264 ac_cv_search_ldexp
=$ac_res
9266 rm -f core conftest.err conftest.
$ac_objext \
9268 if test "${ac_cv_search_ldexp+set}" = set; then :
9272 if test "${ac_cv_search_ldexp+set}" = set; then :
9275 ac_cv_search_ldexp
=no
9278 LIBS
=$ac_func_search_save_LIBS
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9281 $as_echo "$ac_cv_search_ldexp" >&6; }
9282 ac_res
=$ac_cv_search_ldexp
9283 if test "$ac_res" != no
; then :
9284 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9292 # Use <inttypes.h> only if it exists,
9293 # doesn't clash with <sys/types.h>, and declares intmax_t.
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9295 $as_echo_n "checking for inttypes.h... " >&6; }
9296 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #include <sys/types.h>
9302 #include <inttypes.h>
9311 if ac_fn_c_try_compile
"$LINENO"; then :
9312 gcc_cv_header_inttypes_h
=yes
9314 gcc_cv_header_inttypes_h
=no
9316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9320 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9321 if test $gcc_cv_header_inttypes_h = yes; then
9323 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9329 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9330 sysconf strsignal getrusage nl_langinfo \
9331 gettimeofday mbstowcs wcswidth mmap setlocale \
9332 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
9334 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9335 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9336 eval as_val
=\$
$as_ac_var
9337 if test "x$as_val" = x
""yes; then :
9338 cat >>confdefs.h
<<_ACEOF
9339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9346 if test x
$ac_cv_func_mbstowcs = xyes
; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9348 $as_echo_n "checking whether mbstowcs works... " >&6; }
9349 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9352 if test "$cross_compiling" = yes; then :
9353 gcc_cv_func_mbstowcs_works
=yes
9355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9364 if ac_fn_c_try_run
"$LINENO"; then :
9365 gcc_cv_func_mbstowcs_works
=yes
9367 gcc_cv_func_mbstowcs_works
=no
9369 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9370 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9375 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9376 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9378 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9383 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9384 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9388 cat >>confdefs.h
<<_ACEOF
9394 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9395 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9399 cat >>confdefs.h
<<_ACEOF
9400 #define caddr_t char *
9407 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9408 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9409 gcc_header_sys_mman_h
=yes
9411 gcc_header_sys_mman_h
=no
9414 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9415 if test "x$ac_cv_func_mmap" = x
""yes; then :
9421 if test "$gcc_header_sys_mman_h" != yes \
9422 ||
test "$gcc_func_mmap" != yes; then
9423 gcc_cv_func_mmap_file
=no
9424 gcc_cv_func_mmap_dev_zero
=no
9425 gcc_cv_func_mmap_anon
=no
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9428 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9429 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9432 # Add a system to this blacklist if
9433 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9434 # memory area containing the same data that you'd get if you applied
9435 # read() to the same fd. The only system known to have a problem here
9436 # is VMS, where text files have record structure.
9439 gcc_cv_func_mmap_file
=no
;;
9441 gcc_cv_func_mmap_file
=yes;;
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9445 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9447 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9448 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9449 $as_echo_n "(cached) " >&6
9451 # Add a system to this blacklist if it has mmap() but /dev/zero
9452 # does not exist, or if mmapping /dev/zero does not give anonymous
9453 # zeroed pages with both the following properties:
9454 # 1. If you map N consecutive pages in with one call, and then
9455 # unmap any subset of those pages, the pages that were not
9456 # explicitly unmapped remain accessible.
9457 # 2. If you map two adjacent blocks of memory and then unmap them
9458 # both at once, they must both go away.
9459 # Systems known to be in this category are Windows (all variants),
9462 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9463 gcc_cv_func_mmap_dev_zero
=no
;;
9465 gcc_cv_func_mmap_dev_zero
=yes;;
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9469 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9471 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9473 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9474 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 #include <sys/types.h>
9480 #include <sys/mman.h>
9483 #ifndef MAP_ANONYMOUS
9484 #define MAP_ANONYMOUS MAP_ANON
9490 int n = MAP_ANONYMOUS;
9495 if ac_fn_c_try_compile
"$LINENO"; then :
9496 gcc_cv_decl_map_anon
=yes
9498 gcc_cv_decl_map_anon
=no
9500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9503 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9505 if test $gcc_cv_decl_map_anon = no
; then
9506 gcc_cv_func_mmap_anon
=no
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9509 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9510 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9513 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9514 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9515 # doesn't give anonymous zeroed pages with the same properties listed
9516 # above for use of /dev/zero.
9517 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9519 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9520 gcc_cv_func_mmap_anon
=no
;;
9522 gcc_cv_func_mmap_anon
=yes;;
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9526 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9530 if test $gcc_cv_func_mmap_file = yes; then
9532 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9535 if test $gcc_cv_func_mmap_dev_zero = yes; then
9537 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9540 if test $gcc_cv_func_mmap_anon = yes; then
9542 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9549 # Under VMS, vfork works very differently than on Unix. The standard test
9550 # won't work, and it isn't easily adaptable. It makes more sense to
9552 ac_cv_func_vfork_works
=yes
9555 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9556 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9560 cat >>confdefs.h
<<_ACEOF
9566 for ac_header
in vfork.h
9568 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9569 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9570 cat >>confdefs.h
<<_ACEOF
9571 #define HAVE_VFORK_H 1
9577 for ac_func
in fork vfork
9579 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9580 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9581 eval as_val
=\$
$as_ac_var
9582 if test "x$as_val" = x
""yes; then :
9583 cat >>confdefs.h
<<_ACEOF
9584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9590 if test "x$ac_cv_func_fork" = xyes
; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9592 $as_echo_n "checking for working fork... " >&6; }
9593 if test "${ac_cv_func_fork_works+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9596 if test "$cross_compiling" = yes; then :
9597 ac_cv_func_fork_works
=cross
9599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601 $ac_includes_default
9606 /* By Ruediger Kuhlmann. */
9613 if ac_fn_c_try_run
"$LINENO"; then :
9614 ac_cv_func_fork_works
=yes
9616 ac_cv_func_fork_works
=no
9618 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9619 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9624 $as_echo "$ac_cv_func_fork_works" >&6; }
9627 ac_cv_func_fork_works
=$ac_cv_func_fork
9629 if test "x$ac_cv_func_fork_works" = xcross
; then
9631 *-*-amigaos* |
*-*-msdosdjgpp*)
9632 # Override, as these systems have only a dummy fork() stub
9633 ac_cv_func_fork_works
=no
9636 ac_cv_func_fork_works
=yes
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9640 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9642 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9643 if test "x$ac_cv_func_vfork" = xyes
; then
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9645 $as_echo_n "checking for working vfork... " >&6; }
9646 if test "${ac_cv_func_vfork_works+set}" = set; then :
9647 $as_echo_n "(cached) " >&6
9649 if test "$cross_compiling" = yes; then :
9650 ac_cv_func_vfork_works
=cross
9652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 /* Thanks to Paul Eggert for this test. */
9655 $ac_includes_default
9656 #include <sys/wait.h>
9660 /* On some sparc systems, changes by the child to local and incoming
9661 argument registers are propagated back to the parent. The compiler
9662 is told about this with #include <vfork.h>, but some compilers
9663 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9664 static variable whose address is put into a register that is
9665 clobbered by the vfork. */
9668 sparc_address_test (int arg)
9670 sparc_address_test (arg) int arg;
9691 pid_t parent = getpid ();
9694 sparc_address_test (0);
9699 /* Here is another test for sparc vfork register problems. This
9700 test uses lots of local variables, at least as many local
9701 variables as main has allocated so far including compiler
9702 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9703 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9704 reuse the register of parent for one of the local variables,
9705 since it will think that parent can't possibly be used any more
9706 in this routine. Assigning to the local variable will thus
9707 munge parent in the parent process. */
9709 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9710 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9711 /* Convince the compiler that p..p7 are live; otherwise, it might
9712 use the same hardware register for all 8 local variables. */
9713 if (p != p1 || p != p2 || p != p3 || p != p4
9714 || p != p5 || p != p6 || p != p7)
9717 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9718 from child file descriptors. If the child closes a descriptor
9719 before it execs or exits, this munges the parent's descriptor
9720 as well. Test for this by closing stdout in the child. */
9721 _exit(close(fileno(stdout)) != 0);
9726 while (wait(&status) != child)
9729 /* Was there some problem with vforking? */
9732 /* Did the child fail? (This shouldn't happen.) */
9735 /* Did the vfork/compiler bug occur? */
9736 || parent != getpid()
9738 /* Did the file descriptor bug occur? */
9739 || fstat(fileno(stdout), &st) != 0
9744 if ac_fn_c_try_run
"$LINENO"; then :
9745 ac_cv_func_vfork_works
=yes
9747 ac_cv_func_vfork_works
=no
9749 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9750 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9755 $as_echo "$ac_cv_func_vfork_works" >&6; }
9758 if test "x$ac_cv_func_fork_works" = xcross
; then
9759 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9761 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9764 if test "x$ac_cv_func_vfork_works" = xyes
; then
9766 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9770 $as_echo "#define vfork fork" >>confdefs.h
9773 if test "x$ac_cv_func_fork_works" = xyes
; then
9775 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9780 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9781 # iconv() prototype.
9783 if test "X$prefix" = "XNONE"; then
9784 acl_final_prefix
="$ac_default_prefix"
9786 acl_final_prefix
="$prefix"
9788 if test "X$exec_prefix" = "XNONE"; then
9789 acl_final_exec_prefix
='${prefix}'
9791 acl_final_exec_prefix
="$exec_prefix"
9793 acl_save_prefix
="$prefix"
9794 prefix
="$acl_final_prefix"
9795 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9796 prefix
="$acl_save_prefix"
9799 # Check whether --with-gnu-ld was given.
9800 if test "${with_gnu_ld+set}" = set; then :
9801 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9806 # Prepare PATH_SEPARATOR.
9807 # The user is always right.
9808 if test "${PATH_SEPARATOR+set}" != set; then
9809 echo "#! /bin/sh" >conf$$.sh
9810 echo "exit 0" >>conf$$.sh
9812 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9820 if test "$GCC" = yes; then
9821 # Check if gcc -print-prog-name=ld gives a path.
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9823 $as_echo_n "checking for ld used by GCC... " >&6; }
9826 # gcc leaves a trailing carriage return which upsets mingw
9827 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9829 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9832 # Accept absolute paths.
9833 [\\/]* |
[A-Za-z
]:[\\/]*)
9834 re_direlt
='/[^/][^/]*/\.\./'
9835 # Canonicalize the path of ld
9836 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9837 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9838 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9840 test -z "$LD" && LD
="$ac_prog"
9843 # If it fails, then pretend we aren't using GCC.
9847 # If it is relative, then search for the first ld in PATH.
9851 elif test "$with_gnu_ld" = yes; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9853 $as_echo_n "checking for GNU ld... " >&6; }
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9856 $as_echo_n "checking for non-GNU ld... " >&6; }
9858 if test "${acl_cv_path_LD+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9861 if test -z "$LD"; then
9862 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9863 for ac_dir
in $PATH; do
9864 test -z "$ac_dir" && ac_dir
=.
9865 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9866 acl_cv_path_LD
="$ac_dir/$ac_prog"
9867 # Check to see if the program is GNU ld. I'd rather use --version,
9868 # but apparently some GNU ld's only accept -v.
9869 # Break only if it was the GNU/non-GNU ld that we prefer.
9870 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9871 test "$with_gnu_ld" != no
&& break
9873 test "$with_gnu_ld" != yes && break
9879 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9883 LD
="$acl_cv_path_LD"
9884 if test -n "$LD"; then
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9886 $as_echo "$LD" >&6; }
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889 $as_echo "no" >&6; }
9891 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9893 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9894 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9897 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9898 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9899 acl_cv_prog_gnu_ld
=yes
9901 acl_cv_prog_gnu_ld
=no
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9905 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9906 with_gnu_ld
=$acl_cv_prog_gnu_ld
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9911 $as_echo_n "checking for shared library run path origin... " >&6; }
9912 if test "${acl_cv_rpath+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9916 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9917 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9924 $as_echo "$acl_cv_rpath" >&6; }
9926 libext
="$acl_cv_libext"
9927 shlibext
="$acl_cv_shlibext"
9928 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9929 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9930 hardcode_direct
="$acl_cv_hardcode_direct"
9931 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9932 # Check whether --enable-rpath was given.
9933 if test "${enable_rpath+set}" = set; then :
9934 enableval
=$enable_rpath; :
9948 acl_save_prefix
="$prefix"
9949 prefix
="$acl_final_prefix"
9950 acl_save_exec_prefix
="$exec_prefix"
9951 exec_prefix
="$acl_final_exec_prefix"
9953 eval additional_includedir
=\"$includedir\"
9954 eval additional_libdir
=\"$libdir\"
9956 exec_prefix
="$acl_save_exec_prefix"
9957 prefix
="$acl_save_prefix"
9960 # Check whether --with-libiconv-prefix was given.
9961 if test "${with_libiconv_prefix+set}" = set; then :
9962 withval
=$with_libiconv_prefix;
9963 if test "X$withval" = "Xno"; then
9966 if test "X$withval" = "X"; then
9968 acl_save_prefix
="$prefix"
9969 prefix
="$acl_final_prefix"
9970 acl_save_exec_prefix
="$exec_prefix"
9971 exec_prefix
="$acl_final_exec_prefix"
9973 eval additional_includedir
=\"$includedir\"
9974 eval additional_libdir
=\"$libdir\"
9976 exec_prefix
="$acl_save_exec_prefix"
9977 prefix
="$acl_save_prefix"
9980 additional_includedir
="$withval/include"
9981 additional_libdir
="$withval/lib"
9992 names_already_handled
=
9993 names_next_round
='iconv '
9994 while test -n "$names_next_round"; do
9995 names_this_round
="$names_next_round"
9997 for name
in $names_this_round; do
9999 for n
in $names_already_handled; do
10000 if test "$n" = "$name"; then
10001 already_handled
=yes
10005 if test -z "$already_handled"; then
10006 names_already_handled
="$names_already_handled $name"
10007 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10008 eval value
=\"\
$HAVE_LIB$uppername\"
10009 if test -n "$value"; then
10010 if test "$value" = yes; then
10011 eval value
=\"\
$LIB$uppername\"
10012 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10013 eval value
=\"\
$LTLIB$uppername\"
10014 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10023 if test $use_additional = yes; then
10024 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10025 found_dir
="$additional_libdir"
10026 found_so
="$additional_libdir/lib$name.$shlibext"
10027 if test -f "$additional_libdir/lib$name.la"; then
10028 found_la
="$additional_libdir/lib$name.la"
10031 if test -f "$additional_libdir/lib$name.$libext"; then
10032 found_dir
="$additional_libdir"
10033 found_a
="$additional_libdir/lib$name.$libext"
10034 if test -f "$additional_libdir/lib$name.la"; then
10035 found_la
="$additional_libdir/lib$name.la"
10040 if test "X$found_dir" = "X"; then
10041 for x
in $LDFLAGS $LTLIBICONV; do
10043 acl_save_prefix
="$prefix"
10044 prefix
="$acl_final_prefix"
10045 acl_save_exec_prefix
="$exec_prefix"
10046 exec_prefix
="$acl_final_exec_prefix"
10048 exec_prefix
="$acl_save_exec_prefix"
10049 prefix
="$acl_save_prefix"
10053 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10054 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10056 found_so
="$dir/lib$name.$shlibext"
10057 if test -f "$dir/lib$name.la"; then
10058 found_la
="$dir/lib$name.la"
10061 if test -f "$dir/lib$name.$libext"; then
10063 found_a
="$dir/lib$name.$libext"
10064 if test -f "$dir/lib$name.la"; then
10065 found_la
="$dir/lib$name.la"
10071 if test "X$found_dir" != "X"; then
10076 if test "X$found_dir" != "X"; then
10077 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10078 if test "X$found_so" != "X"; then
10079 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10080 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10083 for x
in $ltrpathdirs; do
10084 if test "X$x" = "X$found_dir"; then
10089 if test -z "$haveit"; then
10090 ltrpathdirs
="$ltrpathdirs $found_dir"
10092 if test "$hardcode_direct" = yes; then
10093 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10095 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10096 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10098 for x
in $rpathdirs; do
10099 if test "X$x" = "X$found_dir"; then
10104 if test -z "$haveit"; then
10105 rpathdirs
="$rpathdirs $found_dir"
10109 for x
in $LDFLAGS $LIBICONV; do
10111 acl_save_prefix
="$prefix"
10112 prefix
="$acl_final_prefix"
10113 acl_save_exec_prefix
="$exec_prefix"
10114 exec_prefix
="$acl_final_exec_prefix"
10116 exec_prefix
="$acl_save_exec_prefix"
10117 prefix
="$acl_save_prefix"
10119 if test "X$x" = "X-L$found_dir"; then
10124 if test -z "$haveit"; then
10125 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10127 if test "$hardcode_minus_L" != no
; then
10128 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10130 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10136 if test "X$found_a" != "X"; then
10137 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10139 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10142 additional_includedir
=
10143 case "$found_dir" in
10145 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10146 additional_includedir
="$basedir/include"
10149 if test "X$additional_includedir" != "X"; then
10150 if test "X$additional_includedir" != "X/usr/include"; then
10152 if test "X$additional_includedir" = "X/usr/local/include"; then
10153 if test -n "$GCC"; then
10155 linux
*) haveit
=yes;;
10159 if test -z "$haveit"; then
10160 for x
in $CPPFLAGS $INCICONV; do
10162 acl_save_prefix
="$prefix"
10163 prefix
="$acl_final_prefix"
10164 acl_save_exec_prefix
="$exec_prefix"
10165 exec_prefix
="$acl_final_exec_prefix"
10167 exec_prefix
="$acl_save_exec_prefix"
10168 prefix
="$acl_save_prefix"
10170 if test "X$x" = "X-I$additional_includedir"; then
10175 if test -z "$haveit"; then
10176 if test -d "$additional_includedir"; then
10177 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10183 if test -n "$found_la"; then
10184 save_libdir
="$libdir"
10185 case "$found_la" in
10186 */* |
*\\*) .
"$found_la" ;;
10187 *) .
"./$found_la" ;;
10189 libdir
="$save_libdir"
10190 for dep
in $dependency_libs; do
10193 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10194 if test "X$additional_libdir" != "X/usr/lib"; then
10196 if test "X$additional_libdir" = "X/usr/local/lib"; then
10197 if test -n "$GCC"; then
10199 linux
*) haveit
=yes;;
10203 if test -z "$haveit"; then
10205 for x
in $LDFLAGS $LIBICONV; do
10207 acl_save_prefix
="$prefix"
10208 prefix
="$acl_final_prefix"
10209 acl_save_exec_prefix
="$exec_prefix"
10210 exec_prefix
="$acl_final_exec_prefix"
10212 exec_prefix
="$acl_save_exec_prefix"
10213 prefix
="$acl_save_prefix"
10215 if test "X$x" = "X-L$additional_libdir"; then
10220 if test -z "$haveit"; then
10221 if test -d "$additional_libdir"; then
10222 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10226 for x
in $LDFLAGS $LTLIBICONV; do
10228 acl_save_prefix
="$prefix"
10229 prefix
="$acl_final_prefix"
10230 acl_save_exec_prefix
="$exec_prefix"
10231 exec_prefix
="$acl_final_exec_prefix"
10233 exec_prefix
="$acl_save_exec_prefix"
10234 prefix
="$acl_save_prefix"
10236 if test "X$x" = "X-L$additional_libdir"; then
10241 if test -z "$haveit"; then
10242 if test -d "$additional_libdir"; then
10243 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10250 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10251 if test "$enable_rpath" != no
; then
10253 for x
in $rpathdirs; do
10254 if test "X$x" = "X$dir"; then
10259 if test -z "$haveit"; then
10260 rpathdirs
="$rpathdirs $dir"
10263 for x
in $ltrpathdirs; do
10264 if test "X$x" = "X$dir"; then
10269 if test -z "$haveit"; then
10270 ltrpathdirs
="$ltrpathdirs $dir"
10275 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10278 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10281 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10282 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10288 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10289 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10295 if test "X$rpathdirs" != "X"; then
10296 if test -n "$hardcode_libdir_separator"; then
10298 for found_dir
in $rpathdirs; do
10299 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10301 acl_save_libdir
="$libdir"
10303 eval flag
=\"$hardcode_libdir_flag_spec\"
10304 libdir
="$acl_save_libdir"
10305 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10307 for found_dir
in $rpathdirs; do
10308 acl_save_libdir
="$libdir"
10309 libdir
="$found_dir"
10310 eval flag
=\"$hardcode_libdir_flag_spec\"
10311 libdir
="$acl_save_libdir"
10312 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10316 if test "X$ltrpathdirs" != "X"; then
10317 for found_dir
in $ltrpathdirs; do
10318 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10323 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10325 ac_cpp
='$CXXCPP $CPPFLAGS'
10326 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10327 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10328 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10335 am_save_CPPFLAGS
="$CPPFLAGS"
10337 for element
in $INCICONV; do
10339 for x
in $CPPFLAGS; do
10341 acl_save_prefix
="$prefix"
10342 prefix
="$acl_final_prefix"
10343 acl_save_exec_prefix
="$exec_prefix"
10344 exec_prefix
="$acl_final_exec_prefix"
10346 exec_prefix
="$acl_save_exec_prefix"
10347 prefix
="$acl_save_prefix"
10349 if test "X$x" = "X$element"; then
10354 if test -z "$haveit"; then
10355 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10361 $as_echo_n "checking for iconv... " >&6; }
10362 if test "${am_cv_func_iconv+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10366 am_cv_func_iconv
="no, consider installing GNU libiconv"
10368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10370 #include <stdlib.h>
10375 iconv_t cd = iconv_open("","");
10376 iconv(cd,NULL,NULL,NULL,NULL);
10382 if ac_fn_cxx_try_link
"$LINENO"; then :
10383 am_cv_func_iconv
=yes
10385 rm -f core conftest.err conftest.
$ac_objext \
10386 conftest
$ac_exeext conftest.
$ac_ext
10387 if test "$am_cv_func_iconv" != yes; then
10388 am_save_LIBS
="$LIBS"
10389 LIBS
="$LIBS $LIBICONV"
10390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10392 #include <stdlib.h>
10397 iconv_t cd = iconv_open("","");
10398 iconv(cd,NULL,NULL,NULL,NULL);
10404 if ac_fn_cxx_try_link
"$LINENO"; then :
10405 am_cv_lib_iconv
=yes
10406 am_cv_func_iconv
=yes
10408 rm -f core conftest.err conftest.
$ac_objext \
10409 conftest
$ac_exeext conftest.
$ac_ext
10410 LIBS
="$am_save_LIBS"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10415 $as_echo "$am_cv_func_iconv" >&6; }
10416 if test "$am_cv_func_iconv" = yes; then
10418 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10421 if test "$am_cv_lib_iconv" = yes; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10423 $as_echo_n "checking how to link with libiconv... " >&6; }
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10425 $as_echo "$LIBICONV" >&6; }
10427 CPPFLAGS
="$am_save_CPPFLAGS"
10434 if test "$am_cv_func_iconv" = yes; then
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10436 $as_echo_n "checking for iconv declaration... " >&6; }
10437 if test "${am_cv_proto_iconv+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10444 #include <stdlib.h>
10450 #if defined(__STDC__) || defined(__cplusplus)
10451 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10464 if ac_fn_cxx_try_compile
"$LINENO"; then :
10465 am_cv_proto_iconv_arg1
=""
10467 am_cv_proto_iconv_arg1
="const"
10469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10470 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);"
10473 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10475 }$am_cv_proto_iconv" >&5
10477 }$am_cv_proto_iconv" >&6; }
10479 cat >>confdefs.h
<<_ACEOF
10480 #define ICONV_CONST $am_cv_proto_iconv_arg1
10486 ac_cpp
='$CPP $CPPFLAGS'
10487 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10488 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10489 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10497 am_save_CPPFLAGS
="$CPPFLAGS"
10499 for element
in $INCICONV; do
10501 for x
in $CPPFLAGS; do
10503 acl_save_prefix
="$prefix"
10504 prefix
="$acl_final_prefix"
10505 acl_save_exec_prefix
="$exec_prefix"
10506 exec_prefix
="$acl_final_exec_prefix"
10508 exec_prefix
="$acl_save_exec_prefix"
10509 prefix
="$acl_save_prefix"
10511 if test "X$x" = "X$element"; then
10516 if test -z "$haveit"; then
10517 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10523 $as_echo_n "checking for iconv... " >&6; }
10524 if test "${am_cv_func_iconv+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10528 am_cv_func_iconv
="no, consider installing GNU libiconv"
10530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10532 #include <stdlib.h>
10537 iconv_t cd = iconv_open("","");
10538 iconv(cd,NULL,NULL,NULL,NULL);
10544 if ac_fn_c_try_link
"$LINENO"; then :
10545 am_cv_func_iconv
=yes
10547 rm -f core conftest.err conftest.
$ac_objext \
10548 conftest
$ac_exeext conftest.
$ac_ext
10549 if test "$am_cv_func_iconv" != yes; then
10550 am_save_LIBS
="$LIBS"
10551 LIBS
="$LIBS $LIBICONV"
10552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10554 #include <stdlib.h>
10559 iconv_t cd = iconv_open("","");
10560 iconv(cd,NULL,NULL,NULL,NULL);
10566 if ac_fn_c_try_link
"$LINENO"; then :
10567 am_cv_lib_iconv
=yes
10568 am_cv_func_iconv
=yes
10570 rm -f core conftest.err conftest.
$ac_objext \
10571 conftest
$ac_exeext conftest.
$ac_ext
10572 LIBS
="$am_save_LIBS"
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10577 $as_echo "$am_cv_func_iconv" >&6; }
10578 if test "$am_cv_func_iconv" = yes; then
10580 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10583 if test "$am_cv_lib_iconv" = yes; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10585 $as_echo_n "checking how to link with libiconv... " >&6; }
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10587 $as_echo "$LIBICONV" >&6; }
10589 CPPFLAGS
="$am_save_CPPFLAGS"
10596 if test "$am_cv_func_iconv" = yes; then
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10598 $as_echo_n "checking for iconv declaration... " >&6; }
10599 if test "${am_cv_proto_iconv+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
10603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10604 /* end confdefs.h. */
10606 #include <stdlib.h>
10612 #if defined(__STDC__) || defined(__cplusplus)
10613 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10626 if ac_fn_c_try_compile
"$LINENO"; then :
10627 am_cv_proto_iconv_arg1
=""
10629 am_cv_proto_iconv_arg1
="const"
10631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10632 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);"
10635 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10637 }$am_cv_proto_iconv" >&5
10639 }$am_cv_proto_iconv" >&6; }
10641 cat >>confdefs.h
<<_ACEOF
10642 #define ICONV_CONST $am_cv_proto_iconv_arg1
10649 # Until we have in-tree GNU iconv:
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10655 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10656 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10657 $as_echo_n "(cached) " >&6
10659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661 #include <locale.h>
10670 if ac_fn_c_try_link
"$LINENO"; then :
10671 am_cv_val_LC_MESSAGES
=yes
10673 am_cv_val_LC_MESSAGES
=no
10675 rm -f core conftest.err conftest.
$ac_objext \
10676 conftest
$ac_exeext conftest.
$ac_ext
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10679 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10680 if test $am_cv_val_LC_MESSAGES = yes; then
10682 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10689 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10690 if test "${am_cv_langinfo_codeset+set}" = set; then :
10691 $as_echo_n "(cached) " >&6
10693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 #include <langinfo.h>
10699 char* cs = nl_langinfo(CODESET);
10704 if ac_fn_c_try_link
"$LINENO"; then :
10705 am_cv_langinfo_codeset
=yes
10707 am_cv_langinfo_codeset
=no
10709 rm -f core conftest.err conftest.
$ac_objext \
10710 conftest
$ac_exeext conftest.
$ac_ext
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10714 $as_echo "$am_cv_langinfo_codeset" >&6; }
10715 if test $am_cv_langinfo_codeset = yes; then
10717 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10722 # We will need to find libiberty.h and ansidecl.h
10723 saved_CFLAGS
="$CFLAGS"
10724 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10725 saved_CXXFLAGS
="$CXXFLAGS"
10726 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10727 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10728 strsignal strstr stpcpy strverscmp \
10729 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10730 free
basename getopt
clock getpagesize 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
10732 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10734 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10735 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10736 $as_echo_n "(cached) " >&6
10738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10741 #define $ac_tr_decl 1
10743 #include "ansidecl.h"
10744 #include "system.h"
10750 char *(*pfn) = (char *(*)) $ac_func ;
10756 if ac_fn_c_try_compile
"$LINENO"; then :
10757 eval "gcc_cv_have_decl_$ac_func=yes"
10759 eval "gcc_cv_have_decl_$ac_func=no"
10761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10764 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10767 #define $ac_tr_decl 1
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10773 #define $ac_tr_decl 0
10781 for ac_func
in getrlimit setrlimit getrusage
10783 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10785 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10786 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10787 $as_echo_n "(cached) " >&6
10789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10792 #define $ac_tr_decl 1
10794 #include "ansidecl.h"
10795 #include "system.h"
10796 #ifdef HAVE_SYS_RESOURCE_H
10797 #include <sys/resource.h>
10805 char *(*pfn) = (char *(*)) $ac_func ;
10811 if ac_fn_c_try_compile
"$LINENO"; then :
10812 eval "gcc_cv_have_decl_$ac_func=yes"
10814 eval "gcc_cv_have_decl_$ac_func=no"
10816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10819 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10821 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10822 #define $ac_tr_decl 1
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10828 #define $ac_tr_decl 0
10836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10839 #include "ansidecl.h"
10840 #include "system.h"
10841 #ifdef HAVE_SYS_RESOURCE_H
10842 #include <sys/resource.h>
10853 if ac_fn_c_try_compile
"$LINENO"; then :
10857 $as_echo "#define rlim_t long" >>confdefs.h
10860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10862 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10863 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10864 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10865 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10866 for ac_func
in ldgetname
10868 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10870 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10871 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10872 $as_echo_n "(cached) " >&6
10874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10877 #define $ac_tr_decl 1
10879 #include "ansidecl.h"
10880 #include "system.h"
10881 #ifdef HAVE_LDFCN_H
10892 char *(*pfn) = (char *(*)) $ac_func ;
10898 if ac_fn_c_try_compile
"$LINENO"; then :
10899 eval "gcc_cv_have_decl_$ac_func=yes"
10901 eval "gcc_cv_have_decl_$ac_func=no"
10903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10906 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10908 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10909 #define $ac_tr_decl 1
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10915 #define $ac_tr_decl 0
10923 for ac_func
in times
10925 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10927 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10928 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10929 $as_echo_n "(cached) " >&6
10931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10934 #define $ac_tr_decl 1
10936 #include "ansidecl.h"
10937 #include "system.h"
10938 #ifdef HAVE_SYS_TIMES_H
10939 #include <sys/times.h>
10947 char *(*pfn) = (char *(*)) $ac_func ;
10953 if ac_fn_c_try_compile
"$LINENO"; then :
10954 eval "gcc_cv_have_decl_$ac_func=yes"
10956 eval "gcc_cv_have_decl_$ac_func=no"
10958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10961 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10963 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10964 #define $ac_tr_decl 1
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10970 #define $ac_tr_decl 0
10978 for ac_func
in sigaltstack
10980 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10982 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10983 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10984 $as_echo_n "(cached) " >&6
10986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10989 #define $ac_tr_decl 1
10991 #include "ansidecl.h"
10992 #include "system.h"
10993 #include <signal.h>
11000 char *(*pfn) = (char *(*)) $ac_func ;
11006 if ac_fn_c_try_compile
"$LINENO"; then :
11007 eval "gcc_cv_have_decl_$ac_func=yes"
11009 eval "gcc_cv_have_decl_$ac_func=no"
11011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11014 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11016 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11017 #define $ac_tr_decl 1
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11023 #define $ac_tr_decl 0
11031 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
11033 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
11035 ac_cpp
='$CXXCPP $CPPFLAGS'
11036 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11037 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11038 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11040 for ac_func
in madvise
11042 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11044 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11045 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11046 $as_echo_n "(cached) " >&6
11048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11051 #define $ac_tr_decl 1
11053 #include "ansidecl.h"
11054 #include "system.h"
11061 char *(*pfn) = (char *(*)) $ac_func ;
11067 if ac_fn_cxx_try_compile
"$LINENO"; then :
11068 eval "gcc_cv_have_decl_$ac_func=yes"
11070 eval "gcc_cv_have_decl_$ac_func=no"
11072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11075 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11077 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11078 #define $ac_tr_decl 1
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11084 #define $ac_tr_decl 0
11092 ac_cpp
='$CPP $CPPFLAGS'
11093 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11094 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11095 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11098 for ac_func
in madvise
11100 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11102 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11103 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11104 $as_echo_n "(cached) " >&6
11106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11109 #define $ac_tr_decl 1
11111 #include "ansidecl.h"
11112 #include "system.h"
11119 char *(*pfn) = (char *(*)) $ac_func ;
11125 if ac_fn_c_try_compile
"$LINENO"; then :
11126 eval "gcc_cv_have_decl_$ac_func=yes"
11128 eval "gcc_cv_have_decl_$ac_func=no"
11130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11133 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11135 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11136 #define $ac_tr_decl 1
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11142 #define $ac_tr_decl 0
11152 # More time-related stuff.
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11154 $as_echo_n "checking for struct tms... " >&6; }
11155 if test "${ac_cv_struct_tms+set}" = set; then :
11156 $as_echo_n "(cached) " >&6
11159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11162 #include "ansidecl.h"
11163 #include "system.h"
11164 #ifdef HAVE_SYS_TIMES_H
11165 #include <sys/times.h>
11176 if ac_fn_c_try_compile
"$LINENO"; then :
11177 ac_cv_struct_tms
=yes
11179 ac_cv_struct_tms
=no
11181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11184 $as_echo "$ac_cv_struct_tms" >&6; }
11185 if test $ac_cv_struct_tms = yes; then
11187 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11191 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11192 # revisit after autoconf 2.50.
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11194 $as_echo_n "checking for clock_t... " >&6; }
11195 if test "${gcc_cv_type_clock_t+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
11199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11200 /* end confdefs.h. */
11202 #include "ansidecl.h"
11203 #include "system.h"
11213 if ac_fn_c_try_compile
"$LINENO"; then :
11214 gcc_cv_type_clock_t
=yes
11216 gcc_cv_type_clock_t
=no
11218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11221 $as_echo "$gcc_cv_type_clock_t" >&6; }
11222 if test $gcc_cv_type_clock_t = yes; then
11224 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11228 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11229 CFLAGS
="$saved_CFLAGS"
11230 CXXFLAGS
="$saved_CXXFLAGS"
11232 # mkdir takes a single argument on some systems.
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11234 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11235 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11236 $as_echo_n "(cached) " >&6
11238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11241 #include <sys/types.h>
11242 #ifdef HAVE_SYS_STAT_H
11243 # include <sys/stat.h>
11245 #ifdef HAVE_UNISTD_H
11246 # include <unistd.h>
11248 #ifdef HAVE_DIRECT_H
11249 # include <direct.h>
11259 if ac_fn_c_try_compile
"$LINENO"; then :
11260 gcc_cv_mkdir_takes_one_arg
=no
11262 gcc_cv_mkdir_takes_one_arg
=yes
11264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11267 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11268 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11270 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11281 # With Setjmp/Longjmp based exception handling.
11282 # Check whether --enable-sjlj-exceptions was given.
11283 if test "${enable_sjlj_exceptions+set}" = set; then :
11284 enableval
=$enable_sjlj_exceptions; case $target in
11286 if test $enableval != yes; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11288 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11293 force_sjlj_exceptions
=yes
11297 force_sjlj_exceptions
=yes
11301 force_sjlj_exceptions
=no
11306 if test $force_sjlj_exceptions = yes; then
11307 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11309 cat >>confdefs.h
<<_ACEOF
11310 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11315 # --------------------------------------------------------
11316 # Build, host, and target specific configuration fragments
11317 # --------------------------------------------------------
11319 # Collect build-machine-specific information.
11320 .
${srcdir}/config.build
11322 # Collect host-machine-specific information.
11323 .
${srcdir}/config.
host
11327 # Collect target-machine-specific information.
11328 .
${srcdir}/config.gcc
11330 extra_objs
="${host_extra_objs} ${extra_objs}"
11331 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11333 # Default the target-machine variables that were not explicitly set.
11334 if test x
"$tm_file" = x
11335 then tm_file
=$cpu_type/$cpu_type.h
; fi
11337 if test x
"$extra_headers" = x
11338 then extra_headers
=; fi
11340 if test x
$md_file = x
11341 then md_file
=$cpu_type/$cpu_type.md
; fi
11343 if test x
$out_file = x
11344 then out_file
=$cpu_type/$cpu_type.c
; fi
11346 if test x
"$tmake_file" = x
11347 then tmake_file
=$cpu_type/t-
$cpu_type
11350 # Support --enable-initfini-array.
11351 if test x
$enable_initfini_array != xno
; then
11352 tm_file
="${tm_file} initfini-array.h"
11355 if test x
"$dwarf2" = xyes
11356 then tm_file
="$tm_file tm-dwarf2.h"
11359 # Say what files are being used for the output code and MD file.
11360 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11361 echo "Using \`$srcdir/config/$md_file' as machine description file."
11363 # If any of the xm_file variables contain nonexistent files, warn
11364 # about them and drop them.
11367 for x
in $build_xm_file; do
11368 if test -f $srcdir/config
/$x
11370 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11371 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11374 build_xm_file
="$bx"
11377 for x
in $host_xm_file; do
11378 if test -f $srcdir/config
/$x
11380 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11381 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11387 for x
in $xm_file; do
11388 if test -f $srcdir/config
/$x
11390 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11391 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11397 for f
in $tm_file; do
11400 if test $count = ax
; then
11401 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11403 echo "Using the following target machine macro files:"
11404 for f
in $tm_file; do
11405 echo " $srcdir/config/$f"
11409 if test x
$need_64bit_hwint = xyes
; then
11411 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11415 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11417 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11421 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11423 cat >>confdefs.h
<<_ACEOF
11424 #define HAVE_GNU_LD $gnu_ld_bool
11428 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11430 cat >>confdefs.h
<<_ACEOF
11431 #define HAVE_GNU_AS $gnu_as_bool
11436 for f
in $host_xm_file; do
11439 if test $count = a
; then
11441 elif test $count = ax
; then
11442 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11444 echo "Using the following host machine macro files:"
11445 for f
in $host_xm_file; do
11446 echo " $srcdir/config/$f"
11449 echo "Using ${out_host_hook_obj} for host machine hooks."
11451 if test "$host_xm_file" != "$build_xm_file"; then
11453 for f
in $build_xm_file; do
11456 if test $count = a
; then
11458 elif test $count = ax
; then
11459 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11461 echo "Using the following build machine macro files:"
11462 for f
in $build_xm_file; do
11463 echo " $srcdir/config/$f"
11468 if test -n "$configured_native_system_header_dir"; then
11469 native_system_header_dir
=$configured_native_system_header_dir
11471 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11475 powerpc
*-*-darwin*)
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11477 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11478 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11479 $as_echo_n "(cached) " >&6
11481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11484 #include <sys/cdefs.h>
11485 #include <sys/signal.h>
11486 #include <ucontext.h>
11487 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11490 if ac_fn_c_try_compile
"$LINENO"; then :
11491 gcc_cv_mcontext_underscores
=no
11493 gcc_cv_mcontext_underscores
=yes
11495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11498 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11499 if test $gcc_cv_mcontext_underscores = yes; then
11501 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11511 # Check if a valid thread package
11512 case ${enable_threads} in
11515 target_thread_file
='single'
11519 target_thread_file
='single'
11521 aix | dce | lynx | mipssde | posix | rtems | \
11522 single | tpf | vxworks | win32
)
11523 target_thread_file
=${enable_threads}
11526 echo "${enable_threads} is an unknown thread package" 1>&2
11531 if test x
${thread_file} = x
; then
11532 # No thread file set by target-specific clauses in config.gcc,
11533 # so use file chosen by default logic above
11534 thread_file
=${target_thread_file}
11542 if test x
$enable___cxa_atexit = xyes || \
11543 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11544 if test x
$host = x
$target; then
11546 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11547 # keyed to flag_use_cxa_atexit
11552 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11553 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11556 echo "__cxa_atexit can't be enabled on this target"
11562 # We can't check for __cxa_atexit when building a cross, so assume
11566 if test x
$use_cxa_atexit = xyes
; then
11568 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11573 # Look for a file containing extra machine modes.
11574 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11575 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11578 cat >>confdefs.h
<<_ACEOF
11579 #define EXTRA_MODES_FILE "config/$extra_modes"
11584 # Convert extra_options into a form suitable for Makefile use.
11587 for f
in $extra_options; do
11588 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11589 all_opt_files
="$all_opt_files $srcdir/config/$f"
11593 # auto-host.h is the file containing items generated by autoconf and is
11594 # the first file included by config.h.
11595 # If host=build, it is correct to have bconfig include auto-host.h
11596 # as well. If host!=build, we are in error and need to do more
11597 # work to find out the build config parameters.
11598 if test x
$host = x
$build
11600 build_auto
=auto-host.h
11602 # We create a subdir, then run autoconf in the subdir.
11603 # To prevent recursion we set host and build for the new
11604 # invocation of configure to the build for this invocation
11611 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11612 *) realsrcdir
=..
/${srcdir};;
11614 saved_CFLAGS
="${CFLAGS}"
11615 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11616 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11617 ${realsrcdir}/configure \
11618 --enable-languages=${enable_languages-all} \
11619 --target=$target_alias --host=$build_alias --build=$build_alias
11620 CFLAGS
="${saved_CFLAGS}"
11622 # We just finished tests for the build machine, so rename
11623 # the file auto-build.h in the gcc directory.
11624 mv auto-host.h ..
/auto-build.h
11627 build_auto
=auto-build.h
11631 tm_file
="${tm_file} defaults.h"
11632 tm_p_file
="${tm_p_file} tm-preds.h"
11633 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11634 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11635 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11636 # put this back in temporarily.
11637 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11643 # Compile in configure arguments.
11644 if test -f configargs.h
; then
11645 # Being re-configured.
11646 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11647 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11649 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11652 # Double all backslashes and backslash all quotes to turn
11653 # gcc_config_arguments into a C string.
11654 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11655 $gcc_config_arguments
11657 gcc_config_arguments_str
=`cat conftest.out`
11660 cat > configargs.h
<<EOF
11661 /* Generated automatically. */
11662 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11663 static const char thread_model[] = "$thread_file";
11665 static const struct {
11666 const char *name, *value;
11667 } configure_default_options[] = $configure_default_options;
11670 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11671 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11672 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11673 if test -f $srcdir/REVISION
; then
11674 gcc_REVISION
=`cat $srcdir/REVISION`
11678 cat > plugin-version.h
<<EOF
11679 #include "configargs.h"
11681 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11682 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11683 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11684 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11686 static char basever[] = "$gcc_BASEVER";
11687 static char datestamp[] = "$gcc_DATESTAMP";
11688 static char devphase[] = "$gcc_DEVPHASE";
11689 static char revision[] = "$gcc_REVISION";
11691 /* FIXME plugins: We should make the version information more precise.
11692 One way to do is to add a checksum. */
11694 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11695 devphase, revision,
11696 configuration_arguments};
11699 # Internationalization
11700 # If we haven't got the data from the intl directory,
11701 # assume NLS is disabled.
11710 if test -f ..
/intl
/config.intl
; then
11711 . ..
/intl
/config.intl
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11714 $as_echo_n "checking whether NLS is requested... " >&6; }
11715 if test x
"$USE_NLS" != xyes
; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11720 $as_echo "yes" >&6; }
11722 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11726 $as_echo_n "checking for catalogs to be installed... " >&6; }
11727 # Look for .po and .gmo files in the source directory.
11730 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11731 # If there aren't any .gmo files the shell will give us the
11732 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11734 case "$cat" in *\
**)
11737 # The quadruple backslash is collapsed to a double backslash
11738 # by the backticks, then collapsed again by the double quotes,
11739 # leaving us with one backslash in the sed expression (right
11740 # before the dot that mustn't act as a wildcard).
11741 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11742 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11743 # The user is allowed to set LINGUAS to a list of languages to
11744 # install catalogs for. If it's empty that means "all of them."
11745 if test "x$LINGUAS" = x
; then
11746 CATALOGS
="$CATALOGS $cat"
11747 XLINGUAS
="$XLINGUAS $lang"
11749 case "$LINGUAS" in *$lang*)
11750 CATALOGS
="$CATALOGS $cat"
11751 XLINGUAS
="$XLINGUAS $lang"
11756 LINGUAS
="$XLINGUAS"
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11758 $as_echo "$LINGUAS" >&6; }
11771 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11772 # -liconv on the link line twice.
11773 case "$LIBINTL" in *$LIBICONV*)
11777 # Check whether --enable-secureplt was given.
11778 if test "${enable_secureplt+set}" = set; then :
11779 enableval
=$enable_secureplt;
11783 # Check whether --enable-leading-mingw64-underscores was given.
11784 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11785 enableval
=$enable_leading_mingw64_underscores;
11788 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11790 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11794 # Check whether --enable-cld was given.
11795 if test "${enable_cld+set}" = set; then :
11796 enableval
=$enable_cld;
11802 # Check whether --enable-frame-pointer was given.
11803 if test "${enable_frame_pointer+set}" = set; then :
11804 enableval
=$enable_frame_pointer;
11808 linux
* | darwin
[8912]*)
11809 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11811 enable_frame_pointer
=no
11814 enable_frame_pointer
=yes
11821 # Windows32 Registry support for specifying GCC installation paths.
11822 # Check whether --enable-win32-registry was given.
11823 if test "${enable_win32_registry+set}" = set; then :
11824 enableval
=$enable_win32_registry;
11829 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11830 if test "x$enable_win32_registry" != xno
; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11832 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11833 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11834 $as_echo_n "(cached) " >&6
11836 ac_func_search_save_LIBS
=$LIBS
11837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h. */
11840 /* Override any GCC internal prototype to avoid an error.
11841 Use char because int might match the return type of a GCC
11842 builtin and then its argument prototype would still apply. */
11846 char RegOpenKeyExA ();
11850 return RegOpenKeyExA ();
11855 for ac_lib
in '' advapi32
; do
11856 if test -z "$ac_lib"; then
11857 ac_res
="none required"
11860 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11862 if ac_fn_c_try_link
"$LINENO"; then :
11863 ac_cv_search_RegOpenKeyExA
=$ac_res
11865 rm -f core conftest.err conftest.
$ac_objext \
11867 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11871 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11874 ac_cv_search_RegOpenKeyExA
=no
11876 rm conftest.
$ac_ext
11877 LIBS
=$ac_func_search_save_LIBS
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11880 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11881 ac_res
=$ac_cv_search_RegOpenKeyExA
11882 if test "$ac_res" != no
; then :
11883 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11886 enable_win32_registry
=no
11891 if test "x$enable_win32_registry" != xno
; then
11893 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11896 if test "x$enable_win32_registry" != xyes \
11897 && test "x$enable_win32_registry" != x
; then
11899 cat >>confdefs.h
<<_ACEOF
11900 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11908 # Get an absolute path to the GCC top-level source directory
11909 holddir
=`${PWDCMD-pwd}`
11911 topdir
=`${PWDCMD-pwd}`
11914 # Conditionalize the makefile for this host machine.
11916 for f
in ${host_xmake_file}
11918 if test -f ${srcdir}/config
/$f
11920 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11924 # Conditionalize the makefile for this target machine.
11926 for f
in ${tmake_file}
11928 if test -f ${srcdir}/config
/$f
11930 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11933 tmake_file
="${tmake_file_}"
11935 out_object_file
=`basename $out_file .c`.o
11936 common_out_object_file
=`basename $common_out_file .c`.o
11938 tm_file_list
="options.h"
11939 tm_include_list
="options.h insn-constants.h"
11940 for f
in $tm_file; do
11943 f
=`echo $f | sed 's/^..//'`
11944 tm_file_list
="${tm_file_list} $f"
11945 tm_include_list
="${tm_include_list} $f"
11948 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11949 tm_include_list
="${tm_include_list} $f"
11952 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11953 tm_include_list
="${tm_include_list} config/$f"
11960 for f
in $tm_p_file; do
11963 tm_p_file_list
="${tm_p_file_list} $f"
11964 tm_p_include_list
="${tm_p_include_list} $f"
11967 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11968 tm_p_include_list
="${tm_p_include_list} config/$f"
11974 for f
in $xm_file; do
11977 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11978 xm_include_list
="${xm_include_list} $f"
11981 xm_file_list
="${xm_file_list} $f"
11982 xm_include_list
="${xm_include_list} $f"
11985 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11986 xm_include_list
="${xm_include_list} config/$f"
11992 host_xm_include_list
=
11993 for f
in $host_xm_file; do
11996 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11997 host_xm_include_list
="${host_xm_include_list} $f"
12000 host_xm_file_list
="${host_xm_file_list} $f"
12001 host_xm_include_list
="${host_xm_include_list} $f"
12004 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12005 host_xm_include_list
="${host_xm_include_list} config/$f"
12010 build_xm_file_list
=
12011 for f
in $build_xm_file; do
12014 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12015 build_xm_include_list
="${build_xm_include_list} $f"
12017 auto-build.h | auto-host.h
)
12018 build_xm_file_list
="${build_xm_file_list} $f"
12019 build_xm_include_list
="${build_xm_include_list} $f"
12022 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12023 build_xm_include_list
="${build_xm_include_list} config/$f"
12028 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12029 # cross-compiler which does not use the native headers and libraries.
12030 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12033 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12035 if test "x$with_build_sysroot" != x
; then
12036 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12038 # This value is used, even on a native system, because
12039 # CROSS_SYSTEM_HEADER_DIR is just
12040 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12041 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12044 if test x
$host != x
$target
12046 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12048 SYSTEM_HEADER_DIR
=$build_system_header_dir
12049 case "$host","$target" in
12050 # Darwin crosses can use the host system's libraries and headers,
12051 # because of the fat library support. Of course, it must be the
12052 # same version of Darwin on both sides. Allow the user to
12053 # just say --target=foo-darwin without a version number to mean
12054 # "the version on this system".
12055 *-*-darwin*,*-*-darwin*)
12056 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12057 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12058 if test $hostos = $targetos -o $targetos = darwin
; then
12060 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12065 i?
86-*-*,x86_64-
*-* \
12066 | powerpc
*-*-*,powerpc64
*-*-*)
12067 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12072 if test "x$with_headers" = x
; then
12079 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12080 SYSTEM_HEADER_DIR
=$build_system_header_dir
12083 # If this is a cross-compiler that does not
12084 # have its own set of headers then define
12087 # If this is using newlib, without having the headers available now,
12088 # then define inhibit_libc in LIBGCC2_CFLAGS.
12089 # This prevents libgcc2 from containing any code which requires libc
12091 : ${inhibit_libc=false}
12092 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12093 test x
$with_newlib = xyes
; } &&
12094 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12099 # When building gcc with a cross-compiler, we need to adjust things so
12100 # that the generator programs are still built with the native compiler.
12101 # Also, we cannot run fixincludes.
12103 # These are the normal (build=host) settings:
12104 CC_FOR_BUILD
='$(CC)'
12105 CXX_FOR_BUILD
='$(CXX)'
12106 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12107 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12108 BUILD_LDFLAGS
='$(LDFLAGS)'
12109 STMP_FIXINC
=stmp-fixinc
12111 # And these apply if build != host, or we are generating coverage data
12112 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12114 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12115 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12118 # Expand extra_headers to include complete path.
12119 # This substitutes for lots of t-* files.
12120 extra_headers_list
=
12121 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12122 for file in ${extra_headers} ; do
12123 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12126 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12127 if test x
"$use_gcc_tgmath" = xyes
12128 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12131 # Define collect2 in Makefile.
12132 case $host_can_use_collect2 in
12134 *) collect2
='collect2$(exeext)' ;;
12138 # Add a definition of USE_COLLECT2 if system wants one.
12139 case $use_collect2 in
12140 no
) use_collect2
= ;;
12143 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12144 xm_defines
="${xm_defines} USE_COLLECT2"
12145 case $host_can_use_collect2 in
12147 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12154 cat >>confdefs.h
<<_ACEOF
12155 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12159 # ---------------------------
12160 # Assembler & linker features
12161 # ---------------------------
12163 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12164 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12165 # However when ld-new is first executed from the build tree, libtool will
12166 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12167 # to the build tree. While doing this we need to use the previous-stage
12168 # linker, or we have an infinite loop. The presence of a shell script as
12169 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12170 # the gcc/collect-ld script. So we need to know how libtool works, or
12171 # exec-tool will fail.
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12177 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12182 macro_version
='2.2.7a'
12183 macro_revision
='1.3134'
12197 ltmain
="$ac_aux_dir/ltmain.sh"
12199 # Backslashify metacharacters that are still active within
12200 # double-quoted strings.
12201 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12203 # Same as above, but do not quote variable references.
12204 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12206 # Sed substitution to delay expansion of an escaped shell variable in a
12207 # double_quote_subst'ed string.
12208 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12210 # Sed substitution to delay expansion of an escaped single quote.
12211 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12213 # Sed substitution to avoid accidental globbing in evaled expressions
12214 no_glob_subst
='s/\*/\\\*/g'
12216 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12217 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12218 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12221 $as_echo_n "checking how to print strings... " >&6; }
12222 # Test print first, because it will be a builtin if present.
12223 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12224 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12226 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12229 # Use this function as a fallback that always works.
12230 func_fallback_echo ()
12232 eval 'cat <<_LTECHO_EOF
12236 ECHO='func_fallback_echo
'
12239 # func_echo_all arg...
12240 # Invoke $ECHO with all args, space-separated.
12247 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12248 $as_echo "printf" >&6; } ;;
12249 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12250 $as_echo "print -r" >&6; } ;;
12251 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12252 $as_echo "cat" >&6; } ;;
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12269 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12270 if test "${ac_cv_path_SED+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12273 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12274 for ac_i in 1 2 3 4 5 6 7; do
12275 ac_script="$ac_script$as_nl$ac_script"
12277 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12278 { ac_script=; unset ac_script;}
12279 if test -z "$SED"; then
12280 ac_path_SED_found=false
12281 # Loop through the user's path and
test for each of PROGNAME-LIST
12282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12283 for as_dir
in $PATH
12286 test -z "$as_dir" && as_dir
=.
12287 for ac_prog
in sed gsed
; do
12288 for ac_exec_ext
in '' $ac_executable_extensions; do
12289 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12290 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12291 # Check for GNU ac_path_SED and select it if it is found.
12292 # Check for GNU $ac_path_SED
12293 case `"$ac_path_SED" --version 2>&1` in
12295 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12298 $as_echo_n 0123456789 >"conftest.in"
12301 cat "conftest.in" "conftest.in" >"conftest.tmp"
12302 mv "conftest.tmp" "conftest.in"
12303 cp "conftest.in" "conftest.nl"
12304 $as_echo '' >> "conftest.nl"
12305 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12306 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12307 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12308 if test $ac_count -gt ${ac_path_SED_max-0}; then
12309 # Best one so far, save it but keep looking for a better one
12310 ac_cv_path_SED
="$ac_path_SED"
12311 ac_path_SED_max
=$ac_count
12313 # 10*(2^10) chars as input seems more than enough
12314 test $ac_count -gt 10 && break
12316 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12319 $ac_path_SED_found && break 3
12324 if test -z "$ac_cv_path_SED"; then
12325 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12328 ac_cv_path_SED
=$SED
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12333 $as_echo "$ac_cv_path_SED" >&6; }
12334 SED
="$ac_cv_path_SED"
12337 test -z "$SED" && SED
=sed
12338 Xsed
="$SED -e 1s/^X//"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12351 $as_echo_n "checking for fgrep... " >&6; }
12352 if test "${ac_cv_path_FGREP+set}" = set; then :
12353 $as_echo_n "(cached) " >&6
12355 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12356 then ac_cv_path_FGREP
="$GREP -F"
12358 if test -z "$FGREP"; then
12359 ac_path_FGREP_found
=false
12360 # Loop through the user's path and test for each of PROGNAME-LIST
12361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12362 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12365 test -z "$as_dir" && as_dir
=.
12366 for ac_prog
in fgrep
; do
12367 for ac_exec_ext
in '' $ac_executable_extensions; do
12368 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12369 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12370 # Check for GNU ac_path_FGREP and select it if it is found.
12371 # Check for GNU $ac_path_FGREP
12372 case `"$ac_path_FGREP" --version 2>&1` in
12374 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12377 $as_echo_n 0123456789 >"conftest.in"
12380 cat "conftest.in" "conftest.in" >"conftest.tmp"
12381 mv "conftest.tmp" "conftest.in"
12382 cp "conftest.in" "conftest.nl"
12383 $as_echo 'FGREP' >> "conftest.nl"
12384 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12385 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12386 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12387 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12388 # Best one so far, save it but keep looking for a better one
12389 ac_cv_path_FGREP
="$ac_path_FGREP"
12390 ac_path_FGREP_max
=$ac_count
12392 # 10*(2^10) chars as input seems more than enough
12393 test $ac_count -gt 10 && break
12395 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12398 $ac_path_FGREP_found && break 3
12403 if test -z "$ac_cv_path_FGREP"; then
12404 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12407 ac_cv_path_FGREP
=$FGREP
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12413 $as_echo "$ac_cv_path_FGREP" >&6; }
12414 FGREP
="$ac_cv_path_FGREP"
12417 test -z "$GREP" && GREP
=grep
12437 # Check whether --with-gnu-ld was given.
12438 if test "${with_gnu_ld+set}" = set; then :
12439 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12445 if test "$GCC" = yes; then
12446 # Check if gcc -print-prog-name=ld gives a path.
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12448 $as_echo_n "checking for ld used by $CC... " >&6; }
12451 # gcc leaves a trailing carriage return which upsets mingw
12452 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12454 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12457 # Accept absolute paths.
12459 re_direlt
='/[^/][^/]*/\.\./'
12460 # Canonicalize the pathname of ld
12461 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12462 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12463 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12465 test -z "$LD" && LD
="$ac_prog"
12468 # If it fails, then pretend we aren't using GCC.
12472 # If it is relative, then search for the first ld in PATH.
12473 with_gnu_ld
=unknown
12476 elif test "$with_gnu_ld" = yes; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12478 $as_echo_n "checking for GNU ld... " >&6; }
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12481 $as_echo_n "checking for non-GNU ld... " >&6; }
12483 if test "${lt_cv_path_LD+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12486 if test -z "$LD"; then
12487 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12488 for ac_dir
in $PATH; do
12490 test -z "$ac_dir" && ac_dir
=.
12491 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12492 lt_cv_path_LD
="$ac_dir/$ac_prog"
12493 # Check to see if the program is GNU ld. I'd rather use --version,
12494 # but apparently some variants of GNU ld only accept -v.
12495 # Break only if it was the GNU/non-GNU ld that we prefer.
12496 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12497 *GNU
* |
*'with BFD'*)
12498 test "$with_gnu_ld" != no
&& break
12501 test "$with_gnu_ld" != yes && break
12508 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12512 LD
="$lt_cv_path_LD"
12513 if test -n "$LD"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12515 $as_echo "$LD" >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12520 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12522 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12523 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12526 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12527 case `$LD -v 2>&1 </dev/null` in
12528 *GNU
* |
*'with BFD'*)
12529 lt_cv_prog_gnu_ld
=yes
12532 lt_cv_prog_gnu_ld
=no
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12537 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12538 with_gnu_ld
=$lt_cv_prog_gnu_ld
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12549 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12550 if test "${lt_cv_path_NM+set}" = set; then :
12551 $as_echo_n "(cached) " >&6
12553 if test -n "$NM"; then
12554 # Let the user override the test.
12555 lt_cv_path_NM
="$NM"
12557 lt_nm_to_check
="${ac_tool_prefix}nm"
12558 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12559 lt_nm_to_check
="$lt_nm_to_check nm"
12561 for lt_tmp_nm
in $lt_nm_to_check; do
12562 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12563 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12565 test -z "$ac_dir" && ac_dir
=.
12566 tmp_nm
="$ac_dir/$lt_tmp_nm"
12567 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12568 # Check to see if the nm accepts a BSD-compat flag.
12569 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12570 # nm: unknown option "B" ignored
12571 # Tru64's nm complains that /dev/null is an invalid object file
12572 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12573 */dev
/null
* |
*'Invalid file or object type'*)
12574 lt_cv_path_NM
="$tmp_nm -B"
12578 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12580 lt_cv_path_NM
="$tmp_nm -p"
12584 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12585 continue # so that we can try to find one that supports BSD flags
12594 : ${lt_cv_path_NM=no}
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12598 $as_echo "$lt_cv_path_NM" >&6; }
12599 if test "$lt_cv_path_NM" != "no"; then
12600 NM
="$lt_cv_path_NM"
12602 # Didn't find any BSD compatible name lister, look for dumpbin.
12603 if test -n "$DUMPBIN"; then :
12604 # Let the user override the test.
12606 if test -n "$ac_tool_prefix"; then
12607 for ac_prog
in dumpbin
"link -dump"
12609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12610 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12612 $as_echo_n "checking for $ac_word... " >&6; }
12613 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12614 $as_echo_n "(cached) " >&6
12616 if test -n "$DUMPBIN"; then
12617 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12620 for as_dir
in $PATH
12623 test -z "$as_dir" && as_dir
=.
12624 for ac_exec_ext
in '' $ac_executable_extensions; do
12625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12626 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12636 DUMPBIN
=$ac_cv_prog_DUMPBIN
12637 if test -n "$DUMPBIN"; then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12639 $as_echo "$DUMPBIN" >&6; }
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642 $as_echo "no" >&6; }
12646 test -n "$DUMPBIN" && break
12649 if test -z "$DUMPBIN"; then
12650 ac_ct_DUMPBIN
=$DUMPBIN
12651 for ac_prog
in dumpbin
"link -dump"
12653 # Extract the first word of "$ac_prog", so it can be a program name with args.
12654 set dummy
$ac_prog; ac_word
=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12658 $as_echo_n "(cached) " >&6
12660 if test -n "$ac_ct_DUMPBIN"; then
12661 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12664 for as_dir
in $PATH
12667 test -z "$as_dir" && as_dir
=.
12668 for ac_exec_ext
in '' $ac_executable_extensions; do
12669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12670 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12680 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12681 if test -n "$ac_ct_DUMPBIN"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12683 $as_echo "$ac_ct_DUMPBIN" >&6; }
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12690 test -n "$ac_ct_DUMPBIN" && break
12693 if test "x$ac_ct_DUMPBIN" = x
; then
12696 case $cross_compiling:$ac_tool_warned in
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12700 ac_tool_warned
=yes ;;
12702 DUMPBIN
=$ac_ct_DUMPBIN
12706 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12708 DUMPBIN
="$DUMPBIN -symbols"
12716 if test "$DUMPBIN" != ":"; then
12720 test -z "$NM" && NM
=nm
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12728 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12729 if test "${lt_cv_nm_interface+set}" = set; then :
12730 $as_echo_n "(cached) " >&6
12732 lt_cv_nm_interface
="BSD nm"
12733 echo "int some_variable = 0;" > conftest.
$ac_ext
12734 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12735 (eval "$ac_compile" 2>conftest.err
)
12736 cat conftest.err
>&5
12737 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12738 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12739 cat conftest.err
>&5
12740 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12741 cat conftest.out
>&5
12742 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12743 lt_cv_nm_interface
="MS dumpbin"
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12748 $as_echo "$lt_cv_nm_interface" >&6; }
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12751 $as_echo_n "checking whether ln -s works... " >&6; }
12753 if test "$LN_S" = "ln -s"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12755 $as_echo "yes" >&6; }
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12758 $as_echo "no, using $LN_S" >&6; }
12761 # find the maximum length of command line arguments
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12763 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12764 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
12772 # On DJGPP, this test can blow up pretty badly due to problems in libc
12773 # (any single argument exceeding 2000 bytes causes a buffer overrun
12774 # during glob expansion). Even if it were fixed, the result of this
12775 # check would be larger than it should be.
12776 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12780 # Under GNU Hurd, this test is not required because there is
12781 # no limit to the length of command line arguments.
12782 # Libtool will interpret -1 as no limit whatsoever
12783 lt_cv_sys_max_cmd_len
=-1;
12786 cygwin
* | mingw
* | cegcc
*)
12787 # On Win9x/ME, this test blows up -- it succeeds, but takes
12788 # about 5 minutes as the teststring grows exponentially.
12789 # Worse, since 9x/ME are not pre-emptively multitasking,
12790 # you end up with a "frozen" computer, even though with patience
12791 # the test eventually succeeds (with a max line length of 256k).
12792 # Instead, let's just punt: use the minimum linelength reported by
12793 # all of the supported platforms: 8192 (on NT/2K/XP).
12794 lt_cv_sys_max_cmd_len
=8192;
12798 # On MiNT this can take a long time and run out of memory.
12799 lt_cv_sys_max_cmd_len
=8192;
12803 # On AmigaOS with pdksh, this test takes hours, literally.
12804 # So we just punt and use a minimum line length of 8192.
12805 lt_cv_sys_max_cmd_len
=8192;
12808 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12809 # This has been around since 386BSD, at least. Likely further.
12810 if test -x /sbin
/sysctl
; then
12811 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12812 elif test -x /usr
/sbin
/sysctl
; then
12813 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12815 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12817 # And add a safety zone
12818 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12819 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12823 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12824 lt_cv_sys_max_cmd_len
=196608
12828 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12829 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12830 # nice to cause kernel panics so lets avoid the loop below.
12831 # First set a reasonable default.
12832 lt_cv_sys_max_cmd_len
=16384
12834 if test -x /sbin
/sysconfig
; then
12835 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12836 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12841 lt_cv_sys_max_cmd_len
=102400
12843 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12844 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12845 if test -n "$kargmax"; then
12846 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12848 lt_cv_sys_max_cmd_len
=32768
12852 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12853 if test -n "$lt_cv_sys_max_cmd_len"; then
12854 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12855 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12857 # Make teststring a little bigger before we do anything with it.
12858 # a 1K string should be a reasonable start.
12859 for i
in 1 2 3 4 5 6 7 8 ; do
12860 teststring
=$teststring$teststring
12862 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12863 # If test is not a shell built-in, we'll probably end up computing a
12864 # maximum length that is only half of the actual maximum length, but
12866 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12867 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12868 test $i != 17 # 1/2 MB should be enough
12871 teststring
=$teststring$teststring
12873 # Only check the string length outside the loop.
12874 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12876 # Add a significant safety factor because C++ compilers can tack on
12877 # massive amounts of additional arguments before passing them to the
12878 # linker. It appears as though 1/2 is a usable value.
12879 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12886 if test -n $lt_cv_sys_max_cmd_len ; then
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12888 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12891 $as_echo "none" >&6; }
12893 max_cmd_len
=$lt_cv_sys_max_cmd_len
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12905 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12906 # Try some XSI features
12908 ( _lt_dummy
="a/b/c"
12909 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12911 && eval 'test $(( 1 + 1 )) -eq 2 \
12912 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12915 $as_echo "$xsi_shell" >&6; }
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12919 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12921 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12923 && lt_shell_append=yes
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12925 $as_echo "$lt_shell_append" >&6; }
12928 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12938 # test EBCDIC or ASCII
12939 case `echo X|tr X '\101'` in
12940 A) # ASCII based system
12941 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12942 lt_SP2NL='tr \040 \012'
12943 lt_NL2SP='tr \015\012 \040\040'
12945 *) # EBCDIC based system
12946 lt_SP2NL='tr \100 \n'
12947 lt_NL2SP='tr \r\n \100\100'
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12960 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12961 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12962 $as_echo_n "(cached
) " >&6
12964 lt_cv_ld_reload_flag='-r'
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12967 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12968 reload_flag=$lt_cv_ld_reload_flag
12969 case $reload_flag in
12971 *) reload_flag=" $reload_flag" ;;
12973 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12976 if test "$GCC" = yes; then
12977 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12979 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12992 if test -n "$ac_tool_prefix"; then
12993 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12994 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12996 $as_echo_n "checking
for $ac_word...
" >&6; }
12997 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12998 $as_echo_n "(cached
) " >&6
13000 if test -n "$OBJDUMP"; then
13001 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004 for as_dir in $PATH
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13010 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13020 OBJDUMP=$ac_cv_prog_OBJDUMP
13021 if test -n "$OBJDUMP"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13023 $as_echo "$OBJDUMP" >&6; }
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13026 $as_echo "no
" >&6; }
13031 if test -z "$ac_cv_prog_OBJDUMP"; then
13032 ac_ct_OBJDUMP=$OBJDUMP
13033 # Extract the first word of "objdump
", so it can be a program name with args.
13034 set dummy objdump; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13036 $as_echo_n "checking
for $ac_word...
" >&6; }
13037 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13038 $as_echo_n "(cached
) " >&6
13040 if test -n "$ac_ct_OBJDUMP"; then
13041 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13060 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13061 if test -n "$ac_ct_OBJDUMP"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13063 $as_echo "$ac_ct_OBJDUMP" >&6; }
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13066 $as_echo "no
" >&6; }
13069 if test "x
$ac_ct_OBJDUMP" = x; then
13072 case $cross_compiling:$ac_tool_warned in
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13075 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13076 ac_tool_warned=yes ;;
13078 OBJDUMP=$ac_ct_OBJDUMP
13081 OBJDUMP="$ac_cv_prog_OBJDUMP"
13084 test -z "$OBJDUMP" && OBJDUMP=objdump
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13095 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13096 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13097 $as_echo_n "(cached
) " >&6
13099 lt_cv_file_magic_cmd='$MAGIC_CMD'
13100 lt_cv_file_magic_test_file=
13101 lt_cv_deplibs_check_method='unknown'
13102 # Need to set the preceding variable on all platforms that support
13103 # interlibrary dependencies.
13104 # 'none' -- dependencies not supported.
13105 # `unknown' -- same as none, but documents that we really don't know.
13106 # 'pass_all' -- all dependencies passed with no checks.
13107 # 'test_compile' -- check by making test program.
13108 # 'file_magic [[regex]]' -- check by looking for files in library path
13109 # which responds to the $file_magic_cmd with a given extended regex.
13110 # If you have `file' or equivalent on your system and you're not sure
13111 # whether `pass_all' will *always* work, you probably want this one.
13115 lt_cv_deplibs_check_method=pass_all
13119 lt_cv_deplibs_check_method=pass_all
13123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13124 lt_cv_file_magic_cmd='/usr/bin/file -L'
13125 lt_cv_file_magic_test_file=/shlib/libc.so
13129 # func_win32_libid is a shell function defined in ltmain.sh
13130 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13131 lt_cv_file_magic_cmd='func_win32_libid'
13135 # Base MSYS/MinGW do not provide the 'file' command needed by
13136 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13137 # unless we find 'file', for example because we are cross-compiling.
13138 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13139 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13141 lt_cv_file_magic_cmd='func_win32_libid'
13143 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13144 lt_cv_file_magic_cmd='$OBJDUMP -f'
13149 # use the weaker test based on 'objdump'. See mingw*.
13150 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13151 lt_cv_file_magic_cmd='$OBJDUMP -f'
13154 darwin* | rhapsody*)
13155 lt_cv_deplibs_check_method=pass_all
13158 freebsd* | dragonfly*)
13159 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13162 # Not sure whether the presence of OpenBSD here was a mistake.
13163 # Let's accept both of them until this is cleared up.
13164 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13165 lt_cv_file_magic_cmd=/usr/bin/file
13166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13170 lt_cv_deplibs_check_method=pass_all
13175 lt_cv_deplibs_check_method=pass_all
13179 lt_cv_deplibs_check_method=pass_all
13182 hpux10.20* | hpux11*)
13183 lt_cv_file_magic_cmd=/usr/bin/file
13186 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13187 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13190 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]'
13191 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13194 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13195 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13201 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13205 irix5* | irix6* | nonstopux*)
13207 *-32|*"-32 ") libmagic=32-bit;;
13208 *-n32|*"-n32 ") libmagic=N32;;
13209 *-64|*"-64 ") libmagic=64-bit;;
13210 *) libmagic=never-match;;
13212 lt_cv_deplibs_check_method=pass_all
13215 # This must be Linux ELF.
13216 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13217 lt_cv_deplibs_check_method=pass_all
13221 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13230 lt_cv_file_magic_cmd=/usr/bin/file
13231 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13235 lt_cv_deplibs_check_method=pass_all
13239 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13246 osf3* | osf4* | osf5*)
13247 lt_cv_deplibs_check_method=pass_all
13251 lt_cv_deplibs_check_method=pass_all
13255 lt_cv_deplibs_check_method=pass_all
13258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13259 lt_cv_deplibs_check_method=pass_all
13263 case $host_vendor in
13265 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]'
13266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13269 lt_cv_deplibs_check_method=pass_all
13272 lt_cv_file_magic_cmd='/bin/file'
13273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13276 lt_cv_file_magic_cmd='/bin/file'
13277 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13278 lt_cv_file_magic_test_file=/lib/libc.so
13281 lt_cv_deplibs_check_method=pass_all
13284 lt_cv_deplibs_check_method=pass_all
13290 lt_cv_deplibs_check_method=pass_all
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13296 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13297 file_magic_cmd=$lt_cv_file_magic_cmd
13298 deplibs_check_method=$lt_cv_deplibs_check_method
13299 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13312 if test -n "$ac_tool_prefix"; then
13313 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13314 set dummy ${ac_tool_prefix}ar; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13316 $as_echo_n "checking
for $ac_word...
" >&6; }
13317 if test "${ac_cv_prog_AR+set}" = set; then :
13318 $as_echo_n "(cached
) " >&6
13320 if test -n "$AR"; then
13321 ac_cv_prog_AR="$AR" # Let the user override the test.
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13327 test -z "$as_dir" && as_dir=.
13328 for ac_exec_ext in '' $ac_executable_extensions; do
13329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13330 ac_cv_prog_AR="${ac_tool_prefix}ar"
13331 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13341 if test -n "$AR"; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13343 $as_echo "$AR" >&6; }
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13346 $as_echo "no
" >&6; }
13351 if test -z "$ac_cv_prog_AR"; then
13353 # Extract the first word of "ar", so it can be a program name with args.
13354 set dummy ar; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13356 $as_echo_n "checking
for $ac_word...
" >&6; }
13357 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13358 $as_echo_n "(cached
) " >&6
13360 if test -n "$ac_ct_AR"; then
13361 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364 for as_dir in $PATH
13367 test -z "$as_dir" && as_dir=.
13368 for ac_exec_ext in '' $ac_executable_extensions; do
13369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13370 ac_cv_prog_ac_ct_AR="ar"
13371 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13380 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13381 if test -n "$ac_ct_AR"; then
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13383 $as_echo "$ac_ct_AR" >&6; }
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13386 $as_echo "no
" >&6; }
13389 if test "x
$ac_ct_AR" = x; then
13392 case $cross_compiling:$ac_tool_warned in
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13395 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13396 ac_tool_warned=yes ;;
13401 AR="$ac_cv_prog_AR"
13404 test -z "$AR" && AR=ar
13405 test -z "$AR_FLAGS" && AR_FLAGS=cru
13417 if test -n "$ac_tool_prefix"; then
13418 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13419 set dummy ${ac_tool_prefix}strip; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13421 $as_echo_n "checking
for $ac_word...
" >&6; }
13422 if test "${ac_cv_prog_STRIP+set}" = set; then :
13423 $as_echo_n "(cached
) " >&6
13425 if test -n "$STRIP"; then
13426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13432 test -z "$as_dir" && as_dir=.
13433 for ac_exec_ext in '' $ac_executable_extensions; do
13434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13435 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13445 STRIP=$ac_cv_prog_STRIP
13446 if test -n "$STRIP"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13448 $as_echo "$STRIP" >&6; }
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13451 $as_echo "no
" >&6; }
13456 if test -z "$ac_cv_prog_STRIP"; then
13458 # Extract the first word of "strip
", so it can be a program name with args.
13459 set dummy strip; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13461 $as_echo_n "checking
for $ac_word...
" >&6; }
13462 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13463 $as_echo_n "(cached
) " >&6
13465 if test -n "$ac_ct_STRIP"; then
13466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13475 ac_cv_prog_ac_ct_STRIP="strip
"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13486 if test -n "$ac_ct_STRIP"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13488 $as_echo "$ac_ct_STRIP" >&6; }
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13491 $as_echo "no
" >&6; }
13494 if test "x
$ac_ct_STRIP" = x; then
13497 case $cross_compiling:$ac_tool_warned in
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13500 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13501 ac_tool_warned=yes ;;
13506 STRIP="$ac_cv_prog_STRIP"
13509 test -z "$STRIP" && STRIP=:
13516 if test -n "$ac_tool_prefix"; then
13517 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13518 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13520 $as_echo_n "checking
for $ac_word...
" >&6; }
13521 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13522 $as_echo_n "(cached
) " >&6
13524 if test -n "$RANLIB"; then
13525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13534 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13544 RANLIB=$ac_cv_prog_RANLIB
13545 if test -n "$RANLIB"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13547 $as_echo "$RANLIB" >&6; }
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13550 $as_echo "no
" >&6; }
13555 if test -z "$ac_cv_prog_RANLIB"; then
13556 ac_ct_RANLIB=$RANLIB
13557 # Extract the first word of "ranlib
", so it can be a program name with args.
13558 set dummy ranlib; ac_word=$2
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13560 $as_echo_n "checking
for $ac_word...
" >&6; }
13561 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13562 $as_echo_n "(cached
) " >&6
13564 if test -n "$ac_ct_RANLIB"; then
13565 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13571 test -z "$as_dir" && as_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
13573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13574 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13584 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13585 if test -n "$ac_ct_RANLIB"; then
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13587 $as_echo "$ac_ct_RANLIB" >&6; }
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13590 $as_echo "no
" >&6; }
13593 if test "x
$ac_ct_RANLIB" = x; then
13596 case $cross_compiling:$ac_tool_warned in
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13599 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13600 ac_tool_warned=yes ;;
13602 RANLIB=$ac_ct_RANLIB
13605 RANLIB="$ac_cv_prog_RANLIB"
13608 test -z "$RANLIB" && RANLIB=:
13615 # Determine commands to create old-style static archives.
13616 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13617 old_postinstall_cmds='chmod 644 $oldlib'
13618 old_postuninstall_cmds=
13620 if test -n "$RANLIB"; then
13623 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13626 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13629 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13634 lock_old_archive_extraction=yes ;;
13636 lock_old_archive_extraction=no ;;
13677 # If no C compiler was specified, use CC.
13680 # If no C compiler flags were specified, use CFLAGS.
13681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13683 # Allow CC to be a program name with arguments.
13687 # Check for command to grab the raw symbol name followed by C symbol from nm.
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13689 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13690 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13691 $as_echo_n "(cached
) " >&6
13694 # These are sane defaults that work on at least a few old systems.
13695 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13697 # Character class describing NM global symbol codes.
13698 symcode='[BCDEGRST]'
13700 # Regexp to match symbols that can be accessed directly from C.
13701 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13703 # Define system-specific variables.
13708 cygwin* | mingw* | pw32* | cegcc*)
13709 symcode='[ABCDGISTW]'
13712 if test "$host_cpu" = ia64; then
13713 symcode='[ABCDEGRST]'
13716 irix* | nonstopux*)
13717 symcode='[BCDEGRST]'
13720 symcode='[BCDEGQRST]'
13731 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13739 # If we're using GNU nm, then use its standard symbol codes.
13740 case `$NM -V 2>&1` in
13741 *GNU* | *'with BFD'*)
13742 symcode='[ABCDGIRSTW]' ;;
13745 # Transform an extracted symbol line into a proper C declaration.
13746 # Some systems (esp. on ia64) link data and code symbols differently,
13747 # so use this general approach.
13748 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13750 # Transform an extracted symbol line into symbol name and symbol address
13751 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13752 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'"
13754 # Handle CRLF in mingw tool chain
13758 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13762 # Try without a prefix underscore, then with it.
13763 for ac_symprfx in "" "_
"; do
13765 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13766 symxfrm="\\1 $ac_symprfx\\2 \\2"
13768 # Write the raw and C identifiers.
13769 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13770 # Fake it for dumpbin and say T for any non-static function
13771 # and D for any global variable.
13772 # Also find C++ and __fastcall symbols from MSVC++,
13773 # which start with @ or ?.
13774 lt_cv_sys_global_symbol_pipe="$AWK '"\
13775 " {last_section=section; section=\$ 3};"\
13776 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13777 " \$ 0!~/External *\|/{next};"\
13778 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13779 " {if(hide[section]) next};"\
13780 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13781 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13782 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13783 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13784 " ' prfx
=^
$ac_symprfx"
13786 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13789 # Check to see that the pipe works correctly.
13793 cat > conftest.$ac_ext <<_LT_EOF
13798 void nm_test_func(void);
13799 void nm_test_func(void){}
13803 int main(){nm_test_var='a';nm_test_func();return(0);}
13806 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13807 (eval $ac_compile) 2>&5
13809 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13810 test $ac_status = 0; }; then
13811 # Now try to grab the symbols.
13813 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13814 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13816 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13817 test $ac_status = 0; } && test -s "$nlist"; then
13818 # Try sorting and uniquifying the output.
13819 if sort "$nlist" | uniq > "$nlist"T; then
13820 mv -f "$nlist"T "$nlist"
13825 # Make sure that we snagged all the symbols we need.
13826 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13827 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13828 cat <<_LT_EOF > conftest.$ac_ext
13834 # Now generate the symbol file.
13835 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13837 cat <<_LT_EOF >> conftest.$ac_ext
13839 /* The mapping between symbol names and symbols. */
13844 lt__PROGRAM__LTX_preloaded_symbols[] =
13846 { "@PROGRAM@
", (void *) 0 },
13848 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13849 cat <<\_LT_EOF >> conftest.$ac_ext
13853 /* This works around a problem in FreeBSD linker */
13854 #ifdef FREEBSD_WORKAROUND
13855 static const void *lt_preloaded_setup() {
13856 return lt__PROGRAM__LTX_preloaded_symbols;
13864 # Now try linking the two files.
13865 mv conftest.$ac_objext conftstm.$ac_objext
13866 lt_save_LIBS="$LIBS"
13867 lt_save_CFLAGS="$CFLAGS"
13868 LIBS="conftstm.
$ac_objext"
13869 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13870 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13871 (eval $ac_link) 2>&5
13873 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13874 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13877 LIBS="$lt_save_LIBS"
13878 CFLAGS="$lt_save_CFLAGS"
13880 echo "cannot
find nm_test_func
in $nlist" >&5
13883 echo "cannot
find nm_test_var
in $nlist" >&5
13886 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13889 echo "$progname: failed program was
:" >&5
13890 cat conftest.$ac_ext >&5
13892 rm -rf conftest* conftst*
13894 # Do not use the global_symbol_pipe unless it works.
13895 if test "$pipe_works" = yes; then
13898 lt_cv_sys_global_symbol_pipe=
13904 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13905 lt_cv_sys_global_symbol_to_cdecl=
13907 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13909 $as_echo "failed
" >&6; }
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13912 $as_echo "ok
" >&6; }
13936 # Check whether --enable-libtool-lock was given.
13937 if test "${enable_libtool_lock+set}" = set; then :
13938 enableval=$enable_libtool_lock;
13941 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13943 # Some flags need to be propagated to the compiler or linker for good
13947 # Find out which ABI we are using.
13948 echo 'int i;' > conftest.$ac_ext
13949 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13950 (eval $ac_compile) 2>&5
13952 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13953 test $ac_status = 0; }; then
13954 case `/usr/bin/file conftest.$ac_objext` in
13956 HPUX_IA64_MODE="32"
13959 HPUX_IA64_MODE="64"
13966 # Find out which ABI we are using.
13967 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13968 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13969 (eval $ac_compile) 2>&5
13971 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13972 test $ac_status = 0; }; then
13973 if test "$lt_cv_prog_gnu_ld" = yes; then
13974 case `/usr/bin/file conftest.$ac_objext` in
13976 LD="${LD-ld} -melf32bsmip"
13979 LD="${LD-ld} -melf32bmipn32"
13982 LD="${LD-ld} -melf64bmip"
13986 case `/usr/bin/file conftest.$ac_objext` in
14002 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
14003 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14004 # Find out which ABI we are using.
14005 echo 'int i;' > conftest.$ac_ext
14006 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14007 (eval $ac_compile) 2>&5
14009 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14010 test $ac_status = 0; }; then
14011 case `/usr/bin/file conftest.o` in
14014 x86_64-*kfreebsd*-gnu)
14015 LD="${LD-ld} -m elf_i386_fbsd
"
14018 case `/usr/bin/file conftest.o` in
14020 LD="${LD-ld} -m elf32_x86_64
"
14023 LD="${LD-ld} -m elf_i386
"
14027 ppc64-*linux*|powerpc64-*linux*)
14028 LD="${LD-ld} -m elf32ppclinux
"
14031 LD="${LD-ld} -m elf_s390
"
14034 LD="${LD-ld} -m elf32_sparc
"
14040 x86_64-*kfreebsd*-gnu)
14041 LD="${LD-ld} -m elf_x86_64_fbsd
"
14044 LD="${LD-ld} -m elf_x86_64
"
14046 ppc*-*linux*|powerpc*-*linux*)
14047 LD="${LD-ld} -m elf64ppc
"
14049 s390*-*linux*|s390*-*tpf*)
14050 LD="${LD-ld} -m elf64_s390
"
14053 LD="${LD-ld} -m elf64_sparc
"
14063 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14064 SAVE_CFLAGS="$CFLAGS"
14065 CFLAGS="$CFLAGS -belf"
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14067 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14068 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14069 $as_echo_n "(cached
) " >&6
14072 ac_cpp='$CPP $CPPFLAGS'
14073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h. */
14088 if ac_fn_c_try_link "$LINENO"; then :
14089 lt_cv_cc_needs_belf=yes
14091 lt_cv_cc_needs_belf=no
14093 rm -f core conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
14096 ac_cpp='$CPP $CPPFLAGS'
14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14103 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14104 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14105 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14106 CFLAGS="$SAVE_CFLAGS"
14110 # Find out which ABI we are using.
14111 echo 'int i;' > conftest.$ac_ext
14112 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14113 (eval $ac_compile) 2>&5
14115 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14116 test $ac_status = 0; }; then
14117 case `/usr/bin/file conftest.o` in
14119 case $lt_cv_prog_gnu_ld in
14120 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14122 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14134 need_locks="$enable_libtool_lock"
14138 rhapsody* | darwin*)
14139 if test -n "$ac_tool_prefix"; then
14140 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14141 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14143 $as_echo_n "checking
for $ac_word...
" >&6; }
14144 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14145 $as_echo_n "(cached
) " >&6
14147 if test -n "$DSYMUTIL"; then
14148 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14151 for as_dir in $PATH
14154 test -z "$as_dir" && as_dir=.
14155 for ac_exec_ext in '' $ac_executable_extensions; do
14156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14157 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14158 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14167 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14168 if test -n "$DSYMUTIL"; then
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14170 $as_echo "$DSYMUTIL" >&6; }
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14173 $as_echo "no
" >&6; }
14178 if test -z "$ac_cv_prog_DSYMUTIL"; then
14179 ac_ct_DSYMUTIL=$DSYMUTIL
14180 # Extract the first word of "dsymutil
", so it can be a program name with args.
14181 set dummy dsymutil; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14183 $as_echo_n "checking
for $ac_word...
" >&6; }
14184 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14185 $as_echo_n "(cached
) " >&6
14187 if test -n "$ac_ct_DSYMUTIL"; then
14188 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14197 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14207 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14208 if test -n "$ac_ct_DSYMUTIL"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14210 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14213 $as_echo "no
" >&6; }
14216 if test "x
$ac_ct_DSYMUTIL" = x; then
14219 case $cross_compiling:$ac_tool_warned in
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14222 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14223 ac_tool_warned=yes ;;
14225 DSYMUTIL=$ac_ct_DSYMUTIL
14228 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14231 if test -n "$ac_tool_prefix"; then
14232 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14233 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14235 $as_echo_n "checking
for $ac_word...
" >&6; }
14236 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14237 $as_echo_n "(cached
) " >&6
14239 if test -n "$NMEDIT"; then
14240 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14243 for as_dir in $PATH
14246 test -z "$as_dir" && as_dir=.
14247 for ac_exec_ext in '' $ac_executable_extensions; do
14248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14249 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14250 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14259 NMEDIT=$ac_cv_prog_NMEDIT
14260 if test -n "$NMEDIT"; then
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14262 $as_echo "$NMEDIT" >&6; }
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14265 $as_echo "no
" >&6; }
14270 if test -z "$ac_cv_prog_NMEDIT"; then
14271 ac_ct_NMEDIT=$NMEDIT
14272 # Extract the first word of "nmedit
", so it can be a program name with args.
14273 set dummy nmedit; ac_word=$2
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14275 $as_echo_n "checking
for $ac_word...
" >&6; }
14276 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14277 $as_echo_n "(cached
) " >&6
14279 if test -n "$ac_ct_NMEDIT"; then
14280 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in $PATH
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
14288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14289 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14290 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14299 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14300 if test -n "$ac_ct_NMEDIT"; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14302 $as_echo "$ac_ct_NMEDIT" >&6; }
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14305 $as_echo "no
" >&6; }
14308 if test "x
$ac_ct_NMEDIT" = x; then
14311 case $cross_compiling:$ac_tool_warned in
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14314 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14315 ac_tool_warned=yes ;;
14317 NMEDIT=$ac_ct_NMEDIT
14320 NMEDIT="$ac_cv_prog_NMEDIT"
14323 if test -n "$ac_tool_prefix"; then
14324 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14325 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14327 $as_echo_n "checking
for $ac_word...
" >&6; }
14328 if test "${ac_cv_prog_LIPO+set}" = set; then :
14329 $as_echo_n "(cached
) " >&6
14331 if test -n "$LIPO"; then
14332 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14341 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14342 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14351 LIPO=$ac_cv_prog_LIPO
14352 if test -n "$LIPO"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14354 $as_echo "$LIPO" >&6; }
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14357 $as_echo "no
" >&6; }
14362 if test -z "$ac_cv_prog_LIPO"; then
14364 # Extract the first word of "lipo
", so it can be a program name with args.
14365 set dummy lipo; ac_word=$2
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14367 $as_echo_n "checking
for $ac_word...
" >&6; }
14368 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14369 $as_echo_n "(cached
) " >&6
14371 if test -n "$ac_ct_LIPO"; then
14372 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14381 ac_cv_prog_ac_ct_LIPO="lipo
"
14382 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14391 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14392 if test -n "$ac_ct_LIPO"; then
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14394 $as_echo "$ac_ct_LIPO" >&6; }
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14397 $as_echo "no
" >&6; }
14400 if test "x
$ac_ct_LIPO" = x; then
14403 case $cross_compiling:$ac_tool_warned in
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14406 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14407 ac_tool_warned=yes ;;
14412 LIPO="$ac_cv_prog_LIPO"
14415 if test -n "$ac_tool_prefix"; then
14416 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14417 set dummy ${ac_tool_prefix}otool; ac_word=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14419 $as_echo_n "checking
for $ac_word...
" >&6; }
14420 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14421 $as_echo_n "(cached
) " >&6
14423 if test -n "$OTOOL"; then
14424 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427 for as_dir in $PATH
14430 test -z "$as_dir" && as_dir=.
14431 for ac_exec_ext in '' $ac_executable_extensions; do
14432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14433 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14434 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14443 OTOOL=$ac_cv_prog_OTOOL
14444 if test -n "$OTOOL"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14446 $as_echo "$OTOOL" >&6; }
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14449 $as_echo "no
" >&6; }
14454 if test -z "$ac_cv_prog_OTOOL"; then
14456 # Extract the first word of "otool
", so it can be a program name with args.
14457 set dummy otool; ac_word=$2
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14459 $as_echo_n "checking
for $ac_word...
" >&6; }
14460 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14461 $as_echo_n "(cached
) " >&6
14463 if test -n "$ac_ct_OTOOL"; then
14464 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14467 for as_dir in $PATH
14470 test -z "$as_dir" && as_dir=.
14471 for ac_exec_ext in '' $ac_executable_extensions; do
14472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14473 ac_cv_prog_ac_ct_OTOOL="otool
"
14474 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14483 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14484 if test -n "$ac_ct_OTOOL"; then
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14486 $as_echo "$ac_ct_OTOOL" >&6; }
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14489 $as_echo "no
" >&6; }
14492 if test "x
$ac_ct_OTOOL" = x; then
14495 case $cross_compiling:$ac_tool_warned in
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14498 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14499 ac_tool_warned=yes ;;
14504 OTOOL="$ac_cv_prog_OTOOL"
14507 if test -n "$ac_tool_prefix"; then
14508 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14509 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14511 $as_echo_n "checking
for $ac_word...
" >&6; }
14512 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14513 $as_echo_n "(cached
) " >&6
14515 if test -n "$OTOOL64"; then
14516 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14519 for as_dir in $PATH
14522 test -z "$as_dir" && as_dir=.
14523 for ac_exec_ext in '' $ac_executable_extensions; do
14524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14525 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14526 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14535 OTOOL64=$ac_cv_prog_OTOOL64
14536 if test -n "$OTOOL64"; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14538 $as_echo "$OTOOL64" >&6; }
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14541 $as_echo "no
" >&6; }
14546 if test -z "$ac_cv_prog_OTOOL64"; then
14547 ac_ct_OTOOL64=$OTOOL64
14548 # Extract the first word of "otool64
", so it can be a program name with args.
14549 set dummy otool64; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14551 $as_echo_n "checking
for $ac_word...
" >&6; }
14552 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14553 $as_echo_n "(cached
) " >&6
14555 if test -n "$ac_ct_OTOOL64"; then
14556 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14562 test -z "$as_dir" && as_dir=.
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14565 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14575 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14576 if test -n "$ac_ct_OTOOL64"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14578 $as_echo "$ac_ct_OTOOL64" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14581 $as_echo "no
" >&6; }
14584 if test "x
$ac_ct_OTOOL64" = x; then
14587 case $cross_compiling:$ac_tool_warned in
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14590 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14591 ac_tool_warned=yes ;;
14593 OTOOL64=$ac_ct_OTOOL64
14596 OTOOL64="$ac_cv_prog_OTOOL64"
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14626 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14627 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14628 $as_echo_n "(cached
) " >&6
14630 lt_cv_apple_cc_single_mod=no
14631 if test -z "${LT_MULTI_MODULE}"; then
14632 # By default we will add the -single_module flag. You can override
14633 # by either setting the environment variable LT_MULTI_MODULE
14634 # non-empty at configure time, or by adding -multi_module to the
14636 rm -rf libconftest.dylib*
14637 echo "int foo
(void
){return 1;}" > conftest.c
14638 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14639 -dynamiclib -Wl,-single_module conftest.c
" >&5
14640 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14641 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14643 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14644 lt_cv_apple_cc_single_mod=yes
14646 cat conftest.err >&5
14648 rm -rf libconftest.dylib*
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14653 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14655 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14656 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14657 $as_echo_n "(cached
) " >&6
14659 lt_cv_ld_exported_symbols_list=no
14660 save_LDFLAGS=$LDFLAGS
14661 echo "_main
" > conftest.sym
14662 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14674 if ac_fn_c_try_link "$LINENO"; then :
14675 lt_cv_ld_exported_symbols_list=yes
14677 lt_cv_ld_exported_symbols_list=no
14679 rm -f core conftest.err conftest.$ac_objext \
14680 conftest$ac_exeext conftest.$ac_ext
14681 LDFLAGS="$save_LDFLAGS"
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14685 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14687 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14688 if test "${lt_cv_ld_force_load+set}" = set; then :
14689 $as_echo_n "(cached
) " >&6
14691 lt_cv_ld_force_load=no
14692 cat > conftest.c << _LT_EOF
14693 int forced_loaded() { return 2;}
14695 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14696 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14697 echo "$AR cru libconftest.a conftest.o
" >&5
14698 $AR cru libconftest.a conftest.o 2>&5
14699 cat > conftest.c << _LT_EOF
14700 int main() { return 0;}
14702 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14703 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14705 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14706 lt_cv_ld_force_load=yes
14708 cat conftest.err >&5
14710 rm -f conftest.err libconftest.a conftest conftest.c
14711 rm -rf conftest.dSYM
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14715 $as_echo "$lt_cv_ld_force_load" >&6; }
14717 rhapsody* | darwin1.[012])
14718 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14720 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14721 darwin*) # darwin 5.x on
14722 # if running on 10.5 or later, the deployment target defaults
14723 # to the OS version, if on x86, and 10.4, the deployment
14724 # target defaults to 10.4. Don't you love it?
14725 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14726 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14727 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14729 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14731 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14735 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14736 _lt_dar_single_mod='$single_module'
14738 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14739 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14741 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14743 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14744 _lt_dsymutil='~$DSYMUTIL $lib || :'
14751 for ac_header in dlfcn.h
14753 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14754 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14755 cat >>confdefs.h <<_ACEOF
14756 #define HAVE_DLFCN_H 1
14773 enable_win32_dll=no
14776 # Check whether --enable-shared was given.
14777 if test "${enable_shared+set}" = set; then :
14778 enableval=$enable_shared; p=${PACKAGE-default}
14780 yes) enable_shared=yes ;;
14781 no) enable_shared=no ;;
14784 # Look at the argument we got. We use all the common list separators.
14785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14786 for pkg in $enableval; do
14788 if test "X
$pkg" = "X
$p"; then
14807 # Check whether --enable-static was given.
14808 if test "${enable_static+set}" = set; then :
14809 enableval=$enable_static; p=${PACKAGE-default}
14811 yes) enable_static=yes ;;
14812 no) enable_static=no ;;
14815 # Look at the argument we got. We use all the common list separators.
14816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14817 for pkg in $enableval; do
14819 if test "X
$pkg" = "X
$p"; then
14839 # Check whether --with-pic was given.
14840 if test "${with_pic+set}" = set; then :
14841 withval=$with_pic; pic_mode="$withval"
14847 test -z "$pic_mode" && pic_mode=default
14855 # Check whether --enable-fast-install was given.
14856 if test "${enable_fast_install+set}" = set; then :
14857 enableval=$enable_fast_install; p=${PACKAGE-default}
14859 yes) enable_fast_install=yes ;;
14860 no) enable_fast_install=no ;;
14862 enable_fast_install=no
14863 # Look at the argument we got. We use all the common list separators.
14864 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14865 for pkg in $enableval; do
14867 if test "X
$pkg" = "X
$p"; then
14868 enable_fast_install=yes
14875 enable_fast_install=yes
14888 # This can be used to rebuild libtool when needed
14889 LIBTOOL_DEPS="$ltmain"
14891 # Always use our own libtool.
14892 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14919 test -z "$LN_S" && LN_S="ln -s"
14934 if test -n "${ZSH_VERSION+set}" ; then
14935 setopt NO_GLOB_SUBST
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14939 $as_echo_n "checking
for objdir...
" >&6; }
14940 if test "${lt_cv_objdir+set}" = set; then :
14941 $as_echo_n "(cached
) " >&6
14943 rm -f .libs 2>/dev/null
14944 mkdir .libs 2>/dev/null
14945 if test -d .libs; then
14948 # MS-DOS does not allow filenames that begin with a dot.
14951 rmdir .libs 2>/dev/null
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14954 $as_echo "$lt_cv_objdir" >&6; }
14955 objdir=$lt_cv_objdir
14961 cat >>confdefs.h <<_ACEOF
14962 #define LT_OBJDIR "$lt_cv_objdir/"
14970 # AIX sometimes has problems with the GCC collect2 program. For some
14971 # reason, if we set the COLLECT_NAMES environment variable, the problems
14972 # vanish in a puff of smoke.
14973 if test "X
${COLLECT_NAMES+set}" != Xset; then
14975 export COLLECT_NAMES
14980 # Global variables:
14982 can_build_shared=yes
14984 # All known linkers require a `.a' archive for static linking (except MSVC,
14985 # which needs '.lib').
14988 with_gnu_ld="$lt_cv_prog_gnu_ld"
14991 old_CFLAGS="$CFLAGS"
14993 # Set sane defaults for various variables
14994 test -z "$CC" && CC=cc
14995 test -z "$LTCC" && LTCC=$CC
14996 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14997 test -z "$LD" && LD=ld
14998 test -z "$ac_objext" && ac_objext=o
15000 for cc_temp in $compiler""; do
15002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15008 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15011 # Only perform the check for file, if the check method requires it
15012 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15013 case $deplibs_check_method in
15015 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15017 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15018 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15019 $as_echo_n "(cached
) " >&6
15023 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15026 lt_save_MAGIC_CMD="$MAGIC_CMD"
15027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15028 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15029 for ac_dir in $ac_dummy; do
15031 test -z "$ac_dir" && ac_dir=.
15032 if test -f $ac_dir/${ac_tool_prefix}file; then
15033 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15034 if test -n "$file_magic_test_file"; then
15035 case $deplibs_check_method in
15037 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15039 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15040 $EGREP "$file_magic_regex" > /dev/null; then
15045 *** Warning: the command libtool uses to detect shared libraries,
15046 *** $file_magic_cmd, produces output that libtool cannot recognize.
15047 *** The result is that libtool may fail to recognize shared libraries
15048 *** as such. This will affect the creation of libtool libraries that
15049 *** depend on shared libraries, but programs linked with such libtool
15050 *** libraries will work regardless of this problem. Nevertheless, you
15051 *** may want to report the problem to your system manager and/or to
15052 *** bug-libtool@gnu.org
15062 MAGIC_CMD="$lt_save_MAGIC_CMD"
15067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15068 if test -n "$MAGIC_CMD"; then
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15070 $as_echo "$MAGIC_CMD" >&6; }
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15073 $as_echo "no
" >&6; }
15080 if test -z "$lt_cv_path_MAGIC_CMD"; then
15081 if test -n "$ac_tool_prefix"; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15083 $as_echo_n "checking
for file...
" >&6; }
15084 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15085 $as_echo_n "(cached
) " >&6
15089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15092 lt_save_MAGIC_CMD="$MAGIC_CMD"
15093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15094 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15095 for ac_dir in $ac_dummy; do
15097 test -z "$ac_dir" && ac_dir=.
15098 if test -f $ac_dir/file; then
15099 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15100 if test -n "$file_magic_test_file"; then
15101 case $deplibs_check_method in
15103 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15106 $EGREP "$file_magic_regex" > /dev/null; then
15111 *** Warning: the command libtool uses to detect shared libraries,
15112 *** $file_magic_cmd, produces output that libtool cannot recognize.
15113 *** The result is that libtool may fail to recognize shared libraries
15114 *** as such. This will affect the creation of libtool libraries that
15115 *** depend on shared libraries, but programs linked with such libtool
15116 *** libraries will work regardless of this problem. Nevertheless, you
15117 *** may want to report the problem to your system manager and/or to
15118 *** bug-libtool@gnu.org
15128 MAGIC_CMD="$lt_save_MAGIC_CMD"
15133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15134 if test -n "$MAGIC_CMD"; then
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15136 $as_echo "$MAGIC_CMD" >&6; }
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15139 $as_echo "no
" >&6; }
15152 # Use C for the default configuration in the libtool script
15156 ac_cpp='$CPP $CPPFLAGS'
15157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15162 # Source file extension for C test sources.
15165 # Object file extension for compiled C test sources.
15169 # Code to be used in simple compile tests
15170 lt_simple_compile_test_code="int some_variable
= 0;"
15172 # Code to be used in simple link tests
15173 lt_simple_link_test_code='int main(){return(0);}'
15181 # If no C compiler was specified, use CC.
15184 # If no C compiler flags were specified, use CFLAGS.
15185 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15187 # Allow CC to be a program name with arguments.
15190 # Save the default compiler, since it gets overwritten when the other
15191 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15192 compiler_DEFAULT=$CC
15194 # save warnings/boilerplate of simple test code
15195 ac_outfile=conftest.$ac_objext
15196 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15198 _lt_compiler_boilerplate=`cat conftest.err`
15201 ac_outfile=conftest.$ac_objext
15202 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15204 _lt_linker_boilerplate=`cat conftest.err`
15209 ## There is no encapsulation within the following macros, do not change
15210 ## the running order or otherwise move them around unless you know exactly
15211 ## what you are doing...
15212 if test -n "$compiler"; then
15214 lt_prog_compiler_no_builtin_flag=
15216 if test "$GCC" = yes; then
15217 case $cc_basename in
15219 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15221 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15225 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15226 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15227 $as_echo_n "(cached
) " >&6
15229 lt_cv_prog_compiler_rtti_exceptions=no
15230 ac_outfile=conftest.$ac_objext
15231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15232 lt_compiler_flag="-fno-rtti -fno-exceptions"
15233 # Insert the option either (1) after the last *FLAGS variable, or
15234 # (2) before a word containing "conftest.
", or (3) at the end.
15235 # Note that $ac_compile itself does not contain backslashes and begins
15236 # with a dollar sign (not a hyphen), so the echo should work correctly.
15237 # The option is referenced via a variable to avoid confusing sed.
15238 lt_compile=`echo "$ac_compile" | $SED \
15239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15241 -e 's:$: $lt_compiler_flag:'`
15242 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15243 (eval "$lt_compile" 2>conftest.err)
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15247 if (exit $ac_status) && test -s "$ac_outfile"; then
15248 # The compiler can only warn and ignore the option if not recognized
15249 # So say no if there are warnings other than the usual output.
15250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15253 lt_cv_prog_compiler_rtti_exceptions=yes
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15260 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15262 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15263 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15275 lt_prog_compiler_wl=
15276 lt_prog_compiler_pic=
15277 lt_prog_compiler_static=
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15280 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15282 if test "$GCC" = yes; then
15283 lt_prog_compiler_wl='-Wl,'
15284 lt_prog_compiler_static='-static'
15288 # All AIX code is PIC.
15289 if test "$host_cpu" = ia64; then
15290 # AIX 5 now supports IA64 processor
15291 lt_prog_compiler_static='-Bstatic'
15298 # see comment about AmigaOS4 .so support
15299 lt_prog_compiler_pic='-fPIC'
15302 # FIXME: we need at least 68020 code to build shared libraries, but
15303 # adding the `-m68020' flag to GCC prevents building anything better,
15305 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15310 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15311 # PIC is the default for these OSes.
15314 mingw* | cygwin* | pw32* | os2* | cegcc*)
15315 # This hack is so that the source file can tell whether it is being
15316 # built for inclusion in a dll (and should export symbols for example).
15317 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15318 # (--disable-auto-import) libraries
15319 lt_prog_compiler_pic='-DDLL_EXPORT'
15322 darwin* | rhapsody*)
15323 # PIC is the default on this platform
15324 # Common symbols not allowed in MH_DYLIB files
15325 lt_prog_compiler_pic='-fno-common'
15329 # PIC is the default for Haiku.
15330 # The "-static" flag exists, but is broken.
15331 lt_prog_compiler_static=
15335 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15336 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15337 # sets the default TLS model and affects inlining.
15343 lt_prog_compiler_pic='-fPIC'
15349 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15350 # Instead, we relocate shared libraries at runtime.
15354 # Just because we use GCC doesn't mean we suddenly get shared libraries
15355 # on systems that don't support them.
15356 lt_prog_compiler_can_build_shared=no
15361 # QNX uses GNU C++, but need to define -shared option too, otherwise
15362 # it will coredump.
15363 lt_prog_compiler_pic='-fPIC -shared'
15367 if test -d /usr/nec; then
15368 lt_prog_compiler_pic=-Kconform_pic
15373 lt_prog_compiler_pic='-fPIC'
15377 case $cc_basename in
15378 nvcc*) # Cuda Compiler Driver 2.2
15379 lt_prog_compiler_wl='-Xlinker '
15380 lt_prog_compiler_pic='-Xcompiler -fPIC'
15384 # PORTME Check for flag to pass linker flags through the system compiler.
15387 lt_prog_compiler_wl='-Wl,'
15388 if test "$host_cpu" = ia64; then
15389 # AIX 5 now supports IA64 processor
15390 lt_prog_compiler_static='-Bstatic'
15392 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15396 mingw* | cygwin* | pw32* | os2* | cegcc*)
15397 # This hack is so that the source file can tell whether it is being
15398 # built for inclusion in a dll (and should export symbols for example).
15399 lt_prog_compiler_pic='-DDLL_EXPORT'
15402 hpux9* | hpux10* | hpux11*)
15403 lt_prog_compiler_wl='-Wl,'
15404 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15405 # not for PA HP-UX.
15411 lt_prog_compiler_pic='+Z'
15414 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15415 lt_prog_compiler_static='${wl}-a ${wl}archive'
15418 irix5* | irix6* | nonstopux*)
15419 lt_prog_compiler_wl='-Wl,'
15420 # PIC (with -KPIC) is the default.
15421 lt_prog_compiler_static='-non_shared'
15424 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15425 case $cc_basename in
15426 # old Intel for x86_64 which still supported -KPIC.
15428 lt_prog_compiler_wl='-Wl,'
15429 lt_prog_compiler_pic='-KPIC'
15430 lt_prog_compiler_static='-static'
15432 # icc used to be incompatible with GCC.
15433 # ICC 10 doesn't accept -KPIC any more.
15435 lt_prog_compiler_wl='-Wl,'
15436 lt_prog_compiler_pic='-fPIC'
15437 lt_prog_compiler_static='-static'
15439 # Lahey Fortran 8.1.
15441 lt_prog_compiler_wl='-Wl,'
15442 lt_prog_compiler_pic='--shared'
15443 lt_prog_compiler_static='--static'
15445 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15446 # Portland Group compilers (*not* the Pentium gcc compiler,
15447 # which looks to be a dead project)
15448 lt_prog_compiler_wl='-Wl,'
15449 lt_prog_compiler_pic='-fpic'
15450 lt_prog_compiler_static='-Bstatic'
15453 lt_prog_compiler_wl='-Wl,'
15454 # All Alpha code is PIC.
15455 lt_prog_compiler_static='-non_shared'
15457 xl* | bgxl* | bgf* | mpixl*)
15458 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15459 lt_prog_compiler_wl='-Wl,'
15460 lt_prog_compiler_pic='-qpic'
15461 lt_prog_compiler_static='-qstaticlink'
15464 case `$CC -V 2>&1 | sed 5q` in
15465 *Sun\ F* | *Sun*Fortran*)
15466 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15467 lt_prog_compiler_pic='-KPIC'
15468 lt_prog_compiler_static='-Bstatic'
15469 lt_prog_compiler_wl=''
15473 lt_prog_compiler_pic='-KPIC'
15474 lt_prog_compiler_static='-Bstatic'
15475 lt_prog_compiler_wl='-Wl,'
15483 lt_prog_compiler_pic='-KPIC'
15484 lt_prog_compiler_static='-Bstatic'
15488 # QNX uses GNU C++, but need to define -shared option too, otherwise
15489 # it will coredump.
15490 lt_prog_compiler_pic='-fPIC -shared'
15493 osf3* | osf4* | osf5*)
15494 lt_prog_compiler_wl='-Wl,'
15495 # All OSF/1 code is PIC.
15496 lt_prog_compiler_static='-non_shared'
15500 lt_prog_compiler_static='-non_shared'
15504 lt_prog_compiler_pic='-KPIC'
15505 lt_prog_compiler_static='-Bstatic'
15506 case $cc_basename in
15507 f77* | f90* | f95*)
15508 lt_prog_compiler_wl='-Qoption ld ';;
15510 lt_prog_compiler_wl='-Wl,';;
15515 lt_prog_compiler_wl='-Qoption ld '
15516 lt_prog_compiler_pic='-PIC'
15517 lt_prog_compiler_static='-Bstatic'
15520 sysv4 | sysv4.2uw2* | sysv4.3*)
15521 lt_prog_compiler_wl='-Wl,'
15522 lt_prog_compiler_pic='-KPIC'
15523 lt_prog_compiler_static='-Bstatic'
15527 if test -d /usr/nec ;then
15528 lt_prog_compiler_pic='-Kconform_pic'
15529 lt_prog_compiler_static='-Bstatic'
15533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15534 lt_prog_compiler_wl='-Wl,'
15535 lt_prog_compiler_pic='-KPIC'
15536 lt_prog_compiler_static='-Bstatic'
15540 lt_prog_compiler_wl='-Wl,'
15541 lt_prog_compiler_can_build_shared=no
15545 lt_prog_compiler_pic='-pic'
15546 lt_prog_compiler_static='-Bstatic'
15550 lt_prog_compiler_can_build_shared=no
15556 # For platforms which do not support PIC, -DPIC is meaningless:
15558 lt_prog_compiler_pic=
15561 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15565 $as_echo "$lt_prog_compiler_pic" >&6; }
15573 # Check to make sure the PIC flag actually works.
15575 if test -n "$lt_prog_compiler_pic"; then
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15577 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15578 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15579 $as_echo_n "(cached
) " >&6
15581 lt_cv_prog_compiler_pic_works=no
15582 ac_outfile=conftest.$ac_objext
15583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15584 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15585 # Insert the option either (1) after the last *FLAGS variable, or
15586 # (2) before a word containing "conftest.
", or (3) at the end.
15587 # Note that $ac_compile itself does not contain backslashes and begins
15588 # with a dollar sign (not a hyphen), so the echo should work correctly.
15589 # The option is referenced via a variable to avoid confusing sed.
15590 lt_compile=`echo "$ac_compile" | $SED \
15591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15593 -e 's:$: $lt_compiler_flag:'`
15594 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15595 (eval "$lt_compile" 2>conftest.err)
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15599 if (exit $ac_status) && test -s "$ac_outfile"; then
15600 # The compiler can only warn and ignore the option if not recognized
15601 # So say no if there are warnings other than the usual output.
15602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15605 lt_cv_prog_compiler_pic_works=yes
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15612 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15614 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15615 case $lt_prog_compiler_pic in
15617 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15620 lt_prog_compiler_pic=
15621 lt_prog_compiler_can_build_shared=no
15632 # Check to make sure the static flag actually works.
15634 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15636 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15637 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15638 $as_echo_n "(cached
) " >&6
15640 lt_cv_prog_compiler_static_works=no
15641 save_LDFLAGS="$LDFLAGS"
15642 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15643 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15645 # The linker can only warn and ignore the option if not recognized
15646 # So say no if there are warnings
15647 if test -s conftest.err; then
15648 # Append any errors to the config.log.
15649 cat conftest.err 1>&5
15650 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15652 if diff conftest.exp conftest.er2 >/dev/null; then
15653 lt_cv_prog_compiler_static_works=yes
15656 lt_cv_prog_compiler_static_works=yes
15660 LDFLAGS="$save_LDFLAGS"
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15664 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15666 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15669 lt_prog_compiler_static=
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15679 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15680 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15681 $as_echo_n "(cached
) " >&6
15683 lt_cv_prog_compiler_c_o=no
15684 $RM -r conftest 2>/dev/null
15688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15690 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15691 # Insert the option either (1) after the last *FLAGS variable, or
15692 # (2) before a word containing "conftest.
", or (3) at the end.
15693 # Note that $ac_compile itself does not contain backslashes and begins
15694 # with a dollar sign (not a hyphen), so the echo should work correctly.
15695 lt_compile=`echo "$ac_compile" | $SED \
15696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15698 -e 's:$: $lt_compiler_flag:'`
15699 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15700 (eval "$lt_compile" 2>out/conftest.err)
15702 cat out/conftest.err >&5
15703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15704 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15706 # The compiler can only warn and ignore the option if not recognized
15707 # So say no if there are warnings
15708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15709 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15710 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15711 lt_cv_prog_compiler_c_o=yes
15716 # SGI C++ compiler will create directory out/ii_files/ for
15717 # template instantiation
15718 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15719 $RM out/* && rmdir out
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15726 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15734 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15735 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15736 $as_echo_n "(cached
) " >&6
15738 lt_cv_prog_compiler_c_o=no
15739 $RM -r conftest 2>/dev/null
15743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15745 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15746 # Insert the option either (1) after the last *FLAGS variable, or
15747 # (2) before a word containing "conftest.
", or (3) at the end.
15748 # Note that $ac_compile itself does not contain backslashes and begins
15749 # with a dollar sign (not a hyphen), so the echo should work correctly.
15750 lt_compile=`echo "$ac_compile" | $SED \
15751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15753 -e 's:$: $lt_compiler_flag:'`
15754 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15755 (eval "$lt_compile" 2>out/conftest.err)
15757 cat out/conftest.err >&5
15758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15761 # The compiler can only warn and ignore the option if not recognized
15762 # So say no if there are warnings
15763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15766 lt_cv_prog_compiler_c_o=yes
15771 # SGI C++ compiler will create directory out/ii_files/ for
15772 # template instantiation
15773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15774 $RM out/* && rmdir out
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15781 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15786 hard_links="nottested
"
15787 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15788 # do not overwrite the value of need_locks provided by the user
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15790 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15793 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15795 ln conftest.a conftest.b 2>&5 || hard_links=no
15796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15798 $as_echo "$hard_links" >&6; }
15799 if test "$hard_links" = no; then
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15801 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15814 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15817 allow_undefined_flag=
15818 always_export_symbols=no
15820 archive_expsym_cmds=
15821 compiler_needs_object=no
15822 enable_shared_with_static_runtimes=no
15823 export_dynamic_flag_spec=
15824 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15825 hardcode_automatic=no
15827 hardcode_direct_absolute=no
15828 hardcode_libdir_flag_spec=
15829 hardcode_libdir_flag_spec_ld=
15830 hardcode_libdir_separator=
15831 hardcode_minus_L=no
15832 hardcode_shlibpath_var=unsupported
15834 link_all_deplibs=unknown
15836 module_expsym_cmds=
15837 old_archive_from_new_cmds=
15838 old_archive_from_expsyms_cmds=
15839 thread_safe_flag_spec=
15840 whole_archive_flag_spec=
15841 # include_expsyms should be a list of space-separated symbols to be *always*
15842 # included in the symbol list
15844 # exclude_expsyms can be an extended regexp of symbols to exclude
15845 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15847 # as well as any symbol that contains `d'.
15848 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15850 # platforms (ab)use it in PIC code, but their linkers get confused if
15851 # the symbol is explicitly referenced. Since portable code cannot
15852 # rely on this symbol name, it's probably fine to never include it in
15853 # preloaded symbol tables.
15854 # Exclude shared library initialization/finalization symbols.
15855 extract_expsyms_cmds=
15858 cygwin* | mingw* | pw32* | cegcc*)
15859 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15860 # When not using gcc, we currently assume that we are using
15861 # Microsoft Visual C++.
15862 if test "$GCC" != yes; then
15867 # we just hope/assume this is gcc and not c89 (= MSVC++)
15877 # On some targets, GNU ld is compatible enough with the native linker
15878 # that we're better off using the native interface for both.
15879 lt_use_gnu_ld_interface=no
15880 if test "$with_gnu_ld" = yes; then
15883 # The AIX port of GNU ld has always aspired to compatibility
15884 # with the native linker. However, as the warning in the GNU ld
15885 # block says, versions before 2.19.5* couldn't really create working
15886 # shared libraries, regardless of the interface used.
15887 case `$LD -v 2>&1` in
15888 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15889 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15890 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15892 lt_use_gnu_ld_interface=yes
15897 lt_use_gnu_ld_interface=yes
15902 if test "$lt_use_gnu_ld_interface" = yes; then
15903 # If archive_cmds runs LD, not CC, wlarc should be empty
15906 # Set some defaults for GNU ld with shared library support. These
15907 # are reset later if shared libraries are not supported. Putting them
15908 # here allows them to be overridden if necessary.
15909 runpath_var=LD_RUN_PATH
15910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15911 export_dynamic_flag_spec='${wl}--export-dynamic'
15912 # ancient GNU ld didn't support --whole-archive et. al.
15913 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15914 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15916 whole_archive_flag_spec=
15918 supports_anon_versioning=no
15919 case `$LD -v 2>&1` in
15920 *GNU\ gold*) supports_anon_versioning=yes ;;
15921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15924 *\ 2.11.*) ;; # other 2.11 versions
15925 *) supports_anon_versioning=yes ;;
15928 # See if GNU ld supports shared libraries.
15931 # On AIX/PPC, the GNU linker is very broken
15932 if test "$host_cpu" != ia64; then
15936 *** Warning: the GNU linker, at least up to release 2.19, is reported
15937 *** to be unable to reliably create shared libraries on AIX.
15938 *** Therefore, libtool is disabling shared libraries support. If you
15939 *** really care for shared libraries, you may want to install binutils
15940 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15941 *** You will then need to restart the configuration process.
15950 # see comment about AmigaOS4 .so support
15951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15952 archive_expsym_cmds=''
15955 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)'
15956 hardcode_libdir_flag_spec
='-L$libdir'
15957 hardcode_minus_L
=yes
15963 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15964 allow_undefined_flag
=unsupported
15965 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15966 # support --undefined. This deserves some investigation. FIXME
15967 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15973 cygwin
* | mingw
* | pw32
* | cegcc
*)
15974 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15975 # as there is no search path for DLLs.
15976 hardcode_libdir_flag_spec
='-L$libdir'
15977 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15978 allow_undefined_flag
=unsupported
15979 always_export_symbols
=no
15980 enable_shared_with_static_runtimes
=yes
15981 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15983 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15984 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15985 # If the export-symbols file already is a .def file (1st line
15986 # is EXPORTS), use it as is; otherwise, prepend...
15987 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15988 cp $export_symbols $output_objdir/$soname.def;
15990 echo EXPORTS > $output_objdir/$soname.def;
15991 cat $export_symbols >> $output_objdir/$soname.def;
15993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16000 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 link_all_deplibs
=yes
16006 hardcode_shlibpath_var
=no
16007 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16008 export_dynamic_flag_spec
='${wl}-E'
16009 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16010 # Instead, shared libraries are loaded at an image base (0x10000000 by
16011 # default) and relocated if they conflict, which is a slow very memory
16012 # consuming and fragmenting process. To avoid this, we pick a random,
16013 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16014 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16015 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16016 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'
16019 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16021 if test "$host_os" = linux-dietlibc
; then
16022 case $cc_basename in
16023 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16026 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16027 && test "$tmp_diet" = no
16030 tmp_sharedflag
='-shared'
16031 case $cc_basename,$host_cpu in
16032 pgcc
*) # Portland Group C compiler
16033 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'
16034 tmp_addflag
=' $pic_flag'
16036 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16037 # Portland Group f77 and f90 compilers
16038 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'
16039 tmp_addflag
=' $pic_flag -Mnomain' ;;
16040 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16041 tmp_addflag
=' -i_dynamic' ;;
16042 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16043 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16044 ifc
* | ifort
*) # Intel Fortran compiler
16045 tmp_addflag
=' -nofor_main' ;;
16046 lf95
*) # Lahey Fortran 8.1
16047 whole_archive_flag_spec
=
16048 tmp_sharedflag
='--shared' ;;
16049 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16050 tmp_sharedflag
='-qmkshrobj'
16052 nvcc
*) # Cuda Compiler Driver 2.2
16053 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'
16054 compiler_needs_object
=yes
16057 case `$CC -V 2>&1 | sed 5q` in
16058 *Sun\ C
*) # Sun C 5.9
16059 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'
16060 compiler_needs_object
=yes
16061 tmp_sharedflag
='-G' ;;
16062 *Sun\ F
*) # Sun Fortran 8.3
16063 tmp_sharedflag
='-G' ;;
16065 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 if test "x$supports_anon_versioning" = xyes
; then
16068 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16070 echo "local: *; };" >> $output_objdir/$libname.ver~
16071 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16074 case $cc_basename in
16075 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16076 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16077 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16078 hardcode_libdir_flag_spec
=
16079 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16080 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16081 if test "x$supports_anon_versioning" = xyes
; then
16082 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16084 echo "local: *; };" >> $output_objdir/$libname.ver~
16085 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16095 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16096 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16099 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16100 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16105 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16109 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16110 *** create shared libraries on Solaris systems. Therefore, libtool
16111 *** is disabling shared libraries support. We urge you to upgrade GNU
16112 *** binutils to release 2.9.1 or newer. Another option is to modify
16113 *** your PATH or compiler configuration so that the native linker is
16114 *** used, and then restart.
16117 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16118 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16119 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16125 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16126 case `$LD -v 2>&1` in
16127 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16131 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16132 *** reliably create shared libraries on SCO systems. Therefore, libtool
16133 *** is disabling shared libraries support. We urge you to upgrade GNU
16134 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16135 *** your PATH or compiler configuration so that the native linker is
16136 *** used, and then restart.
16141 # For security reasons, it is highly recommended that you always
16142 # use absolute paths for naming shared libraries, and exclude the
16143 # DT_RUNPATH tag from executables and libraries. But doing so
16144 # requires that you compile everything twice, which is a pain.
16145 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16146 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16147 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16148 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16157 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16159 hardcode_direct
=yes
16160 hardcode_shlibpath_var
=no
16164 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16165 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16166 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16173 if test "$ld_shlibs" = no
; then
16175 hardcode_libdir_flag_spec
=
16176 export_dynamic_flag_spec
=
16177 whole_archive_flag_spec
=
16180 # PORTME fill in a description of your system's linker (not GNU ld)
16183 allow_undefined_flag
=unsupported
16184 always_export_symbols
=yes
16185 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'
16186 # Note: this linker hardcodes the directories in LIBPATH if there
16187 # are no directories specified by -L.
16188 hardcode_minus_L
=yes
16189 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16190 # Neither direct hardcoding nor static linking is supported with a
16192 hardcode_direct
=unsupported
16197 if test "$host_cpu" = ia64
; then
16198 # On IA64, the linker does run time linking by default, so we don't
16199 # have to do anything special.
16200 aix_use_runtimelinking
=no
16201 exp_sym_flag
='-Bexport'
16204 # If we're using GNU nm, then we don't want the "-C" option.
16205 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16206 # Also, AIX nm treats weak defined symbols like other global
16207 # defined symbols, whereas GNU nm marks them as "W".
16208 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16209 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'
16211 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'
16213 aix_use_runtimelinking
=no
16215 # Test if we are trying to use run time linking or normal
16216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16217 # need to do runtime linking.
16218 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16219 for ld_flag
in $LDFLAGS; do
16220 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16221 aix_use_runtimelinking
=yes
16228 exp_sym_flag
='-bexport'
16229 no_entry_flag
='-bnoentry'
16232 # When large executables or shared objects are built, AIX ld can
16233 # have problems creating the table of contents. If linking a library
16234 # or program results in "error TOC overflow" add -mminimal-toc to
16235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16239 hardcode_direct
=yes
16240 hardcode_direct_absolute
=yes
16241 hardcode_libdir_separator
=':'
16242 link_all_deplibs
=yes
16243 file_list_spec
='${wl}-f,'
16245 if test "$GCC" = yes; then
16246 case $host_os in aix4.
[012]|aix4.
[012].
*)
16247 # We only want to do this on AIX 4.2 and lower, the check
16248 # below for broken collect2 doesn't work under 4.3+
16249 collect2name
=`${CC} -print-prog-name=collect2`
16250 if test -f "$collect2name" &&
16251 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16253 # We have reworked collect2
16256 # We have old collect2
16257 hardcode_direct
=unsupported
16258 # It fails to find uninstalled libraries when the uninstalled
16259 # path is not listed in the libpath. Setting hardcode_minus_L
16260 # to unsupported forces relinking
16261 hardcode_minus_L
=yes
16262 hardcode_libdir_flag_spec
='-L$libdir'
16263 hardcode_libdir_separator
=
16267 shared_flag
='-shared'
16268 if test "$aix_use_runtimelinking" = yes; then
16269 shared_flag
="$shared_flag "'${wl}-G'
16273 if test "$host_cpu" = ia64
; then
16274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16275 # chokes on -Wl,-G. The following line is correct:
16278 if test "$aix_use_runtimelinking" = yes; then
16279 shared_flag
='${wl}-G'
16281 shared_flag
='${wl}-bM:SRE'
16286 export_dynamic_flag_spec
='${wl}-bexpall'
16287 # It seems that -bexpall does not export symbols beginning with
16288 # underscore (_), so it is better to generate a list of symbols to export.
16289 always_export_symbols
=yes
16290 if test "$aix_use_runtimelinking" = yes; then
16291 # Warning - without using the other runtime loading flags (-brtl),
16292 # -berok will link without error, but may produce a broken library.
16293 allow_undefined_flag
='-berok'
16294 # Determine the default libpath from the value encoded in an
16295 # empty executable.
16296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16307 if ac_fn_c_try_link
"$LINENO"; then :
16309 lt_aix_libpath_sed
='
16310 /Import File Strings/,/^$/ {
16316 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16317 # Check for a 64-bit object if we didn't find anything.
16318 if test -z "$aix_libpath"; then
16319 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16322 rm -f core conftest.err conftest.
$ac_objext \
16323 conftest
$ac_exeext conftest.
$ac_ext
16324 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16326 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16327 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"
16329 if test "$host_cpu" = ia64
; then
16330 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16331 allow_undefined_flag
="-z nodefs"
16332 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"
16334 # Determine the default libpath from the value encoded in an
16335 # empty executable.
16336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h. */
16347 if ac_fn_c_try_link
"$LINENO"; then :
16349 lt_aix_libpath_sed
='
16350 /Import File Strings/,/^$/ {
16356 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16357 # Check for a 64-bit object if we didn't find anything.
16358 if test -z "$aix_libpath"; then
16359 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16362 rm -f core conftest.err conftest.
$ac_objext \
16363 conftest
$ac_exeext conftest.
$ac_ext
16364 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16366 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16367 # Warning - without using the other run time loading flags,
16368 # -berok will link without error, but may produce a broken library.
16369 no_undefined_flag
=' ${wl}-bernotok'
16370 allow_undefined_flag
=' ${wl}-berok'
16371 if test "$with_gnu_ld" = yes; then
16372 # We only use this code for GNU lds that support --whole-archive.
16373 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16375 # Exported symbols can be pulled into shared objects from archives
16376 whole_archive_flag_spec
='$convenience'
16378 archive_cmds_need_lc
=yes
16379 # This is similar to how AIX traditionally builds its shared libraries.
16380 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'
16388 # see comment about AmigaOS4 .so support
16389 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16390 archive_expsym_cmds
=''
16393 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)'
16394 hardcode_libdir_flag_spec
='-L$libdir'
16395 hardcode_minus_L
=yes
16401 export_dynamic_flag_spec
=-rdynamic
16404 cygwin
* | mingw
* | pw32
* | cegcc
*)
16405 # When not using gcc, we currently assume that we are using
16406 # Microsoft Visual C++.
16407 # hardcode_libdir_flag_spec is actually meaningless, as there is
16408 # no search path for DLLs.
16409 hardcode_libdir_flag_spec
=' '
16410 allow_undefined_flag
=unsupported
16411 # Tell ltmain to make .lib files, not .a files.
16413 # Tell ltmain to make .dll files, not .so files.
16415 # FIXME: Setting linknames here is a bad hack.
16416 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16417 # The linker will automatically build a .lib file if we build a DLL.
16418 old_archive_from_new_cmds
='true'
16419 # FIXME: Should let the user specify the lib program.
16420 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16421 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16422 enable_shared_with_static_runtimes
=yes
16425 darwin
* | rhapsody
*)
16428 archive_cmds_need_lc
=no
16430 hardcode_automatic
=yes
16431 hardcode_shlibpath_var
=unsupported
16432 if test "$lt_cv_ld_force_load" = "yes"; then
16433 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\"`'
16435 whole_archive_flag_spec
=''
16437 link_all_deplibs
=yes
16438 allow_undefined_flag
="$_lt_dar_allow_undefined"
16439 case $cc_basename in
16440 ifort
*) _lt_dar_can_shared
=yes ;;
16441 *) _lt_dar_can_shared
=$GCC ;;
16443 if test "$_lt_dar_can_shared" = "yes"; then
16444 output_verbose_link_cmd
=func_echo_all
16445 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16446 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16447 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}"
16448 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}"
16457 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458 hardcode_libdir_flag_spec
='-L$libdir'
16459 hardcode_shlibpath_var
=no
16462 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16463 # support. Future versions do this automatically, but an explicit c++rt0.o
16464 # does not break anything, and helps significantly (at the cost of a little
16467 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16468 hardcode_libdir_flag_spec
='-R$libdir'
16469 hardcode_direct
=yes
16470 hardcode_shlibpath_var
=no
16473 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16475 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16476 hardcode_direct
=yes
16477 hardcode_minus_L
=yes
16478 hardcode_shlibpath_var
=no
16481 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16482 freebsd
* | dragonfly
*)
16483 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16484 hardcode_libdir_flag_spec
='-R$libdir'
16485 hardcode_direct
=yes
16486 hardcode_shlibpath_var
=no
16490 if test "$GCC" = yes; then
16491 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'
16493 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'
16495 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16496 hardcode_libdir_separator
=:
16497 hardcode_direct
=yes
16499 # hardcode_minus_L: Not really in the search PATH,
16500 # but as the default location of the library.
16501 hardcode_minus_L
=yes
16502 export_dynamic_flag_spec
='${wl}-E'
16506 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16507 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16509 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16511 if test "$with_gnu_ld" = no
; then
16512 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16513 hardcode_libdir_flag_spec_ld
='+b $libdir'
16514 hardcode_libdir_separator
=:
16515 hardcode_direct
=yes
16516 hardcode_direct_absolute
=yes
16517 export_dynamic_flag_spec
='${wl}-E'
16518 # hardcode_minus_L: Not really in the search PATH,
16519 # but as the default location of the library.
16520 hardcode_minus_L
=yes
16525 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16528 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16531 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16534 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16540 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16547 # Older versions of the 11.00 compiler do not understand -b yet
16548 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16550 $as_echo_n "checking if $CC understands -b... " >&6; }
16551 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16552 $as_echo_n "(cached) " >&6
16554 lt_cv_prog_compiler__b
=no
16555 save_LDFLAGS
="$LDFLAGS"
16556 LDFLAGS
="$LDFLAGS -b"
16557 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16558 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16559 # The linker can only warn and ignore the option if not recognized
16560 # So say no if there are warnings
16561 if test -s conftest.err
; then
16562 # Append any errors to the config.log.
16563 cat conftest.err
1>&5
16564 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16565 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16566 if diff conftest.exp conftest.er2
>/dev
/null
; then
16567 lt_cv_prog_compiler__b
=yes
16570 lt_cv_prog_compiler__b
=yes
16574 LDFLAGS
="$save_LDFLAGS"
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16578 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16580 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16581 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16583 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16589 if test "$with_gnu_ld" = no
; then
16590 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16591 hardcode_libdir_separator
=:
16596 hardcode_shlibpath_var
=no
16599 hardcode_direct
=yes
16600 hardcode_direct_absolute
=yes
16601 export_dynamic_flag_spec
='${wl}-E'
16603 # hardcode_minus_L: Not really in the search PATH,
16604 # but as the default location of the library.
16605 hardcode_minus_L
=yes
16611 irix5
* | irix6
* | nonstopux
*)
16612 if test "$GCC" = yes; then
16613 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'
16614 # Try to use the -exported_symbol ld option, if it does not
16615 # work, assume that -exports_file does not work either and
16616 # implicitly export all symbols.
16617 save_LDFLAGS
="$LDFLAGS"
16618 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h. */
16623 if ac_fn_c_try_link
"$LINENO"; then :
16624 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'
16627 rm -f core conftest.err conftest.
$ac_objext \
16628 conftest
$ac_exeext conftest.
$ac_ext
16629 LDFLAGS
="$save_LDFLAGS"
16631 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'
16632 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'
16634 archive_cmds_need_lc
='no'
16635 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16636 hardcode_libdir_separator
=:
16638 link_all_deplibs
=yes
16642 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16643 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16645 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16647 hardcode_libdir_flag_spec
='-R$libdir'
16648 hardcode_direct
=yes
16649 hardcode_shlibpath_var
=no
16653 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_direct
=yes
16655 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16656 hardcode_libdir_separator
=:
16657 hardcode_shlibpath_var
=no
16664 if test -f /usr
/libexec
/ld.so
; then
16665 hardcode_direct
=yes
16666 hardcode_shlibpath_var
=no
16667 hardcode_direct_absolute
=yes
16668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16669 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16670 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16671 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16672 export_dynamic_flag_spec
='${wl}-E'
16675 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16676 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16677 hardcode_libdir_flag_spec
='-R$libdir'
16680 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16681 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16691 hardcode_libdir_flag_spec
='-L$libdir'
16692 hardcode_minus_L
=yes
16693 allow_undefined_flag
=unsupported
16694 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'
16695 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16699 if test "$GCC" = yes; then
16700 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16701 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'
16703 allow_undefined_flag
=' -expect_unresolved \*'
16704 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'
16706 archive_cmds_need_lc
='no'
16707 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16708 hardcode_libdir_separator
=:
16711 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16712 if test "$GCC" = yes; then
16713 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16714 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'
16715 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16717 allow_undefined_flag
=' -expect_unresolved \*'
16718 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'
16719 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~
16720 $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'
16722 # Both c and cxx compiler support -rpath directly
16723 hardcode_libdir_flag_spec
='-rpath $libdir'
16725 archive_cmds_need_lc
='no'
16726 hardcode_libdir_separator
=:
16730 no_undefined_flag
=' -z defs'
16731 if test "$GCC" = yes; then
16733 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16734 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16735 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16737 case `$CC -V 2>&1` in
16740 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16741 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16746 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16748 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16752 hardcode_libdir_flag_spec
='-R$libdir'
16753 hardcode_shlibpath_var
=no
16755 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16757 # The compiler driver will combine and reorder linker options,
16758 # but understands `-z linker_flag'. GCC discards it without `$wl',
16759 # but is careful enough not to reorder.
16760 # Supported since Solaris 2.6 (maybe 2.5.1?)
16761 if test "$GCC" = yes; then
16762 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16764 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16768 link_all_deplibs
=yes
16772 if test "x$host_vendor" = xsequent
; then
16773 # Use $CC to link under sequent, because it throws in some extra .o
16774 # files that make .init and .fini sections work.
16775 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16777 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16779 hardcode_libdir_flag_spec
='-L$libdir'
16780 hardcode_direct
=yes
16781 hardcode_minus_L
=yes
16782 hardcode_shlibpath_var
=no
16786 case $host_vendor in
16788 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789 hardcode_direct
=yes # is this really true???
16792 ## LD is ld it makes a PLAMLIB
16793 ## CC just makes a GrossModule.
16794 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16795 reload_cmds
='$CC -r -o $output$reload_objs'
16799 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16800 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16803 runpath_var
='LD_RUN_PATH'
16804 hardcode_shlibpath_var
=no
16808 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16809 hardcode_shlibpath_var
=no
16810 export_dynamic_flag_spec
='-Bexport'
16814 if test -d /usr
/nec
; then
16815 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16816 hardcode_shlibpath_var
=no
16817 runpath_var
=LD_RUN_PATH
16818 hardcode_runpath_var
=yes
16823 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16824 no_undefined_flag
='${wl}-z,text'
16825 archive_cmds_need_lc
=no
16826 hardcode_shlibpath_var
=no
16827 runpath_var
='LD_RUN_PATH'
16829 if test "$GCC" = yes; then
16830 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16831 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16833 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16834 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16838 sysv5
* | sco3.2v5
* | sco5v6
*)
16839 # Note: We can NOT use -z defs as we might desire, because we do not
16840 # link with -lc, and that would cause any symbols used from libc to
16841 # always be unresolved, which means just about no library would
16842 # ever link correctly. If we're not using GNU ld we use -z text
16843 # though, which does catch some bad symbols but isn't as heavy-handed
16845 no_undefined_flag
='${wl}-z,text'
16846 allow_undefined_flag
='${wl}-z,nodefs'
16847 archive_cmds_need_lc
=no
16848 hardcode_shlibpath_var
=no
16849 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16850 hardcode_libdir_separator
=':'
16851 link_all_deplibs
=yes
16852 export_dynamic_flag_spec
='${wl}-Bexport'
16853 runpath_var
='LD_RUN_PATH'
16855 if test "$GCC" = yes; then
16856 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16857 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16859 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16860 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16865 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866 hardcode_libdir_flag_spec
='-L$libdir'
16867 hardcode_shlibpath_var
=no
16875 if test x
$host_vendor = xsni
; then
16877 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16878 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16885 $as_echo "$ld_shlibs" >&6; }
16886 test "$ld_shlibs" = no
&& can_build_shared
=no
16888 with_gnu_ld
=$with_gnu_ld
16905 # Do we need to explicitly link libc?
16907 case "x$archive_cmds_need_lc" in
16909 # Assume -lc should be added
16910 archive_cmds_need_lc
=yes
16912 if test "$enable_shared" = yes && test "$GCC" = yes; then
16913 case $archive_cmds in
16915 # FIXME: we may have to deal with multi-command sequences.
16918 # Test whether the compiler implicitly links with -lc since on some
16919 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16920 # to ld, don't add -lc before -lgcc.
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16922 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16923 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16924 $as_echo_n "(cached) " >&6
16927 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16930 (eval $ac_compile) 2>&5
16932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16933 test $ac_status = 0; } 2>conftest.err
; then
16936 libobjs
=conftest.
$ac_objext
16938 wl
=$lt_prog_compiler_wl
16939 pic_flag
=$lt_prog_compiler_pic
16945 lt_save_allow_undefined_flag
=$allow_undefined_flag
16946 allow_undefined_flag
=
16947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16948 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16951 test $ac_status = 0; }
16953 lt_cv_archive_cmds_need_lc
=no
16955 lt_cv_archive_cmds_need_lc
=yes
16957 allow_undefined_flag
=$lt_save_allow_undefined_flag
16959 cat conftest.err
1>&5
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16965 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16966 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17130 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17132 if test "$GCC" = yes; then
17134 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17135 *) lt_awk_arg
="/^libraries:/" ;;
17138 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17139 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17141 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17142 case $lt_search_path_spec in
17144 # if the path contains ";" then we assume it to be the separator
17145 # otherwise default to the standard path separator (i.e. ":") - it is
17146 # assumed that no part of a normal pathname contains ";" but that should
17147 # okay in the real world where ";" in dirpaths is itself problematic.
17148 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17151 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17154 # Ok, now we have the path, separated by spaces, we can step through it
17155 # and add multilib dir if necessary.
17156 lt_tmp_lt_search_path_spec
=
17157 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17158 for lt_sys_path
in $lt_search_path_spec; do
17159 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17160 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17162 test -d "$lt_sys_path" && \
17163 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17166 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17167 BEGIN {RS=" "; FS="/|\n";} {
17170 for (lt_i = NF; lt_i > 0; lt_i--) {
17171 if ($lt_i != "" && $lt_i != ".") {
17172 if ($lt_i == "..") {
17175 if (lt_count == 0) {
17176 lt_foo="/" $lt_i lt_foo;
17183 if (lt_foo != "") { lt_freq[lt_foo]++; }
17184 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17186 # AWK program above erroneously prepends '/' to C:/dos/paths
17189 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17190 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17192 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17194 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17196 library_names_spec
=
17197 libname_spec
='lib$name'
17201 postuninstall_cmds
=
17205 shlibpath_overrides_runpath
=unknown
17207 dynamic_linker
="$host_os ld.so"
17208 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17209 need_lib_prefix
=unknown
17210 hardcode_into_libs
=no
17212 # when you set need_version to no, make sure it does not cause -set_version
17213 # flags to be left without arguments
17214 need_version
=unknown
17219 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17220 shlibpath_var
=LIBPATH
17222 # AIX 3 has no versioning support, so we append a major version to the name.
17223 soname_spec
='${libname}${release}${shared_ext}$major'
17230 hardcode_into_libs
=yes
17231 if test "$host_cpu" = ia64
; then
17232 # AIX 5 supports IA64
17233 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17234 shlibpath_var
=LD_LIBRARY_PATH
17236 # With GCC up to 2.95.x, collect2 would create an import file
17237 # for dependence libraries. The import file would start with
17238 # the line `#! .'. This would cause the generated library to
17239 # depend on `.', always an invalid library. This was fixed in
17240 # development snapshots of GCC prior to 3.0.
17242 aix4 | aix4.
[01] | aix4.
[01].
*)
17243 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17245 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17248 can_build_shared
=no
17252 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17253 # soname into executable. Probably we can add versioning support to
17254 # collect2, so additional links can be useful in future.
17255 if test "$aix_use_runtimelinking" = yes; then
17256 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17257 # instead of lib<name>.a to let people know that these are not
17258 # typical AIX shared libraries.
17259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261 # We preserve .a as extension for shared libraries through AIX4.2
17262 # and later when we are not doing run time linking.
17263 library_names_spec
='${libname}${release}.a $libname.a'
17264 soname_spec
='${libname}${release}${shared_ext}$major'
17266 shlibpath_var
=LIBPATH
17273 # Since July 2007 AmigaOS4 officially supports .so libraries.
17274 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 library_names_spec
='$libname.ixlibrary $libname.a'
17279 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17280 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'
17286 library_names_spec
='${libname}${shared_ext}'
17287 dynamic_linker
="$host_os ld.so"
17288 shlibpath_var
=LIBRARY_PATH
17294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec
='${libname}${release}${shared_ext}$major'
17296 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17297 shlibpath_var
=LD_LIBRARY_PATH
17298 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17299 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17300 # the default ld.so.conf also contains /usr/contrib/lib and
17301 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17302 # libtool to hard-code these into programs
17305 cygwin
* | mingw
* | pw32
* | cegcc
*)
17306 version_type
=windows
17311 case $GCC,$host_os in
17312 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17313 library_names_spec
='$libname.dll.a'
17314 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17315 postinstall_cmds
='base_file=`basename \${file}`~
17316 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17317 dldir=$destdir/`dirname \$dlpath`~
17318 test -d \$dldir || mkdir -p \$dldir~
17319 $install_prog $dir/$dlname \$dldir/$dlname~
17320 chmod a+x \$dldir/$dlname~
17321 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17322 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17324 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17325 dlpath=$dir/\$dldll~
17327 shlibpath_overrides_runpath
=yes
17331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17332 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17334 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17337 # MinGW DLLs use traditional 'lib' prefix
17338 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17341 # pw32 DLLs use 'pw' prefix rather than 'lib'
17342 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17348 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17351 dynamic_linker
='Win32 ld.exe'
17352 # FIXME: first we should search . and the directory the executable is in
17356 darwin
* | rhapsody
*)
17357 dynamic_linker
="$host_os dyld"
17358 version_type
=darwin
17361 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17362 soname_spec
='${libname}${release}${major}$shared_ext'
17363 shlibpath_overrides_runpath
=yes
17364 shlibpath_var
=DYLD_LIBRARY_PATH
17365 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17367 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17368 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
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'
17377 shlibpath_var
=LD_LIBRARY_PATH
17380 freebsd
* | dragonfly
*)
17381 # DragonFly does not have aout. When/if they implement a new
17382 # versioning mechanism, adjust this.
17383 if test -x /usr
/bin
/objformat
; then
17384 objformat
=`/usr/bin/objformat`
17387 freebsd
[23].
*) objformat
=aout
;;
17388 *) objformat
=elf
;;
17391 version_type
=freebsd-
$objformat
17392 case $version_type in
17394 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17399 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17403 shlibpath_var
=LD_LIBRARY_PATH
17406 shlibpath_overrides_runpath
=yes
17408 freebsd3.
[01]* | freebsdelf3.
[01]*)
17409 shlibpath_overrides_runpath
=yes
17410 hardcode_into_libs
=yes
17412 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17413 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17414 shlibpath_overrides_runpath
=no
17415 hardcode_into_libs
=yes
17417 *) # from 4.6 on, and DragonFly
17418 shlibpath_overrides_runpath
=yes
17419 hardcode_into_libs
=yes
17428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17429 soname_spec
='${libname}${release}${shared_ext}$major'
17430 shlibpath_var
=LD_LIBRARY_PATH
17431 hardcode_into_libs
=yes
17438 dynamic_linker
="$host_os runtime_loader"
17439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17440 soname_spec
='${libname}${release}${shared_ext}$major'
17441 shlibpath_var
=LIBRARY_PATH
17442 shlibpath_overrides_runpath
=yes
17443 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17444 hardcode_into_libs
=yes
17447 hpux9
* | hpux10
* | hpux11
*)
17448 # Give a soname corresponding to the major version so that dld.sl refuses to
17449 # link against other versions.
17456 hardcode_into_libs
=yes
17457 dynamic_linker
="$host_os dld.so"
17458 shlibpath_var
=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461 soname_spec
='${libname}${release}${shared_ext}$major'
17462 if test "X$HPUX_IA64_MODE" = X32
; then
17463 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17465 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17467 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17471 hardcode_into_libs
=yes
17472 dynamic_linker
="$host_os dld.sl"
17473 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17474 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476 soname_spec
='${libname}${release}${shared_ext}$major'
17477 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17478 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17482 dynamic_linker
="$host_os dld.sl"
17483 shlibpath_var
=SHLIB_PATH
17484 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486 soname_spec
='${libname}${release}${shared_ext}$major'
17489 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17490 postinstall_cmds
='chmod 555 $lib'
17491 # or fails outright, so override atomically:
17492 install_override_mode
=555
17499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17500 soname_spec
='${libname}${release}${shared_ext}$major'
17501 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17502 shlibpath_var
=LD_LIBRARY_PATH
17503 shlibpath_overrides_runpath
=no
17504 hardcode_into_libs
=yes
17507 irix5
* | irix6
* | nonstopux
*)
17509 nonstopux
*) version_type
=nonstopux
;;
17511 if test "$lt_cv_prog_gnu_ld" = yes; then
17519 soname_spec
='${libname}${release}${shared_ext}$major'
17520 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17522 irix5
* | nonstopux
*)
17523 libsuff
= shlibsuff
=
17526 case $LD in # libtool.m4 will add one of these switches to LD
17527 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17528 libsuff
= shlibsuff
= libmagic
=32-bit;;
17529 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17530 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17531 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17532 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17533 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17537 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17538 shlibpath_overrides_runpath
=no
17539 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17540 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17541 hardcode_into_libs
=yes
17544 # No shared lib support for Linux oldld, aout, or coff.
17545 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17549 # This must be Linux ELF.
17550 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17555 soname_spec
='${libname}${release}${shared_ext}$major'
17556 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17557 shlibpath_var
=LD_LIBRARY_PATH
17558 shlibpath_overrides_runpath
=no
17560 # Some binutils ld are patched to set DT_RUNPATH
17561 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17562 $as_echo_n "(cached) " >&6
17564 lt_cv_shlibpath_overrides_runpath
=no
17565 save_LDFLAGS
=$LDFLAGS
17566 save_libdir
=$libdir
17567 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17568 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17580 if ac_fn_c_try_link
"$LINENO"; then :
17581 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17582 lt_cv_shlibpath_overrides_runpath
=yes
17585 rm -f core conftest.err conftest.
$ac_objext \
17586 conftest
$ac_exeext conftest.
$ac_ext
17587 LDFLAGS
=$save_LDFLAGS
17588 libdir
=$save_libdir
17592 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17594 # This implies no fast_install, which is unacceptable.
17595 # Some rework will be needed to allow for fast_install
17596 # before this can be enabled.
17597 hardcode_into_libs
=yes
17599 # Append ld.so.conf contents to the search path
17600 if test -f /etc
/ld.so.conf
; then
17601 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' ' '`
17602 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17605 # We used to test for /lib/ld.so.1 and disable shared libraries on
17606 # powerpc, because MkLinux only supported shared libraries with the
17607 # GNU dynamic linker. Since this was broken with cross compilers,
17608 # most powerpc-linux boxes support dynamic linking these days and
17609 # people can always --disable-shared, the test was removed, and we
17610 # assume the GNU/Linux dynamic linker is in use.
17611 dynamic_linker
='GNU/Linux ld.so'
17618 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17620 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17621 dynamic_linker
='NetBSD (a.out) ld.so'
17623 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17624 soname_spec
='${libname}${release}${shared_ext}$major'
17625 dynamic_linker
='NetBSD ld.elf_so'
17627 shlibpath_var
=LD_LIBRARY_PATH
17628 shlibpath_overrides_runpath
=yes
17629 hardcode_into_libs
=yes
17634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 shlibpath_var
=LD_LIBRARY_PATH
17636 shlibpath_overrides_runpath
=yes
17643 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644 soname_spec
='${libname}${release}${shared_ext}$major'
17645 shlibpath_var
=LD_LIBRARY_PATH
17646 shlibpath_overrides_runpath
=no
17647 hardcode_into_libs
=yes
17648 dynamic_linker
='ldqnx.so'
17653 sys_lib_dlsearch_path_spec
="/usr/lib"
17655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17657 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17658 *) need_version
=no
;;
17660 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17661 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17662 shlibpath_var
=LD_LIBRARY_PATH
17663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17665 openbsd2.
[89] | openbsd2.
[89].
*)
17666 shlibpath_overrides_runpath
=no
17669 shlibpath_overrides_runpath
=yes
17673 shlibpath_overrides_runpath
=yes
17678 libname_spec
='$name'
17681 library_names_spec
='$libname${shared_ext} $libname.a'
17682 dynamic_linker
='OS/2 ld.exe'
17683 shlibpath_var
=LIBPATH
17686 osf3
* | osf4
* | osf5
*)
17690 soname_spec
='${libname}${release}${shared_ext}$major'
17691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17692 shlibpath_var
=LD_LIBRARY_PATH
17693 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17694 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17705 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706 soname_spec
='${libname}${release}${shared_ext}$major'
17707 shlibpath_var
=LD_LIBRARY_PATH
17708 shlibpath_overrides_runpath
=yes
17709 hardcode_into_libs
=yes
17710 # ldd complains unless libraries are executable
17711 postinstall_cmds
='chmod +x $lib'
17716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17717 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17718 shlibpath_var
=LD_LIBRARY_PATH
17719 shlibpath_overrides_runpath
=yes
17720 if test "$with_gnu_ld" = yes; then
17728 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729 soname_spec
='${libname}${release}${shared_ext}$major'
17730 shlibpath_var
=LD_LIBRARY_PATH
17731 case $host_vendor in
17733 shlibpath_overrides_runpath
=no
17735 runpath_var
=LD_RUN_PATH
17743 shlibpath_overrides_runpath
=no
17744 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17750 if test -d /usr
/nec
;then
17752 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17753 soname_spec
='$libname${shared_ext}.$major'
17754 shlibpath_var
=LD_LIBRARY_PATH
17758 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17759 version_type
=freebsd-elf
17762 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17763 soname_spec
='${libname}${release}${shared_ext}$major'
17764 shlibpath_var
=LD_LIBRARY_PATH
17765 shlibpath_overrides_runpath
=yes
17766 hardcode_into_libs
=yes
17767 if test "$with_gnu_ld" = yes; then
17768 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17770 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17773 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17777 sys_lib_dlsearch_path_spec
='/usr/lib'
17781 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17785 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17786 shlibpath_var
=LD_LIBRARY_PATH
17787 shlibpath_overrides_runpath
=no
17788 hardcode_into_libs
=yes
17793 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794 soname_spec
='${libname}${release}${shared_ext}$major'
17795 shlibpath_var
=LD_LIBRARY_PATH
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17803 $as_echo "$dynamic_linker" >&6; }
17804 test "$dynamic_linker" = no
&& can_build_shared
=no
17806 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17807 if test "$GCC" = yes; then
17808 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17811 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17812 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17814 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17815 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17910 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17912 if test -n "$hardcode_libdir_flag_spec" ||
17913 test -n "$runpath_var" ||
17914 test "X$hardcode_automatic" = "Xyes" ; then
17916 # We can hardcode non-existent directories.
17917 if test "$hardcode_direct" != no
&&
17918 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17919 # have to relink, otherwise we might link with an installed library
17920 # when we should be linking with a yet-to-be-installed one
17921 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17922 test "$hardcode_minus_L" != no
; then
17923 # Linking always hardcodes the temporary library directory.
17924 hardcode_action
=relink
17926 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17927 hardcode_action
=immediate
17930 # We cannot hardcode anything, or else we can only hardcode existing
17932 hardcode_action
=unsupported
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17935 $as_echo "$hardcode_action" >&6; }
17937 if test "$hardcode_action" = relink ||
17938 test "$inherit_rpath" = yes; then
17939 # Fast installation is not supported
17940 enable_fast_install
=no
17941 elif test "$shlibpath_overrides_runpath" = yes ||
17942 test "$enable_shared" = no
; then
17943 # Fast installation is not necessary
17944 enable_fast_install
=needless
17952 if test "x$enable_dlopen" != xyes
; then
17953 enable_dlopen
=unknown
17954 enable_dlopen_self
=unknown
17955 enable_dlopen_self_static
=unknown
17962 lt_cv_dlopen
="load_add_on"
17964 lt_cv_dlopen_self
=yes
17967 mingw
* | pw32
* | cegcc
*)
17968 lt_cv_dlopen
="LoadLibrary"
17973 lt_cv_dlopen
="dlopen"
17978 # if libdl is installed we need to link against it
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17980 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17982 $as_echo_n "(cached) " >&6
17984 ac_check_lib_save_LIBS
=$LIBS
17986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17989 /* Override any GCC internal prototype to avoid an error.
17990 Use char because int might match the return type of a GCC
17991 builtin and then its argument prototype would still apply. */
18004 if ac_fn_c_try_link
"$LINENO"; then :
18005 ac_cv_lib_dl_dlopen
=yes
18007 ac_cv_lib_dl_dlopen
=no
18009 rm -f core conftest.err conftest.
$ac_objext \
18010 conftest
$ac_exeext conftest.
$ac_ext
18011 LIBS
=$ac_check_lib_save_LIBS
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18014 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18015 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18016 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18019 lt_cv_dlopen
="dyld"
18021 lt_cv_dlopen_self
=yes
18028 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18029 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18030 lt_cv_dlopen
="shl_load"
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18033 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18034 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18035 $as_echo_n "(cached) " >&6
18037 ac_check_lib_save_LIBS
=$LIBS
18039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18052 return shl_load ();
18057 if ac_fn_c_try_link
"$LINENO"; then :
18058 ac_cv_lib_dld_shl_load
=yes
18060 ac_cv_lib_dld_shl_load
=no
18062 rm -f core conftest.err conftest.
$ac_objext \
18063 conftest
$ac_exeext conftest.
$ac_ext
18064 LIBS
=$ac_check_lib_save_LIBS
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18067 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18068 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18069 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18071 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18072 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18073 lt_cv_dlopen
="dlopen"
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18076 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18077 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18078 $as_echo_n "(cached) " >&6
18080 ac_check_lib_save_LIBS
=$LIBS
18082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18085 /* Override any GCC internal prototype to avoid an error.
18086 Use char because int might match the return type of a GCC
18087 builtin and then its argument prototype would still apply. */
18100 if ac_fn_c_try_link
"$LINENO"; then :
18101 ac_cv_lib_dl_dlopen
=yes
18103 ac_cv_lib_dl_dlopen
=no
18105 rm -f core conftest.err conftest.
$ac_objext \
18106 conftest
$ac_exeext conftest.
$ac_ext
18107 LIBS
=$ac_check_lib_save_LIBS
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18110 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18111 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18112 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18115 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18116 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18117 $as_echo_n "(cached) " >&6
18119 ac_check_lib_save_LIBS
=$LIBS
18120 LIBS
="-lsvld $LIBS"
18121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h. */
18124 /* Override any GCC internal prototype to avoid an error.
18125 Use char because int might match the return type of a GCC
18126 builtin and then its argument prototype would still apply. */
18139 if ac_fn_c_try_link
"$LINENO"; then :
18140 ac_cv_lib_svld_dlopen
=yes
18142 ac_cv_lib_svld_dlopen
=no
18144 rm -f core conftest.err conftest.
$ac_objext \
18145 conftest
$ac_exeext conftest.
$ac_ext
18146 LIBS
=$ac_check_lib_save_LIBS
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18149 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18150 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18151 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18154 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18155 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18156 $as_echo_n "(cached) " >&6
18158 ac_check_lib_save_LIBS
=$LIBS
18160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18161 /* end confdefs.h. */
18163 /* Override any GCC internal prototype to avoid an error.
18164 Use char because int might match the return type of a GCC
18165 builtin and then its argument prototype would still apply. */
18173 return dld_link ();
18178 if ac_fn_c_try_link
"$LINENO"; then :
18179 ac_cv_lib_dld_dld_link
=yes
18181 ac_cv_lib_dld_dld_link
=no
18183 rm -f core conftest.err conftest.
$ac_objext \
18184 conftest
$ac_exeext conftest.
$ac_ext
18185 LIBS
=$ac_check_lib_save_LIBS
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18188 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18189 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18190 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18211 if test "x$lt_cv_dlopen" != xno
; then
18217 case $lt_cv_dlopen in
18219 save_CPPFLAGS
="$CPPFLAGS"
18220 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18222 save_LDFLAGS
="$LDFLAGS"
18223 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18226 LIBS
="$lt_cv_dlopen_libs $LIBS"
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18229 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18230 if test "${lt_cv_dlopen_self+set}" = set; then :
18231 $as_echo_n "(cached) " >&6
18233 if test "$cross_compiling" = yes; then :
18234 lt_cv_dlopen_self
=cross
18236 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18237 lt_status
=$lt_dlunknown
18238 cat > conftest.
$ac_ext <<_LT_EOF
18239 #line 18239 "configure"
18240 #include "confdefs.h"
18249 # define LT_DLGLOBAL RTLD_GLOBAL
18252 # define LT_DLGLOBAL DL_GLOBAL
18254 # define LT_DLGLOBAL 0
18258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18259 find out it does not work in some platform. */
18260 #ifndef LT_DLLAZY_OR_NOW
18262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18265 # define LT_DLLAZY_OR_NOW DL_LAZY
18268 # define LT_DLLAZY_OR_NOW RTLD_NOW
18271 # define LT_DLLAZY_OR_NOW DL_NOW
18273 # define LT_DLLAZY_OR_NOW 0
18280 /* When -fvisbility=hidden is used, assume the code has been annotated
18281 correspondingly for the symbols needed. */
18282 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18283 void fnord () __attribute__((visibility("default")));
18286 void fnord () { int i=42; }
18289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18290 int status = $lt_dlunknown;
18294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18298 else puts (dlerror ());
18300 /* dlclose (self); */
18308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18309 (eval $ac_link) 2>&5
18311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18312 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18313 (.
/conftest
; exit; ) >&5 2>/dev
/null
18315 case x
$lt_status in
18316 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18317 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18318 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18321 # compilation failed
18322 lt_cv_dlopen_self
=no
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18330 $as_echo "$lt_cv_dlopen_self" >&6; }
18332 if test "x$lt_cv_dlopen_self" = xyes
; then
18333 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18335 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18336 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18337 $as_echo_n "(cached) " >&6
18339 if test "$cross_compiling" = yes; then :
18340 lt_cv_dlopen_self_static
=cross
18342 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18343 lt_status
=$lt_dlunknown
18344 cat > conftest.
$ac_ext <<_LT_EOF
18345 #line 18345 "configure"
18346 #include "confdefs.h"
18355 # define LT_DLGLOBAL RTLD_GLOBAL
18358 # define LT_DLGLOBAL DL_GLOBAL
18360 # define LT_DLGLOBAL 0
18364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18365 find out it does not work in some platform. */
18366 #ifndef LT_DLLAZY_OR_NOW
18368 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18371 # define LT_DLLAZY_OR_NOW DL_LAZY
18374 # define LT_DLLAZY_OR_NOW RTLD_NOW
18377 # define LT_DLLAZY_OR_NOW DL_NOW
18379 # define LT_DLLAZY_OR_NOW 0
18386 /* When -fvisbility=hidden is used, assume the code has been annotated
18387 correspondingly for the symbols needed. */
18388 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18389 void fnord () __attribute__((visibility("default")));
18392 void fnord () { int i=42; }
18395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18396 int status = $lt_dlunknown;
18400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18403 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18404 else puts (dlerror ());
18406 /* dlclose (self); */
18414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18415 (eval $ac_link) 2>&5
18417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18418 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18419 (.
/conftest
; exit; ) >&5 2>/dev
/null
18421 case x
$lt_status in
18422 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18423 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18424 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18427 # compilation failed
18428 lt_cv_dlopen_self_static
=no
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18436 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18439 CPPFLAGS
="$save_CPPFLAGS"
18440 LDFLAGS
="$save_LDFLAGS"
18445 case $lt_cv_dlopen_self in
18446 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18447 *) enable_dlopen_self
=unknown
;;
18450 case $lt_cv_dlopen_self_static in
18451 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18452 *) enable_dlopen_self_static
=unknown
;;
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18475 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18476 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18477 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18478 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18480 $as_echo "yes" >&6; }
18482 # FIXME - insert some real tests, host_os isn't really good enough
18485 if test -n "$STRIP" ; then
18486 striplib
="$STRIP -x"
18487 old_striplib
="$STRIP -S"
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18489 $as_echo "yes" >&6; }
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492 $as_echo "no" >&6; }
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18497 $as_echo "no" >&6; }
18513 # Report which library types will actually be built
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18515 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18517 $as_echo "$can_build_shared" >&6; }
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18520 $as_echo_n "checking whether to build shared libraries... " >&6; }
18521 test "$can_build_shared" = "no" && enable_shared
=no
18523 # On AIX, shared libraries and static libraries use the same namespace, and
18524 # are all built from PIC.
18527 test "$enable_shared" = yes && enable_static
=no
18528 if test -n "$RANLIB"; then
18529 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18530 postinstall_cmds
='$RANLIB $lib'
18535 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18536 test "$enable_shared" = yes && enable_static
=no
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18541 $as_echo "$enable_shared" >&6; }
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18544 $as_echo_n "checking whether to build static libraries... " >&6; }
18545 # Make sure either enable_shared or enable_static is yes.
18546 test "$enable_shared" = yes || enable_static
=yes
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18548 $as_echo "$enable_static" >&6; }
18555 ac_cpp
='$CPP $CPPFLAGS'
18556 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18557 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18558 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18562 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18563 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18564 (test "X$CXX" != "Xg++"))) ; then
18566 ac_cpp
='$CXXCPP $CPPFLAGS'
18567 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18568 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18569 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18571 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18572 if test -z "$CXXCPP"; then
18573 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18574 $as_echo_n "(cached) " >&6
18576 # Double quotes because CXXCPP needs to be expanded
18577 for CXXCPP
in "$CXX -E" "/lib/cpp"
18579 ac_preproc_ok
=false
18580 for ac_cxx_preproc_warn_flag
in '' yes
18582 # Use a header file that comes with gcc, so configuring glibc
18583 # with a fresh cross-compiler works.
18584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18585 # <limits.h> exists even on freestanding compilers.
18586 # On the NeXT, cc -E runs the code through the compiler's parser,
18587 # not just through cpp. "Syntax error" is here to catch this case.
18588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18589 /* end confdefs.h. */
18591 # include <limits.h>
18593 # include <assert.h>
18597 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18600 # Broken: fails on valid input.
18603 rm -f conftest.err conftest.
$ac_ext
18605 # OK, works on sane cases. Now check whether nonexistent headers
18606 # can be detected and how.
18607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18608 /* end confdefs.h. */
18609 #include <ac_nonexistent.h>
18611 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18612 # Broken: success on invalid input.
18615 # Passes both tests.
18619 rm -f conftest.err conftest.
$ac_ext
18622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18623 rm -f conftest.err conftest.
$ac_ext
18624 if $ac_preproc_ok; then :
18629 ac_cv_prog_CXXCPP
=$CXXCPP
18632 CXXCPP
=$ac_cv_prog_CXXCPP
18634 ac_cv_prog_CXXCPP
=$CXXCPP
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18637 $as_echo "$CXXCPP" >&6; }
18638 ac_preproc_ok
=false
18639 for ac_cxx_preproc_warn_flag
in '' yes
18641 # Use a header file that comes with gcc, so configuring glibc
18642 # with a fresh cross-compiler works.
18643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18644 # <limits.h> exists even on freestanding compilers.
18645 # On the NeXT, cc -E runs the code through the compiler's parser,
18646 # not just through cpp. "Syntax error" is here to catch this case.
18647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h. */
18650 # include <limits.h>
18652 # include <assert.h>
18656 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18659 # Broken: fails on valid input.
18662 rm -f conftest.err conftest.
$ac_ext
18664 # OK, works on sane cases. Now check whether nonexistent headers
18665 # can be detected and how.
18666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18668 #include <ac_nonexistent.h>
18670 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18671 # Broken: success on invalid input.
18674 # Passes both tests.
18678 rm -f conftest.err conftest.
$ac_ext
18681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18682 rm -f conftest.err conftest.
$ac_ext
18683 if $ac_preproc_ok; then :
18686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18688 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18689 See \`config.log' for more details." "$LINENO" 5; }
18693 ac_cpp
='$CPP $CPPFLAGS'
18694 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18695 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18696 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18699 _lt_caught_CXX_error
=yes
18703 ac_cpp
='$CXXCPP $CPPFLAGS'
18704 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18705 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18706 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18708 archive_cmds_need_lc_CXX
=no
18709 allow_undefined_flag_CXX
=
18710 always_export_symbols_CXX
=no
18711 archive_expsym_cmds_CXX
=
18712 compiler_needs_object_CXX
=no
18713 export_dynamic_flag_spec_CXX
=
18714 hardcode_direct_CXX
=no
18715 hardcode_direct_absolute_CXX
=no
18716 hardcode_libdir_flag_spec_CXX
=
18717 hardcode_libdir_flag_spec_ld_CXX
=
18718 hardcode_libdir_separator_CXX
=
18719 hardcode_minus_L_CXX
=no
18720 hardcode_shlibpath_var_CXX
=unsupported
18721 hardcode_automatic_CXX
=no
18722 inherit_rpath_CXX
=no
18724 module_expsym_cmds_CXX
=
18725 link_all_deplibs_CXX
=unknown
18726 old_archive_cmds_CXX
=$old_archive_cmds
18727 reload_flag_CXX
=$reload_flag
18728 reload_cmds_CXX
=$reload_cmds
18729 no_undefined_flag_CXX
=
18730 whole_archive_flag_spec_CXX
=
18731 enable_shared_with_static_runtimes_CXX
=no
18733 # Source file extension for C++ test sources.
18736 # Object file extension for compiled C++ test sources.
18740 # No sense in running all these tests if we already determined that
18741 # the CXX compiler isn't working. Some variables (like enable_shared)
18742 # are currently assumed to apply to all compilers on this platform,
18743 # and will be corrupted by setting them based on a non-working compiler.
18744 if test "$_lt_caught_CXX_error" != yes; then
18745 # Code to be used in simple compile tests
18746 lt_simple_compile_test_code
="int some_variable = 0;"
18748 # Code to be used in simple link tests
18749 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18751 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18758 # If no C compiler was specified, use CC.
18761 # If no C compiler flags were specified, use CFLAGS.
18762 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18764 # Allow CC to be a program name with arguments.
18768 # save warnings/boilerplate of simple test code
18769 ac_outfile
=conftest.
$ac_objext
18770 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18771 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18772 _lt_compiler_boilerplate
=`cat conftest.err`
18775 ac_outfile
=conftest.
$ac_objext
18776 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18777 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18778 _lt_linker_boilerplate
=`cat conftest.err`
18782 # Allow CC to be a program name with arguments.
18787 lt_save_with_gnu_ld
=$with_gnu_ld
18788 lt_save_path_LD
=$lt_cv_path_LD
18789 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18790 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18792 $as_unset lt_cv_prog_gnu_ld
18794 if test -n "${lt_cv_path_LDCXX+set}"; then
18795 lt_cv_path_LD
=$lt_cv_path_LDCXX
18797 $as_unset lt_cv_path_LD
18799 test -z "${LDCXX+set}" || LD
=$LDCXX
18803 for cc_temp
in $compiler""; do
18805 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18806 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18811 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18814 if test -n "$compiler"; then
18815 # We don't want -fno-exception when compiling C++ code, so set the
18816 # no_builtin_flag separately
18817 if test "$GXX" = yes; then
18818 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18820 lt_prog_compiler_no_builtin_flag_CXX
=
18823 if test "$GXX" = yes; then
18824 # Set up default GNU C++ configuration
18828 # Check whether --with-gnu-ld was given.
18829 if test "${with_gnu_ld+set}" = set; then :
18830 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18836 if test "$GCC" = yes; then
18837 # Check if gcc -print-prog-name=ld gives a path.
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18839 $as_echo_n "checking for ld used by $CC... " >&6; }
18842 # gcc leaves a trailing carriage return which upsets mingw
18843 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18845 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18848 # Accept absolute paths.
18850 re_direlt
='/[^/][^/]*/\.\./'
18851 # Canonicalize the pathname of ld
18852 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18853 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18854 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18856 test -z "$LD" && LD
="$ac_prog"
18859 # If it fails, then pretend we aren't using GCC.
18863 # If it is relative, then search for the first ld in PATH.
18864 with_gnu_ld
=unknown
18867 elif test "$with_gnu_ld" = yes; then
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18869 $as_echo_n "checking for GNU ld... " >&6; }
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18872 $as_echo_n "checking for non-GNU ld... " >&6; }
18874 if test "${lt_cv_path_LD+set}" = set; then :
18875 $as_echo_n "(cached) " >&6
18877 if test -z "$LD"; then
18878 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18879 for ac_dir
in $PATH; do
18881 test -z "$ac_dir" && ac_dir
=.
18882 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18883 lt_cv_path_LD
="$ac_dir/$ac_prog"
18884 # Check to see if the program is GNU ld. I'd rather use --version,
18885 # but apparently some variants of GNU ld only accept -v.
18886 # Break only if it was the GNU/non-GNU ld that we prefer.
18887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18888 *GNU
* |
*'with BFD'*)
18889 test "$with_gnu_ld" != no
&& break
18892 test "$with_gnu_ld" != yes && break
18899 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18903 LD
="$lt_cv_path_LD"
18904 if test -n "$LD"; then
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18906 $as_echo "$LD" >&6; }
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18909 $as_echo "no" >&6; }
18911 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18914 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18915 $as_echo_n "(cached) " >&6
18917 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18918 case `$LD -v 2>&1 </dev/null` in
18919 *GNU
* |
*'with BFD'*)
18920 lt_cv_prog_gnu_ld
=yes
18923 lt_cv_prog_gnu_ld
=no
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18928 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18929 with_gnu_ld
=$lt_cv_prog_gnu_ld
18937 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18938 # archiving commands below assume that GNU ld is being used.
18939 if test "$with_gnu_ld" = yes; then
18940 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18941 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'
18943 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18944 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18946 # If archive_cmds runs LD, not CC, wlarc should be empty
18947 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18948 # investigate it a little bit more. (MM)
18951 # ancient GNU ld didn't support --whole-archive et. al.
18952 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18953 $GREP 'no-whole-archive' > /dev
/null
; then
18954 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18956 whole_archive_flag_spec_CXX
=
18962 # A generic and very simple default shared library creation
18963 # command for GNU C++ for the case where it uses the native
18964 # linker, instead of GNU ld. If possible, this setting should
18965 # overridden to take advantage of the native linker features on
18966 # the platform it is being used on.
18967 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18970 # Commands to make compiler produce verbose output that lists
18971 # what "hidden" libraries, object files and flags are used when
18972 # linking a shared library.
18973 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18981 # PORTME: fill in a description of your system's C++ link characteristics
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18983 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18987 # FIXME: insert proper C++ library support
18991 if test "$host_cpu" = ia64
; then
18992 # On IA64, the linker does run time linking by default, so we don't
18993 # have to do anything special.
18994 aix_use_runtimelinking
=no
18995 exp_sym_flag
='-Bexport'
18998 aix_use_runtimelinking
=no
19000 # Test if we are trying to use run time linking or normal
19001 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19002 # need to do runtime linking.
19003 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19004 for ld_flag
in $LDFLAGS; do
19007 aix_use_runtimelinking
=yes
19015 exp_sym_flag
='-bexport'
19016 no_entry_flag
='-bnoentry'
19019 # When large executables or shared objects are built, AIX ld can
19020 # have problems creating the table of contents. If linking a library
19021 # or program results in "error TOC overflow" add -mminimal-toc to
19022 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19023 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19025 archive_cmds_CXX
=''
19026 hardcode_direct_CXX
=yes
19027 hardcode_direct_absolute_CXX
=yes
19028 hardcode_libdir_separator_CXX
=':'
19029 link_all_deplibs_CXX
=yes
19030 file_list_spec_CXX
='${wl}-f,'
19032 if test "$GXX" = yes; then
19033 case $host_os in aix4.
[012]|aix4.
[012].
*)
19034 # We only want to do this on AIX 4.2 and lower, the check
19035 # below for broken collect2 doesn't work under 4.3+
19036 collect2name
=`${CC} -print-prog-name=collect2`
19037 if test -f "$collect2name" &&
19038 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19040 # We have reworked collect2
19043 # We have old collect2
19044 hardcode_direct_CXX
=unsupported
19045 # It fails to find uninstalled libraries when the uninstalled
19046 # path is not listed in the libpath. Setting hardcode_minus_L
19047 # to unsupported forces relinking
19048 hardcode_minus_L_CXX
=yes
19049 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19050 hardcode_libdir_separator_CXX
=
19053 shared_flag
='-shared'
19054 if test "$aix_use_runtimelinking" = yes; then
19055 shared_flag
="$shared_flag "'${wl}-G'
19059 if test "$host_cpu" = ia64
; then
19060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19061 # chokes on -Wl,-G. The following line is correct:
19064 if test "$aix_use_runtimelinking" = yes; then
19065 shared_flag
='${wl}-G'
19067 shared_flag
='${wl}-bM:SRE'
19072 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19073 # It seems that -bexpall does not export symbols beginning with
19074 # underscore (_), so it is better to generate a list of symbols to
19076 always_export_symbols_CXX
=yes
19077 if test "$aix_use_runtimelinking" = yes; then
19078 # Warning - without using the other runtime loading flags (-brtl),
19079 # -berok will link without error, but may produce a broken library.
19080 allow_undefined_flag_CXX
='-berok'
19081 # Determine the default libpath from the value encoded in an empty
19083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h. */
19094 if ac_fn_cxx_try_link
"$LINENO"; then :
19096 lt_aix_libpath_sed
='
19097 /Import File Strings/,/^$/ {
19103 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19104 # Check for a 64-bit object if we didn't find anything.
19105 if test -z "$aix_libpath"; then
19106 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19109 rm -f core conftest.err conftest.
$ac_objext \
19110 conftest
$ac_exeext conftest.
$ac_ext
19111 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19113 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19115 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"
19117 if test "$host_cpu" = ia64
; then
19118 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19119 allow_undefined_flag_CXX
="-z nodefs"
19120 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"
19122 # Determine the default libpath from the value encoded in an
19123 # empty executable.
19124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19125 /* end confdefs.h. */
19135 if ac_fn_cxx_try_link
"$LINENO"; then :
19137 lt_aix_libpath_sed
='
19138 /Import File Strings/,/^$/ {
19144 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19145 # Check for a 64-bit object if we didn't find anything.
19146 if test -z "$aix_libpath"; then
19147 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19150 rm -f core conftest.err conftest.
$ac_objext \
19151 conftest
$ac_exeext conftest.
$ac_ext
19152 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19154 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19155 # Warning - without using the other run time loading flags,
19156 # -berok will link without error, but may produce a broken library.
19157 no_undefined_flag_CXX
=' ${wl}-bernotok'
19158 allow_undefined_flag_CXX
=' ${wl}-berok'
19159 if test "$with_gnu_ld" = yes; then
19160 # We only use this code for GNU lds that support --whole-archive.
19161 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19163 # Exported symbols can be pulled into shared objects from archives
19164 whole_archive_flag_spec_CXX
='$convenience'
19166 archive_cmds_need_lc_CXX
=yes
19167 # This is similar to how AIX traditionally builds its shared
19169 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'
19175 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19176 allow_undefined_flag_CXX
=unsupported
19177 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19178 # support --undefined. This deserves some investigation. FIXME
19179 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19186 case $cc_basename in
19188 # FIXME: insert proper C++ library support
19194 cygwin
* | mingw
* | pw32
* | cegcc
*)
19195 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19196 # as there is no search path for DLLs.
19197 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19198 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19199 allow_undefined_flag_CXX
=unsupported
19200 always_export_symbols_CXX
=no
19201 enable_shared_with_static_runtimes_CXX
=yes
19203 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19204 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'
19205 # If the export-symbols file already is a .def file (1st line
19206 # is EXPORTS), use it as is; otherwise, prepend...
19207 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19208 cp $export_symbols $output_objdir/$soname.def;
19210 echo EXPORTS > $output_objdir/$soname.def;
19211 cat $export_symbols >> $output_objdir/$soname.def;
19213 $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'
19218 darwin
* | rhapsody
*)
19221 archive_cmds_need_lc_CXX
=no
19222 hardcode_direct_CXX
=no
19223 hardcode_automatic_CXX
=yes
19224 hardcode_shlibpath_var_CXX
=unsupported
19225 if test "$lt_cv_ld_force_load" = "yes"; then
19226 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\"`'
19228 whole_archive_flag_spec_CXX
=''
19230 link_all_deplibs_CXX
=yes
19231 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19232 case $cc_basename in
19233 ifort
*) _lt_dar_can_shared
=yes ;;
19234 *) _lt_dar_can_shared
=$GCC ;;
19236 if test "$_lt_dar_can_shared" = "yes"; then
19237 output_verbose_link_cmd
=func_echo_all
19238 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}"
19239 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19240 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}"
19241 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}"
19242 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19243 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}"
19244 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}"
19254 case $cc_basename in
19256 # FIXME: insert proper C++ library support
19260 # Green Hills C++ Compiler
19261 # FIXME: insert proper C++ library support
19265 # FIXME: insert proper C++ library support
19272 # C++ shared libraries reported to be fairly broken before
19278 archive_cmds_need_lc_CXX
=no
19281 freebsd
* | dragonfly
*)
19282 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19291 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19292 link_all_deplibs_CXX
=yes
19296 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19297 hardcode_libdir_separator_CXX
=:
19298 export_dynamic_flag_spec_CXX
='${wl}-E'
19299 hardcode_direct_CXX
=yes
19300 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19301 # but as the default
19302 # location of the library.
19304 case $cc_basename in
19306 # FIXME: insert proper C++ library support
19310 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'
19311 # Commands to make compiler produce verbose output that lists
19312 # what "hidden" libraries, object files and flags are used when
19313 # linking a shared library.
19315 # There doesn't appear to be a way to prevent this compiler from
19316 # explicitly linking system object files so we need to strip them
19317 # from the output so that they don't get included in the library
19319 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"'
19322 if test "$GXX" = yes; then
19323 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'
19325 # FIXME: insert proper C++ library support
19333 if test $with_gnu_ld = no
; then
19334 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19335 hardcode_libdir_separator_CXX
=:
19341 export_dynamic_flag_spec_CXX
='${wl}-E'
19347 hardcode_direct_CXX
=no
19348 hardcode_shlibpath_var_CXX
=no
19351 hardcode_direct_CXX
=yes
19352 hardcode_direct_absolute_CXX
=yes
19353 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19354 # but as the default
19355 # location of the library.
19359 case $cc_basename in
19361 # FIXME: insert proper C++ library support
19367 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19370 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19373 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19376 # Commands to make compiler produce verbose output that lists
19377 # what "hidden" libraries, object files and flags are used when
19378 # linking a shared library.
19380 # There doesn't appear to be a way to prevent this compiler from
19381 # explicitly linking system object files so we need to strip them
19382 # from the output so that they don't get included in the library
19384 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"'
19387 if test "$GXX" = yes; then
19388 if test $with_gnu_ld = no
; then
19391 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19394 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19397 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'
19402 # FIXME: insert proper C++ library support
19410 hardcode_direct_CXX
=no
19411 hardcode_shlibpath_var_CXX
=no
19412 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19413 export_dynamic_flag_spec_CXX
='${wl}-E'
19414 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19415 # Instead, shared libraries are loaded at an image base (0x10000000 by
19416 # default) and relocated if they conflict, which is a slow very memory
19417 # consuming and fragmenting process. To avoid this, we pick a random,
19418 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19419 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19420 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'
19421 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'
19424 case $cc_basename in
19427 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'
19429 # Archives containing C++ object files must be created using
19430 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19431 # necessary to make sure instantiated templates are included
19433 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19436 if test "$GXX" = yes; then
19437 if test "$with_gnu_ld" = no
; then
19438 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'
19440 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'
19443 link_all_deplibs_CXX
=yes
19446 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19447 hardcode_libdir_separator_CXX
=:
19448 inherit_rpath_CXX
=yes
19451 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19452 case $cc_basename in
19454 # Kuck and Associates, Inc. (KAI) C++ Compiler
19456 # KCC will only create a shared library if the output file
19457 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19458 # to its proper name (with version) after linking.
19459 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'
19460 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'
19461 # Commands to make compiler produce verbose output that lists
19462 # what "hidden" libraries, object files and flags are used when
19463 # linking a shared library.
19465 # There doesn't appear to be a way to prevent this compiler from
19466 # explicitly linking system object files so we need to strip them
19467 # from the output so that they don't get included in the library
19469 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"'
19471 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19472 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19474 # Archives containing C++ object files must be created using
19475 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19476 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19481 # version 8.0 and above of icpc choke on multiply defined symbols
19482 # if we add $predep_objects and $postdep_objects, however 7.1 and
19483 # earlier do not add the objects themselves.
19484 case `$CC -V 2>&1` in
19486 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19487 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'
19489 *) # Version 8.0 or newer
19492 ia64
*) tmp_idyn
=' -i_dynamic';;
19494 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19495 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'
19498 archive_cmds_need_lc_CXX
=no
19499 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19500 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19501 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19504 # Portland Group C++ compiler
19506 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19507 prelink_cmds_CXX
='tpldir=Template.dir~
19509 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19510 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19511 old_archive_cmds_CXX
='tpldir=Template.dir~
19513 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19514 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19516 archive_cmds_CXX
='tpldir=Template.dir~
19518 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19519 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19520 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19522 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19523 $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'
19525 *) # Version 6 and above use weak symbols
19526 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19527 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'
19531 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19532 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19533 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'
19537 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19538 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'
19540 runpath_var
=LD_RUN_PATH
19541 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19542 hardcode_libdir_separator_CXX
=:
19544 # Commands to make compiler produce verbose output that lists
19545 # what "hidden" libraries, object files and flags are used when
19546 # linking a shared library.
19548 # There doesn't appear to be a way to prevent this compiler from
19549 # explicitly linking system object files so we need to strip them
19550 # from the output so that they don't get included in the library
19552 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'
19554 xl
* | mpixl
* | bgxl
*)
19555 # IBM XL 8.0 on PPC, with GNU ld
19556 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19557 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19558 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19559 if test "x$supports_anon_versioning" = xyes
; then
19560 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19562 echo "local: *; };" >> $output_objdir/$libname.ver~
19563 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19567 case `$CC -V 2>&1 | sed 5q` in
19570 no_undefined_flag_CXX
=' -zdefs'
19571 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19572 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'
19573 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19574 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'
19575 compiler_needs_object_CXX
=yes
19577 # Not sure whether something based on
19578 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19580 output_verbose_link_cmd
='func_echo_all'
19582 # Archives containing C++ object files must be created using
19583 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19584 # necessary to make sure instantiated templates are included
19586 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19594 # FIXME: insert proper C++ library support
19599 # FIXME: insert proper C++ library support
19604 case $cc_basename in
19606 # FIXME: insert proper C++ library support
19610 # FIXME: insert proper C++ library support
19617 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19618 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19620 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19621 hardcode_direct_CXX
=yes
19622 hardcode_shlibpath_var_CXX
=no
19624 # Workaround some broken pre-1.5 toolchains
19625 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19633 # C++ shared libraries are fairly broken
19638 if test -f /usr
/libexec
/ld.so
; then
19639 hardcode_direct_CXX
=yes
19640 hardcode_shlibpath_var_CXX
=no
19641 hardcode_direct_absolute_CXX
=yes
19642 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19643 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19645 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19646 export_dynamic_flag_spec_CXX
='${wl}-E'
19647 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19649 output_verbose_link_cmd
=func_echo_all
19655 osf3
* | osf4
* | osf5
*)
19656 case $cc_basename in
19658 # Kuck and Associates, Inc. (KAI) C++ Compiler
19660 # KCC will only create a shared library if the output file
19661 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19662 # to its proper name (with version) after linking.
19663 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'
19665 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19666 hardcode_libdir_separator_CXX
=:
19668 # Archives containing C++ object files must be created using
19669 # the KAI C++ compiler.
19671 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19672 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19676 # Rational C++ 2.4.1
19677 # FIXME: insert proper C++ library support
19683 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19684 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'
19685 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19688 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19689 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'
19690 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19691 echo "-hidden">> $lib.exp~
19692 $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~
19694 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19698 hardcode_libdir_separator_CXX
=:
19700 # Commands to make compiler produce verbose output that lists
19701 # what "hidden" libraries, object files and flags are used when
19702 # linking a shared library.
19704 # There doesn't appear to be a way to prevent this compiler from
19705 # explicitly linking system object files so we need to strip them
19706 # from the output so that they don't get included in the library
19708 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"'
19711 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19712 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19715 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'
19718 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'
19722 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19723 hardcode_libdir_separator_CXX
=:
19725 # Commands to make compiler produce verbose output that lists
19726 # what "hidden" libraries, object files and flags are used when
19727 # linking a shared library.
19728 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19731 # FIXME: insert proper C++ library support
19739 # FIXME: insert proper C++ library support
19744 case $cc_basename in
19747 # FIXME: insert proper C++ library support
19752 # FIXME: insert proper C++ library support
19756 # FIXME: insert proper C++ library support
19763 case $cc_basename in
19765 # Sun C++ 4.2, 5.x and Centerline C++
19766 archive_cmds_need_lc_CXX
=yes
19767 no_undefined_flag_CXX
=' -zdefs'
19768 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19769 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19770 $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'
19772 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19773 hardcode_shlibpath_var_CXX
=no
19775 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19777 # The compiler driver will combine and reorder linker options,
19778 # but understands `-z linker_flag'.
19779 # Supported since Solaris 2.6 (maybe 2.5.1?)
19780 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19783 link_all_deplibs_CXX
=yes
19785 output_verbose_link_cmd
='func_echo_all'
19787 # Archives containing C++ object files must be created using
19788 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19789 # necessary to make sure instantiated templates are included
19791 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19794 # Green Hills C++ Compiler
19795 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19797 # The C++ compiler must be used to create the archive.
19798 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19801 # GNU C++ compiler with Solaris linker
19802 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19803 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19804 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19805 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19806 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19807 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19809 # Commands to make compiler produce verbose output that lists
19810 # what "hidden" libraries, object files and flags are used when
19811 # linking a shared library.
19812 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19814 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19816 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19817 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19818 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19820 # Commands to make compiler produce verbose output that lists
19821 # what "hidden" libraries, object files and flags are used when
19822 # linking a shared library.
19823 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19826 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19828 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19830 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19838 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19839 no_undefined_flag_CXX
='${wl}-z,text'
19840 archive_cmds_need_lc_CXX
=no
19841 hardcode_shlibpath_var_CXX
=no
19842 runpath_var
='LD_RUN_PATH'
19844 case $cc_basename in
19846 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19847 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19850 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19851 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19856 sysv5
* | sco3.2v5
* | sco5v6
*)
19857 # Note: We can NOT use -z defs as we might desire, because we do not
19858 # link with -lc, and that would cause any symbols used from libc to
19859 # always be unresolved, which means just about no library would
19860 # ever link correctly. If we're not using GNU ld we use -z text
19861 # though, which does catch some bad symbols but isn't as heavy-handed
19863 no_undefined_flag_CXX
='${wl}-z,text'
19864 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19865 archive_cmds_need_lc_CXX
=no
19866 hardcode_shlibpath_var_CXX
=no
19867 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19868 hardcode_libdir_separator_CXX
=':'
19869 link_all_deplibs_CXX
=yes
19870 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19871 runpath_var
='LD_RUN_PATH'
19873 case $cc_basename in
19875 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19876 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19877 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19878 '"$old_archive_cmds_CXX"
19879 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19880 '"$reload_cmds_CXX"
19883 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19884 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19890 case $cc_basename in
19892 # NonStop-UX NCC 3.20
19893 # FIXME: insert proper C++ library support
19897 # FIXME: insert proper C++ library support
19904 # FIXME: insert proper C++ library support
19909 # FIXME: insert proper C++ library support
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19915 $as_echo "$ld_shlibs_CXX" >&6; }
19916 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19922 ## There is no encapsulation within the following macros, do not change
19923 ## the running order or otherwise move them around unless you know exactly
19924 ## what you are doing...
19925 # Dependencies to place before and after the object being linked:
19926 predep_objects_CXX
=
19927 postdep_objects_CXX
=
19930 compiler_lib_search_path_CXX
=
19932 cat > conftest.
$ac_ext <<_LT_EOF
19936 Foo (void) { a = 0; }
19942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19943 (eval $ac_compile) 2>&5
19945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19946 test $ac_status = 0; }; then
19947 # Parse the compiler output and extract the necessary
19948 # objects, libraries and library flags.
19950 # Sentinel used to keep track of whether or not we are before
19951 # the conftest object file.
19952 pre_test_object_deps_done
=no
19954 for p
in `eval "$output_verbose_link_cmd"`; do
19958 # Some compilers place space between "-{L,R}" and the path.
19959 # Remove the space.
19960 if test $p = "-L" ||
19961 test $p = "-R"; then
19968 if test "$pre_test_object_deps_done" = no
; then
19971 # Internal compiler library paths should come after those
19972 # provided the user. The postdeps already come after the
19973 # user supplied libs so there is no need to process them.
19974 if test -z "$compiler_lib_search_path_CXX"; then
19975 compiler_lib_search_path_CXX
="${prev}${p}"
19977 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19980 # The "-l" case would never come before the object being
19981 # linked, so don't bother handling this case.
19984 if test -z "$postdeps_CXX"; then
19985 postdeps_CXX
="${prev}${p}"
19987 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19993 # This assumes that the test object file only shows up
19994 # once in the compiler output.
19995 if test "$p" = "conftest.$objext"; then
19996 pre_test_object_deps_done
=yes
20000 if test "$pre_test_object_deps_done" = no
; then
20001 if test -z "$predep_objects_CXX"; then
20002 predep_objects_CXX
="$p"
20004 predep_objects_CXX
="$predep_objects_CXX $p"
20007 if test -z "$postdep_objects_CXX"; then
20008 postdep_objects_CXX
="$p"
20010 postdep_objects_CXX
="$postdep_objects_CXX $p"
20015 *) ;; # Ignore the rest.
20023 echo "libtool.m4: error: problem compiling CXX test program"
20026 $RM -f confest.
$objext
20028 # PORTME: override above test on systems where it is broken
20031 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20032 # hack all around it, let's just trust "g++" to DTRT.
20033 predep_objects_CXX
=
20034 postdep_objects_CXX
=
20039 case `$CC -V 2>&1 | sed 5q` in
20043 # The more standards-conforming stlport4 library is
20044 # incompatible with the Cstd library. Avoid specifying
20045 # it if it's in CXXFLAGS. Ignore libCrun as
20046 # -library=stlport4 depends on it.
20047 case " $CXX $CXXFLAGS " in
20048 *" -library=stlport4 "*)
20049 solaris_use_stlport4
=yes
20053 if test "$solaris_use_stlport4" != yes; then
20054 postdeps_CXX
='-library=Cstd -library=Crun'
20061 case $cc_basename in
20063 # The more standards-conforming stlport4 library is
20064 # incompatible with the Cstd library. Avoid specifying
20065 # it if it's in CXXFLAGS. Ignore libCrun as
20066 # -library=stlport4 depends on it.
20067 case " $CXX $CXXFLAGS " in
20068 *" -library=stlport4 "*)
20069 solaris_use_stlport4
=yes
20073 # Adding this requires a known-good setup of shared libraries for
20074 # Sun compiler versions before 5.6, else PIC objects from an old
20075 # archive will be linked into the output, leading to subtle bugs.
20076 if test "$solaris_use_stlport4" != yes; then
20077 postdeps_CXX
='-library=Cstd -library=Crun'
20085 case " $postdeps_CXX " in
20086 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20088 compiler_lib_search_dirs_CXX
=
20089 if test -n "${compiler_lib_search_path_CXX}"; then
20090 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20123 lt_prog_compiler_wl_CXX
=
20124 lt_prog_compiler_pic_CXX
=
20125 lt_prog_compiler_static_CXX
=
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20128 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20130 # C++ specific cases for pic, static, wl, etc.
20131 if test "$GXX" = yes; then
20132 lt_prog_compiler_wl_CXX
='-Wl,'
20133 lt_prog_compiler_static_CXX
='-static'
20137 # All AIX code is PIC.
20138 if test "$host_cpu" = ia64
; then
20139 # AIX 5 now supports IA64 processor
20140 lt_prog_compiler_static_CXX
='-Bstatic'
20147 # see comment about AmigaOS4 .so support
20148 lt_prog_compiler_pic_CXX
='-fPIC'
20151 # FIXME: we need at least 68020 code to build shared libraries, but
20152 # adding the `-m68020' flag to GCC prevents building anything better,
20154 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20159 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20160 # PIC is the default for these OSes.
20162 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20163 # This hack is so that the source file can tell whether it is being
20164 # built for inclusion in a dll (and should export symbols for example).
20165 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20166 # (--disable-auto-import) libraries
20167 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20169 darwin
* | rhapsody
*)
20170 # PIC is the default on this platform
20171 # Common symbols not allowed in MH_DYLIB files
20172 lt_prog_compiler_pic_CXX
='-fno-common'
20175 # DJGPP does not support shared libraries at all
20176 lt_prog_compiler_pic_CXX
=
20179 # PIC is the default for Haiku.
20180 # The "-static" flag exists, but is broken.
20181 lt_prog_compiler_static_CXX
=
20184 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20185 # Instead, we relocate shared libraries at runtime.
20188 if test -d /usr
/nec
; then
20189 lt_prog_compiler_pic_CXX
=-Kconform_pic
20193 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20194 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20195 # sets the default TLS model and affects inlining.
20200 lt_prog_compiler_pic_CXX
='-fPIC'
20205 # QNX uses GNU C++, but need to define -shared option too, otherwise
20206 # it will coredump.
20207 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20210 lt_prog_compiler_pic_CXX
='-fPIC'
20216 # All AIX code is PIC.
20217 if test "$host_cpu" = ia64
; then
20218 # AIX 5 now supports IA64 processor
20219 lt_prog_compiler_static_CXX
='-Bstatic'
20221 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20225 case $cc_basename in
20227 # Green Hills C++ Compiler
20228 # _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"
20233 case $cc_basename in
20235 lt_prog_compiler_pic_CXX
='-KPIC'
20238 # Green Hills C++ Compiler
20239 lt_prog_compiler_pic_CXX
='-pic'
20245 freebsd
* | dragonfly
*)
20246 # FreeBSD uses GNU C++
20248 hpux9
* | hpux10
* | hpux11
*)
20249 case $cc_basename in
20251 lt_prog_compiler_wl_CXX
='-Wl,'
20252 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20253 if test "$host_cpu" != ia64
; then
20254 lt_prog_compiler_pic_CXX
='+Z'
20258 lt_prog_compiler_wl_CXX
='-Wl,'
20259 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20265 lt_prog_compiler_pic_CXX
='+Z'
20274 # This is c89, which is MS Visual C++ (no shared libs)
20275 # Anyone wants to do a port?
20277 irix5
* | irix6
* | nonstopux
*)
20278 case $cc_basename in
20280 lt_prog_compiler_wl_CXX
='-Wl,'
20281 lt_prog_compiler_static_CXX
='-non_shared'
20282 # CC pic flag -KPIC is the default.
20288 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20289 case $cc_basename in
20292 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20293 lt_prog_compiler_pic_CXX
='-fPIC'
20296 # old Intel C++ for x86_64 which still supported -KPIC.
20297 lt_prog_compiler_wl_CXX
='-Wl,'
20298 lt_prog_compiler_pic_CXX
='-KPIC'
20299 lt_prog_compiler_static_CXX
='-static'
20302 # Intel C++, used to be incompatible with GCC.
20303 # ICC 10 doesn't accept -KPIC any more.
20304 lt_prog_compiler_wl_CXX
='-Wl,'
20305 lt_prog_compiler_pic_CXX
='-fPIC'
20306 lt_prog_compiler_static_CXX
='-static'
20309 # Portland Group C++ compiler
20310 lt_prog_compiler_wl_CXX
='-Wl,'
20311 lt_prog_compiler_pic_CXX
='-fpic'
20312 lt_prog_compiler_static_CXX
='-Bstatic'
20316 # Make sure the PIC flag is empty. It appears that all Alpha
20317 # Linux and Compaq Tru64 Unix objects are PIC.
20318 lt_prog_compiler_pic_CXX
=
20319 lt_prog_compiler_static_CXX
='-non_shared'
20321 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20322 # IBM XL 8.0, 9.0 on PPC and BlueGene
20323 lt_prog_compiler_wl_CXX
='-Wl,'
20324 lt_prog_compiler_pic_CXX
='-qpic'
20325 lt_prog_compiler_static_CXX
='-qstaticlink'
20328 case `$CC -V 2>&1 | sed 5q` in
20331 lt_prog_compiler_pic_CXX
='-KPIC'
20332 lt_prog_compiler_static_CXX
='-Bstatic'
20333 lt_prog_compiler_wl_CXX
='-Qoption ld '
20344 case $cc_basename in
20346 lt_prog_compiler_pic_CXX
='-W c,exportall'
20355 # QNX uses GNU C++, but need to define -shared option too, otherwise
20356 # it will coredump.
20357 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20359 osf3
* | osf4
* | osf5
*)
20360 case $cc_basename in
20362 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20365 # Rational C++ 2.4.1
20366 lt_prog_compiler_pic_CXX
='-pic'
20369 # Digital/Compaq C++
20370 lt_prog_compiler_wl_CXX
='-Wl,'
20371 # Make sure the PIC flag is empty. It appears that all Alpha
20372 # Linux and Compaq Tru64 Unix objects are PIC.
20373 lt_prog_compiler_pic_CXX
=
20374 lt_prog_compiler_static_CXX
='-non_shared'
20383 case $cc_basename in
20385 # Sun C++ 4.2, 5.x and Centerline C++
20386 lt_prog_compiler_pic_CXX
='-KPIC'
20387 lt_prog_compiler_static_CXX
='-Bstatic'
20388 lt_prog_compiler_wl_CXX
='-Qoption ld '
20391 # Green Hills C++ Compiler
20392 lt_prog_compiler_pic_CXX
='-PIC'
20399 case $cc_basename in
20402 lt_prog_compiler_pic_CXX
='-pic'
20403 lt_prog_compiler_static_CXX
='-Bstatic'
20407 lt_prog_compiler_pic_CXX
='-pic'
20413 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20414 case $cc_basename in
20416 lt_prog_compiler_wl_CXX
='-Wl,'
20417 lt_prog_compiler_pic_CXX
='-KPIC'
20418 lt_prog_compiler_static_CXX
='-Bstatic'
20423 case $cc_basename in
20425 # NonStop-UX NCC 3.20
20426 lt_prog_compiler_pic_CXX
='-KPIC'
20435 lt_prog_compiler_can_build_shared_CXX
=no
20441 # For platforms which do not support PIC, -DPIC is meaningless:
20443 lt_prog_compiler_pic_CXX
=
20446 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20450 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20455 # Check to make sure the PIC flag actually works.
20457 if test -n "$lt_prog_compiler_pic_CXX"; then
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20459 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20460 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20461 $as_echo_n "(cached) " >&6
20463 lt_cv_prog_compiler_pic_works_CXX
=no
20464 ac_outfile
=conftest.
$ac_objext
20465 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20466 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20467 # Insert the option either (1) after the last *FLAGS variable, or
20468 # (2) before a word containing "conftest.", or (3) at the end.
20469 # Note that $ac_compile itself does not contain backslashes and begins
20470 # with a dollar sign (not a hyphen), so the echo should work correctly.
20471 # The option is referenced via a variable to avoid confusing sed.
20472 lt_compile
=`echo "$ac_compile" | $SED \
20473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20475 -e 's:$: $lt_compiler_flag:'`
20476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20477 (eval "$lt_compile" 2>conftest.err
)
20479 cat conftest.err
>&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 if (exit $ac_status) && test -s "$ac_outfile"; then
20482 # The compiler can only warn and ignore the option if not recognized
20483 # So say no if there are warnings other than the usual output.
20484 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20485 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20486 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20487 lt_cv_prog_compiler_pic_works_CXX
=yes
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20494 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20496 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20497 case $lt_prog_compiler_pic_CXX in
20499 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20502 lt_prog_compiler_pic_CXX
=
20503 lt_prog_compiler_can_build_shared_CXX
=no
20511 # Check to make sure the static flag actually works.
20513 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20515 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20516 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20517 $as_echo_n "(cached) " >&6
20519 lt_cv_prog_compiler_static_works_CXX
=no
20520 save_LDFLAGS
="$LDFLAGS"
20521 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20522 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20523 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20524 # The linker can only warn and ignore the option if not recognized
20525 # So say no if there are warnings
20526 if test -s conftest.err
; then
20527 # Append any errors to the config.log.
20528 cat conftest.err
1>&5
20529 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20530 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20531 if diff conftest.exp conftest.er2
>/dev
/null
; then
20532 lt_cv_prog_compiler_static_works_CXX
=yes
20535 lt_cv_prog_compiler_static_works_CXX
=yes
20539 LDFLAGS
="$save_LDFLAGS"
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20543 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20545 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20548 lt_prog_compiler_static_CXX
=
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20555 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20556 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20557 $as_echo_n "(cached) " >&6
20559 lt_cv_prog_compiler_c_o_CXX
=no
20560 $RM -r conftest
2>/dev
/null
20564 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20566 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20567 # Insert the option either (1) after the last *FLAGS variable, or
20568 # (2) before a word containing "conftest.", or (3) at the end.
20569 # Note that $ac_compile itself does not contain backslashes and begins
20570 # with a dollar sign (not a hyphen), so the echo should work correctly.
20571 lt_compile
=`echo "$ac_compile" | $SED \
20572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20574 -e 's:$: $lt_compiler_flag:'`
20575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20576 (eval "$lt_compile" 2>out
/conftest.err
)
20578 cat out
/conftest.err
>&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20582 # The compiler can only warn and ignore the option if not recognized
20583 # So say no if there are warnings
20584 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20585 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20586 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20587 lt_cv_prog_compiler_c_o_CXX
=yes
20592 # SGI C++ compiler will create directory out/ii_files/ for
20593 # template instantiation
20594 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20595 $RM out
/* && rmdir out
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20602 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20607 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20608 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20609 $as_echo_n "(cached) " >&6
20611 lt_cv_prog_compiler_c_o_CXX
=no
20612 $RM -r conftest
2>/dev
/null
20616 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20618 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20619 # Insert the option either (1) after the last *FLAGS variable, or
20620 # (2) before a word containing "conftest.", or (3) at the end.
20621 # Note that $ac_compile itself does not contain backslashes and begins
20622 # with a dollar sign (not a hyphen), so the echo should work correctly.
20623 lt_compile
=`echo "$ac_compile" | $SED \
20624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20626 -e 's:$: $lt_compiler_flag:'`
20627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20628 (eval "$lt_compile" 2>out
/conftest.err
)
20630 cat out
/conftest.err
>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20634 # The compiler can only warn and ignore the option if not recognized
20635 # So say no if there are warnings
20636 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20637 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20638 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20639 lt_cv_prog_compiler_c_o_CXX
=yes
20644 # SGI C++ compiler will create directory out/ii_files/ for
20645 # template instantiation
20646 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20647 $RM out
/* && rmdir out
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20654 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20659 hard_links
="nottested"
20660 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20661 # do not overwrite the value of need_locks provided by the user
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20663 $as_echo_n "checking if we can lock with hard links... " >&6; }
20666 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20668 ln conftest.a conftest.b
2>&5 || hard_links
=no
20669 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20671 $as_echo "$hard_links" >&6; }
20672 if test "$hard_links" = no
; then
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20674 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20686 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20689 # If we're using GNU nm, then we don't want the "-C" option.
20690 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20691 # Also, AIX nm treats weak defined symbols like other global defined
20692 # symbols, whereas GNU nm marks them as "W".
20693 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20694 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'
20696 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'
20700 export_symbols_cmds_CXX
="$ltdll_cmds"
20702 cygwin
* | mingw
* | cegcc
*)
20703 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'
20706 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20709 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20712 $as_echo "$ld_shlibs_CXX" >&6; }
20713 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20715 with_gnu_ld_CXX
=$with_gnu_ld
20723 # Do we need to explicitly link libc?
20725 case "x$archive_cmds_need_lc_CXX" in
20727 # Assume -lc should be added
20728 archive_cmds_need_lc_CXX
=yes
20730 if test "$enable_shared" = yes && test "$GCC" = yes; then
20731 case $archive_cmds_CXX in
20733 # FIXME: we may have to deal with multi-command sequences.
20736 # Test whether the compiler implicitly links with -lc since on some
20737 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20738 # to ld, don't add -lc before -lgcc.
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20740 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20741 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20742 $as_echo_n "(cached) " >&6
20745 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20748 (eval $ac_compile) 2>&5
20750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20751 test $ac_status = 0; } 2>conftest.err
; then
20754 libobjs
=conftest.
$ac_objext
20756 wl
=$lt_prog_compiler_wl_CXX
20757 pic_flag
=$lt_prog_compiler_pic_CXX
20763 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20764 allow_undefined_flag_CXX
=
20765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20766 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20769 test $ac_status = 0; }
20771 lt_cv_archive_cmds_need_lc_CXX
=no
20773 lt_cv_archive_cmds_need_lc_CXX
=yes
20775 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20777 cat conftest.err
1>&5
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20783 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20784 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20855 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20857 library_names_spec
=
20858 libname_spec
='lib$name'
20862 postuninstall_cmds
=
20866 shlibpath_overrides_runpath
=unknown
20868 dynamic_linker
="$host_os ld.so"
20869 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20870 need_lib_prefix
=unknown
20871 hardcode_into_libs
=no
20873 # when you set need_version to no, make sure it does not cause -set_version
20874 # flags to be left without arguments
20875 need_version
=unknown
20880 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20881 shlibpath_var
=LIBPATH
20883 # AIX 3 has no versioning support, so we append a major version to the name.
20884 soname_spec
='${libname}${release}${shared_ext}$major'
20891 hardcode_into_libs
=yes
20892 if test "$host_cpu" = ia64
; then
20893 # AIX 5 supports IA64
20894 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20895 shlibpath_var
=LD_LIBRARY_PATH
20897 # With GCC up to 2.95.x, collect2 would create an import file
20898 # for dependence libraries. The import file would start with
20899 # the line `#! .'. This would cause the generated library to
20900 # depend on `.', always an invalid library. This was fixed in
20901 # development snapshots of GCC prior to 3.0.
20903 aix4 | aix4.
[01] | aix4.
[01].
*)
20904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20906 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20909 can_build_shared
=no
20913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20914 # soname into executable. Probably we can add versioning support to
20915 # collect2, so additional links can be useful in future.
20916 if test "$aix_use_runtimelinking" = yes; then
20917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20918 # instead of lib<name>.a to let people know that these are not
20919 # typical AIX shared libraries.
20920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20922 # We preserve .a as extension for shared libraries through AIX4.2
20923 # and later when we are not doing run time linking.
20924 library_names_spec
='${libname}${release}.a $libname.a'
20925 soname_spec
='${libname}${release}${shared_ext}$major'
20927 shlibpath_var
=LIBPATH
20934 # Since July 2007 AmigaOS4 officially supports .so libraries.
20935 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20939 library_names_spec
='$libname.ixlibrary $libname.a'
20940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20941 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'
20947 library_names_spec
='${libname}${shared_ext}'
20948 dynamic_linker
="$host_os ld.so"
20949 shlibpath_var
=LIBRARY_PATH
20955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20956 soname_spec
='${libname}${release}${shared_ext}$major'
20957 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20958 shlibpath_var
=LD_LIBRARY_PATH
20959 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20960 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20961 # the default ld.so.conf also contains /usr/contrib/lib and
20962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20963 # libtool to hard-code these into programs
20966 cygwin
* | mingw
* | pw32
* | cegcc
*)
20967 version_type
=windows
20972 case $GCC,$host_os in
20973 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20974 library_names_spec
='$libname.dll.a'
20975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20976 postinstall_cmds
='base_file=`basename \${file}`~
20977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20978 dldir=$destdir/`dirname \$dlpath`~
20979 test -d \$dldir || mkdir -p \$dldir~
20980 $install_prog $dir/$dlname \$dldir/$dlname~
20981 chmod a+x \$dldir/$dlname~
20982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20985 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20986 dlpath=$dir/\$dldll~
20988 shlibpath_overrides_runpath
=yes
20992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20993 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20997 # MinGW DLLs use traditional 'lib' prefix
20998 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21001 # pw32 DLLs use 'pw' prefix rather than 'lib'
21002 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21008 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21011 dynamic_linker
='Win32 ld.exe'
21012 # FIXME: first we should search . and the directory the executable is in
21016 darwin
* | rhapsody
*)
21017 dynamic_linker
="$host_os dyld"
21018 version_type
=darwin
21021 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21022 soname_spec
='${libname}${release}${major}$shared_ext'
21023 shlibpath_overrides_runpath
=yes
21024 shlibpath_var
=DYLD_LIBRARY_PATH
21025 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21027 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21035 soname_spec
='${libname}${release}${shared_ext}$major'
21036 shlibpath_var
=LD_LIBRARY_PATH
21039 freebsd
* | dragonfly
*)
21040 # DragonFly does not have aout. When/if they implement a new
21041 # versioning mechanism, adjust this.
21042 if test -x /usr
/bin
/objformat
; then
21043 objformat
=`/usr/bin/objformat`
21046 freebsd
[23].
*) objformat
=aout
;;
21047 *) objformat
=elf
;;
21050 version_type
=freebsd-
$objformat
21051 case $version_type in
21053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21058 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21062 shlibpath_var
=LD_LIBRARY_PATH
21065 shlibpath_overrides_runpath
=yes
21067 freebsd3.
[01]* | freebsdelf3.
[01]*)
21068 shlibpath_overrides_runpath
=yes
21069 hardcode_into_libs
=yes
21071 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21072 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21073 shlibpath_overrides_runpath
=no
21074 hardcode_into_libs
=yes
21076 *) # from 4.6 on, and DragonFly
21077 shlibpath_overrides_runpath
=yes
21078 hardcode_into_libs
=yes
21087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21088 soname_spec
='${libname}${release}${shared_ext}$major'
21089 shlibpath_var
=LD_LIBRARY_PATH
21090 hardcode_into_libs
=yes
21097 dynamic_linker
="$host_os runtime_loader"
21098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21099 soname_spec
='${libname}${release}${shared_ext}$major'
21100 shlibpath_var
=LIBRARY_PATH
21101 shlibpath_overrides_runpath
=yes
21102 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21103 hardcode_into_libs
=yes
21106 hpux9
* | hpux10
* | hpux11
*)
21107 # Give a soname corresponding to the major version so that dld.sl refuses to
21108 # link against other versions.
21115 hardcode_into_libs
=yes
21116 dynamic_linker
="$host_os dld.so"
21117 shlibpath_var
=LD_LIBRARY_PATH
21118 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21120 soname_spec
='${libname}${release}${shared_ext}$major'
21121 if test "X$HPUX_IA64_MODE" = X32
; then
21122 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21124 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21126 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21130 hardcode_into_libs
=yes
21131 dynamic_linker
="$host_os dld.sl"
21132 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21133 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21135 soname_spec
='${libname}${release}${shared_ext}$major'
21136 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21137 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21141 dynamic_linker
="$host_os dld.sl"
21142 shlibpath_var
=SHLIB_PATH
21143 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21145 soname_spec
='${libname}${release}${shared_ext}$major'
21148 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21149 postinstall_cmds
='chmod 555 $lib'
21150 # or fails outright, so override atomically:
21151 install_override_mode
=555
21158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21159 soname_spec
='${libname}${release}${shared_ext}$major'
21160 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21161 shlibpath_var
=LD_LIBRARY_PATH
21162 shlibpath_overrides_runpath
=no
21163 hardcode_into_libs
=yes
21166 irix5
* | irix6
* | nonstopux
*)
21168 nonstopux
*) version_type
=nonstopux
;;
21170 if test "$lt_cv_prog_gnu_ld" = yes; then
21178 soname_spec
='${libname}${release}${shared_ext}$major'
21179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21181 irix5
* | nonstopux
*)
21182 libsuff
= shlibsuff
=
21185 case $LD in # libtool.m4 will add one of these switches to LD
21186 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21187 libsuff
= shlibsuff
= libmagic
=32-bit;;
21188 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21189 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21190 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21191 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21192 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21196 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21197 shlibpath_overrides_runpath
=no
21198 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21199 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21200 hardcode_into_libs
=yes
21203 # No shared lib support for Linux oldld, aout, or coff.
21204 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21208 # This must be Linux ELF.
21209 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21213 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21214 soname_spec
='${libname}${release}${shared_ext}$major'
21215 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21216 shlibpath_var
=LD_LIBRARY_PATH
21217 shlibpath_overrides_runpath
=no
21219 # Some binutils ld are patched to set DT_RUNPATH
21220 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21221 $as_echo_n "(cached) " >&6
21223 lt_cv_shlibpath_overrides_runpath
=no
21224 save_LDFLAGS
=$LDFLAGS
21225 save_libdir
=$libdir
21226 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21227 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21229 /* end confdefs.h. */
21239 if ac_fn_cxx_try_link
"$LINENO"; then :
21240 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21241 lt_cv_shlibpath_overrides_runpath
=yes
21244 rm -f core conftest.err conftest.
$ac_objext \
21245 conftest
$ac_exeext conftest.
$ac_ext
21246 LDFLAGS
=$save_LDFLAGS
21247 libdir
=$save_libdir
21251 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21253 # This implies no fast_install, which is unacceptable.
21254 # Some rework will be needed to allow for fast_install
21255 # before this can be enabled.
21256 hardcode_into_libs
=yes
21258 # Append ld.so.conf contents to the search path
21259 if test -f /etc
/ld.so.conf
; then
21260 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' ' '`
21261 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21264 # We used to test for /lib/ld.so.1 and disable shared libraries on
21265 # powerpc, because MkLinux only supported shared libraries with the
21266 # GNU dynamic linker. Since this was broken with cross compilers,
21267 # most powerpc-linux boxes support dynamic linking these days and
21268 # people can always --disable-shared, the test was removed, and we
21269 # assume the GNU/Linux dynamic linker is in use.
21270 dynamic_linker
='GNU/Linux ld.so'
21277 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21279 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21280 dynamic_linker
='NetBSD (a.out) ld.so'
21282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21283 soname_spec
='${libname}${release}${shared_ext}$major'
21284 dynamic_linker
='NetBSD ld.elf_so'
21286 shlibpath_var
=LD_LIBRARY_PATH
21287 shlibpath_overrides_runpath
=yes
21288 hardcode_into_libs
=yes
21293 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21294 shlibpath_var
=LD_LIBRARY_PATH
21295 shlibpath_overrides_runpath
=yes
21302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21303 soname_spec
='${libname}${release}${shared_ext}$major'
21304 shlibpath_var
=LD_LIBRARY_PATH
21305 shlibpath_overrides_runpath
=no
21306 hardcode_into_libs
=yes
21307 dynamic_linker
='ldqnx.so'
21312 sys_lib_dlsearch_path_spec
="/usr/lib"
21314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21316 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21317 *) need_version
=no
;;
21319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21320 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21321 shlibpath_var
=LD_LIBRARY_PATH
21322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21324 openbsd2.
[89] | openbsd2.
[89].
*)
21325 shlibpath_overrides_runpath
=no
21328 shlibpath_overrides_runpath
=yes
21332 shlibpath_overrides_runpath
=yes
21337 libname_spec
='$name'
21340 library_names_spec
='$libname${shared_ext} $libname.a'
21341 dynamic_linker
='OS/2 ld.exe'
21342 shlibpath_var
=LIBPATH
21345 osf3
* | osf4
* | osf5
*)
21349 soname_spec
='${libname}${release}${shared_ext}$major'
21350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21351 shlibpath_var
=LD_LIBRARY_PATH
21352 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21353 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21365 soname_spec
='${libname}${release}${shared_ext}$major'
21366 shlibpath_var
=LD_LIBRARY_PATH
21367 shlibpath_overrides_runpath
=yes
21368 hardcode_into_libs
=yes
21369 # ldd complains unless libraries are executable
21370 postinstall_cmds
='chmod +x $lib'
21375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21376 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21377 shlibpath_var
=LD_LIBRARY_PATH
21378 shlibpath_overrides_runpath
=yes
21379 if test "$with_gnu_ld" = yes; then
21387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21388 soname_spec
='${libname}${release}${shared_ext}$major'
21389 shlibpath_var
=LD_LIBRARY_PATH
21390 case $host_vendor in
21392 shlibpath_overrides_runpath
=no
21394 runpath_var
=LD_RUN_PATH
21402 shlibpath_overrides_runpath
=no
21403 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21409 if test -d /usr
/nec
;then
21411 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21412 soname_spec
='$libname${shared_ext}.$major'
21413 shlibpath_var
=LD_LIBRARY_PATH
21417 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21418 version_type
=freebsd-elf
21421 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21422 soname_spec
='${libname}${release}${shared_ext}$major'
21423 shlibpath_var
=LD_LIBRARY_PATH
21424 shlibpath_overrides_runpath
=yes
21425 hardcode_into_libs
=yes
21426 if test "$with_gnu_ld" = yes; then
21427 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21429 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21432 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21436 sys_lib_dlsearch_path_spec
='/usr/lib'
21440 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21444 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21445 shlibpath_var
=LD_LIBRARY_PATH
21446 shlibpath_overrides_runpath
=no
21447 hardcode_into_libs
=yes
21452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21453 soname_spec
='${libname}${release}${shared_ext}$major'
21454 shlibpath_var
=LD_LIBRARY_PATH
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21462 $as_echo "$dynamic_linker" >&6; }
21463 test "$dynamic_linker" = no
&& can_build_shared
=no
21465 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21466 if test "$GCC" = yes; then
21467 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21470 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21471 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21473 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21474 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21515 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21516 hardcode_action_CXX
=
21517 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21518 test -n "$runpath_var_CXX" ||
21519 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21521 # We can hardcode non-existent directories.
21522 if test "$hardcode_direct_CXX" != no
&&
21523 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21524 # have to relink, otherwise we might link with an installed library
21525 # when we should be linking with a yet-to-be-installed one
21526 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21527 test "$hardcode_minus_L_CXX" != no
; then
21528 # Linking always hardcodes the temporary library directory.
21529 hardcode_action_CXX
=relink
21531 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21532 hardcode_action_CXX
=immediate
21535 # We cannot hardcode anything, or else we can only hardcode existing
21537 hardcode_action_CXX
=unsupported
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21540 $as_echo "$hardcode_action_CXX" >&6; }
21542 if test "$hardcode_action_CXX" = relink ||
21543 test "$inherit_rpath_CXX" = yes; then
21544 # Fast installation is not supported
21545 enable_fast_install
=no
21546 elif test "$shlibpath_overrides_runpath" = yes ||
21547 test "$enable_shared" = no
; then
21548 # Fast installation is not necessary
21549 enable_fast_install
=needless
21558 fi # test -n "$compiler"
21564 with_gnu_ld
=$lt_save_with_gnu_ld
21565 lt_cv_path_LDCXX
=$lt_cv_path_LD
21566 lt_cv_path_LD
=$lt_save_path_LD
21567 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21568 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21569 fi # test "$_lt_caught_CXX_error" != yes
21572 ac_cpp
='$CPP $CPPFLAGS'
21573 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21574 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21575 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21592 # Only expand once:
21598 # Identify the assembler which will work hand-in-glove with the newly
21599 # built GCC, so that we can examine its features. This is the assembler
21600 # which will be driven by the driver program.
21602 # If build != host, and we aren't building gas in-tree, we identify a
21603 # build->target assembler and hope that it will have the same features
21604 # as the host->target assembler we'll be using.
21605 gcc_cv_gas_major_version
=
21606 gcc_cv_gas_minor_version
=
21607 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21609 if test "${gcc_cv_as+set}" = set; then :
21613 if test -x "$DEFAULT_ASSEMBLER"; then
21614 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21615 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21616 && test -f ..
/gas
/Makefile \
21617 && test x
$build = x
$host; then
21618 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21619 elif test -x as
$build_exeext; then
21620 # Build using assembler in the current directory.
21621 gcc_cv_as
=.
/as
$build_exeext
21622 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21623 gcc_cv_as
="$AS_FOR_TARGET"
21625 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21626 set dummy
$AS_FOR_TARGET; ac_word
=$2
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21628 $as_echo_n "checking for $ac_word... " >&6; }
21629 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21630 $as_echo_n "(cached) " >&6
21634 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21638 for as_dir
in $PATH
21641 test -z "$as_dir" && as_dir
=.
21642 for ac_exec_ext
in '' $ac_executable_extensions; do
21643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21644 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21655 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21656 if test -n "$gcc_cv_as"; then
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21658 $as_echo "$gcc_cv_as" >&6; }
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21661 $as_echo "no" >&6; }
21668 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21670 case "$ORIGINAL_AS_FOR_TARGET" in
21671 .
/as | .
/as
$build_exeext) ;;
21672 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21677 $as_echo_n "checking what assembler to use... " >&6; }
21678 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21679 # Single tree build which includes gas. We want to prefer it
21680 # over whatever linker top-level may have detected, since
21681 # we'll use what we're building after installation anyway.
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21683 $as_echo "newly built gas" >&6; }
21685 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21686 for f
in $gcc_cv_as_bfd_srcdir/configure \
21687 $gcc_cv_as_gas_srcdir/configure \
21688 $gcc_cv_as_gas_srcdir/configure.
in \
21689 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21690 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21691 if test x
$gcc_cv_gas_version != x
; then
21695 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21696 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21697 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21698 case $gcc_cv_gas_patch_version in
21699 "") gcc_cv_gas_patch_version
="0" ;;
21701 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21702 + $gcc_cv_gas_minor_version \) \* 1000 \
21703 + $gcc_cv_gas_patch_version`
21705 in_tree_gas_is_elf
=no
21706 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21707 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21708 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21710 in_tree_gas_is_elf
=yes
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21714 $as_echo "$gcc_cv_as" >&6; }
21718 # Identify the linker which will work hand-in-glove with the newly
21719 # built GCC, so that we can examine its features. This is the linker
21720 # which will be driven by the driver program.
21722 # If build != host, and we aren't building gas in-tree, we identify a
21723 # build->target linker and hope that it will have the same features
21724 # as the host->target linker we'll be using.
21725 gcc_cv_gld_major_version
=
21726 gcc_cv_gld_minor_version
=
21727 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21728 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21730 if test "${gcc_cv_ld+set}" = set; then :
21734 if test -x "$DEFAULT_LINKER"; then
21735 gcc_cv_ld
="$DEFAULT_LINKER"
21736 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21737 && test -f ..
/ld
/Makefile \
21738 && test x
$build = x
$host; then
21739 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21740 elif test -x collect-ld
$build_exeext; then
21741 # Build using linker in the current directory.
21742 gcc_cv_ld
=.
/collect-ld
$build_exeext
21743 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21744 gcc_cv_ld
="$LD_FOR_TARGET"
21746 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21747 set dummy
$LD_FOR_TARGET; ac_word
=$2
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21749 $as_echo_n "checking for $ac_word... " >&6; }
21750 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21751 $as_echo_n "(cached) " >&6
21755 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21759 for as_dir
in $PATH
21762 test -z "$as_dir" && as_dir
=.
21763 for ac_exec_ext
in '' $ac_executable_extensions; do
21764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21765 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21776 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21777 if test -n "$gcc_cv_ld"; then
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21779 $as_echo "$gcc_cv_ld" >&6; }
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21782 $as_echo "no" >&6; }
21789 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21790 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21792 # Check whether --with-plugin-ld was given.
21793 if test "${with_plugin_ld+set}" = set; then :
21794 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21795 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21796 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21802 cat >>confdefs.h
<<_ACEOF
21803 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21807 # Check to see if we are using gold instead of ld
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21809 $as_echo_n "checking whether we are using gold... " >&6; }
21811 if test x
$gcc_cv_ld != x
; then
21812 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21813 |
grep "GNU gold" > /dev
/null
; then
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21818 $as_echo "$ld_is_gold" >&6; }
21820 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21822 case "$ORIGINAL_LD_FOR_TARGET" in
21823 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21824 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21829 $as_echo_n "checking what linker to use... " >&6; }
21830 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21831 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21832 # Single tree build which includes ld. We want to prefer it
21833 # over whatever linker top-level may have detected, since
21834 # we'll use what we're building after installation anyway.
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21836 $as_echo "newly built ld" >&6; }
21838 in_tree_ld_is_elf
=no
21839 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21840 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21841 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21842 in_tree_ld_is_elf
=yes
21843 elif test "$ld_is_gold" = yes; then
21844 in_tree_ld_is_elf
=yes
21846 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
21848 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21849 if test x
$gcc_cv_gld_version != x
; then
21853 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21854 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21857 $as_echo "$gcc_cv_ld" >&6; }
21861 # Figure out what nm we will be using.
21862 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21863 if test "${gcc_cv_nm+set}" = set; then :
21867 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21868 && test -f ..
/binutils
/Makefile \
21869 && test x
$build = x
$host; then
21870 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21871 elif test -x nm
$build_exeext; then
21872 gcc_cv_nm
=.
/nm
$build_exeext
21873 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21874 gcc_cv_nm
="$NM_FOR_TARGET"
21876 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21877 set dummy
$NM_FOR_TARGET; ac_word
=$2
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21879 $as_echo_n "checking for $ac_word... " >&6; }
21880 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21881 $as_echo_n "(cached) " >&6
21885 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21889 for as_dir
in $PATH
21892 test -z "$as_dir" && as_dir
=.
21893 for ac_exec_ext
in '' $ac_executable_extensions; do
21894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21895 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21906 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21907 if test -n "$gcc_cv_nm"; then
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21909 $as_echo "$gcc_cv_nm" >&6; }
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21912 $as_echo "no" >&6; }
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21920 $as_echo_n "checking what nm to use... " >&6; }
21921 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21922 # Single tree build which includes binutils.
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21924 $as_echo "newly built nm" >&6; }
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21928 $as_echo "$gcc_cv_nm" >&6; }
21932 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21934 case "$ORIGINAL_NM_FOR_TARGET" in
21935 .
/nm | .
/nm
$build_exeext) ;;
21936 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21941 # Figure out what objdump we will be using.
21942 if test "${gcc_cv_objdump+set}" = set; then :
21946 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21947 && test -f ..
/binutils
/Makefile \
21948 && test x
$build = x
$host; then
21949 # Single tree build which includes binutils.
21950 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21951 elif test -x objdump
$build_exeext; then
21952 gcc_cv_objdump
=.
/objdump
$build_exeext
21953 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21954 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21956 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21957 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21959 $as_echo_n "checking for $ac_word... " >&6; }
21960 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21961 $as_echo_n "(cached) " >&6
21963 case $gcc_cv_objdump in
21965 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21969 for as_dir
in $PATH
21972 test -z "$as_dir" && as_dir
=.
21973 for ac_exec_ext
in '' $ac_executable_extensions; do
21974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21975 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21986 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21987 if test -n "$gcc_cv_objdump"; then
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21989 $as_echo "$gcc_cv_objdump" >&6; }
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21992 $as_echo "no" >&6; }
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22000 $as_echo_n "checking what objdump to use... " >&6; }
22001 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22002 # Single tree build which includes binutils.
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22004 $as_echo "newly built objdump" >&6; }
22005 elif test x
$gcc_cv_objdump = x
; then
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22007 $as_echo "not found" >&6; }
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22010 $as_echo "$gcc_cv_objdump" >&6; }
22013 # Figure out what readelf we will be using.
22014 if test "${gcc_cv_readelf+set}" = set; then :
22018 if test -f $gcc_cv_binutils_srcdir/configure.
in \
22019 && test -f ..
/binutils
/Makefile \
22020 && test x
$build = x
$host; then
22021 # Single tree build which includes binutils.
22022 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22023 elif test -x readelf
$build_exeext; then
22024 gcc_cv_readelf
=.
/readelf
$build_exeext
22026 # Extract the first word of "readelf", so it can be a program name with args.
22027 set dummy readelf
; ac_word
=$2
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22029 $as_echo_n "checking for $ac_word... " >&6; }
22030 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22031 $as_echo_n "(cached) " >&6
22033 case $gcc_cv_readelf in
22035 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22039 for as_dir
in $PATH
22042 test -z "$as_dir" && as_dir
=.
22043 for ac_exec_ext
in '' $ac_executable_extensions; do
22044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22045 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22056 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22057 if test -n "$gcc_cv_readelf"; then
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22059 $as_echo "$gcc_cv_readelf" >&6; }
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22062 $as_echo "no" >&6; }
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22070 $as_echo_n "checking what readelf to use... " >&6; }
22071 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22072 # Single tree build which includes binutils.
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22074 $as_echo "newly built readelf" >&6; }
22075 elif test x
$gcc_cv_readelf = x
; then
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22077 $as_echo "not found" >&6; }
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22080 $as_echo "$gcc_cv_readelf" >&6; }
22083 # Figure out what assembler alignment features are present.
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22085 $as_echo_n "checking assembler flags... " >&6; }
22086 if test "${gcc_cv_as_flags+set}" = set; then :
22087 $as_echo_n "(cached) " >&6
22090 i
[34567]86-*-linux*)
22091 gcc_cv_as_flags
="--32"
22093 powerpc
*-*-darwin*)
22094 gcc_cv_as_flags
="-arch ppc"
22097 gcc_cv_as_flags
=" "
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22102 $as_echo "$gcc_cv_as_flags" >&6; }
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22105 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22106 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22107 $as_echo_n "(cached) " >&6
22109 gcc_cv_as_balign_and_p2align
=no
22110 if test $in_tree_gas = yes; then
22111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22112 then gcc_cv_as_balign_and_p2align
=yes
22114 elif test x
$gcc_cv_as != x
; then
22115 $as_echo '.balign 4
22116 .p2align 2' > conftest.s
22117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22119 (eval $ac_try) 2>&5
22121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22122 test $ac_status = 0; }; }
22124 gcc_cv_as_balign_and_p2align
=yes
22126 echo "configure: failed program was" >&5
22129 rm -f conftest.o conftest.s
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22133 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22134 if test $gcc_cv_as_balign_and_p2align = yes; then
22136 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22141 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22142 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22143 $as_echo_n "(cached) " >&6
22145 gcc_cv_as_max_skip_p2align
=no
22146 if test $in_tree_gas = yes; then
22147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22148 then gcc_cv_as_max_skip_p2align
=yes
22150 elif test x
$gcc_cv_as != x
; then
22151 $as_echo '.p2align 4,,7' > conftest.s
22152 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22154 (eval $ac_try) 2>&5
22156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22157 test $ac_status = 0; }; }
22159 gcc_cv_as_max_skip_p2align
=yes
22161 echo "configure: failed program was" >&5
22164 rm -f conftest.o conftest.s
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22168 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22169 if test $gcc_cv_as_max_skip_p2align = yes; then
22171 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22176 $as_echo_n "checking assembler for .literal16... " >&6; }
22177 if test "${gcc_cv_as_literal16+set}" = set; then :
22178 $as_echo_n "(cached) " >&6
22180 gcc_cv_as_literal16
=no
22181 if test $in_tree_gas = yes; then
22182 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22183 then gcc_cv_as_literal16
=yes
22185 elif test x
$gcc_cv_as != x
; then
22186 $as_echo '.literal16' > conftest.s
22187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22189 (eval $ac_try) 2>&5
22191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22192 test $ac_status = 0; }; }
22194 gcc_cv_as_literal16
=yes
22196 echo "configure: failed program was" >&5
22199 rm -f conftest.o conftest.s
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22203 $as_echo "$gcc_cv_as_literal16" >&6; }
22204 if test $gcc_cv_as_literal16 = yes; then
22206 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22211 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22212 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22213 $as_echo_n "(cached) " >&6
22215 gcc_cv_as_subsection_m1
=no
22216 if test $in_tree_gas = yes; then
22217 if test $in_tree_gas_is_elf = yes \
22218 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22219 then gcc_cv_as_subsection_m1
=yes
22221 elif test x
$gcc_cv_as != x
; then
22222 $as_echo 'conftest_label1: .word 0
22224 conftest_label2: .word 0
22225 .previous' > conftest.s
22226 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22228 (eval $ac_try) 2>&5
22230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22231 test $ac_status = 0; }; }
22233 if test x
$gcc_cv_nm != x
; then
22234 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22235 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22236 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22238 else gcc_cv_as_subsection_m1
=yes
22240 rm -f conftest.nm1 conftest.nm2
22243 echo "configure: failed program was" >&5
22246 rm -f conftest.o conftest.s
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22250 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22251 if test $gcc_cv_as_subsection_m1 = yes; then
22253 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22258 $as_echo_n "checking assembler for .weak... " >&6; }
22259 if test "${gcc_cv_as_weak+set}" = set; then :
22260 $as_echo_n "(cached) " >&6
22263 if test $in_tree_gas = yes; then
22264 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22265 then gcc_cv_as_weak
=yes
22267 elif test x
$gcc_cv_as != x
; then
22268 $as_echo ' .weak foobar' > conftest.s
22269 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22271 (eval $ac_try) 2>&5
22273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22274 test $ac_status = 0; }; }
22278 echo "configure: failed program was" >&5
22281 rm -f conftest.o conftest.s
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22285 $as_echo "$gcc_cv_as_weak" >&6; }
22286 if test $gcc_cv_as_weak = yes; then
22288 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22293 $as_echo_n "checking assembler for .weakref... " >&6; }
22294 if test "${gcc_cv_as_weakref+set}" = set; then :
22295 $as_echo_n "(cached) " >&6
22297 gcc_cv_as_weakref
=no
22298 if test $in_tree_gas = yes; then
22299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22300 then gcc_cv_as_weakref
=yes
22302 elif test x
$gcc_cv_as != x
; then
22303 $as_echo ' .weakref foobar, barfnot' > conftest.s
22304 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22306 (eval $ac_try) 2>&5
22308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22309 test $ac_status = 0; }; }
22311 gcc_cv_as_weakref
=yes
22313 echo "configure: failed program was" >&5
22316 rm -f conftest.o conftest.s
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22320 $as_echo "$gcc_cv_as_weakref" >&6; }
22321 if test $gcc_cv_as_weakref = yes; then
22323 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22328 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22329 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22332 gcc_cv_as_nsubspa_comdat
=no
22333 if test $in_tree_gas = yes; then
22334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22335 then gcc_cv_as_nsubspa_comdat
=yes
22337 elif test x
$gcc_cv_as != x
; then
22338 $as_echo ' .SPACE $TEXT$
22339 .NSUBSPA $CODE$,COMDAT' > conftest.s
22340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22342 (eval $ac_try) 2>&5
22344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22345 test $ac_status = 0; }; }
22347 gcc_cv_as_nsubspa_comdat
=yes
22349 echo "configure: failed program was" >&5
22352 rm -f conftest.o conftest.s
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22356 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22357 if test $gcc_cv_as_nsubspa_comdat = yes; then
22359 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22363 # .hidden needs to be supported in both the assembler and the linker,
22364 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22365 # This is irritatingly difficult to feature test for; we have to check the
22366 # date string after the version number. If we've got an in-tree
22367 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22369 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22371 $as_echo_n "checking assembler for .hidden... " >&6; }
22372 if test "${gcc_cv_as_hidden+set}" = set; then :
22373 $as_echo_n "(cached) " >&6
22375 gcc_cv_as_hidden
=no
22376 if test $in_tree_gas = yes; then
22377 if test $in_tree_gas_is_elf = yes \
22378 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22379 then gcc_cv_as_hidden
=yes
22381 elif test x
$gcc_cv_as != x
; then
22382 $as_echo ' .hidden foobar
22383 foobar:' > conftest.s
22384 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22386 (eval $ac_try) 2>&5
22388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22389 test $ac_status = 0; }; }
22392 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22393 # STV_HIDDEN, so disable .hidden support if so.
22394 case "${target}" in
22395 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22396 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22397 cat > conftest.s
<<EOF
22402 .set default,hidden
22404 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22405 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22406 grep '\.hidden default' > /dev
/null
; then
22407 gcc_cv_as_hidden
=no
22409 gcc_cv_as_hidden
=yes
22412 # Assume bug is present if objdump is missing.
22413 gcc_cv_as_hidden
=no
22417 gcc_cv_as_hidden
=yes
22421 echo "configure: failed program was" >&5
22424 rm -f conftest.o conftest.s
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22428 $as_echo "$gcc_cv_as_hidden" >&6; }
22430 case "${target}" in
22432 # Darwin as has some visibility support, though with a different syntax.
22433 gcc_cv_as_hidden
=yes
22437 # gnu_indirect_function type is an extension proposed at
22438 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22439 # selection of function implementation
22440 # Check whether --enable-gnu-indirect-function was given.
22441 if test "${enable_gnu_indirect_function+set}" = set; then :
22442 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22444 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22445 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22448 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22451 if test x
$enable_gnu_indirect_function = xyes
; then
22453 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22457 if test $in_tree_ld != yes ; then
22458 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22459 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22460 if test x
"$ld_is_gold" = xyes
; then
22461 # GNU gold --version looks like this:
22463 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22465 # We extract the binutils version which is more familiar and specific
22466 # than the gold version.
22467 ld_vers
=`echo $ld_ver | sed -n \
22468 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22470 # GNU ld --version looks like this:
22472 # GNU ld (GNU Binutils) 2.21.51.20110225
22473 ld_vers
=`echo $ld_ver | sed -n \
22474 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22476 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'`
22477 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22478 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22479 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22481 case "${target}" in
22483 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22486 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22487 # /usr/ccs/bin/ld has been configured.
22488 ld_ver
=`$gcc_cv_ld -V 2>&1`
22489 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22490 ld_vers
=`echo $ld_ver | sed -n \
22491 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22492 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22493 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22501 $as_echo_n "checking linker for .hidden support... " >&6; }
22502 if test "${gcc_cv_ld_hidden+set}" = set; then :
22503 $as_echo_n "(cached) " >&6
22505 if test $in_tree_ld = yes ; then
22506 gcc_cv_ld_hidden
=no
22507 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 \
22508 && test $in_tree_ld_is_elf = yes; then
22509 gcc_cv_ld_hidden
=yes
22512 gcc_cv_ld_hidden
=yes
22513 if test x
"$ld_is_gold" = xyes
; then
22515 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22516 if test 0"$ld_date" -lt 20020404; then
22517 if test -n "$ld_date"; then
22518 # If there was date string, but was earlier than 2002-04-04, fail
22519 gcc_cv_ld_hidden
=no
22520 elif test -z "$ld_vers"; then
22521 # If there was no date string nor ld version number, something is wrong
22522 gcc_cv_ld_hidden
=no
22524 test -z "$ld_vers_patch" && ld_vers_patch
=0
22525 if test "$ld_vers_major" -lt 2; then
22526 gcc_cv_ld_hidden
=no
22527 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22528 gcc_cv_ld_hidden
="no"
22529 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22530 gcc_cv_ld_hidden
=no
22535 case "${target}" in
22537 # Darwin ld has some visibility support.
22538 gcc_cv_ld_hidden
=yes
22540 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22541 gcc_cv_ld_hidden
=yes
22543 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22544 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22545 # .symbolic was only added in Solaris 9 12/02.
22546 gcc_cv_ld_hidden
=yes
22549 gcc_cv_ld_hidden
=no
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22556 $as_echo "$gcc_cv_ld_hidden" >&6; }
22557 libgcc_visibility
=no
22560 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22561 libgcc_visibility
=yes
22563 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22568 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22569 gcc_cv_ld_ro_rw_mix
=unknown
22570 if test $in_tree_ld = yes ; then
22571 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 \
22572 && test $in_tree_ld_is_elf = yes; then
22573 gcc_cv_ld_ro_rw_mix
=read-write
22575 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22576 echo '.section myfoosect, "a"' > conftest1.s
22577 echo '.section myfoosect, "aw"' > conftest2.s
22578 echo '.byte 1' >> conftest2.s
22579 echo '.section myfoosect, "a"' > conftest3.s
22580 echo '.byte 0' >> conftest3.s
22581 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22582 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22583 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22584 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22585 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22586 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22587 | sed -e '/myfoosect/!d' -e N`
22588 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22589 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22590 gcc_cv_ld_ro_rw_mix
=read-only
22592 gcc_cv_ld_ro_rw_mix
=read-write
22596 rm -f conftest.
* conftest
[123].
*
22598 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22600 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22604 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22606 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22607 case "${target}" in
22610 # Solaris 2 ld -V output looks like this for a regular version:
22612 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22614 # but test versions add stuff at the end:
22616 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22618 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22619 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22620 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22621 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22622 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22623 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22629 # Check whether --enable-initfini-array was given.
22630 if test "${enable_initfini_array+set}" = set; then :
22631 enableval
=$enable_initfini_array;
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22635 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22636 if test "${gcc_cv_initfini_array+set}" = set; then :
22637 $as_echo_n "(cached) " >&6
22639 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22640 case "${target}" in
22642 if test "$cross_compiling" = yes; then :
22643 gcc_cv_initfini_array
=no
22645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22646 /* end confdefs.h. */
22649 #error Not an ELF OS
22651 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22652 if it can be used. */
22654 int main (void) { return x; }
22655 int foo (void) { x = 0; }
22656 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22659 if ac_fn_c_try_run
"$LINENO"; then :
22660 gcc_cv_initfini_array
=yes
22662 gcc_cv_initfini_array
=no
22664 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22665 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22669 gcc_cv_initfini_array
=no
22670 if test $in_tree_ld = yes ; then
22671 if test "$gcc_cv_gld_major_version" -eq 2 \
22672 -a "$gcc_cv_gld_minor_version" -ge 22 \
22673 -o "$gcc_cv_gld_major_version" -gt 2 \
22674 && test $in_tree_ld_is_elf = yes; then
22675 gcc_cv_initfini_array
=yes
22677 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22678 cat > conftest.s
<<\EOF
22679 .section .dtors
,"a",%progbits
22681 .byte
'A', 'A', 'A', 'A'
22682 .section .ctors
,"a",%progbits
22684 .byte
'B', 'B', 'B', 'B'
22685 .section .fini_array
.65530,"a",%progbits
22687 .byte
'C', 'C', 'C', 'C'
22688 .section .init_array
.65530,"a",%progbits
22690 .byte
'D', 'D', 'D', 'D'
22691 .section .dtors
.64528,"a",%progbits
22693 .byte
'E', 'E', 'E', 'E'
22694 .section .ctors
.64528,"a",%progbits
22696 .byte
'F', 'F', 'F', 'F'
22697 .section .fini_array
.01005,"a",%progbits
22699 .byte
'G', 'G', 'G', 'G'
22700 .section .init_array
.01005,"a",%progbits
22702 .byte
'H', 'H', 'H', 'H'
22707 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22708 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22709 && $gcc_cv_objdump -s -j .init_array conftest \
22710 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22711 && $gcc_cv_objdump -s -j .fini_array conftest \
22712 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22713 gcc_cv_initfini_array
=yes
22715 rm -f conftest conftest.
*
22717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22718 /* end confdefs.h. */
22721 # error Not an ELF OS
22723 #include <stdlib.h>
22724 #if defined __GLIBC_PREREQ
22725 # if __GLIBC_PREREQ (2, 4)
22727 # error GLIBC 2.4 required
22730 # if defined __sun__ && defined __svr4__
22731 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22733 # error The C library not known to support .init_array/.fini_array
22738 if ac_fn_c_try_cpp
"$LINENO"; then :
22741 gcc_cv_initfini_array
=no
22743 rm -f conftest.err conftest.
$ac_ext;;
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22747 $as_echo_n "checking cross compile... guessing... " >&6; }
22748 gcc_cv_initfini_array
=no
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22752 $as_echo "$gcc_cv_initfini_array" >&6; }
22753 enable_initfini_array
=$gcc_cv_initfini_array
22757 if test $enable_initfini_array = yes; then
22759 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22763 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22765 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22766 if test "${gcc_cv_as_leb128+set}" = set; then :
22767 $as_echo_n "(cached) " >&6
22769 gcc_cv_as_leb128
=no
22770 if test $in_tree_gas = yes; then
22771 if test $in_tree_gas_is_elf = yes \
22772 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22773 then gcc_cv_as_leb128
=yes
22775 elif test x
$gcc_cv_as != x
; then
22782 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22784 (eval $ac_try) 2>&5
22786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22787 test $ac_status = 0; }; }
22789 # GAS versions before 2.11 do not support uleb128,
22790 # despite appearing to.
22791 # ??? There exists an elf-specific test that will crash
22792 # the assembler. Perhaps it's better to figure out whether
22793 # arbitrary sections are supported and try the test.
22794 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22795 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22796 as_vers
=`echo $as_ver | sed -n \
22797 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22798 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22799 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22800 if test $as_major -eq 2 && test $as_minor -lt 11
22802 else gcc_cv_as_leb128
=yes
22806 echo "configure: failed program was" >&5
22809 rm -f conftest.o conftest.s
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22813 $as_echo "$gcc_cv_as_leb128" >&6; }
22814 if test $gcc_cv_as_leb128 = yes; then
22816 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22820 # Check if we have assembler support for unwind directives.
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22822 $as_echo_n "checking assembler for cfi directives... " >&6; }
22823 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22824 $as_echo_n "(cached) " >&6
22826 gcc_cv_as_cfi_directive
=no
22827 if test x
$gcc_cv_as != x
; then
22833 .cfi_escape 1, 2, 3, 4, 5
22834 .cfi_endproc' > conftest.s
22835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22844 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22845 # read-only and read-write sections, we need to make sure that the
22846 # assembler used emits read-write .eh_frame sections.
22847 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22848 if test "x$gcc_cv_objdump" != x
; then
22849 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22850 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22851 gcc_cv_as_cfi_directive
=no
22854 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22855 # On Solaris/x86, make sure that GCC and gas agree on using
22856 # read-only .eh_frame sections for 64-bit.
22857 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22858 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22859 sed -e /.eh_frame
/!d
-e N | \
22860 grep READONLY
> /dev
/null
; then
22861 gcc_cv_as_cfi_directive
=yes
22863 gcc_cv_as_cfi_directive
=no
22867 gcc_cv_as_cfi_directive
=yes
22872 # no objdump, err on the side of caution
22873 gcc_cv_as_cfi_directive
=no
22876 gcc_cv_as_cfi_directive
=yes
22880 gcc_cv_as_cfi_directive
=yes
22884 echo "configure: failed program was" >&5
22887 rm -f conftest.o conftest.s
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22891 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22893 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22895 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22896 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22897 $as_echo_n "(cached) " >&6
22899 gcc_cv_as_cfi_advance_working
=no
22900 if test x
$gcc_cv_as != x
; then
22903 .cfi_adjust_cfa_offset 64
22905 .cfi_adjust_cfa_offset 128
22906 .cfi_endproc' > conftest.s
22907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22909 (eval $ac_try) 2>&5
22911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22912 test $ac_status = 0; }; }
22915 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22916 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22917 gcc_cv_as_cfi_advance_working
=yes
22921 echo "configure: failed program was" >&5
22924 rm -f conftest.o conftest.s
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22928 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22931 # no objdump, err on the side of caution
22932 gcc_cv_as_cfi_advance_working
=no
22936 cat >>confdefs.h
<<_ACEOF
22937 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22938 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22944 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22945 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22946 $as_echo_n "(cached) " >&6
22948 gcc_cv_as_cfi_personality_directive
=no
22949 if test x
$gcc_cv_as != x
; then
22952 .cfi_personality 0, symbol
22953 .cfi_endproc' > conftest.s
22954 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22956 (eval $ac_try) 2>&5
22958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22959 test $ac_status = 0; }; }
22961 gcc_cv_as_cfi_personality_directive
=yes
22963 echo "configure: failed program was" >&5
22966 rm -f conftest.o conftest.s
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22970 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22973 cat >>confdefs.h
<<_ACEOF
22974 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22975 then echo 1; else echo 0; fi`
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22980 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22981 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22982 $as_echo_n "(cached) " >&6
22984 gcc_cv_as_cfi_sections_directive
=no
22985 if test x
$gcc_cv_as != x
; then
22987 .cfi_sections .debug_frame, .eh_frame
22989 .cfi_endproc' > conftest.s
22990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22992 (eval $ac_try) 2>&5
22994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22995 test $ac_status = 0; }; }
22998 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22999 # Need to check that we generated the correct relocation for the
23000 # .debug_frame section. This was fixed for binutils 2.21.
23001 gcc_cv_as_cfi_sections_directive
=no
23002 if test "x$gcc_cv_objdump" != x
; then
23003 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23004 grep secrel
> /dev
/null
; then
23005 gcc_cv_as_cfi_sections_directive
=yes
23010 gcc_cv_as_cfi_sections_directive
=yes
23014 echo "configure: failed program was" >&5
23017 rm -f conftest.o conftest.s
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23021 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23025 cat >>confdefs.h
<<_ACEOF
23026 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23027 then echo 1; else echo 0; fi`
23031 # GAS versions up to and including 2.11.0 may mis-optimize
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23034 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23035 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23036 $as_echo_n "(cached) " >&6
23038 gcc_cv_as_eh_frame
=no
23039 if test $in_tree_gas = yes; then
23040 if test $in_tree_gas_is_elf = yes \
23041 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23042 then gcc_cv_as_eh_frame
=yes
23044 elif test x
$gcc_cv_as != x
; then
23051 .section .eh_frame,"aw",@progbits
23053 .4byte .LECIE1-.LSCIE1
23067 .4byte .LEFDE1-.LASFDE1
23069 .4byte .LASFDE1-__FRAME_BEGIN__
23076 .LEFDE1:' > conftest.s
23077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23079 (eval $ac_try) 2>&5
23081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23082 test $ac_status = 0; }; }
23084 cat > conftest.lit
<<EOF
23085 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23086 0010 01000000 12000000 18000000 00000000 ................
23087 0020 08000000 04080000 0044 .........D
23089 cat > conftest.big
<<EOF
23090 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23091 0010 00000001 00000012 00000018 00000000 ................
23092 0020 00000008 04000000 0844 .........D
23094 # If the assembler didn't choke, and we can objdump,
23095 # and we got the correct data, then succeed.
23096 # The text in the here-document typically retains its unix-style line
23097 # endings, while the output of objdump will use host line endings.
23098 # Therefore, use diff -b for the comparisons.
23099 if test x
$gcc_cv_objdump != x \
23100 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23101 |
tail -3 > conftest.got \
23102 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23103 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23105 gcc_cv_as_eh_frame
=yes
23106 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23108 (eval $ac_try) 2>&5
23110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23111 test $ac_status = 0; }; }; then
23112 gcc_cv_as_eh_frame
=buggy
23114 # Uh oh, what do we do now?
23115 gcc_cv_as_eh_frame
=no
23118 echo "configure: failed program was" >&5
23121 rm -f conftest.o conftest.s
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23125 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23128 if test $gcc_cv_as_eh_frame = buggy
; then
23130 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23135 $as_echo_n "checking assembler for section merging support... " >&6; }
23136 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23137 $as_echo_n "(cached) " >&6
23139 gcc_cv_as_shf_merge
=no
23140 if test $in_tree_gas = yes; then
23141 if test $in_tree_gas_is_elf = yes \
23142 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23143 then gcc_cv_as_shf_merge
=yes
23145 elif test x
$gcc_cv_as != x
; then
23146 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23149 (eval $ac_try) 2>&5
23151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23152 test $ac_status = 0; }; }
23154 gcc_cv_as_shf_merge
=yes
23156 echo "configure: failed program was" >&5
23159 rm -f conftest.o conftest.s
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23163 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23165 if test $gcc_cv_as_shf_merge = no
; then
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23167 $as_echo_n "checking assembler for section merging support... " >&6; }
23168 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23169 $as_echo_n "(cached) " >&6
23171 gcc_cv_as_shf_merge
=no
23172 if test $in_tree_gas = yes; then
23173 if test $in_tree_gas_is_elf = yes \
23174 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23175 then gcc_cv_as_shf_merge
=yes
23177 elif test x
$gcc_cv_as != x
; then
23178 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23179 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23181 (eval $ac_try) 2>&5
23183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23184 test $ac_status = 0; }; }
23186 gcc_cv_as_shf_merge
=yes
23188 echo "configure: failed program was" >&5
23191 rm -f conftest.o conftest.s
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23195 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23199 cat >>confdefs.h
<<_ACEOF
23200 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23205 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23206 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23207 $as_echo_n "(cached) " >&6
23209 gcc_cv_as_comdat_group
=no
23210 if test $in_tree_gas = yes; then
23211 if test $in_tree_gas_is_elf = yes \
23212 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23213 then gcc_cv_as_comdat_group
=yes
23215 elif test x
$gcc_cv_as != x
; then
23216 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23219 (eval $ac_try) 2>&5
23221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23222 test $ac_status = 0; }; }
23224 gcc_cv_as_comdat_group
=yes
23226 echo "configure: failed program was" >&5
23229 rm -f conftest.o conftest.s
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23233 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23235 if test $gcc_cv_as_comdat_group = yes; then
23236 gcc_cv_as_comdat_group_percent
=no
23237 gcc_cv_as_comdat_group_group
=no
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23240 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23241 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23242 $as_echo_n "(cached) " >&6
23244 gcc_cv_as_comdat_group_percent
=no
23245 if test $in_tree_gas = yes; then
23246 if test $in_tree_gas_is_elf = yes \
23247 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23248 then gcc_cv_as_comdat_group_percent
=yes
23250 elif test x
$gcc_cv_as != x
; then
23251 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23252 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23254 (eval $ac_try) 2>&5
23256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23257 test $ac_status = 0; }; }
23259 gcc_cv_as_comdat_group_percent
=yes
23261 echo "configure: failed program was" >&5
23264 rm -f conftest.o conftest.s
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23268 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23270 if test $gcc_cv_as_comdat_group_percent = yes; then
23271 gcc_cv_as_comdat_group_group
=no
23273 case "${target}" in
23274 # Sun as uses a completely different syntax.
23276 case "${target}" in
23277 sparc
*-*-solaris2*)
23279 .group foo,".text%foo",#comdat
23280 .section ".text%foo", #alloc,#execinstr,#progbits
23285 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23287 .group foo,.text%foo,#comdat
23288 .section .text%foo, "ax", @progbits
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23295 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23296 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23297 $as_echo_n "(cached) " >&6
23299 gcc_cv_as_comdat_group_group
=no
23300 if test x
$gcc_cv_as != x
; then
23301 $as_echo "$conftest_s" > conftest.s
23302 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23304 (eval $ac_try) 2>&5
23306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23307 test $ac_status = 0; }; }
23309 gcc_cv_as_comdat_group_group
=yes
23311 echo "configure: failed program was" >&5
23314 rm -f conftest.o conftest.s
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23318 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23324 if test x
"$ld_is_gold" = xyes
; then
23326 elif test $in_tree_ld = yes ; then
23328 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 \
23329 && test $in_tree_ld_is_elf = yes; then
23332 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23334 if test 0"$ld_date" -lt 20050308; then
23335 if test -n "$ld_date"; then
23336 # If there was date string, but was earlier than 2005-03-08, fail
23338 elif test "$ld_vers_major" -lt 2; then
23340 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23345 case "${target}" in
23346 *-*-solaris2.1
[1-9]*)
23348 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23349 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23352 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23353 # least ld version 1.2267.
23354 if test "$ld_vers_major" -gt 1; then
23356 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23358 elif test "$ld_vers_minor" -ge 2267; then
23363 # Assume linkers other than GNU ld don't support COMDAT group.
23368 # Allow overriding the automatic COMDAT group tests above.
23369 # Check whether --enable-comdat was given.
23370 if test "${enable_comdat+set}" = set; then :
23371 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23374 if test $comdat_group = no
; then
23375 gcc_cv_as_comdat_group
=no
23376 gcc_cv_as_comdat_group_percent
=no
23377 gcc_cv_as_comdat_group_group
=no
23380 cat >>confdefs.h
<<_ACEOF
23381 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23382 || test $gcc_cv_as_comdat_group_percent = yes \
23383 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23388 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23389 if test "${gcc_cv_as_discriminator+set}" = set; then :
23390 $as_echo_n "(cached) " >&6
23392 gcc_cv_as_discriminator
=no
23393 if test $in_tree_gas = yes; then
23394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23395 then gcc_cv_as_discriminator
=yes
23397 elif test x
$gcc_cv_as != x
; then
23400 .loc 1 1 0 discriminator 1' > conftest.s
23401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23403 (eval $ac_try) 2>&5
23405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23406 test $ac_status = 0; }; }
23408 gcc_cv_as_discriminator
=yes
23410 echo "configure: failed program was" >&5
23413 rm -f conftest.o conftest.s
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23417 $as_echo "$gcc_cv_as_discriminator" >&6; }
23418 if test $gcc_cv_as_discriminator = yes; then
23420 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23424 # Thread-local storage - the check is heavily parameterized.
23432 .section ".tdata","awT",@progbits
23435 ldq $27,__tls_get_addr($29) !literal!1
23436 lda $16,foo($29) !tlsgd!1
23437 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23438 ldq $27,__tls_get_addr($29) !literal!2
23439 lda $16,foo($29) !tlsldm!2
23440 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23441 ldq $1,foo($29) !gotdtprel
23442 ldah $2,foo($29) !dtprelhi
23443 lda $3,foo($2) !dtprello
23444 lda $4,foo($29) !dtprel
23445 ldq $1,foo($29) !gottprel
23446 ldah $2,foo($29) !tprelhi
23447 lda $3,foo($2) !tprello
23448 lda $4,foo($29) !tprel'
23451 tls_as_opt
=--fatal-warnings
23453 cris-
*-*|crisv32-
*-*)
23455 .section ".tdata","awT",@progbits
23462 tls_as_opt
=--fatal-warnings
23466 .section ".tdata","awT",@progbits
23469 call #gettlsoff(x)'
23478 .section ".tdata","awT",@progbits
23482 addil LT%foo-$tls_gdidx$,gp
23483 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23486 addil LT%foo-$tls_ldidx$,gp
23488 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23489 addil LR%foo-$tls_dtpoff$,%ret0
23490 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23492 addil LT%foo-$tls_ieoff$,gp
23493 ldw RT%foo-$tls_ieoff$(%r1),%t2
23496 addil LR%foo-$tls_leoff$,%t1
23497 ldo RR%foo-$tls_leoff$(%r1),%t2'
23500 tls_as_opt
=--fatal-warnings
23504 .section ".tdata","awT",%progbits
23507 .word foo(gottpoff)
23515 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23517 i
[34567]86-*-solaris2.
*)
23519 tga_func
=___tls_get_addr
23521 x86_64-
*-solaris2.1
[0-9]*)
23523 tga_func
=__tls_get_addr
23529 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23531 .section .tdata,"awt",@progbits'
23535 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23539 .section ".tdata","awT",@progbits'
23542 tls_as_opt
="--fatal-warnings"
23544 conftest_s
="$conftest_s
23548 leal foo@tlsgd(,%ebx,1), %eax
23549 leal foo@tlsldm(%ebx), %eax
23550 leal foo@dtpoff(%eax), %edx
23551 movl foo@gottpoff(%ebx), %eax
23552 subl foo@gottpoff(%ebx), %eax
23553 addl foo@gotntpoff(%ebx), %eax
23554 movl foo@indntpoff, %eax
23555 movl \$foo@tpoff, %eax
23556 subl \$foo@tpoff, %eax
23557 leal foo@ntpoff(%ecx), %eax"
23561 .section ".tdata","awT",@progbits
23565 leaq foo@TLSGD(%rip), %rdi
23566 leaq foo@TLSLD(%rip), %rdi
23567 leaq foo@DTPOFF(%rax), %rdx
23568 movq foo@GOTTPOFF(%rip), %rax
23569 movq $foo@TPOFF, %rax'
23572 tls_as_opt
=--fatal-warnings
23576 .section ".tdata","awT",@progbits
23579 addl r16 = @ltoff(@dtpmod(foo#)), gp
23580 addl r17 = @ltoff(@dtprel(foo#)), gp
23581 addl r18 = @ltoff(@tprel(foo#)), gp
23582 addl r19 = @dtprel(foo#), gp
23583 adds r21 = @dtprel(foo#), r13
23584 movl r23 = @dtprel(foo#)
23585 addl r20 = @tprel(foo#), gp
23586 adds r22 = @tprel(foo#), r13
23587 movl r24 = @tprel(foo#)'
23590 tls_as_opt
=--fatal-warnings
23594 .section .tdata,"awT",@progbits
23598 addiu $4, $28, %tlsgd(x)
23599 addiu $4, $28, %tlsldm(x)
23600 lui $4, %dtprel_hi(x)
23601 addiu $4, $4, %dtprel_lo(x)
23602 lw $4, %gottprel(x)($28)
23603 lui $4, %tprel_hi(x)
23604 addiu $4, $4, %tprel_lo(x)'
23607 tls_as_opt
='-32 --fatal-warnings'
23611 .section .tdata,"awT",@progbits
23616 move.l x@TLSGD(%a5),%a0
23617 move.l x@TLSLDM(%a5),%a0
23618 move.l x@TLSLDO(%a5),%a0
23619 move.l x@TLSIE(%a5),%a0
23620 move.l x@TLSLE(%a5),%a0'
23623 tls_as_opt
='--fatal-warnings'
23627 .section ".tdata","awT",@progbits
23635 addi 3,31,ld0@got@tlsgd
23637 addi 3,31,x1@got@tlsld
23640 addis 9,3,x2@dtprel@ha
23641 addi 9,9,x2@dtprel@l
23642 lwz 9,x3@got@tprel(31)
23645 addis 9,2,x2@tprel@ha
23646 addi 9,9,x2@tprel@l'
23649 tls_as_opt
="-a32 --fatal-warnings"
23653 .section ".tdata","awT",@progbits
23661 addi 3,2,ld0@got@tlsgd
23667 addi 3,2,x1@got@tlsld
23673 addis 9,3,x2@dtprel@ha
23674 addi 9,9,x2@dtprel@l
23677 ld 9,x3@got@dtprel(2)
23683 tls_as_opt
="-a64 --fatal-warnings"
23687 .section ".tdata","awT",@progbits
23694 .long foo@GOTNTPOFF
23695 .long foo@INDNTPOFF
23696 l %r1,foo@GOTNTPOFF(%r12)
23697 l %r1,0(%r1):tls_load:foo
23698 bas %r14,0(%r1,%r13):tls_gdcall:foo
23699 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23702 tls_as_opt
="-m31 --fatal-warnings"
23706 .section ".tdata","awT",@progbits
23713 .quad foo@GOTNTPOFF
23714 lg %r1,foo@GOTNTPOFF(%r12)
23715 larl %r1,foo@INDNTPOFF
23716 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23717 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23720 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23722 sh-
*-* | sh
[34]-*-*)
23724 .section ".tdata","awT",@progbits
23734 tls_as_opt
=--fatal-warnings
23738 sparc
*-sun-solaris2.
*)
23740 tga_func
=__tls_get_addr
23746 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23748 .section ".tdata",#alloc,#write,#tls'
23753 .section ".tdata","awT",@progbits'
23756 tls_as_opt
="-32 --fatal-warnings"
23758 conftest_s
="$conftest_s
23761 sethi %tgd_hi22(foo), %o0
23762 add %o0, %tgd_lo10(foo), %o1
23763 add %l7, %o1, %o0, %tgd_add(foo)
23764 call __tls_get_addr, %tgd_call(foo)
23765 sethi %tldm_hi22(foo), %l1
23766 add %l1, %tldm_lo10(foo), %l2
23767 add %l7, %l2, %o0, %tldm_add(foo)
23768 call __tls_get_addr, %tldm_call(foo)
23769 sethi %tldo_hix22(foo), %l3
23770 xor %l3, %tldo_lox10(foo), %l4
23771 add %o0, %l4, %l5, %tldo_add(foo)
23772 sethi %tie_hi22(foo), %o3
23773 add %o3, %tie_lo10(foo), %o3
23774 ld [%l7 + %o3], %o2, %tie_ld(foo)
23775 add %g7, %o2, %o4, %tie_add(foo)
23776 sethi %tle_hix22(foo), %l1
23777 xor %l1, %tle_lox10(foo), %o5
23778 ld [%g7 + %o5], %o1"
23782 .section ".tdata","awT",@progbits
23785 addli r0, zero, tls_gd(foo)
23786 auli r0, zero, tls_gd_ha16(foo)
23787 addli r0, r0, tls_gd_lo16(foo)
23789 addli r0, zero, tls_ie(foo)
23790 auli r0, r0, tls_ie_ha16(foo)
23791 addli r0, r0, tls_ie_lo16(foo)'
23794 tls_as_opt
="--fatal-warnings"
23798 .section ".tdata","awT",@progbits
23801 shl16insli r0, zero, hw0_last_tls_gd(foo)
23802 shl16insli r0, zero, hw1_last_tls_gd(foo)
23803 shl16insli r0, r0, hw0_tls_gd(foo)
23805 shl16insli r0, zero, hw1_last_tls_ie(foo)
23806 shl16insli r0, r0, hw0_tls_ie(foo)'
23809 tls_as_opt
="--fatal-warnings"
23813 .section ".tdata","awT",@progbits
23816 movi a8, foo@TLSFUNC
23817 movi a10, foo@TLSARG
23818 callx8.tls a8, foo@TLSCALL'
23824 if test "x$enable_tls" = xno
; then
23825 : # TLS explicitly disabled.
23826 elif test "x$enable_tls" = xyes
; then
23827 set_have_as_tls
=yes # TLS explicitly enabled.
23828 elif test -z "$tls_first_major"; then
23829 : # If we don't have a check, assume no support.
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23832 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23833 if test "${gcc_cv_as_tls+set}" = set; then :
23834 $as_echo_n "(cached) " >&6
23837 if test $in_tree_gas = yes; then
23838 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23839 then gcc_cv_as_tls
=yes
23841 elif test x
$gcc_cv_as != x
; then
23842 $as_echo "$conftest_s" > conftest.s
23843 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23845 (eval $ac_try) 2>&5
23847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23848 test $ac_status = 0; }; }
23852 echo "configure: failed program was" >&5
23855 rm -f conftest.o conftest.s
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23859 $as_echo "$gcc_cv_as_tls" >&6; }
23860 if test $gcc_cv_as_tls = yes; then
23861 set_have_as_tls
=yes
23865 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23866 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23867 # Sun style that Sun ld and GCC don't support any longer.
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23870 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23872 # Check ld and ld.so.1 TLS support.
23873 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23874 # Assume all interesting versions of GNU ld have TLS support.
23875 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23879 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23881 min_tls_ld_vers_minor
=374
23883 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23884 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23885 min_tls_ld_vers_minor
=343
23888 if test "$ld_vers_major" -gt 1 || \
23889 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23896 $as_echo "$ld_tls_support" >&6; }
23899 save_LDFLAGS
="$LDFLAGS"
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23904 $as_echo_n "checking library containing $tga_func... " >&6; }
23905 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23906 # (32-bit x86) only lived in libthread, so check for that. Keep
23907 # set_have_as_tls if found, disable if not.
23908 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23910 $as_echo_n "checking for library containing $tga_func... " >&6; }
23911 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23912 $as_echo_n "(cached) " >&6
23914 ac_func_search_save_LIBS
=$LIBS
23915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23916 /* end confdefs.h. */
23918 /* Override any GCC internal prototype to avoid an error.
23919 Use char because int might match the return type of a GCC
23920 builtin and then its argument prototype would still apply. */
23928 return $tga_func ();
23933 for ac_lib
in '' thread
; do
23934 if test -z "$ac_lib"; then
23935 ac_res
="none required"
23938 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23940 if ac_fn_c_try_link
"$LINENO"; then :
23941 eval "$as_ac_Search=\$ac_res"
23943 rm -f core conftest.err conftest.
$ac_objext \
23945 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23949 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23952 eval "$as_ac_Search=no"
23954 rm conftest.
$ac_ext
23955 LIBS
=$ac_func_search_save_LIBS
23957 eval ac_res
=\$
$as_ac_Search
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23959 $as_echo "$ac_res" >&6; }
23960 eval ac_res
=\$
$as_ac_Search
23961 if test "$ac_res" != no
; then :
23962 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23968 # Clear LIBS if we cannot support TLS.
23969 if test $set_have_as_tls = no
; then
23972 # Always define LIB_TLS_SPEC, even without TLS support.
23974 cat >>confdefs.h
<<_ACEOF
23975 #define LIB_TLS_SPEC "$LIBS"
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23979 $as_echo "$LIBS" >&6; }
23982 LDFLAGS
="$save_LDFLAGS"
23985 if test $set_have_as_tls = yes ; then
23987 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23991 # Target-specific assembler checks.
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23994 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23995 gcc_cv_ld_static_dynamic
=no
23996 gcc_cv_ld_static_option
='-Bstatic'
23997 gcc_cv_ld_dynamic_option
='-Bdynamic'
23998 if test $in_tree_ld = yes ; then
23999 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
24000 gcc_cv_ld_static_dynamic
=yes
24002 elif test x
$gcc_cv_ld != x
; then
24003 # Check if linker supports -Bstatic/-Bdynamic option
24004 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24005 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24006 gcc_cv_ld_static_dynamic
=yes
24009 # HP-UX ld uses -a flags to select between shared and archive.
24011 if test x
"$gnu_ld" = xno
; then
24012 gcc_cv_ld_static_dynamic
=yes
24013 gcc_cv_ld_static_option
="-aarchive_shared"
24014 gcc_cv_ld_dynamic_option
="-adefault"
24017 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24019 gcc_cv_ld_static_dynamic
=yes
24024 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24026 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24029 cat >>confdefs.h
<<_ACEOF
24030 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24034 cat >>confdefs.h
<<_ACEOF
24035 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24040 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24042 if test x
"$demangler_in_ld" = xyes
; then
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24044 $as_echo_n "checking linker --demangle support... " >&6; }
24045 gcc_cv_ld_demangle
=no
24046 if test $in_tree_ld = yes; then
24047 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 \
24048 gcc_cv_ld_demangle
=yes
24050 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24051 # Check if the GNU linker supports --demangle option
24052 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24053 gcc_cv_ld_demangle
=yes
24056 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24058 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24062 $as_echo "$gcc_cv_ld_demangle" >&6; }
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24066 $as_echo_n "checking linker plugin support... " >&6; }
24067 gcc_cv_lto_plugin
=0
24068 if test -f liblto_plugin.la
; then
24069 save_ld_ver
="$ld_ver"
24070 save_ld_vers_major
="$ld_vers_major"
24071 save_ld_vers_minor
="$ld_vers_minor"
24072 save_ld_is_gold
="$ld_is_gold"
24076 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24078 # FIXME: ld_is_gold?
24079 ld_vers_major
="$gcc_cv_gld_major_version"
24080 ld_vers_minor
="$gcc_cv_gld_minor_version"
24082 # Determine plugin linker version.
24083 # FIXME: Partial duplicate from above, generalize.
24084 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24085 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24086 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24088 ld_vers
=`echo $ld_ver | sed -n \
24089 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24091 ld_vers
=`echo $ld_ver | sed -n \
24092 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24094 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24095 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24099 # Determine plugin support.
24100 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24101 # Require GNU ld or gold 2.21+ for plugin support by default.
24102 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24103 gcc_cv_lto_plugin
=2
24104 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24105 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24106 gcc_cv_lto_plugin
=1
24110 ld_ver
="$save_ld_ver"
24111 ld_vers_major
="$save_ld_vers_major"
24112 ld_vers_minor
="$save_ld_vers_minor"
24113 ld_is_gold
="$save_ld_is_gold"
24116 cat >>confdefs.h
<<_ACEOF
24117 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24121 $as_echo "$gcc_cv_lto_plugin" >&6; }
24124 # All TARGET_ABI_OSF targets.
24125 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24127 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24128 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24129 $as_echo_n "(cached) " >&6
24131 gcc_cv_as_alpha_explicit_relocs
=no
24132 if test $in_tree_gas = yes; then
24133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24134 then gcc_cv_as_alpha_explicit_relocs
=yes
24136 elif test x
$gcc_cv_as != x
; then
24137 $as_echo ' .set nomacro
24139 extbl $3, $2, $3 !lituse_bytoff!1
24140 ldq $2, a($29) !literal!1
24141 ldq $4, b($29) !literal!2
24142 ldq_u $3, 0($2) !lituse_base!1
24143 ldq $27, f($29) !literal!5
24144 jsr $26, ($27), f !lituse_jsr!5
24145 ldah $29, 0($26) !gpdisp!3
24146 lda $0, c($29) !gprel
24147 ldah $1, d($29) !gprelhigh
24148 lda $1, d($1) !gprellow
24149 lda $29, 0($29) !gpdisp!3' > conftest.s
24150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24152 (eval $ac_try) 2>&5
24154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155 test $ac_status = 0; }; }
24157 gcc_cv_as_alpha_explicit_relocs
=yes
24159 echo "configure: failed program was" >&5
24162 rm -f conftest.o conftest.s
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24166 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24167 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24169 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24173 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24174 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24175 $as_echo_n "(cached) " >&6
24177 gcc_cv_as_alpha_jsrdirect_relocs
=no
24178 if test $in_tree_gas = yes; then
24179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24180 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24182 elif test x
$gcc_cv_as != x
; then
24183 $as_echo ' .set nomacro
24185 ldq $27, a($29) !literal!1
24186 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24189 (eval $ac_try) 2>&5
24191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24192 test $ac_status = 0; }; }
24194 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24196 echo "configure: failed program was" >&5
24199 rm -f conftest.o conftest.s
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24203 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24204 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24206 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24213 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24214 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24215 $as_echo_n "(cached) " >&6
24217 gcc_cv_as_cris_no_mul_bug
=no
24218 if test $in_tree_gas = yes; then
24219 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24220 then gcc_cv_as_cris_no_mul_bug
=yes
24222 elif test x
$gcc_cv_as != x
; then
24223 $as_echo '.text' > conftest.s
24224 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24226 (eval $ac_try) 2>&5
24228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24229 test $ac_status = 0; }; }
24231 gcc_cv_as_cris_no_mul_bug
=yes
24233 echo "configure: failed program was" >&5
24236 rm -f conftest.o conftest.s
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24240 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24241 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24243 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24250 $as_echo_n "checking assembler for .register... " >&6; }
24251 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24252 $as_echo_n "(cached) " >&6
24254 gcc_cv_as_sparc_register_op
=no
24255 if test x
$gcc_cv_as != x
; then
24256 $as_echo '.register %g2, #scratch' > conftest.s
24257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259 (eval $ac_try) 2>&5
24261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262 test $ac_status = 0; }; }
24264 gcc_cv_as_sparc_register_op
=yes
24266 echo "configure: failed program was" >&5
24269 rm -f conftest.o conftest.s
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24273 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24274 if test $gcc_cv_as_sparc_register_op = yes; then
24276 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24281 $as_echo_n "checking assembler for -relax option... " >&6; }
24282 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24283 $as_echo_n "(cached) " >&6
24285 gcc_cv_as_sparc_relax
=no
24286 if test x
$gcc_cv_as != x
; then
24287 $as_echo '.text' > conftest.s
24288 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24290 (eval $ac_try) 2>&5
24292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24293 test $ac_status = 0; }; }
24295 gcc_cv_as_sparc_relax
=yes
24297 echo "configure: failed program was" >&5
24300 rm -f conftest.o conftest.s
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24304 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24305 if test $gcc_cv_as_sparc_relax = yes; then
24307 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24312 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24313 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24314 $as_echo_n "(cached) " >&6
24316 gcc_cv_as_sparc_gotdata_op
=no
24317 if test x
$gcc_cv_as != x
; then
24323 sethi %gdop_hix22(foo), %g1
24324 xor %g1, %gdop_lox10(foo), %g1
24325 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24326 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24328 (eval $ac_try) 2>&5
24330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331 test $ac_status = 0; }; }
24333 if test x
$gcc_cv_ld != x \
24334 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24335 if test x
$gcc_cv_objdump != x
; then
24336 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24337 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24338 gcc_cv_as_sparc_gotdata_op
=no
24340 gcc_cv_as_sparc_gotdata_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_gotdata_op" >&5
24353 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24354 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24356 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24361 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24362 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24363 $as_echo_n "(cached) " >&6
24365 gcc_cv_as_sparc_ua_pcrel
=no
24366 if test x
$gcc_cv_as != x
; then
24373 .uaword %r_disp32(foo)' > conftest.s
24374 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24376 (eval $ac_try) 2>&5
24378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24379 test $ac_status = 0; }; }
24381 if test x
$gcc_cv_ld != x \
24382 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24383 gcc_cv_as_sparc_ua_pcrel
=yes
24387 echo "configure: failed program was" >&5
24390 rm -f conftest.o conftest.s
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24394 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24395 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24397 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24401 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24402 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24403 $as_echo_n "(cached) " >&6
24405 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24406 if test x
$gcc_cv_as != x
; then
24410 .uaword %r_disp32(foo)
24411 .byte 0x32, 0x33, 0x34
24415 .skip 4' > conftest.s
24416 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24418 (eval $ac_try) 2>&5
24420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24421 test $ac_status = 0; }; }
24423 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24424 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24425 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24426 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24427 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24428 |
grep 'DISP32' > /dev
/null
2>&1; then
24431 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24436 echo "configure: failed program was" >&5
24439 rm -f conftest.o conftest.s
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24443 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24444 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24446 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24450 fi # unaligned pcrel relocs
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24453 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24454 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24457 gcc_cv_as_sparc_offsetable_lo10
=no
24458 if test x
$gcc_cv_as != x
; then
24460 or %g1, %lo(ab) + 12, %g1
24461 or %g1, %lo(ab + 12), %g1' > conftest.s
24462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24464 (eval $ac_try) 2>&5
24466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24467 test $ac_status = 0; }; }
24469 if test x
$gcc_cv_objdump != x \
24470 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24471 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24472 gcc_cv_as_sparc_offsetable_lo10
=yes
24475 echo "configure: failed program was" >&5
24478 rm -f conftest.o conftest.s
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24482 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24483 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24485 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24490 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24491 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24492 $as_echo_n "(cached) " >&6
24494 gcc_cv_as_sparc_fmaf
=no
24495 if test x
$gcc_cv_as != x
; then
24497 .register %g2, #scratch
24498 .register %g3, #scratch
24500 fmaddd %f0, %f2, %f4, %f6
24501 addxccc %g1, %g2, %g3
24502 fsrl32 %f2, %f4, %f8
24503 fnaddd %f10, %f12, %f14' > conftest.s
24504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24511 gcc_cv_as_sparc_fmaf
=yes
24513 echo "configure: failed program was" >&5
24516 rm -f conftest.o conftest.s
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24520 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24521 if test $gcc_cv_as_sparc_fmaf = yes; then
24523 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24528 i
[34567]86-*-* | x86_64-
*-*)
24531 # Full C++ conformance when using a shared libstdc++-v3 requires some
24532 # support from the Cygwin DLL, which in more recent versions exports
24533 # wrappers to aid in interposing and redirecting operators new, delete,
24534 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24535 # are configuring for a version of Cygwin that exports the wrappers.
24536 if test x
$host = x
$target; then
24537 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24538 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24539 gcc_ac_cygwin_dll_wrappers
=yes
24541 gcc_ac_cygwin_dll_wrappers
=no
24545 # Can't check presence of libc functions during cross-compile, so
24546 # we just have to assume we're building for an up-to-date target.
24547 gcc_ac_cygwin_dll_wrappers
=yes
24550 cat >>confdefs.h
<<_ACEOF
24551 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24556 cygwin
* | pe | mingw32
* | interix
*)
24557 # Recent binutils allows the three-operand form of ".comm" on PE. This
24558 # definition is used unconditionally to initialise the default state of
24559 # the target option variable that governs usage of the feature.
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24561 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24562 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24565 gcc_cv_as_comm_has_align
=no
24566 if test $in_tree_gas = yes; then
24567 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24568 then gcc_cv_as_comm_has_align
=yes
24570 elif test x
$gcc_cv_as != x
; then
24571 $as_echo '.comm foo,1,32' > conftest.s
24572 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24574 (eval $ac_try) 2>&5
24576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24577 test $ac_status = 0; }; }
24579 gcc_cv_as_comm_has_align
=yes
24581 echo "configure: failed program was" >&5
24584 rm -f conftest.o conftest.s
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24588 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24591 cat >>confdefs.h
<<_ACEOF
24592 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24595 # Used for DWARF 2 in PE
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24597 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24598 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24601 gcc_cv_as_ix86_pe_secrel32
=no
24602 if test $in_tree_gas = yes; then
24603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24604 then gcc_cv_as_ix86_pe_secrel32
=yes
24606 elif test x
$gcc_cv_as != x
; then
24610 .secrel32 foo' > conftest.s
24611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24613 (eval $ac_try) 2>&5
24615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24616 test $ac_status = 0; }; }
24618 if test x
$gcc_cv_ld != x \
24619 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24620 gcc_cv_as_ix86_pe_secrel32
=yes
24624 echo "configure: failed program was" >&5
24627 rm -f conftest.o conftest.s
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24631 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24632 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24634 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24637 # Test if the assembler supports the extended form of the .section
24638 # directive that specifies section alignment. LTO support uses this,
24639 # but normally only after installation, so we warn but don't fail the
24640 # configure if LTO is enabled but the assembler does not support it.
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24642 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24643 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24644 $as_echo_n "(cached) " >&6
24646 gcc_cv_as_section_has_align
=no
24647 if test $in_tree_gas = yes; then
24648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24649 then gcc_cv_as_section_has_align
=yes
24651 elif test x
$gcc_cv_as != x
; then
24652 $as_echo '.section lto_test,"dr0"' > conftest.s
24653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24660 gcc_cv_as_section_has_align
=yes
24662 echo "configure: failed program was" >&5
24665 rm -f conftest.o conftest.s
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24669 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24671 if test x
$gcc_cv_as_section_has_align != xyes
; then
24672 case ",$enable_languages," in
24674 { $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
24675 $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;}
24679 # Test if the assembler supports the section flag 'e' for specifying
24680 # an excluded section.
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24682 $as_echo_n "checking assembler for .section with e... " >&6; }
24683 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24686 gcc_cv_as_section_has_e
=no
24687 if test $in_tree_gas = yes; then
24688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24689 then gcc_cv_as_section_has_e
=yes
24691 elif test x
$gcc_cv_as != x
; then
24692 $as_echo '.section foo1,"e"
24693 .byte 0,0,0,0' > conftest.s
24694 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24696 (eval $ac_try) 2>&5
24698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24699 test $ac_status = 0; }; }
24701 gcc_cv_as_section_has_e
=yes
24703 echo "configure: failed program was" >&5
24706 rm -f conftest.o conftest.s
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24710 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24713 cat >>confdefs.h
<<_ACEOF
24714 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24721 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24722 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24725 gcc_cv_as_ix86_filds
=no
24726 if test x
$gcc_cv_as != x
; then
24727 $as_echo 'filds mem; fists mem' > conftest.s
24728 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24730 (eval $ac_try) 2>&5
24732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24733 test $ac_status = 0; }; }
24735 gcc_cv_as_ix86_filds
=yes
24737 echo "configure: failed program was" >&5
24740 rm -f conftest.o conftest.s
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24744 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24745 if test $gcc_cv_as_ix86_filds = yes; then
24747 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24752 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24753 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24754 $as_echo_n "(cached) " >&6
24756 gcc_cv_as_ix86_fildq
=no
24757 if test x
$gcc_cv_as != x
; then
24758 $as_echo 'fildq mem; fistpq mem' > conftest.s
24759 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24761 (eval $ac_try) 2>&5
24763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24764 test $ac_status = 0; }; }
24766 gcc_cv_as_ix86_fildq
=yes
24768 echo "configure: failed program was" >&5
24771 rm -f conftest.o conftest.s
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24775 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24776 if test $gcc_cv_as_ix86_fildq = yes; then
24778 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24783 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24784 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24785 $as_echo_n "(cached) " >&6
24787 gcc_cv_as_ix86_cmov_sun_syntax
=no
24788 if test x
$gcc_cv_as != x
; then
24789 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24790 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24792 (eval $ac_try) 2>&5
24794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24795 test $ac_status = 0; }; }
24797 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24799 echo "configure: failed program was" >&5
24802 rm -f conftest.o conftest.s
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24806 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24807 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24809 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24814 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24815 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24816 $as_echo_n "(cached) " >&6
24818 gcc_cv_as_ix86_ffreep
=no
24819 if test x
$gcc_cv_as != x
; then
24820 $as_echo 'ffreep %st(1)' > conftest.s
24821 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24823 (eval $ac_try) 2>&5
24825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24826 test $ac_status = 0; }; }
24828 gcc_cv_as_ix86_ffreep
=yes
24830 echo "configure: failed program was" >&5
24833 rm -f conftest.o conftest.s
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24837 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24838 if test $gcc_cv_as_ix86_ffreep = yes; then
24840 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24845 $as_echo_n "checking assembler for .quad directive... " >&6; }
24846 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24849 gcc_cv_as_ix86_quad
=no
24850 if test x
$gcc_cv_as != x
; then
24851 $as_echo '.quad 0' > conftest.s
24852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854 (eval $ac_try) 2>&5
24856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857 test $ac_status = 0; }; }
24859 gcc_cv_as_ix86_quad
=yes
24861 echo "configure: failed program was" >&5
24864 rm -f conftest.o conftest.s
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24868 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24869 if test $gcc_cv_as_ix86_quad = yes; then
24871 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24876 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24877 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24878 $as_echo_n "(cached) " >&6
24880 gcc_cv_as_ix86_sahf
=no
24881 if test x
$gcc_cv_as != x
; then
24884 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24891 gcc_cv_as_ix86_sahf
=yes
24893 echo "configure: failed program was" >&5
24896 rm -f conftest.o conftest.s
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24900 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24901 if test $gcc_cv_as_ix86_sahf = yes; then
24903 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24908 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24909 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24910 $as_echo_n "(cached) " >&6
24912 gcc_cv_as_ix86_hle
=no
24913 if test x
$gcc_cv_as != x
; then
24915 lock xacquire cmpxchg %esi, (%rcx)
24917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24919 (eval $ac_try) 2>&5
24921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24922 test $ac_status = 0; }; }
24924 gcc_cv_as_ix86_hle
=yes
24926 echo "configure: failed program was" >&5
24929 rm -f conftest.o conftest.s
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24933 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24934 if test $gcc_cv_as_ix86_hle = yes; then
24936 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24941 $as_echo_n "checking assembler for swap suffix... " >&6; }
24942 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24943 $as_echo_n "(cached) " >&6
24945 gcc_cv_as_ix86_swap
=no
24946 if test x
$gcc_cv_as != x
; then
24947 $as_echo 'movl.s %esp, %ebp' > conftest.s
24948 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24950 (eval $ac_try) 2>&5
24952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24953 test $ac_status = 0; }; }
24955 gcc_cv_as_ix86_swap
=yes
24957 echo "configure: failed program was" >&5
24960 rm -f conftest.o conftest.s
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24964 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24965 if test $gcc_cv_as_ix86_swap = yes; then
24967 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24972 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24973 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24974 $as_echo_n "(cached) " >&6
24976 gcc_cv_as_ix86_diff_sect_delta
=no
24977 if test x
$gcc_cv_as != x
; then
24978 $as_echo '.section .rodata
24984 .L2: nop' > conftest.s
24985 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24987 (eval $ac_try) 2>&5
24989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24990 test $ac_status = 0; }; }
24992 gcc_cv_as_ix86_diff_sect_delta
=yes
24994 echo "configure: failed program was" >&5
24997 rm -f conftest.o conftest.s
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25001 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25002 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25004 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25008 # These two are used unconditionally by i386.[ch]; it is to be defined
25009 # to 1 if the feature is present, 0 otherwise.
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25011 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25012 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25013 $as_echo_n "(cached) " >&6
25015 gcc_cv_as_ix86_gotoff_in_data
=no
25016 if test $in_tree_gas = yes; then
25017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25018 then gcc_cv_as_ix86_gotoff_in_data
=yes
25020 elif test x
$gcc_cv_as != x
; then
25025 .long .L0@GOTOFF' > conftest.s
25026 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25028 (eval $ac_try) 2>&5
25030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25031 test $ac_status = 0; }; }
25033 gcc_cv_as_ix86_gotoff_in_data
=yes
25035 echo "configure: failed program was" >&5
25038 rm -f conftest.o conftest.s
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25042 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25045 cat >>confdefs.h
<<_ACEOF
25046 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25051 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25052 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25053 $as_echo_n "(cached) " >&6
25055 gcc_cv_as_ix86_rep_lock_prefix
=no
25056 if test x
$gcc_cv_as != x
; then
25057 $as_echo 'rep movsl
25058 lock addl %edi, (%eax,%esi)
25059 lock orl $0, (%esp)' > conftest.s
25060 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25062 (eval $ac_try) 2>&5
25064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065 test $ac_status = 0; }; }
25067 gcc_cv_as_ix86_rep_lock_prefix
=yes
25069 echo "configure: failed program was" >&5
25072 rm -f conftest.o conftest.s
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25076 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25077 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25079 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25084 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25085 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25088 gcc_cv_as_ix86_tlsgdplt
=no
25089 if test x
$gcc_cv_as != x
; then
25090 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25091 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25093 (eval $ac_try) 2>&5
25095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25096 test $ac_status = 0; }; }
25098 if test x
$gcc_cv_ld != x \
25099 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25100 gcc_cv_as_ix86_tlsgdplt
=yes
25104 echo "configure: failed program was" >&5
25107 rm -f conftest.o conftest.s
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25111 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25112 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25114 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25119 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25120 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25121 $as_echo_n "(cached) " >&6
25123 gcc_cv_as_ix86_tlsldmplt
=no
25124 if test x
$gcc_cv_as != x
; then
25126 call tls_ld@tlsldmplt' > conftest.s
25127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; }
25134 if test x
$gcc_cv_ld != x \
25135 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25136 gcc_cv_as_ix86_tlsldmplt
=yes
25140 echo "configure: failed program was" >&5
25143 rm -f conftest.o conftest.s
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25147 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25148 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25150 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25158 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25159 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25160 $as_echo_n "(cached) " >&6
25162 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25163 if test $in_tree_gas = yes; then
25164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25165 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25167 elif test x
$gcc_cv_as != x
; then
25169 addl r15 = @ltoffx(x#), gp
25171 ld8.mov r16 = [r15], x#' > 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_ia64_ltoffx_ldxmov_relocs
=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_ia64_ltoffx_ldxmov_relocs" >&5
25188 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25189 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25191 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25199 *-*-aix*) conftest_s
=' .machine "pwr5"
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25204 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25205 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25206 $as_echo_n "(cached) " >&6
25208 gcc_cv_as_machine_directive
=no
25209 if test x
$gcc_cv_as != x
; then
25210 $as_echo ' .machine ppc7400' > conftest.s
25211 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25213 (eval $ac_try) 2>&5
25215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216 test $ac_status = 0; }; }
25218 gcc_cv_as_machine_directive
=yes
25220 echo "configure: failed program was" >&5
25223 rm -f conftest.o conftest.s
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25227 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25229 if test x
$gcc_cv_as_machine_directive != xyes
; then
25230 echo "*** This target requires an assembler supporting \".machine\"" >&2
25231 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25232 test x
$build = x
$target && exit 1
25236 *) conftest_s
=' .machine power4
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25242 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25243 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25244 $as_echo_n "(cached) " >&6
25246 gcc_cv_as_powerpc_mfcrf
=no
25247 if test $in_tree_gas = yes; then
25248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25249 then gcc_cv_as_powerpc_mfcrf
=yes
25251 elif test x
$gcc_cv_as != x
; then
25252 $as_echo "$conftest_s" > conftest.s
25253 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25255 (eval $ac_try) 2>&5
25257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25258 test $ac_status = 0; }; }
25260 gcc_cv_as_powerpc_mfcrf
=yes
25262 echo "configure: failed program was" >&5
25265 rm -f conftest.o conftest.s
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25269 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25270 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25272 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25277 *-*-aix*) conftest_s
=' .machine "pwr5"
25280 *) conftest_s
=' .machine power5
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25286 $as_echo_n "checking assembler for popcntb support... " >&6; }
25287 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25288 $as_echo_n "(cached) " >&6
25290 gcc_cv_as_powerpc_popcntb
=no
25291 if test $in_tree_gas = yes; then
25292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25293 then gcc_cv_as_powerpc_popcntb
=yes
25295 elif test x
$gcc_cv_as != x
; then
25296 $as_echo "$conftest_s" > conftest.s
25297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25299 (eval $ac_try) 2>&5
25301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25302 test $ac_status = 0; }; }
25304 gcc_cv_as_powerpc_popcntb
=yes
25306 echo "configure: failed program was" >&5
25309 rm -f conftest.o conftest.s
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25313 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25314 if test $gcc_cv_as_powerpc_popcntb = yes; then
25316 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25321 *-*-aix*) conftest_s
=' .machine "pwr5x"
25324 *) conftest_s
=' .machine power5
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25330 $as_echo_n "checking assembler for fp round support... " >&6; }
25331 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25332 $as_echo_n "(cached) " >&6
25334 gcc_cv_as_powerpc_fprnd
=no
25335 if test $in_tree_gas = yes; then
25336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25337 then gcc_cv_as_powerpc_fprnd
=yes
25339 elif test x
$gcc_cv_as != x
; then
25340 $as_echo "$conftest_s" > conftest.s
25341 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25343 (eval $ac_try) 2>&5
25345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25346 test $ac_status = 0; }; }
25348 gcc_cv_as_powerpc_fprnd
=yes
25350 echo "configure: failed program was" >&5
25353 rm -f conftest.o conftest.s
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25357 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25358 if test $gcc_cv_as_powerpc_fprnd = yes; then
25360 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25365 *-*-aix*) conftest_s
=' .machine "pwr6"
25368 *) conftest_s
=' .machine power6
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25374 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25375 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25376 $as_echo_n "(cached) " >&6
25378 gcc_cv_as_powerpc_mfpgpr
=no
25379 if test $in_tree_gas = yes; then
25380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25381 then gcc_cv_as_powerpc_mfpgpr
=yes
25383 elif test x
$gcc_cv_as != x
; then
25384 $as_echo "$conftest_s" > conftest.s
25385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; }
25392 gcc_cv_as_powerpc_mfpgpr
=yes
25394 echo "configure: failed program was" >&5
25397 rm -f conftest.o conftest.s
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25401 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25402 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25404 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25409 *-*-aix*) conftest_s
=' .csect .text[PR]
25411 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25415 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25416 *) conftest_s
=' .text
25418 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25422 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25423 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25424 $as_echo_n "(cached) " >&6
25426 gcc_cv_as_powerpc_rel16
=no
25427 if test $in_tree_gas = yes; then
25428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25429 then gcc_cv_as_powerpc_rel16
=yes
25431 elif test x
$gcc_cv_as != x
; then
25432 $as_echo "$conftest_s" > conftest.s
25433 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25435 (eval $ac_try) 2>&5
25437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25438 test $ac_status = 0; }; }
25440 gcc_cv_as_powerpc_rel16
=yes
25442 echo "configure: failed program was" >&5
25445 rm -f conftest.o conftest.s
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25449 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25450 if test $gcc_cv_as_powerpc_rel16 = yes; then
25452 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25457 *-*-aix*) conftest_s
=' .machine "pwr6"
25460 *) conftest_s
=' .machine power6
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25466 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25467 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25468 $as_echo_n "(cached) " >&6
25470 gcc_cv_as_powerpc_cmpb
=no
25471 if test $in_tree_gas = yes; then
25472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25473 then gcc_cv_as_powerpc_cmpb
=yes
25475 elif test x
$gcc_cv_as != x
; then
25476 $as_echo "$conftest_s" > conftest.s
25477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25479 (eval $ac_try) 2>&5
25481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25482 test $ac_status = 0; }; }
25484 gcc_cv_as_powerpc_cmpb
=yes
25486 echo "configure: failed program was" >&5
25489 rm -f conftest.o conftest.s
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25493 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25494 if test $gcc_cv_as_powerpc_cmpb = yes; then
25496 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25501 *-*-aix*) conftest_s
=' .machine "pwr6"
25504 *) conftest_s
=' .machine power6
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25510 $as_echo_n "checking assembler for decimal float support... " >&6; }
25511 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25512 $as_echo_n "(cached) " >&6
25514 gcc_cv_as_powerpc_dfp
=no
25515 if test $in_tree_gas = yes; then
25516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25517 then gcc_cv_as_powerpc_dfp
=yes
25519 elif test x
$gcc_cv_as != x
; then
25520 $as_echo "$conftest_s" > conftest.s
25521 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25523 (eval $ac_try) 2>&5
25525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25526 test $ac_status = 0; }; }
25528 gcc_cv_as_powerpc_dfp
=yes
25530 echo "configure: failed program was" >&5
25533 rm -f conftest.o conftest.s
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25537 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25538 if test $gcc_cv_as_powerpc_dfp = yes; then
25540 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25545 *-*-aix*) conftest_s
=' .machine "pwr7"
25548 *) conftest_s
=' .machine power7
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25554 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25555 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25556 $as_echo_n "(cached) " >&6
25558 gcc_cv_as_powerpc_vsx
=no
25559 if test $in_tree_gas = yes; then
25560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25561 then gcc_cv_as_powerpc_vsx
=yes
25563 elif test x
$gcc_cv_as != x
; then
25564 $as_echo "$conftest_s" > conftest.s
25565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25567 (eval $ac_try) 2>&5
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; }
25572 gcc_cv_as_powerpc_vsx
=yes
25574 echo "configure: failed program was" >&5
25577 rm -f conftest.o conftest.s
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25581 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25582 if test $gcc_cv_as_powerpc_vsx = yes; then
25584 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25589 *-*-aix*) conftest_s
=' .machine "pwr7"
25592 *) conftest_s
=' .machine power7
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25598 $as_echo_n "checking assembler for popcntd support... " >&6; }
25599 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25600 $as_echo_n "(cached) " >&6
25602 gcc_cv_as_powerpc_popcntd
=no
25603 if test $in_tree_gas = yes; then
25604 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25605 then gcc_cv_as_powerpc_popcntd
=yes
25607 elif test x
$gcc_cv_as != x
; then
25608 $as_echo "$conftest_s" > conftest.s
25609 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25611 (eval $ac_try) 2>&5
25613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25614 test $ac_status = 0; }; }
25616 gcc_cv_as_powerpc_popcntd
=yes
25618 echo "configure: failed program was" >&5
25621 rm -f conftest.o conftest.s
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25625 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25626 if test $gcc_cv_as_powerpc_popcntd = yes; then
25628 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25633 *-*-aix*) conftest_s
=' .csect .text[PR]
25635 *) conftest_s
=' .text
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25640 $as_echo_n "checking assembler for lwsync support... " >&6; }
25641 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25644 gcc_cv_as_powerpc_lwsync
=no
25645 if test $in_tree_gas = yes; then
25646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25647 then gcc_cv_as_powerpc_lwsync
=yes
25649 elif test x
$gcc_cv_as != x
; then
25650 $as_echo "$conftest_s" > conftest.s
25651 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25653 (eval $ac_try) 2>&5
25655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }; }
25658 gcc_cv_as_powerpc_lwsync
=yes
25660 echo "configure: failed program was" >&5
25663 rm -f conftest.o conftest.s
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25667 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25668 if test $gcc_cv_as_powerpc_lwsync = yes; then
25670 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25675 *-*-aix*) conftest_s
=' .machine "476"
25678 *) conftest_s
=' .machine "476"
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25684 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25685 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25686 $as_echo_n "(cached) " >&6
25688 gcc_cv_as_powerpc_dci
=no
25689 if test $in_tree_gas = yes; then
25690 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25691 then gcc_cv_as_powerpc_dci
=yes
25693 elif test x
$gcc_cv_as != x
; then
25694 $as_echo "$conftest_s" > conftest.s
25695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25697 (eval $ac_try) 2>&5
25699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25700 test $ac_status = 0; }; }
25702 gcc_cv_as_powerpc_dci
=yes
25704 echo "configure: failed program was" >&5
25707 rm -f conftest.o conftest.s
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25711 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25712 if test $gcc_cv_as_powerpc_dci = yes; then
25714 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25719 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25720 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25721 $as_echo_n "(cached) " >&6
25723 gcc_cv_as_powerpc_gnu_attribute
=no
25724 if test $in_tree_gas = yes; then
25725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25726 then gcc_cv_as_powerpc_gnu_attribute
=yes
25728 elif test x
$gcc_cv_as != x
; then
25729 $as_echo '.gnu_attribute 4,1' > conftest.s
25730 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25732 (eval $ac_try) 2>&5
25734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25735 test $ac_status = 0; }; }
25737 gcc_cv_as_powerpc_gnu_attribute
=yes
25739 echo "configure: failed program was" >&5
25742 rm -f conftest.o conftest.s
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25746 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25747 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25749 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25754 $as_echo_n "checking assembler for tls marker support... " >&6; }
25755 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25756 $as_echo_n "(cached) " >&6
25758 gcc_cv_as_powerpc_tls_markers
=no
25759 if test $in_tree_gas = yes; then
25760 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25761 then gcc_cv_as_powerpc_tls_markers
=yes
25763 elif test x
$gcc_cv_as != x
; then
25764 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25765 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25767 (eval $ac_try) 2>&5
25769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25770 test $ac_status = 0; }; }
25772 gcc_cv_as_powerpc_tls_markers
=yes
25774 echo "configure: failed program was" >&5
25777 rm -f conftest.o conftest.s
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25781 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25782 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25784 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25791 $as_echo_n "checking assembler for .ref support... " >&6; }
25792 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25795 gcc_cv_as_aix_ref
=no
25796 if test $in_tree_gas = yes; then
25797 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25800 elif test x
$gcc_cv_as != x
; then
25801 $as_echo ' .csect stuff[rw]
25807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25809 (eval $ac_try) 2>&5
25811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25812 test $ac_status = 0; }; }
25814 gcc_cv_as_aix_ref
=yes
25816 echo "configure: failed program was" >&5
25819 rm -f conftest.o conftest.s
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25823 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25824 if test $gcc_cv_as_aix_ref = yes; then
25826 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25835 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25836 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25837 $as_echo_n "(cached) " >&6
25839 gcc_cv_as_mips_explicit_relocs
=no
25840 if test $in_tree_gas = yes; then
25841 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25842 then gcc_cv_as_mips_explicit_relocs
=yes
25844 elif test x
$gcc_cv_as != x
; then
25845 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25846 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25848 (eval $ac_try) 2>&5
25850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25851 test $ac_status = 0; }; }
25853 gcc_cv_as_mips_explicit_relocs
=yes
25855 echo "configure: failed program was" >&5
25858 rm -f conftest.o conftest.s
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25862 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25863 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25864 if test x
$target_cpu_default = x
25865 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25866 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25870 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25871 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25872 $as_echo_n "(cached) " >&6
25874 gcc_cv_as_mips_no_shared
=no
25875 if test $in_tree_gas = yes; then
25876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25877 then gcc_cv_as_mips_no_shared
=yes
25879 elif test x
$gcc_cv_as != x
; then
25880 $as_echo 'nop' > conftest.s
25881 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25883 (eval $ac_try) 2>&5
25885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25886 test $ac_status = 0; }; }
25888 gcc_cv_as_mips_no_shared
=yes
25890 echo "configure: failed program was" >&5
25893 rm -f conftest.o conftest.s
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25897 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25898 if test $gcc_cv_as_mips_no_shared = yes; then
25900 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25905 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25906 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25907 $as_echo_n "(cached) " >&6
25909 gcc_cv_as_mips_gnu_attribute
=no
25910 if test $in_tree_gas = yes; then
25911 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25912 then gcc_cv_as_mips_gnu_attribute
=yes
25914 elif test x
$gcc_cv_as != x
; then
25915 $as_echo '.gnu_attribute 4,1' > conftest.s
25916 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25918 (eval $ac_try) 2>&5
25920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921 test $ac_status = 0; }; }
25923 gcc_cv_as_mips_gnu_attribute
=yes
25925 echo "configure: failed program was" >&5
25928 rm -f conftest.o conftest.s
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25932 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25933 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25935 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25940 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25941 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25942 $as_echo_n "(cached) " >&6
25944 gcc_cv_as_mips_dtprelword
=no
25945 if test $in_tree_gas = yes; then
25946 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25947 then gcc_cv_as_mips_dtprelword
=yes
25949 elif test x
$gcc_cv_as != x
; then
25950 $as_echo '.section .tdata,"awT",@progbits
25954 .dtprelword x+0x8000' > conftest.s
25955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25957 (eval $ac_try) 2>&5
25959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25960 test $ac_status = 0; }; }
25962 gcc_cv_as_mips_dtprelword
=yes
25964 echo "configure: failed program was" >&5
25967 rm -f conftest.o conftest.s
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25971 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25972 if test $gcc_cv_as_mips_dtprelword = yes; then
25974 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25979 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25980 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25983 gcc_cv_as_mips_dspr1_mult
=no
25984 if test x
$gcc_cv_as != x
; then
25985 $as_echo ' .set mips32r2
25993 multu $ac3,$4,$5' > conftest.s
25994 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25996 (eval $ac_try) 2>&5
25998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25999 test $ac_status = 0; }; }
26001 gcc_cv_as_mips_dspr1_mult
=yes
26003 echo "configure: failed program was" >&5
26006 rm -f conftest.o conftest.s
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26010 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26011 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26013 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26018 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26019 gcc_cv_as_ld_jalr_reloc
=no
26020 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26021 if test $in_tree_ld = yes ; then
26022 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 \
26023 && test $in_tree_ld_is_elf = yes; then
26024 gcc_cv_as_ld_jalr_reloc
=yes
26026 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26027 echo ' .ent x' > conftest.s
26028 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26029 echo ' ld $25,%call16(y)($28)' >> conftest.s
26030 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26031 echo '1: jalr $25' >> conftest.s
26032 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26033 echo '1: jalr $25' >> conftest.s
26034 echo ' .end x' >> conftest.s
26035 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26036 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26037 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26038 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26039 gcc_cv_as_ld_jalr_reloc
=yes
26045 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26046 if test x
$target_cpu_default = x
; then
26047 target_cpu_default
=MASK_RELAX_PIC_CALLS
26049 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26053 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26056 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26057 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26058 $as_echo_n "(cached) " >&6
26060 gcc_cv_ld_mips_personality_relaxation
=no
26061 if test $in_tree_ld = yes ; then
26062 if test "$gcc_cv_gld_major_version" -eq 2 \
26063 -a "$gcc_cv_gld_minor_version" -ge 21 \
26064 -o "$gcc_cv_gld_major_version" -gt 2; then
26065 gcc_cv_ld_mips_personality_relaxation
=yes
26067 elif test x
$gcc_cv_as != x \
26068 -a x
$gcc_cv_ld != x \
26069 -a x
$gcc_cv_readelf != x
; then
26070 cat > conftest.s
<<EOF
26072 .cfi_personality 0x80,indirect_ptr
26079 .section .data,"aw",@progbits
26083 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26084 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26085 if $gcc_cv_readelf -d conftest
2>&1 \
26086 |
grep TEXTREL
> /dev
/null
2>&1; then
26088 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26089 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26092 gcc_cv_ld_mips_personality_relaxation
=yes
26096 rm -f conftest.s conftest.o conftest
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26099 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26100 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26102 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26108 # Mips and HP-UX need the GNU assembler.
26109 # Linux on IA64 might be able to use the Intel assembler.
26112 mips
*-*-* |
*-*-hpux* )
26113 if test x
$gas_flag = xyes \
26114 ||
test x
"$host" != x
"$build" \
26115 ||
test ! -x "$gcc_cv_as" \
26116 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26119 echo "*** This configuration requires the GNU assembler" >&2
26125 # ??? Not all targets support dwarf2 debug_line, even within a version
26126 # of gas. Moreover, we need to emit a valid instruction to trigger any
26127 # info to the output file. So, as supported targets are added to gas 2.11,
26128 # add some instruction here to (also) show we expect this might work.
26129 # ??? Once 2.11 is released, probably need to add first known working
26130 # version to the per-target configury.
26131 case "$cpu_type" in
26132 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26133 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
26143 if test x
"$insn" != x
; then
26145 .file 1 \"conftest.s\"
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26149 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26150 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26151 $as_echo_n "(cached) " >&6
26153 gcc_cv_as_dwarf2_debug_line
=no
26154 if test $in_tree_gas = yes; then
26155 if test $in_tree_gas_is_elf = yes \
26156 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26157 then gcc_cv_as_dwarf2_debug_line
=yes
26159 elif test x
$gcc_cv_as != x
; then
26160 $as_echo "$conftest_s" > conftest.s
26161 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26163 (eval $ac_try) 2>&5
26165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26166 test $ac_status = 0; }; }
26168 if test x
$gcc_cv_objdump != x \
26169 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26170 |
grep debug_line
> /dev
/null
2>&1; then
26171 gcc_cv_as_dwarf2_debug_line
=yes
26174 echo "configure: failed program was" >&5
26177 rm -f conftest.o conftest.s
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26181 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26184 # The .debug_line file table must be in the exact order that
26185 # we specified the files, since these indices are also used
26186 # by DW_AT_decl_file. Approximate this test by testing if
26187 # the assembler bitches if the same index is assigned twice.
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26189 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26190 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26191 $as_echo_n "(cached) " >&6
26193 gcc_cv_as_dwarf2_file_buggy
=no
26194 if test x
$gcc_cv_as != x
; then
26195 $as_echo ' .file 1 "foo.s"
26196 .file 1 "bar.s"' > conftest.s
26197 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26199 (eval $ac_try) 2>&5
26201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26202 test $ac_status = 0; }; }
26204 gcc_cv_as_dwarf2_file_buggy
=yes
26206 echo "configure: failed program was" >&5
26209 rm -f conftest.o conftest.s
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26213 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26216 if test $gcc_cv_as_dwarf2_debug_line = yes \
26217 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26219 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26224 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26225 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26226 $as_echo_n "(cached) " >&6
26228 gcc_cv_as_gdwarf2_flag
=no
26229 if test $in_tree_gas = yes; then
26230 if test $in_tree_gas_is_elf = yes \
26231 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26232 then gcc_cv_as_gdwarf2_flag
=yes
26234 elif test x
$gcc_cv_as != x
; then
26235 $as_echo "$insn" > conftest.s
26236 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26238 (eval $ac_try) 2>&5
26240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26241 test $ac_status = 0; }; }
26243 gcc_cv_as_gdwarf2_flag
=yes
26245 echo "configure: failed program was" >&5
26248 rm -f conftest.o conftest.s
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26252 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26253 if test $gcc_cv_as_gdwarf2_flag = yes; then
26255 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26260 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26261 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26262 $as_echo_n "(cached) " >&6
26264 gcc_cv_as_gstabs_flag
=no
26265 if test $in_tree_gas = yes; then
26266 if test $in_tree_gas_is_elf = yes \
26267 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26268 then gcc_cv_as_gstabs_flag
=yes
26270 elif test x
$gcc_cv_as != x
; then
26271 $as_echo "$insn" > conftest.s
26272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26274 (eval $ac_try) 2>&5
26276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26277 test $ac_status = 0; }; }
26279 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26280 # and warns about it, but still exits successfully. So check for
26282 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26284 (eval $ac_try) 2>&5
26286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26287 test $ac_status = 0; }; }
26289 else gcc_cv_as_gstabs_flag
=yes
26292 echo "configure: failed program was" >&5
26295 rm -f conftest.o conftest.s
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26299 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26300 if test $gcc_cv_as_gstabs_flag = yes; then
26302 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26307 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26308 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26309 $as_echo_n "(cached) " >&6
26311 gcc_cv_as_debug_prefix_map_flag
=no
26312 if test $in_tree_gas = yes; then
26313 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26314 then gcc_cv_as_debug_prefix_map_flag
=yes
26316 elif test x
$gcc_cv_as != x
; then
26317 $as_echo "$insn" > conftest.s
26318 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26320 (eval $ac_try) 2>&5
26322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26323 test $ac_status = 0; }; }
26325 gcc_cv_as_debug_prefix_map_flag
=yes
26327 echo "configure: failed program was" >&5
26330 rm -f conftest.o conftest.s
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26334 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26335 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26337 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26343 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26344 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26345 $as_echo_n "(cached) " >&6
26347 gcc_cv_as_lcomm_with_alignment
=no
26348 if test x
$gcc_cv_as != x
; then
26349 $as_echo '.lcomm bar,4,16' > conftest.s
26350 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26352 (eval $ac_try) 2>&5
26354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26355 test $ac_status = 0; }; }
26357 gcc_cv_as_lcomm_with_alignment
=yes
26359 echo "configure: failed program was" >&5
26362 rm -f conftest.o conftest.s
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26366 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26367 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26369 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26373 # Check whether --enable-gnu-unique-object was given.
26374 if test "${enable_gnu_unique_object+set}" = set; then :
26375 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26377 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26378 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26382 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26383 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26384 $as_echo_n "(cached) " >&6
26386 gcc_cv_as_gnu_unique_object
=no
26387 if test $in_tree_gas = yes; then
26388 if test $in_tree_gas_is_elf = yes \
26389 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26390 then gcc_cv_as_gnu_unique_object
=yes
26392 elif test x
$gcc_cv_as != x
; then
26393 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26394 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26396 (eval $ac_try) 2>&5
26398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26399 test $ac_status = 0; }; }
26401 gcc_cv_as_gnu_unique_object
=yes
26403 echo "configure: failed program was" >&5
26406 rm -f conftest.o conftest.s
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26410 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26411 if test $gcc_cv_as_gnu_unique_object = yes; then
26412 # We need to unquote above to to use the definition from config.gcc.
26413 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26414 if test x
$host = x
$build -a x
$host = x
$target &&
26415 ldd
--version 2>/dev
/null
&&
26416 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26417 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26418 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26419 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26420 if test "$glibcnum" -ge 2011 ; then
26421 enable_gnu_unique_object
=yes
26427 if test x
$enable_gnu_unique_object = xyes
; then
26429 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26434 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26435 if test "${gcc_cv_as_line_zero+set}" = set; then :
26436 $as_echo_n "(cached) " >&6
26438 gcc_cv_as_line_zero
=no
26439 if test $in_tree_gas = yes; then
26440 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26441 then gcc_cv_as_line_zero
=yes
26443 elif test "x$gcc_cv_as" != x
; then
26444 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26445 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26447 (eval $ac_try) 2>&5
26449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26450 test $ac_status = 0; }; } &&
26451 test "x`cat conftest.out`" = x
26453 gcc_cv_as_line_zero
=yes
26455 echo "configure: failed program was" >&5
26457 echo "configure: error output was" >&5
26458 cat conftest.out
>&5
26460 rm -f conftest.o conftest.s conftest.out
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26464 $as_echo "$gcc_cv_as_line_zero" >&6; }
26465 if test "x$gcc_cv_as_line_zero" = xyes
; then
26467 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26472 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26473 gcc_cv_ld_eh_frame_hdr
=no
26474 if test $in_tree_ld = yes ; then
26475 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 \
26476 && test $in_tree_ld_is_elf = yes; then
26477 gcc_cv_ld_eh_frame_hdr
=yes
26479 elif test x
$gcc_cv_ld != x
; then
26480 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26481 # Check if linker supports --eh-frame-hdr option
26482 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26483 gcc_cv_ld_eh_frame_hdr
=yes
26488 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26489 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26490 gcc_cv_ld_eh_frame_hdr
=yes
26497 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26499 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26503 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26506 $as_echo_n "checking linker position independent executable support... " >&6; }
26508 if test $in_tree_ld = yes ; then
26509 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 \
26510 && test $in_tree_ld_is_elf = yes; then
26513 elif test x
$gcc_cv_ld != x
; then
26514 # Check if linker supports -pie option
26515 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26519 if test x
"$gcc_cv_ld_pie" = xyes
; then
26521 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26525 $as_echo "$gcc_cv_ld_pie" >&6; }
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26528 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26529 gcc_cv_ld_eh_gc_sections
=no
26530 if test $in_tree_ld = yes ; then
26531 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 \
26532 && test $in_tree_ld_is_elf = yes; then
26533 gcc_cv_ld_eh_gc_sections
=yes
26535 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26536 cat > conftest.s
<<EOF
26539 .type _start, @function
26542 .size _start, .-_start
26543 .section .text.foo,"ax",@progbits
26544 .type foo, @function
26548 .section .gcc_except_table.foo,"a",@progbits
26551 .section .eh_frame,"a",@progbits
26554 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26555 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26556 |
grep "gc-sections option ignored" > /dev
/null
; then
26557 gcc_cv_ld_eh_gc_sections
=no
26558 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26559 |
grep gcc_except_table
> /dev
/null
; then
26560 gcc_cv_ld_eh_gc_sections
=yes
26561 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26562 if test x
$gcc_cv_as_comdat_group != xyes
; then
26563 gcc_cv_ld_eh_gc_sections
=no
26564 cat > conftest.s
<<EOF
26567 .type _start, @function
26570 .size _start, .-_start
26571 .section .gnu.linkonce.t.foo,"ax",@progbits
26572 .type foo, @function
26576 .section .gcc_except_table.foo,"a",@progbits
26579 .section .eh_frame,"a",@progbits
26582 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26583 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26584 |
grep "gc-sections option ignored" > /dev
/null
; then
26585 gcc_cv_ld_eh_gc_sections
=no
26586 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26587 |
grep gcc_except_table
> /dev
/null
; then
26588 gcc_cv_ld_eh_gc_sections
=yes
26594 rm -f conftest.s conftest.o conftest
26598 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26599 gcc_cv_ld_eh_gc_sections
=no
26602 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26604 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26608 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26611 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26612 gcc_cv_ld_eh_gc_sections_bug
=no
26613 if test $in_tree_ld = yes ; then
26614 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 \
26615 && test $in_tree_ld_is_elf = yes; then
26616 gcc_cv_ld_eh_gc_sections_bug
=yes
26618 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
26619 gcc_cv_ld_eh_gc_sections_bug
=yes
26620 cat > conftest.s
<<EOF
26623 .type _start, @function
26626 .size _start, .-_start
26627 .section .text.startup.foo,"ax",@progbits
26628 .type foo, @function
26632 .section .gcc_except_table.foo,"a",@progbits
26635 .section .eh_frame,"a",@progbits
26638 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26639 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26640 |
grep "gc-sections option ignored" > /dev
/null
; then
26642 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26643 |
grep gcc_except_table
> /dev
/null
; then
26644 gcc_cv_ld_eh_gc_sections_bug
=no
26647 rm -f conftest.s conftest.o conftest
26649 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26651 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26655 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26662 $as_echo_n "checking linker --as-needed support... " >&6; }
26663 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26664 $as_echo_n "(cached) " >&6
26666 gcc_cv_ld_as_needed
=no
26667 if test $in_tree_ld = yes ; then
26668 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 \
26669 && test $in_tree_ld_is_elf = yes; then
26670 gcc_cv_ld_as_needed
=yes
26672 elif test x
$gcc_cv_ld != x
; then
26673 # Check if linker supports --as-needed and --no-as-needed options
26674 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26675 gcc_cv_ld_as_needed
=yes
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26681 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26682 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26684 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26688 case "$target:$tm_file" in
26689 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26692 emul_name
="-melf64ppc"
26695 emul_name
="-melf64ppc_fbsd"
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26699 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26700 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26701 $as_echo_n "(cached) " >&6
26703 gcc_cv_ld_no_dot_syms
=no
26704 if test $in_tree_ld = yes ; then
26705 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
26706 gcc_cv_ld_no_dot_syms
=yes
26708 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26709 cat > conftest1.s
<<EOF
26713 cat > conftest2.s
<<EOF
26714 .section ".opd","aw"
26717 .type foo,@function
26719 .quad .LEfoo,.TOC.@tocbase,0
26725 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26726 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26727 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26728 gcc_cv_ld_no_dot_syms
=yes
26730 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26735 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26736 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26738 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26743 $as_echo_n "checking linker large toc support... " >&6; }
26744 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26745 $as_echo_n "(cached) " >&6
26747 gcc_cv_ld_large_toc
=no
26748 if test $in_tree_ld = yes ; then
26749 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
26750 gcc_cv_ld_large_toc
=yes
26752 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26753 cat > conftest.s
<<EOF
26754 .section ".tbss","awT",@nobits
26760 addis 9,13,ie0@got@tprel@ha
26761 ld 9,ie0@got@tprel@l(9)
26763 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26764 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26765 gcc_cv_ld_large_toc
=yes
26767 rm -f conftest conftest.o conftest.s
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26772 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26773 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26775 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26782 $as_echo_n "checking linker --build-id support... " >&6; }
26783 if test "${gcc_cv_ld_buildid+set}" = set; then :
26784 $as_echo_n "(cached) " >&6
26786 gcc_cv_ld_buildid
=no
26787 if test $in_tree_ld = yes ; then
26788 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26789 "$gcc_cv_gld_minor_version" -ge 18 -o \
26790 "$gcc_cv_gld_major_version" -gt 2 \
26791 && test $in_tree_ld_is_elf = yes; then
26792 gcc_cv_ld_buildid
=yes
26794 elif test x
$gcc_cv_ld != x
; then
26795 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26796 gcc_cv_ld_buildid
=yes
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26801 $as_echo "$gcc_cv_ld_buildid" >&6; }
26802 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26804 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26808 # Check whether --enable-linker-build-id was given.
26809 if test "${enable_linker_build_id+set}" = set; then :
26810 enableval
=$enable_linker_build_id;
26812 enable_linker_build_id
=no
26816 if test x
"$enable_linker_build_id" = xyes
; then
26817 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26819 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26823 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26827 # In binutils 2.21, GNU ld gained support for new emulations fully
26828 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26830 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26831 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26832 $as_echo_n "(cached) " >&6
26834 gcc_cv_ld_sol2_emulation
=no
26835 if test $in_tree_ld = yes ; then
26836 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26837 "$gcc_cv_gld_minor_version" -ge 21 -o \
26838 "$gcc_cv_gld_major_version" -gt 2 \
26839 && test $in_tree_ld_is_elf = yes; then
26840 gcc_cv_ld_sol2_emulation
=yes
26842 elif test x
$gcc_cv_ld != x
; then
26843 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26844 grep _sol2
> /dev
/null
; then
26845 gcc_cv_ld_sol2_emulation
=yes
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26850 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26851 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26853 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26858 $as_echo_n "checking linker --sysroot support... " >&6; }
26859 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26860 $as_echo_n "(cached) " >&6
26862 gcc_cv_ld_sysroot
=no
26863 if test $in_tree_ld = yes ; then
26864 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
26865 gcc_cv_ld_sysroot
=yes
26867 elif test x
$gcc_cv_ld != x
; then
26868 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26869 gcc_cv_ld_sysroot
=yes
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26874 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26875 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26877 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26881 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26882 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26883 && test "$prefix" != "NONE"; then
26885 cat >>confdefs.h
<<_ACEOF
26886 #define PREFIX_INCLUDE_DIR "$prefix/include"
26891 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26892 if test "x$with_headers" != x
; then
26893 target_header_dir
=$with_headers
26894 elif test "x$with_sysroot" = x
; then
26895 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26896 elif test "x$with_build_sysroot" != "x"; then
26897 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26898 elif test "x$with_sysroot" = xyes
; then
26899 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26901 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26904 target_header_dir
=${native_system_header_dir}
26907 # Test for stack protector support in target C library.
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26909 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26910 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26911 $as_echo_n "(cached) " >&6
26913 gcc_cv_libc_provides_ssp
=no
26915 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26916 # glibc 2.4 and later provides __stack_chk_fail and
26917 # either __stack_chk_guard, or TLS access to stack guard canary.
26918 if test -f $target_header_dir/features.h \
26919 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26920 $target_header_dir/features.h
> /dev
/null
; then
26921 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26922 $target_header_dir/features.h
> /dev
/null
; then
26923 gcc_cv_libc_provides_ssp
=yes
26924 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26925 $target_header_dir/features.h
> /dev
/null \
26926 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26927 $target_header_dir/features.h
> /dev
/null
; then
26928 gcc_cv_libc_provides_ssp
=yes
26929 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26930 $target_header_dir/features.h
> /dev
/null
&& \
26931 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26932 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26933 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26934 gcc_cv_libc_provides_ssp
=yes
26936 # all versions of Bionic support stack protector
26937 elif test -f $target_header_dir/sys
/cdefs.h \
26938 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26939 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26940 gcc_cv_libc_provides_ssp
=yes
26944 # Avoid complicated tests (see
26945 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26946 # simply assert that glibc does provide this, which is true for all
26947 # realistically usable GNU/Hurd configurations.
26948 gcc_cv_libc_provides_ssp
=yes;;
26949 *-*-darwin* |
*-*-freebsd*)
26950 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26951 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26952 gcc_cv_libc_provides_ssp
=yes
26954 echo "no __stack_chk_fail on this target"
26958 *) gcc_cv_libc_provides_ssp
=no
;;
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26962 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26964 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26966 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26970 # Test for <sys/sdt.h> on the target.
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26973 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26975 if test -f $target_header_dir/sys
/sdt.h
; then
26978 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26982 $as_echo "$have_sys_sdt_h" >&6; }
26984 # Check if TFmode long double should be used by default or not.
26985 # Some glibc targets used DFmode long double, but with glibc 2.4
26986 # and later they can use TFmode.
26988 powerpc
*-*-linux* | \
26989 sparc
*-*-linux* | \
26993 # Check whether --with-long-double-128 was given.
26994 if test "${with_long_double_128+set}" = set; then :
26995 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26997 gcc_cv_target_ldbl128
=no
26998 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26999 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27000 && gcc_cv_target_ldbl128
=yes
27006 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27008 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27013 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27014 gcc_cv_target_dl_iterate_phdr
=unknown
27016 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27017 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27018 # libdl there, both complicating its use and breaking compatibility
27019 # between Solaris 10 updates.
27020 *-*-solaris2.1
[1-9]*)
27021 # <link.h> needs both a dl_iterate_phdr declaration and support for
27022 # compilation with largefile support.
27023 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27024 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27025 gcc_cv_target_dl_iterate_phdr
=yes
27027 gcc_cv_target_dl_iterate_phdr
=no
27032 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27034 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27038 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27040 # Find out what GC implementation we want, or may, use.
27042 # Check whether --with-gc was given.
27043 if test "${with_gc+set}" = set; then :
27044 withval
=$with_gc; case "$withval" in
27051 $as_echo "#define GGC_ZONE 1" >>confdefs.h
27055 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
27063 echo "Using $GGC for garbage collection."
27065 # Libraries to use on the host. This will normally be set by the top
27066 # level Makefile. Here we simply capture the value for our Makefile.
27067 if test -z "${HOST_LIBS+set}"; then
27072 # Use the system's zlib library.
27074 zlibinc
="-I\$(srcdir)/../zlib"
27076 # Check whether --with-system-zlib was given.
27077 if test "${with_system_zlib+set}" = set; then :
27078 withval
=$with_system_zlib; zlibdir
=
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27088 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27089 # Check whether --enable-maintainer-mode was given.
27090 if test "${enable_maintainer_mode+set}" = set; then :
27091 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27098 $as_echo "$maintainer_mode" >&6; }
27100 if test "$maintainer_mode" = "yes"; then
27110 # Make empty files to contain the specs and options for each language.
27111 # Then add #include lines to for a compiler that has specs and/or options.
27117 # These (without "all_") are set in each config-lang.in.
27118 # `language' must be a single word so is spelled singularly.
27121 all_outputs
='Makefile'
27122 # List of language makefile fragments.
27123 all_lang_makefrags
=
27124 # Additional files for gengtype
27125 all_gtfiles
="$target_gtfiles"
27127 # These are the languages that are set in --enable-languages,
27128 # and are available in the GCC tree.
27129 all_selected_languages
=
27131 # Add the language fragments.
27132 # Languages are added via two mechanisms. Some information must be
27133 # recorded in makefile variables, these are defined in config-lang.in.
27134 # We accumulate them and plug them into the main Makefile.
27135 # The other mechanism is a set of hooks for each of the main targets
27136 # like `clean', `install', etc.
27138 language_hooks
="Make-hooks"
27140 for lang
in ${srcdir}/*/config-lang.
in
27142 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27144 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27145 if test "x$lang_alias" = x
27147 echo "$lang doesn't set \$language." 1>&2
27150 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27151 subdirs
="$subdirs $subdir"
27153 # $gcc_subdir is where the gcc integration files are to be found
27154 # for a language, both for internal compiler purposes (compiler
27155 # sources implementing front-end to GCC tree converters), and for
27156 # build infrastructure purposes (Make-lang.in, etc.)
27158 # This will be <subdir> (relative to $srcdir) if a line like
27159 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27160 # is found in <langdir>/config-lang.in, and will remain <langdir>
27163 # Except for the language alias (fetched above), the regular
27164 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27165 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27166 # only this and the language alias.
27168 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27169 if [ "$gcc_subdir" = "" ]; then
27170 gcc_subdir
="$subdir"
27173 case ",$enable_languages," in
27175 all_selected_languages
="$all_selected_languages $lang_alias"
27176 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27177 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27188 .
${srcdir}/$gcc_subdir/config-lang.
in
27189 if test "x$language" = x
27191 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27196 case ",$enable_languages," in
27197 *,$lang_alias,*) ;;
27199 for i
in $subdir_requires; do
27200 test -f "${srcdir}/$i/config-lang.in" && continue
27208 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27209 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27210 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27211 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27213 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27214 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27216 all_languages
="$all_languages $language"
27217 all_compilers
="$all_compilers $compilers"
27218 all_outputs
="$all_outputs $outputs"
27219 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27220 case ",$enable_languages," in
27223 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27232 # Pick up gtfiles for c
27234 .
${srcdir}/c-config-lang.
in
27235 all_gtfiles
="$all_gtfiles [c] $gtfiles"
27238 for language
in $all_selected_languages
27240 check_languages
="$check_languages check-$language"
27243 # We link each language in with a set of hooks, reached indirectly via
27244 # lang.${target}. Only do so for selected languages.
27248 target_list
="all.cross start.encap rest.encap tags \
27249 install-common install-man install-info install-pdf install-html dvi \
27250 pdf html uninstall info man srcextra srcman srcinfo \
27251 mostlyclean clean distclean maintainer-clean install-plugin"
27253 for t
in $target_list
27256 for lang
in $all_selected_languages
27260 echo "lang.$t: $x" >> Make-hooks
27264 # Option include files
27267 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27268 option_includes
="option-includes.mk"
27277 echo "dir ." > .gdbinit
27278 echo "dir ${srcdir}" >> .gdbinit
27279 if test x
$gdb_needs_out_file_path = xyes
27281 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27283 if test "x$subdirs" != x
; then
27286 echo "dir ${srcdir}/$s" >> .gdbinit
27289 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27291 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27295 # Find a directory in which to install a shared libgcc.
27297 # Check whether --enable-version-specific-runtime-libs was given.
27298 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27299 enableval
=$enable_version_specific_runtime_libs;
27303 # Substitute configuration variables
27367 if test x
${build} = x
${host} ; then
27368 if test x
${host} = x
${target} ; then
27369 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27371 echo "Links are now set up to build a cross-compiler" 1>&2
27372 echo " from ${host} to ${target}." 1>&2
27375 if test x
${host} = x
${target} ; then
27376 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27377 echo " for ${target}." 1>&2
27379 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27380 echo " from ${host} to ${target}." 1>&2
27392 if test "x${CLOOGLIBS}" != "x" ; then
27394 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27398 # Check for plugin support
27399 # Check whether --enable-plugin was given.
27400 if test "${enable_plugin+set}" = set; then :
27401 enableval
=$enable_plugin; enable_plugin
=$enableval
27403 enable_plugin
=yes; default_plugin
=yes
27411 if test x
$build = x
$host; then
27412 export_sym_check
="nm${exeext} -g"
27413 elif test x
$host = x
$target; then
27414 export_sym_check
="$gcc_cv_nm -g"
27420 if test x
$build = x
$host; then
27421 export_sym_check
="objdump${exeext} -T"
27422 elif test x
$host = x
$target; then
27423 export_sym_check
="$gcc_cv_objdump -T"
27430 if test x
"$enable_plugin" = x
"yes"; then
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27433 $as_echo_n "checking for exported symbols... " >&6; }
27434 if test "x$export_sym_check" != x
; then
27435 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27436 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27437 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27438 : # No need to use a flag
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27440 $as_echo "yes" >&6; }
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27443 $as_echo "yes" >&6; }
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27445 $as_echo_n "checking for -rdynamic... " >&6; }
27446 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27447 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27448 plugin_rdynamic
=yes
27449 pluginlibs
="-rdynamic"
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27455 $as_echo "$plugin_rdynamic" >&6; }
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27459 $as_echo "unable to check" >&6; }
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27465 $as_echo_n "checking for library containing dlopen... " >&6; }
27466 if test "${ac_cv_search_dlopen+set}" = set; then :
27467 $as_echo_n "(cached) " >&6
27469 ac_func_search_save_LIBS
=$LIBS
27470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27471 /* end confdefs.h. */
27473 /* Override any GCC internal prototype to avoid an error.
27474 Use char because int might match the return type of a GCC
27475 builtin and then its argument prototype would still apply. */
27488 for ac_lib
in '' dl
; do
27489 if test -z "$ac_lib"; then
27490 ac_res
="none required"
27493 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27495 if ac_fn_c_try_link
"$LINENO"; then :
27496 ac_cv_search_dlopen
=$ac_res
27498 rm -f core conftest.err conftest.
$ac_objext \
27500 if test "${ac_cv_search_dlopen+set}" = set; then :
27504 if test "${ac_cv_search_dlopen+set}" = set; then :
27507 ac_cv_search_dlopen
=no
27509 rm conftest.
$ac_ext
27510 LIBS
=$ac_func_search_save_LIBS
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27513 $as_echo "$ac_cv_search_dlopen" >&6; }
27514 ac_res
=$ac_cv_search_dlopen
27515 if test "$ac_res" != no
; then :
27516 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27520 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27521 pluginlibs
="$pluginlibs -ldl"
27525 # Check that we can build shared objects with -fPIC -shared
27526 saved_LDFLAGS
="$LDFLAGS"
27527 saved_CFLAGS
="$CFLAGS"
27530 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27531 CFLAGS
="$CFLAGS -fPIC"
27532 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27535 CFLAGS
="$CFLAGS -fPIC"
27536 LDFLAGS
="$LDFLAGS -fPIC -shared"
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27540 $as_echo_n "checking for -fPIC -shared... " >&6; }
27541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27542 /* end confdefs.h. */
27552 if ac_fn_c_try_link
"$LINENO"; then :
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27554 $as_echo "yes" >&6; }; have_pic_shared
=yes
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27557 $as_echo "no" >&6; }; have_pic_shared
=no
27559 rm -f core conftest.err conftest.
$ac_objext \
27560 conftest
$ac_exeext conftest.
$ac_ext
27561 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27565 LDFLAGS
="$saved_LDFLAGS"
27566 CFLAGS
="$saved_CFLAGS"
27568 # If plugin support had been requested but not available, fail.
27569 if test x
"$enable_plugin" = x
"no" ; then
27570 if test x
"$default_plugin" != x
"yes"; then
27572 Building GCC with plugin support requires a host that supports
27573 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27580 if test x
"$enable_plugin" = x
"yes"; then
27582 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27587 # Check whether --enable-libquadmath-support was given.
27588 if test "${enable_libquadmath_support+set}" = set; then :
27589 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27591 ENABLE_LIBQUADMATH_SUPPORT
=yes
27594 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27596 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27601 # Specify what hash style to use by default.
27603 # Check whether --with-linker-hash-style was given.
27604 if test "${with_linker_hash_style+set}" = set; then :
27605 withval
=$with_linker_hash_style; case x
"$withval" in
27607 LINKER_HASH_STYLE
=sysv
27610 LINKER_HASH_STYLE
=gnu
27613 LINKER_HASH_STYLE
=both
27616 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27620 LINKER_HASH_STYLE
=''
27623 if test x
"${LINKER_HASH_STYLE}" != x
; then
27625 cat >>confdefs.h
<<_ACEOF
27626 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27631 # Configure the subdirectories
27632 # AC_CONFIG_SUBDIRS($subdirs)
27634 # Create the Makefile
27635 # and configure language subdirectories
27636 ac_config_files
="$ac_config_files $all_outputs"
27639 ac_config_commands
="$ac_config_commands default"
27641 cat >confcache
<<\_ACEOF
27642 # This file is a shell script that caches the results of configure
27643 # tests run on this system so they can be shared between configure
27644 # scripts and configure runs, see configure's option --config-cache.
27645 # It is not useful on other systems. If it contains results you don't
27646 # want to keep, you may remove or edit it.
27648 # config.status only pays attention to the cache file if you give it
27649 # the --recheck option to rerun configure.
27651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27653 # following values.
27657 # The following way of writing the cache mishandles newlines in values,
27658 # but we know of no workaround that is simple, portable, and efficient.
27659 # So, we kill variables containing newlines.
27660 # Ultrix sh set writes to stderr and can't be redirected directly,
27661 # and sets the high bit in the cache file unless we assign to the vars.
27663 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27664 eval ac_val
=\$
$ac_var
27668 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27669 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27672 _ | IFS | as_nl
) ;; #(
27673 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27674 *) { eval $ac_var=; unset $ac_var;} ;;
27680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27681 *${as_nl}ac_space
=\
*)
27682 # `set' does not quote correctly, so add quotes: double-quote
27683 # substitution turns \\\\ into \\, and sed turns \\ into \.
27686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27689 # `set' quotes correctly as required by POSIX, so do not add quotes.
27690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27703 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27704 if test -w "$cache_file"; then
27705 test "x$cache_file" != "x/dev/null" &&
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27707 $as_echo "$as_me: updating cache $cache_file" >&6;}
27708 cat confcache
>$cache_file
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27711 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27716 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27717 # Let make expand exec_prefix.
27718 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27720 DEFS
=-DHAVE_CONFIG_H
27724 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27725 # 1. Remove the extension, and $U if already installed.
27726 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27727 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27729 # will be set to the directory where LIBOBJS objects are built.
27730 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27731 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27733 LIBOBJS
=$ac_libobjs
27735 LTLIBOBJS
=$ac_ltlibobjs
27740 : ${CONFIG_STATUS=./config.status}
27742 ac_clean_files_save
=$ac_clean_files
27743 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27745 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27747 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27749 # Generated by $as_me.
27750 # Run this file to recreate the current configuration.
27751 # Compiler output produced by configure, useful for debugging
27752 # configure, is in config.log if it exists.
27755 ac_cs_recheck=false
27758 SHELL=\${CONFIG_SHELL-$SHELL}
27761 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27762 ## -------------------- ##
27763 ## M4sh Initialization. ##
27764 ## -------------------- ##
27766 # Be more Bourne compatible
27767 DUALCASE
=1; export DUALCASE
# for MKS sh
27768 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27771 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27772 # is contrary to our usage. Disable this feature.
27773 alias -g '${1+"$@"}'='"$@"'
27774 setopt NO_GLOB_SUBST
27776 case `(set -o) 2>/dev/null` in #(
27788 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27789 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27790 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27791 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27792 # Prefer a ksh shell builtin over an external printf program on Solaris,
27793 # but without wasting forks for bash or zsh.
27794 if test -z "$BASH_VERSION$ZSH_VERSION" \
27795 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27796 as_echo='print
-r --'
27797 as_echo_n='print
-rn --'
27798 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27799 as_echo='printf %s
\n'
27800 as_echo_n='printf %s
'
27802 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27803 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27804 as_echo_n='/usr
/ucb
/echo -n'
27806 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27807 as_echo_n_body='eval
27811 expr "X$arg" : "X\\(.*\\)$as_nl";
27812 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27814 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27816 export as_echo_n_body
27817 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27819 export as_echo_body
27820 as_echo='sh
-c $as_echo_body as_echo
'
27823 # The user is always right.
27824 if test "${PATH_SEPARATOR+set}" != set; then
27826 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27827 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27834 # We need space, tab and new line, in precisely that order. Quoting is
27835 # there to prevent editors from complaining about space-tab.
27836 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27837 # splitting by setting IFS to empty value.)
27840 # Find who we are. Look in the path if we contain no directory separator.
27842 *[\\/]* ) as_myself=$0 ;;
27843 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27844 for as_dir in $PATH
27847 test -z "$as_dir" && as_dir=.
27848 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27854 # We did not find ourselves, most probably we were run as `sh COMMAND'
27855 # in which case we are not to be found in the path.
27856 if test "x$as_myself" = x
; then
27859 if test ! -f "$as_myself"; then
27860 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27864 # Unset variables that we do not need and which cause bugs (e.g. in
27865 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27866 # suppresses any "Segmentation fault" message there. '((' could
27867 # trigger a bug in pdksh 5.2.14.
27868 for as_var
in BASH_ENV ENV MAIL MAILPATH
27869 do eval test x\
${$as_var+set} = xset \
27870 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27883 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27886 # as_fn_error ERROR [LINENO LOG_FD]
27887 # ---------------------------------
27888 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27889 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27890 # script with status $?, using 1 if that was 0.
27893 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27895 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27896 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27898 $as_echo "$as_me: error: $1" >&2
27899 as_fn_exit
$as_status
27903 # as_fn_set_status STATUS
27904 # -----------------------
27905 # Set $? to STATUS, without forking.
27906 as_fn_set_status
()
27909 } # as_fn_set_status
27911 # as_fn_exit STATUS
27912 # -----------------
27913 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27917 as_fn_set_status
$1
27923 # Portably unset VAR.
27926 { eval $1=; unset $1;}
27928 as_unset
=as_fn_unset
27929 # as_fn_append VAR VALUE
27930 # ----------------------
27931 # Append the text in VALUE to the end of the definition contained in VAR. Take
27932 # advantage of any shell optimizations that allow amortized linear growth over
27933 # repeated appends, instead of the typical quadratic growth present in naive
27935 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27936 eval 'as_fn_append ()
27947 # as_fn_arith ARG...
27948 # ------------------
27949 # Perform arithmetic evaluation on the ARGs, and store the result in the
27950 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27951 # must be portable across $(()) and expr.
27952 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27953 eval 'as_fn_arith ()
27960 as_val
=`expr "$@" || test $? -eq 1`
27965 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27966 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27972 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27973 as_basename
=basename
27978 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27984 as_me
=`$as_basename -- "$0" ||
27985 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27986 X"$0" : 'X\(//\)$' \| \
27987 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27989 sed '/^.*\/\([^/][^/]*\)\/*$/{
28003 # Avoid depending upon Character Ranges.
28004 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28005 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28006 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28007 as_cr_digits
='0123456789'
28008 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28010 ECHO_C
= ECHO_N
= ECHO_T
=
28011 case `echo -n x` in #(((((
28013 case `echo 'xy\c'` in
28014 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28016 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28023 rm -f conf$$ conf$$.exe conf$$.
file
28024 if test -d conf$$.dir
; then
28025 rm -f conf$$.dir
/conf$$.
file
28028 mkdir conf$$.dir
2>/dev
/null
28030 if (echo >conf$$.
file) 2>/dev
/null
; then
28031 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28033 # ... but there are two gotchas:
28034 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28035 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28036 # In both cases, we have to default to `cp -p'.
28037 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28039 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28047 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28048 rmdir conf$$.dir
2>/dev
/null
28053 # Create "$as_dir" as a directory, including parents if necessary.
28058 -*) as_dir
=.
/$as_dir;;
28060 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28064 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28065 *) as_qdir
=$as_dir;;
28067 as_dirs
="'$as_qdir' $as_dirs"
28068 as_dir
=`$as_dirname -- "$as_dir" ||
28069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28070 X"$as_dir" : 'X\(//\)[^/]' \| \
28071 X"$as_dir" : 'X\(//\)$' \| \
28072 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28073 $as_echo X"$as_dir" |
28074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28078 /^X\(\/\/\)[^/].*/{
28091 test -d "$as_dir" && break
28093 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28094 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28098 if mkdir
-p .
2>/dev
/null
; then
28099 as_mkdir_p
='mkdir -p "$as_dir"'
28101 test -d .
/-p && rmdir .
/-p
28105 if test -x / >/dev
/null
2>&1; then
28106 as_test_x
='test -x'
28108 if ls -dL / >/dev
/null
2>&1; then
28115 if test -d "$1"; then
28121 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28122 ???[sx]*):;;*)false;;esac;fi
28126 as_executable_p
=$as_test_x
28128 # Sed expression to map a string onto a valid CPP name.
28129 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28131 # Sed expression to map a string onto a valid variable name.
28132 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28136 ## ----------------------------------- ##
28137 ## Main body of $CONFIG_STATUS script. ##
28138 ## ----------------------------------- ##
28140 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28143 # Save the log message, to keep $0 and so on meaningful, and to
28144 # report actual input values of CONFIG_FILES etc. instead of their
28145 # values after options handling.
28147 This file was extended by $as_me, which was
28148 generated by GNU Autoconf 2.64. Invocation command line was
28150 CONFIG_FILES = $CONFIG_FILES
28151 CONFIG_HEADERS = $CONFIG_HEADERS
28152 CONFIG_LINKS = $CONFIG_LINKS
28153 CONFIG_COMMANDS = $CONFIG_COMMANDS
28156 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28161 case $ac_config_files in *"
28162 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28165 case $ac_config_headers in *"
28166 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28171 # Files that config.status was made for.
28172 config_files="$ac_config_files"
28173 config_headers="$ac_config_headers"
28174 config_commands="$ac_config_commands"
28178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28180 \`$as_me' instantiates files and other configuration actions
28181 from templates according to the current configuration. Unless the files
28182 and actions are specified as TAGs, all are instantiated by default.
28184 Usage: $0 [OPTION]... [TAG]...
28186 -h, --help print this help, then exit
28187 -V, --version print version number and configuration settings, then exit
28188 -q, --quiet, --silent
28189 do not print progress messages
28190 -d, --debug don't remove temporary files
28191 --recheck update $as_me by reconfiguring in the same conditions
28192 --file=FILE[:TEMPLATE]
28193 instantiate the configuration file FILE
28194 --header=FILE[:TEMPLATE]
28195 instantiate the configuration header FILE
28197 Configuration files:
28200 Configuration headers:
28203 Configuration commands:
28206 Report bugs to the package provider."
28209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28212 configured by $0, generated by GNU Autoconf 2.64,
28213 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28215 Copyright (C) 2009 Free Software Foundation, Inc.
28216 This config.status script is free software; the Free Software Foundation
28217 gives unlimited permission to copy, distribute and modify it."
28222 test -n "\$AWK" || AWK=awk
28225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28226 # The default lists apply if the user does not specify any file.
28232 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28233 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28244 # Handling of the options.
28245 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28247 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28248 $as_echo "$ac_cs_version"; exit ;;
28249 --debug |
--debu |
--deb |
--de |
--d |
-d )
28251 --file |
--fil |
--fi |
--f )
28254 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28256 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28257 ac_need_defaults
=false
;;
28258 --header |
--heade |
--head |
--hea )
28261 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28263 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28264 ac_need_defaults
=false
;;
28266 # Conflict between --help and --header
28267 as_fn_error
"ambiguous option: \`$1'
28268 Try \`$0 --help' for more information.";;
28269 --help |
--hel |
-h )
28270 $as_echo "$ac_cs_usage"; exit ;;
28271 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28272 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28275 # This is an error.
28276 -*) as_fn_error
"unrecognized option: \`$1'
28277 Try \`$0 --help' for more information." ;;
28279 *) as_fn_append ac_config_targets
" $1"
28280 ac_need_defaults
=false
;;
28286 ac_configure_extra_args
=
28288 if $ac_cs_silent; then
28290 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28295 if \$ac_cs_recheck; then
28296 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28298 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28299 CONFIG_SHELL='$SHELL'
28300 export CONFIG_SHELL
28305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28310 ## Running $as_me. ##
28316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28326 # Handling of arguments.
28327 for ac_config_target
in $ac_config_targets
28329 case $ac_config_target in
28330 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28331 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28332 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28333 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28334 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28335 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28337 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28342 # If the user did not use the arguments to specify the items to instantiate,
28343 # then the envvar interface is used. Set only those that are not.
28344 # We use the long form for the default assignment because of an extremely
28345 # bizarre bug on SunOS 4.1.3.
28346 if $ac_need_defaults; then
28347 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28348 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28352 # Have a temporary directory for convenience. Make it in the build tree
28353 # simply because there is no reason against having it here, and in addition,
28354 # creating and moving files from /tmp can sometimes cause problems.
28355 # Hook for its removal unless debugging.
28356 # Note that there is a small window in which the directory will not be cleaned:
28357 # after its creation but before its name has been assigned to `$tmp'.
28361 trap 'exit_status=$?
28362 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28364 trap 'as_fn_exit 1' 1 2 13 15
28366 # Create a (secure) tmp directory for tmp files.
28369 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28370 test -n "$tmp" && test -d "$tmp"
28373 tmp
=.
/conf$$
-$RANDOM
28374 (umask 077 && mkdir
"$tmp")
28375 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28377 # Set up the scripts for CONFIG_FILES section.
28378 # No need to generate them if there are no CONFIG_FILES.
28379 # This happens for instance with `./config.status config.h'.
28380 if test -n "$CONFIG_FILES"; then
28382 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28383 ac_cs_awk_getline
=:
28384 ac_cs_awk_pipe_init
=
28385 ac_cs_awk_read_file
='
28386 while ((getline aline < (F[key])) > 0)
28389 ac_cs_awk_pipe_fini
=
28391 ac_cs_awk_getline
=false
28392 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28393 ac_cs_awk_read_file
='
28395 print "cat " F[key] " &&"
28396 '$ac_cs_awk_pipe_init
28397 # The final `:' finishes the AND list.
28398 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28400 ac_cr
=`echo X | tr X '\015'`
28401 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28402 # But we know of no other shell where ac_cr would be empty at this
28403 # point, so we can use a bashism as a fallback.
28404 if test "x$ac_cr" = x
; then
28405 eval ac_cr
=\$
\'\\r
\'
28407 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28408 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28411 ac_cs_awk_cr
=$ac_cr
28414 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28417 # Create commands to substitute file output variables.
28419 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28420 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28421 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28424 } >conf$
$files.sh
&&
28425 . .
/conf$
$files.sh ||
28426 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28427 rm -f conf$
$files.sh
28430 echo "cat >conf$$subs.awk <<_ACEOF" &&
28431 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28433 } >conf$$subs.sh ||
28434 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28435 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28437 for ac_last_try in false false false false false :; do
28438 . ./conf$$subs.sh ||
28439 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28441 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28442 if test $ac_delim_n = $ac_delim_num; then
28444 elif $ac_last_try; then
28445 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28447 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28450 rm -f conf$$subs.sh
28452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28453 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28457 s/^/S["/; s
/!.
*/"]=/
28467 s/\(.\{148\}\).*/\1/
28469 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28474 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28481 s/\(.\{148\}\).*/\1/
28483 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28487 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28492 ' <conf$$subs.awk | sed '
28497 ' >>$CONFIG_STATUS || ac_write_fail=1
28498 rm -f conf$$subs.awk
28499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28501 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28502 for (key in S) S_is_set[key] = 1
28504 \$ac_cs_awk_pipe_init
28508 nfields = split(line, field, "@
")
28510 len = length(field[1])
28511 for (i = 2; i < nfields; i++) {
28513 keylen = length(key)
28514 if (S_is_set[key]) {
28516 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28517 len += length(value) + length(field[++i])
28522 if (nfields == 3 && !substed) {
28524 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28525 \$ac_cs_awk_read_file
28531 \$ac_cs_awk_pipe_fini
28534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28535 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28536 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28539 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28540 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28545 # trailing colons and then remove the whole line if VPATH becomes empty
28546 # (actually we leave an empty line to preserve line numbers).
28547 if test "x
$srcdir" = x.; then
28548 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28549 s/:*\$(srcdir):*/:/
28550 s/:*\${srcdir}:*/:/
28552 s/^\([^=]*=[ ]*\):*/\1/
28558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28559 fi # test -n "$CONFIG_FILES"
28561 # Set up the scripts for CONFIG_HEADERS section.
28562 # No need to generate them if there are no CONFIG_HEADERS.
28563 # This happens for instance with `./config.status Makefile'.
28564 if test -n "$CONFIG_HEADERS"; then
28565 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28569 # Transform confdefs.h into an awk script `defines.awk', embedded as
28570 # here-document in config.status, that substitutes the proper values into
28571 # config.h.in to produce config.h.
28573 # Create a delimiter string that does not exist in confdefs.h, to ease
28574 # handling of long lines.
28576 for ac_last_try in false false :; do
28577 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28578 if test -z "$ac_t"; then
28580 elif $ac_last_try; then
28581 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28583 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28587 # For the awk script, D is an array of macro values keyed by name,
28588 # likewise P contains macro parameters if any. Preserve backslash
28589 # newline sequences.
28591 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28593 s/.\{148\}/&'"$ac_delim"'/g
28596 s/^[ ]*#[ ]*define[ ][ ]*/ /
28603 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28605 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28610 D["\
1"]=" \
3\\\\\\n
"\\/p
28612 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28617 s/.\{148\}/&'"$ac_delim"'/g
28622 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28625 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28627 ' <confdefs.h | sed '
28628 s/'"$ac_delim"'/"\\\
28629 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28632 for (key in D) D_is_set[key] = 1
28635 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28637 split(line, arg, " ")
28638 if (arg[1] == "#") {
28642 defundef
= substr
(arg
[1], 2)
28645 split(mac1
, mac2
, "(") #)
28647 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28648 if (D_is_set
[macro
]) {
28649 # Preserve the white space surrounding the "#".
28650 print prefix
"define", macro P
[macro
] D
[macro
]
28653 # Replace #undef with comments. This is necessary, for example,
28654 # in the case of _POSIX_SOURCE, which is predefined and required
28655 # on some systems where configure will not decide to define it.
28656 if (defundef
== "undef") {
28657 print
"/*", prefix defundef
, macro
, "*/"
28665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28666 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28667 fi # test -n "$CONFIG_HEADERS"
28670 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28675 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28677 case $ac_mode$ac_tag in
28679 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28680 :[FH
]-) ac_tag
=-:-;;
28681 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28698 -) ac_f
="$tmp/stdin";;
28699 *) # Look for the file first in the build tree, then in the source tree
28700 # (if the path is not absolute). The absolute path cannot be DOS-style,
28701 # because $ac_f cannot contain `:'.
28705 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28707 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28709 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28710 as_fn_append ac_file_inputs
" '$ac_f'"
28713 # Let's still pretend it is `configure' which instantiates (i.e., don't
28714 # use $as_me), people would be surprised to read:
28715 # /* config.h. Generated by config.status. */
28716 configure_input
='Generated from '`
28717 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28719 if test x
"$ac_file" != x-
; then
28720 configure_input
="$ac_file. $configure_input"
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28722 $as_echo "$as_me: creating $ac_file" >&6;}
28724 # Neutralize special characters interpreted by sed in replacement strings.
28725 case $configure_input in #(
28726 *\
&* |
*\|
* |
*\\* )
28727 ac_sed_conf_input
=`$as_echo "$configure_input" |
28728 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28729 *) ac_sed_conf_input
=$configure_input;;
28733 *:-:* |
*:-) cat >"$tmp/stdin" \
28734 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28739 ac_dir
=`$as_dirname -- "$ac_file" ||
28740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28741 X"$ac_file" : 'X\(//\)[^/]' \| \
28742 X"$ac_file" : 'X\(//\)$' \| \
28743 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28744 $as_echo X"$ac_file" |
28745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28749 /^X\(\/\/\)[^/].*/{
28762 as_dir
="$ac_dir"; as_fn_mkdir_p
28766 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28768 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28769 # A ".." for each directory in $ac_dir_suffix.
28770 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28771 case $ac_top_builddir_sub in
28772 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28773 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28776 ac_abs_top_builddir
=$ac_pwd
28777 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28778 # for backward compatibility:
28779 ac_top_builddir
=$ac_top_build_prefix
28782 .
) # We are building in place.
28784 ac_top_srcdir
=$ac_top_builddir_sub
28785 ac_abs_top_srcdir
=$ac_pwd ;;
28786 [\\/]* | ?
:[\\/]* ) # Absolute name.
28787 ac_srcdir
=$srcdir$ac_dir_suffix;
28788 ac_top_srcdir
=$srcdir
28789 ac_abs_top_srcdir
=$srcdir ;;
28790 *) # Relative name.
28791 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28792 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28793 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28795 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28807 # If the template does not know about datarootdir, expand it.
28808 # FIXME: This hack should be removed a few years after 2.60.
28809 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28820 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28821 *datarootdir
*) ac_datarootdir_seen
=yes;;
28822 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28824 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28827 ac_datarootdir_hack='
28828 s&@datadir@&$datadir&g
28829 s&@docdir@&$docdir&g
28830 s&@infodir@&$infodir&g
28831 s&@localedir@&$localedir&g
28832 s&@mandir@&$mandir&g
28833 s&\\\${datarootdir}&$datarootdir&g' ;;
28837 # Neutralize VPATH when `$srcdir' = `.'.
28838 # Shell code in configure.ac might set extrasub.
28839 # FIXME: do we really want to maintain this feature?
28840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28841 ac_sed_extra="$ac_vpsub
28844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28846 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28847 s|@configure_input@|
$ac_sed_conf_input|
;t t
28848 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28849 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28850 s
&@srcdir@
&$ac_srcdir&;t t
28851 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28852 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28853 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28854 s
&@builddir@
&$ac_builddir&;t t
28855 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28856 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28857 $ac_datarootdir_hack
28859 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28860 if $ac_cs_awk_getline; then
28861 $AWK -f "$tmp/subs.
awk"
28863 $AWK -f "$tmp/subs.
awk" | $SHELL
28865 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28867 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28868 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28869 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28871 which seems to be undefined. Please make sure it is defined." >&5
28872 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28873 which seems to be undefined. Please make sure it is defined." >&2;}
28877 -) cat "$tmp/out" && rm -f "$tmp/out";;
28878 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28880 || as_fn_error "could not create $ac_file" "$LINENO" 5
28886 if test x"$ac_file" != x-; then
28888 $as_echo "/* $configure_input */" \
28889 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28890 } >"$tmp/config.h" \
28891 || as_fn_error "could not create $ac_file" "$LINENO" 5
28892 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28894 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28897 mv "$tmp/config.h" "$ac_file" \
28898 || as_fn_error "could not create $ac_file" "$LINENO" 5
28901 $as_echo "/* $configure_input */" \
28902 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28903 || as_fn_error "could not create -" "$LINENO" 5
28907 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28908 $as_echo "$as_me: executing $ac_file commands" >&6;}
28913 case $ac_file$ac_mode in
28914 "as":F) chmod +x as ;;
28915 "collect-ld":F) chmod +x collect-ld ;;
28916 "nm":F) chmod +x nm ;;
28918 case ${CONFIG_HEADERS} in
28919 *auto-host.h:config.in*)
28922 # Make sure all the subdirs exist.
28923 for d in $subdirs doc build common c-family
28925 test -d $d || mkdir $d
28935 ac_clean_files=$ac_clean_files_save
28937 test $ac_write_fail = 0 ||
28938 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28941 # configure is writing to config.log, and then calls config.status.
28942 # config.status does its own redirection, appending to config.log.
28943 # Unfortunately, on DOS this fails, as config.log is still kept open
28944 # by configure, so config.status won't be able to
write to it
; its
28945 # output is simply discarded. So we exec the FD to /dev/null,
28946 # effectively closing config.log, so it can be properly (re)opened and
28947 # appended to by config.status. When coming back to configure, we
28948 # need to make the FD available again.
28949 if test "$no_create" != yes; then
28951 ac_config_status_args
=
28952 test "$silent" = yes &&
28953 ac_config_status_args
="$ac_config_status_args --quiet"
28955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28958 # would make configure fail if this is the last instruction.
28959 $ac_cs_success || as_fn_exit $?
28961 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28963 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}