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
621 libgcc_tm_include_list
627 common_out_object_file
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
654 TM_MULTILIB_EXCEPTIONS_CONFIG
663 build_xm_include_list
665 build_install_headers_dir
667 all_selected_languages
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 ORIGINAL_AS_FOR_TARGET
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
771 ENABLE_BUILD_WITH_CXX
774 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
897 enable_initfini_array
898 enable_sjlj_exceptions
900 enable_leading_mingw64_underscores
903 enable_win32_registry
909 enable_gnu_indirect_function
911 enable_gnu_unique_object
912 enable_linker_build_id
916 enable_maintainer_mode
917 enable_version_specific_runtime_libs
920 enable_libquadmath_support
921 with_linker_hash_style
923 ac_precious_vars
='build_alias
944 # Initialize some variables set by options.
946 ac_init_version
=false
947 ac_unrecognized_opts
=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
958 program_transform_name
=s
,x
,x
,
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir
='${exec_prefix}/bin'
973 sbindir
='${exec_prefix}/sbin'
974 libexecdir
='${exec_prefix}/libexec'
975 datarootdir
='${prefix}/share'
976 datadir
='${datarootdir}'
977 sysconfdir
='${prefix}/etc'
978 sharedstatedir
='${prefix}/com'
979 localstatedir
='${prefix}/var'
980 includedir
='${prefix}/include'
981 oldincludedir
='/usr/include'
982 docdir
='${datarootdir}/doc/${PACKAGE}'
983 infodir
='${datarootdir}/info'
988 libdir
='${exec_prefix}/lib'
989 localedir
='${datarootdir}/locale'
990 mandir
='${datarootdir}/man'
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\
$ac_option
1004 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1014 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1016 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1017 bindir
=$ac_optarg ;;
1019 -build |
--build |
--buil |
--bui |
--bu)
1020 ac_prev
=build_alias
;;
1021 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1022 build_alias
=$ac_optarg ;;
1024 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1025 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1026 ac_prev
=cache_file
;;
1027 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1028 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1029 cache_file
=$ac_optarg ;;
1031 --config-cache |
-C)
1032 cache_file
=config.cache
;;
1034 -datadir |
--datadir |
--datadi |
--datad)
1036 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1037 datadir
=$ac_optarg ;;
1039 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1040 |
--dataroo |
--dataro |
--datar)
1041 ac_prev
=datarootdir
;;
1042 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1043 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1044 datarootdir
=$ac_optarg ;;
1046 -disable-* |
--disable-*)
1047 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1050 as_fn_error
"invalid feature name: $ac_useropt"
1051 ac_useropt_orig
=$ac_useropt
1052 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_
$ac_useropt"
1057 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep
=', ';;
1060 eval enable_
$ac_useropt=no
;;
1062 -docdir |
--docdir |
--docdi |
--doc |
--do)
1064 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1065 docdir
=$ac_optarg ;;
1067 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1069 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1070 dvidir
=$ac_optarg ;;
1072 -enable-* |
--enable-*)
1073 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1076 as_fn_error
"invalid feature name: $ac_useropt"
1077 ac_useropt_orig
=$ac_useropt
1078 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_
$ac_useropt"
1083 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep
=', ';;
1086 eval enable_
$ac_useropt=\
$ac_optarg ;;
1088 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1089 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1090 |
--exec |
--exe |
--ex)
1091 ac_prev
=exec_prefix
;;
1092 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1093 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1094 |
--exec=* |
--exe=* |
--ex=*)
1095 exec_prefix
=$ac_optarg ;;
1097 -gas |
--gas |
--ga |
--g)
1098 # Obsolete; use --with-gas.
1101 -help |
--help |
--hel |
--he |
-h)
1102 ac_init_help
=long
;;
1103 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1104 ac_init_help
=recursive
;;
1105 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1106 ac_init_help
=short
;;
1108 -host |
--host |
--hos |
--ho)
1109 ac_prev
=host_alias
;;
1110 -host=* |
--host=* |
--hos=* |
--ho=*)
1111 host_alias
=$ac_optarg ;;
1113 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1115 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1117 htmldir
=$ac_optarg ;;
1119 -includedir |
--includedir |
--includedi |
--included |
--include \
1120 |
--includ |
--inclu |
--incl |
--inc)
1121 ac_prev
=includedir
;;
1122 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1123 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1124 includedir
=$ac_optarg ;;
1126 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1128 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1129 infodir
=$ac_optarg ;;
1131 -libdir |
--libdir |
--libdi |
--libd)
1133 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1134 libdir
=$ac_optarg ;;
1136 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1137 |
--libexe |
--libex |
--libe)
1138 ac_prev
=libexecdir
;;
1139 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1140 |
--libexe=* |
--libex=* |
--libe=*)
1141 libexecdir
=$ac_optarg ;;
1143 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1144 ac_prev
=localedir
;;
1145 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1146 localedir
=$ac_optarg ;;
1148 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1149 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1150 ac_prev
=localstatedir
;;
1151 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1152 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1153 localstatedir
=$ac_optarg ;;
1155 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1157 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1158 mandir
=$ac_optarg ;;
1160 -nfp |
--nfp |
--nf)
1161 # Obsolete; use --without-fp.
1164 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1165 |
--no-cr |
--no-c |
-n)
1168 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1169 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1172 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1173 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1174 |
--oldin |
--oldi |
--old |
--ol |
--o)
1175 ac_prev
=oldincludedir
;;
1176 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1177 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1178 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1179 oldincludedir
=$ac_optarg ;;
1181 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1183 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1184 prefix
=$ac_optarg ;;
1186 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1187 |
--program-pre |
--program-pr |
--program-p)
1188 ac_prev
=program_prefix
;;
1189 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1190 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1191 program_prefix
=$ac_optarg ;;
1193 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1194 |
--program-suf |
--program-su |
--program-s)
1195 ac_prev
=program_suffix
;;
1196 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1197 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1198 program_suffix
=$ac_optarg ;;
1200 -program-transform-name |
--program-transform-name \
1201 |
--program-transform-nam |
--program-transform-na \
1202 |
--program-transform-n |
--program-transform- \
1203 |
--program-transform |
--program-transfor \
1204 |
--program-transfo |
--program-transf \
1205 |
--program-trans |
--program-tran \
1206 |
--progr-tra |
--program-tr |
--program-t)
1207 ac_prev
=program_transform_name
;;
1208 -program-transform-name=* |
--program-transform-name=* \
1209 |
--program-transform-nam=* |
--program-transform-na=* \
1210 |
--program-transform-n=* |
--program-transform-=* \
1211 |
--program-transform=* |
--program-transfor=* \
1212 |
--program-transfo=* |
--program-transf=* \
1213 |
--program-trans=* |
--program-tran=* \
1214 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1215 program_transform_name
=$ac_optarg ;;
1217 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1219 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1220 pdfdir
=$ac_optarg ;;
1222 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1224 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1227 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1228 |
-silent |
--silent |
--silen |
--sile |
--sil)
1231 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1233 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1235 sbindir
=$ac_optarg ;;
1237 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1238 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1239 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1241 ac_prev
=sharedstatedir
;;
1242 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1243 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1244 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1246 sharedstatedir
=$ac_optarg ;;
1248 -site |
--site |
--sit)
1250 -site=* |
--site=* |
--sit=*)
1253 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1255 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1256 srcdir
=$ac_optarg ;;
1258 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1259 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1260 ac_prev
=sysconfdir
;;
1261 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1262 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1263 sysconfdir
=$ac_optarg ;;
1265 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1266 ac_prev
=target_alias
;;
1267 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1268 target_alias
=$ac_optarg ;;
1270 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1273 -version |
--version |
--versio |
--versi |
--vers |
-V)
1274 ac_init_version
=: ;;
1277 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1280 as_fn_error
"invalid package name: $ac_useropt"
1281 ac_useropt_orig
=$ac_useropt
1282 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1287 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep
=', ';;
1290 eval with_
$ac_useropt=\
$ac_optarg ;;
1292 -without-* |
--without-*)
1293 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1296 as_fn_error
"invalid package name: $ac_useropt"
1297 ac_useropt_orig
=$ac_useropt
1298 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep
=', ';;
1306 eval with_
$ac_useropt=no
;;
1309 # Obsolete; use --with-x.
1312 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1313 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1314 ac_prev
=x_includes
;;
1315 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1316 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1317 x_includes
=$ac_optarg ;;
1319 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1320 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1321 ac_prev
=x_libraries
;;
1322 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1323 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1324 x_libraries
=$ac_optarg ;;
1326 -*) as_fn_error
"unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1331 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1335 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1337 eval $ac_envvar=\
$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 if test -n "$ac_prev"; then
1352 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error
"missing argument to $ac_option"
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1359 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 # Check all directory arguments for consistency.
1365 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val
=\$
$ac_var
1371 # Remove trailing slashes.
1374 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\
$ac_val;;
1377 # Be sure to have absolute directory names.
1379 [\\/$
]* | ?
:[\\/]* ) continue;;
1380 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1382 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1390 target
=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x
; then
1394 if test "x$build_alias" = x
; then
1395 cross_compiling
=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1404 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1406 test "$silent" = yes && exec 6>/dev
/null
1409 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di
=`ls -di .` &&
1411 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error
"working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error
"pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted
=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir
=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1449 ac_srcdir_defaulted
=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1453 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1467 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 for ac_var
in $ac_precious_vars; do
1470 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1472 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1546 --build=BUILD configure
for building on BUILD
[guessed
]
1547 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1548 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1552 if test -n "$ac_init_help"; then
1557 --disable-option-checking ignore unrecognized
--enable/--with options
1558 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1559 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1560 --enable-generated-files-in-srcdir
1561 put copies of generated files
in source dir intended
1562 for creating
source tarballs
for users without
1563 texinfo bison or flex
1564 --disable-largefile omit support
for large files
1565 --enable-werror-always enable -Werror despite compiler version
1566 --enable-checking[=LIST
]
1567 enable expensive run-time checks. With LIST
, enable
1568 only specific categories of checks. Categories are
:
1569 yes,no
,all
,none
,release. Flags are
:
1570 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1571 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1572 --enable-coverage[=LEVEL
]
1573 enable compiler
's code coverage collection. Use to
1574 measure compiler performance and locate unused parts
1575 of the compiler. With LEVEL, specify optimization.
1576 Values are opt, noopt, default is noopt
1577 --enable-gather-detailed-mem-stats
1578 enable detailed memory allocation stats gathering
1579 --enable-build-with-cxx build with C++ compiler instead of C compiler
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-__cxa_atexit enable __cxa_atexit for C++
1582 --enable-decimal-float={no,yes,bid,dpd}
1583 enable decimal float extension to C. Selecting 'bid
'
1584 or 'dpd
' choses which decimal floating point format
1586 --enable-fixed-point enable fixed-point arithmetic extension to C
1587 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1589 --enable-tls enable or disable generation of tls code overriding
1590 the assembler check for tls support
1591 --enable-objc-gc enable the use of Boehm's garbage collector with the
1592 GNU Objective-C runtime
1593 --disable-shared don
't provide a shared libgcc
1594 --enable-languages=LIST specify which front-ends to build
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-initfini-array use .init_array/.fini_array sections
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1605 --disable-win32-registry
1606 disable lookup of installation paths in the Registry
1608 --enable-win32-registry enable registry lookup (default)
1609 --enable-win32-registry=KEY
1610 use KEY instead of GCC version as the last portion
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-gnu-indirect-function
1618 enable the use of the @gnu_indirect_function to
1620 --enable-comdat enable COMDAT group support
1621 --enable-gnu-unique-object
1622 enable the use of the @gnu_unique_object ELF
1623 extension on glibc systems
1624 --enable-linker-build-id
1625 compiler will always pass --build-id to linker
1626 --enable-maintainer-mode
1627 enable make rules and dependencies not useful (and
1628 sometimes confusing) to the casual installer
1629 --enable-version-specific-runtime-libs
1630 specify that runtime libraries should be installed
1631 in a compiler-specific directory
1632 --enable-plugin enable plugin support
1633 --disable-libquadmath-support
1634 disable libquadmath support for Fortran
1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1639 --with-build-libsubdir=DIR Directory where to find libraries for build system
1640 --with-local-prefix=DIR specifies directory to put local include
1641 --with-gxx-include-dir=DIR
1642 specifies directory to put g++ header files
1643 --with-cpp-install-dir=DIR
1644 install the user visible C preprocessor in DIR
1645 (relative to PREFIX) as well as PREFIX/bin
1646 --with-gnu-ld arrange to work with GNU ld
1647 --with-ld arrange to use the specified ld (full pathname)
1648 --with-demangler-in-ld try to use demangler in GNU ld
1649 --with-gnu-as arrange to work with GNU as
1650 --with-as arrange to use the specified as (full pathname)
1651 --with-stabs arrange to use stabs instead of host debug format
1652 --with-dwarf2 force the default debug format to be DWARF 2
1653 --with-build-sysroot=sysroot
1654 use sysroot as the system root during the build
1655 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1656 --with-specs=SPECS add SPECS to driver command-line processing
1657 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1658 --with-bugurl=URL Direct users to URL to report a bug
1659 --with-multilib-list select multilibs (SH and x86-64 only)
1660 --with-gnu-ld assume the C compiler uses GNU ld default=no
1661 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1662 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1663 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1665 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1666 --with-plugin-ld=[ARG
] specify the plugin linker
1667 --with-long-double-128 use
128-bit long double by default
1668 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1670 --with-system-zlib use installed libz
1671 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1672 --with-linker-hash-style={sysv
,gnu
,both
}
1673 specify the linker
hash style
1675 Some influential environment variables
:
1676 CC C compiler
command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1679 nonstandard directory
<lib dir
>
1680 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1681 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1682 you have headers
in a nonstandard directory
<include dir
>
1683 CXX C
++ compiler
command
1684 CXXFLAGS C
++ compiler flags
1686 CXXCPP C
++ preprocessor
1687 GMPLIBS How to link GMP
1688 GMPINC How to
find GMP include files
1689 PPLLIBS How to link PPL
1690 PPLINC How to
find PPL include files
1691 CLOOGLIBS How to link CLOOG
1692 CLOOGINC How to
find CLOOG include files
1694 Use these variables to override the choices made by
`configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1697 Report bugs to the package provider.
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1727 .) # We are building in place.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1761 generated by GNU Autoconf 2.64
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1784 *) ac_try_echo
=$ac_try;;
1786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1790 if test -s conftest.err
; then
1791 grep -v '^ *+' conftest.err
>conftest.er1
1792 cat conftest.er1
>&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.
$ac_objext; then :
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.
$ac_ext >&5
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1810 } # ac_fn_c_try_compile
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile
()
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 rm -f conftest.
$ac_objext
1819 if { { ac_try
="$ac_compile"
1821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 } # ac_fn_cxx_try_compile
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1859 *) ac_try_echo
=$ac_try;;
1861 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 if test -s conftest.err
; then
1866 grep -v '^ *+' conftest.err
>conftest.er1
1867 cat conftest.er1
>&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } >/dev
/null
&& {
1872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.
$ac_ext >&5
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1892 ac_fn_c_check_header_mongrel
()
1894 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1895 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1913 if ac_fn_c_try_compile
"$LINENO"; then :
1914 ac_header_compiler
=yes
1916 ac_header_compiler
=no
1918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 if ac_fn_c_try_cpp
"$LINENO"; then :
1930 ac_header_preproc
=yes
1932 ac_header_preproc
=no
1934 rm -f conftest.err conftest.
$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1964 eval "$3=\$ac_header_compiler"
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1972 } # ac_fn_c_check_header_mongrel
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1980 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1981 if { { ac_try
="$ac_link"
1983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>&5
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992 { { case "(($ac_try" in
1993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1994 *) ac_try_echo
=$ac_try;;
1996 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_try") 2>&5
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; }; }; then :
2004 $as_echo "$as_me: program exited with status $ac_status" >&5
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.
$ac_ext >&5
2008 ac_retval
=$ac_status
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile
()
2022 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2033 if ac_fn_c_try_compile
"$LINENO"; then :
2038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2045 } # ac_fn_c_check_header_compile
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 ac_fn_c_compute_int
()
2054 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2070 if ac_fn_c_try_compile
"$LINENO"; then :
2073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 if ac_fn_c_try_compile
"$LINENO"; then :
2087 ac_hi
=$ac_mid; break
2089 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2090 if test $ac_lo -le $ac_mid; then
2094 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2105 static int test_array [1 - 2 * !(($2) < 0)];
2112 if ac_fn_c_try_compile
"$LINENO"; then :
2115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2128 if ac_fn_c_try_compile
"$LINENO"; then :
2129 ac_lo
=$ac_mid; break
2131 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2132 if test $ac_mid -le $ac_hi; then
2136 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2162 if ac_fn_c_try_compile
"$LINENO"; then :
2165 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2170 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2185 FILE *f = fopen ("conftest.val", "w");
2190 long int i = longval ();
2193 fprintf (f, "%ld", i);
2197 unsigned long int i = ulongval ();
2200 fprintf (f, "%lu", i);
2202 /* Do not output a trailing newline, as this causes \r\n confusion
2203 on some platforms. */
2204 return ferror (f) || fclose (f) != 0;
2210 if ac_fn_c_try_run
"$LINENO"; then :
2211 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2215 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2216 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2223 } # ac_fn_c_compute_int
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type
()
2231 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235 $as_echo_n "(cached) " >&6
2238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2250 if ac_fn_c_try_compile
"$LINENO"; then :
2251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2263 if ac_fn_c_try_compile
"$LINENO"; then :
2268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2277 } # ac_fn_c_check_type
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2283 ac_fn_c_find_intX_t
()
2285 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2292 for ac_type
in int
$2_t 'int' 'long int' \
2293 'long long int' 'short int' 'signed char'; do
2294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $ac_includes_default
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2307 if ac_fn_c_try_compile
"$LINENO"; then :
2308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $ac_includes_default
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2322 if ac_fn_c_try_compile
"$LINENO"; then :
2329 eval "$3=\$ac_type" ;;
2332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2336 if test "x$as_val" = x
""no
; then :
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2348 } # ac_fn_c_find_intX_t
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2355 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2356 rm -f conftest.
$ac_objext conftest
$ac_exeext
2357 if { { ac_try
="$ac_link"
2359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_link") 2>conftest.err
2366 if test -s conftest.err; then
2367 grep -v '^ *+' conftest.err >conftest.er1
2368 cat conftest.er1 >&5
2369 mv -f conftest.er1 conftest.err
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && {
2373 test -z "$ac_c_werror_flag" ||
2374 test ! -s conftest.err
2375 } && test -s conftest$ac_exeext && {
2376 test "$cross_compiling" = yes ||
2377 $as_test_x conftest$ac_exeext
2381 $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388 # interfere with the next link command; also delete a directory that is
2389 # left behind by Apple's compiler. We do this before executing the actions.
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 } # ac_fn_c_try_link
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2400 ac_fn_c_find_uintX_t ()
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2409 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2424 if ac_fn_c_try_compile "$LINENO"; then :
2429 eval "$3=\$ac_type" ;;
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 if test "x$as_val" = x""no; then :
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446 } # ac_fn_c_find_uintX_t
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2468 rm -f conftest.err conftest.$ac_ext
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475 } # ac_fn_c_check_header_preproc
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 if { { ac_try="$ac_cpp conftest.$ac_ext"
2485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2486 *) ac_try_echo
=$ac_try;;
2488 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2492 if test -s conftest.err
; then
2493 grep -v '^ *+' conftest.err
>conftest.er1
2494 cat conftest.er1
>&5
2495 mv -f conftest.er1 conftest.err
2497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } >/dev
/null
&& {
2499 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500 test ! -s conftest.err
2504 $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.
$ac_ext >&5
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2512 } # ac_fn_cxx_try_cpp
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc
()
2519 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2529 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2534 rm -f conftest.err conftest.
$ac_ext
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2541 } # ac_fn_cxx_check_header_preproc
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func
()
2548 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2558 #define $2 innocuous_$2
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $2 (); below.
2562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563 <limits.h> exists even on freestanding compilers. */
2566 # include <limits.h>
2568 # include <assert.h>
2573 /* Override any GCC internal prototype to avoid an error.
2574 Use char because int might match the return type of a GCC
2575 builtin and then its argument prototype would still apply. */
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined __stub_$2 || defined __stub___$2
2595 if ac_fn_c_try_link
"$LINENO"; then :
2600 rm -f core conftest.err conftest.
$ac_objext \
2601 conftest
$ac_exeext conftest.
$ac_ext
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2608 } # ac_fn_c_check_func
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link
()
2615 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2616 rm -f conftest.
$ac_objext conftest
$ac_exeext
2617 if { { ac_try
="$ac_link"
2619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link") 2>conftest.err
2626 if test -s conftest.err; then
2627 grep -v '^ *+' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 mv -f conftest.er1 conftest.err
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; } && {
2633 test -z "$ac_cxx_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest$ac_exeext && {
2636 test "$cross_compiling" = yes ||
2637 $as_test_x conftest$ac_exeext
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648 # interfere with the next link command; also delete a directory that is
2649 # left behind by Apple's compiler. We do this before executing the actions.
2650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64. Invocation command line was
2672 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2673 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2674 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2675 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2676 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2678 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2679 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2681 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2682 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2683 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2684 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2685 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2686 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2687 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 $as_echo "PATH: $as_dir"
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2720 ac_must_keep_next=false
2726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728 | -silent | --silent | --silen | --sile | --sil)
2731 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2734 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2736 as_fn_append ac_configure_args1 " '$ac_arg'"
2737 if test $ac_must_keep_next = true; then
2738 ac_must_keep_next=false # Got value, back to normal.
2741 *=* | --config-cache | -C | -disable-* | --disable-* \
2742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744 | -with-* | --with-* | -without-* | --without-* | --x)
2745 case "$ac_configure_args0 " in
2746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2749 -* ) ac_must_keep_next=true ;;
2752 as_fn_append ac_configure_args " '$ac_arg'"
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log. We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766 # Save into config.log some information that might help in debugging.
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2776 # The following way of writing the cache mishandles newlines in values,
2778 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2779 eval ac_val=\$$ac_var
2783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2787 _ | IFS | as_nl) ;; #(
2788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789 *) { eval $ac_var=; unset $ac_var;} ;;
2794 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2795 *${as_nl}ac_space=\ *)
2797 "s/'\''/'\''\\\\'\'''\''/g;
2798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2814 for ac_var in $ac_subst_vars
2816 eval ac_val=\$$ac_var
2818 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 $as_echo "$ac_var='\''$ac_val'\''"
2824 if test -n "$ac_subst_files"; then
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2831 for ac_var in $ac_subst_files
2833 eval ac_val=\$$ac_var
2835 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2837 $as_echo "$ac_var='\''$ac_val'\''"
2842 if test -s confdefs.h; then
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2860 for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2868 $as_echo "/* confdefs.h */" > confdefs.h
2870 # Predefined preprocessor variables.
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2901 if test -n "$CONFIG_SITE"; then
2902 ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904 ac_site_file1=$prefix/share/config.site
2905 ac_site_file2=$prefix/etc/config.site
2907 ac_site_file1=$ac_default_prefix/share/config.site
2908 ac_site_file2=$ac_default_prefix/etc/config.site
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2912 test "x$ac_site_file" = xNONE && continue
2913 if test -r "$ac_site_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916 sed 's/^/| /' "$ac_site_file" >&5
2921 if test -r "$cache_file"; then
2922 # Some versions of bash will fail to source /dev/null (special
2923 # files actually), so we avoid doing that.
2924 if test -f "$cache_file"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929 *) . "./$cache_file";;
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2938 # Check that the precious variables saved in the cache have kept the same
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943 eval ac_new_set=\$ac_env_${ac_var}_set
2944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945 eval ac_new_val=\$ac_env_${ac_var}_value
2946 case $ac_old_set,$ac_new_set in
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2949 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950 ac_cache_corrupted=: ;;
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2953 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2957 if test "x$ac_old_val" != "x$ac_new_val"; then
2958 # differences in whitespace do not lead to failure.
2959 ac_old_val_w=`echo x
$ac_old_val`
2960 ac_new_val_w=`echo x
$ac_new_val`
2961 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2964 ac_cache_corrupted=:
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968 eval $ac_var=\$ac_old_val
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2971 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2976 # Pass precious variables to config.status.
2977 if test "$ac_new_set" = set; then
2979 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2980 *) ac_arg=$ac_var=$ac_new_val ;;
2982 case " $ac_configure_args " in
2983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2984 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2988 if $ac_cache_corrupted; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3013 gcc_version=`cat $srcdir/BASE-VER
`
3015 # Determine the host, build, and target systems
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 for ac_t in install-sh install.sh shtool; do
3019 if test -f "$ac_dir/$ac_t"; then
3021 ac_install_sh="$ac_aux_dir/$ac_t -c"
3026 if test -z "$ac_aux_dir"; then
3027 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3048 ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3064 ac_save_IFS=$IFS; IFS='-'
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3074 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3082 if test "x$host_alias" = x; then
3083 ac_cv_host=$ac_cv_build
3085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3097 ac_save_IFS=$IFS; IFS='-'
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3107 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3115 if test "x$target_alias" = x; then
3116 ac_cv_target=$ac_cv_host
3118 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3140 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146 test "$program_prefix$program_suffix$program_transform_name" = \
3148 program_prefix=${target_alias}-
3150 # Determine the noncanonical target name, for directory use.
3151 case ${build_alias} in
3152 "") build_noncanonical=${build} ;;
3153 *) build_noncanonical=${build_alias} ;;
3156 case ${host_alias} in
3157 "") host_noncanonical=${build_noncanonical} ;;
3158 *) host_noncanonical=${host_alias} ;;
3161 case ${target_alias} in
3162 "") target_noncanonical=${host_noncanonical} ;;
3163 *) target_noncanonical=${target_alias} ;;
3169 # Determine the target- and build-specific subdirectories
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185 withval=$with_build_libsubdir; build_libsubdir="$withval"
3187 build_libsubdir="$build_subdir"
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192 || test -d $srcdir/../host-${host_noncanonical}; then
3193 host_subdir="host-${host_noncanonical}"
3198 target_subdir=${target_noncanonical}
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s
,x
,x
', remove it if useless.
3209 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225 library_path_setting="contains current directory"
3228 library_path_setting="ok"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again.
" "$LINENO" 5
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251 gcc_exec_prefix_setting="contains current directory
"
3254 gcc_exec_prefix_setting="ok
"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok
"; then
3261 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3270 # Specify the local prefix
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275 withval=$with_local_prefix; case "${withval}" in
3276 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3278 *) local_prefix=$with_local_prefix ;;
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285 local_prefix=/usr/local
3288 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir
=
3292 # Specify the g++ header file directory
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296 withval
=$with_gxx_include_dir; case "${withval}" in
3297 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3299 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x
${gcc_gxx_include_dir} = x
; then
3306 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3307 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3309 libstdcxx_incdir
='include/c++/$(version)'
3310 if test x
$host != x
$target; then
3311 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3313 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3318 # Check whether --with-cpp_install_dir was given.
3319 if test "${with_cpp_install_dir+set}" = set; then :
3320 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3321 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3322 elif test x
$withval != xno
; then
3323 cpp_install_dir
=$withval
3328 # We would like to our source tree to be readonly. However when releases or
3329 # pre-releases are generated, the flex/bison generated files as well as the
3330 # various formats of manuals need to be included along with the rest of the
3331 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3335 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3336 # Check whether --enable-generated-files-in-srcdir was given.
3337 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3338 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3340 generated_files_in_srcdir
=no
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3345 $as_echo "$generated_files_in_srcdir" >&6; }
3347 if test "$generated_files_in_srcdir" = "yes"; then
3354 # -------------------
3355 # Find default linker
3356 # -------------------
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then :
3362 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3368 # With pre-defined ld
3370 # Check whether --with-ld was given.
3371 if test "${with_ld+set}" = set; then :
3372 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3375 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3376 if test ! -x "$DEFAULT_LINKER"; then
3377 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3378 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3382 cat >>confdefs.h
<<_ACEOF
3383 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3388 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3390 cat >>confdefs.h
<<_ACEOF
3391 #define HAVE_GNU_LD $gnu_ld
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3398 if test x
"$gnu_ld_flag" = x
"no"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3410 # With demangler in GNU ld
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3440 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3441 if test ! -x "$DEFAULT_ASSEMBLER"; then
3442 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3447 cat >>confdefs.h
<<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3453 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3455 cat >>confdefs.h
<<_ACEOF
3456 #define HAVE_GNU_AS $gnu_as
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3463 if test x
"$gas_flag" = x
"no"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3488 # Find the native compiler
3490 ac_cpp
='$CPP $CPPFLAGS'
3491 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC
="$CC" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$ac_cv_prog_CC"; then
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc
; ac_word
=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir
=.
3550 for ac_exec_ext
in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC
="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3571 if test "x$ac_ct_CC" = x
; then
3574 case $cross_compiling:$ac_tool_warned in
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned
=yes ;;
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC
="$CC" # Let the user override the test.
3598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir
=.
3603 for ac_exec_ext
in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc
; ac_word
=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC
="$CC" # Let the user override the test.
3639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir
=.
3644 for ac_exec_ext
in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected
=yes
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy
$ac_cv_prog_CC
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3667 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog
in cl.exe
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC
="$CC" # Let the user override the test.
3697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir
=.
3702 for ac_exec_ext
in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CC" && break
3727 if test -z "$CC"; then
3729 for ac_prog
in cl.exe
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy
$ac_prog; ac_word
=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir
=.
3746 for ac_exec_ext
in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC
="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CC" && break
3771 if test "x$ac_ct_CC" = x
; then
3774 case $cross_compiling:$ac_tool_warned in
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned
=yes ;;
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error
"no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3796 for ac_option
in --version -v -V -qversion; do
3797 { { ac_try
="$ac_compiler $ac_option >&5"
3799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3806 if test -s conftest.err; then
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3811 rm -f conftest.er1 conftest.err
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3841 for ac_file in $ac_files
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3850 if { { ac_try="$ac_link_default"
3852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3853 *) ac_try_echo
=$ac_try;;
3855 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3866 for ac_file
in $ac_files ''
3868 test -f "$ac_file" ||
continue
3870 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3873 # We found the default executable, but exeext='' is most
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3879 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3891 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.
$ac_ext >&5
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status
77
3905 as_fn_error
"C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3908 ac_exeext
=$ac_cv_exeext
3910 # Check that the compiler produces executables we can run. If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916 if { ac_try
='./$ac_file'
3917 { { case "(($ac_try" in
3918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_try") 2>&5
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; }; then
3929 if test "$cross_compiling" = maybe; then
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile
, use \
`--host'.
3936 See \`config.log
' for more details." "$LINENO" 5; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run. If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3966 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3969 for ac_file
in conftest.exe conftest conftest.
*; do
3970 test -f "$ac_file" ||
continue
3972 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3973 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3984 rm -f conftest
$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3988 rm -f conftest.
$ac_ext
3989 EXEEXT
=$ac_cv_exeext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try
="$ac_compile"
4010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compile") 2>&5
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then :
4019 for ac_file in conftest.o conftest.obj conftest.*; do
4020 test -f "$ac_file" || continue;
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files
: cannot compile
4034 See \
`config.log' for more details." "$LINENO" 5; }
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4061 if ac_fn_c_try_compile "$LINENO"; then :
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4084 ac_save_c_werror_flag=$ac_c_werror_flag
4085 ac_c_werror_flag=yes
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4099 if ac_fn_c_try_compile "$LINENO"; then :
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4114 if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4130 if ac_fn_c_try_compile "$LINENO"; then :
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143 CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145 if test "$GCC" = yes; then
4151 if test "$GCC" = yes; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4162 ac_cv_prog_cc_c89=no
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4184 s = g (p, va_arg (v,int));
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4190 function prototypes and stuff, but not '\xHH' hex character constants.
4191 These don't provoke an error unfortunately, instead are silently treated
4192 as 'x'. The following induces an error, until -std is added to get
4193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4194 array size at least. It's necessary to write '\x00'==0 to get something
4195 that's true only with -std. */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199 inside strings and character constants. */
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_c89=$ac_arg
4224 rm -f core conftest.err conftest.$ac_objext
4225 test "x$ac_cv_prog_cc_c89" != "xno" && break
4227 rm -f conftest.$ac_ext
4232 case "x$ac_cv_prog_cc_c89" in
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4240 CC="$CC $ac_cv_prog_cc_c89"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 if test "x$CC" != xcc; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264 $as_echo_n "(cached) " >&6
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282 if { { case "(($ac_try" in
4283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4284 *) ac_try_echo
=$ac_try;;
4286 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4303 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304 if test "x$CC" != xcc; then
4305 # Test first that cc exists at all.
4306 if { ac_try='cc -c conftest.$ac_ext >&5'
4307 { { case "(($ac_try" in
4308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4309 *) ac_try_echo
=$ac_try;;
4311 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }; }; then
4317 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4319 if { { case "(($ac_try" in
4320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_try") 2>&5
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; } &&
4329 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4331 *) ac_try_echo
=$ac_try;;
4333 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_try") 2>&5
4337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338 test $ac_status = 0; };
4343 # cc exists but doesn't like -o.
4344 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4349 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4351 rm -f core conftest
*
4354 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir
=`cd $ac_aux_dir && pwd`
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4371 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374 # Losing compiler, so override with the script.
4375 # FIXME: It is wrong to rewrite CC.
4376 # But if we don't then we get into trouble of one sort or another.
4377 # A longer-term fix would be to have automake use am__CC in this case,
4378 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379 CC
="$am_aux_dir/compile $CC"
4384 ac_cpp
='$CXXCPP $CPPFLAGS'
4385 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389 if test -n "$CCC"; then
4392 if test -n "$ac_tool_prefix"; then
4393 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4402 if test -n "$CXX"; then
4403 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir
=.
4410 for ac_exec_ext
in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 if test -n "$CXX"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4432 test -n "$CXX" && break
4435 if test -z "$CXX"; then
4437 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy
$ac_prog; ac_word
=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4446 if test -n "$ac_ct_CXX"; then
4447 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir
=.
4454 for ac_exec_ext
in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4476 test -n "$ac_ct_CXX" && break
4479 if test "x$ac_ct_CXX" = x
; then
4482 case $cross_compiling:$ac_tool_warned in
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned
=yes ;;
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4498 for ac_option
in --version -v -V -qversion; do
4499 { { ac_try
="$ac_compiler $ac_option >&5"
4501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4508 if test -s conftest.err; then
4510 ... rest of stderr output deleted ...
4511 10q' conftest.err >conftest.er1
4512 cat conftest.er1 >&5
4513 rm -f conftest.er1 conftest.err
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4561 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562 ac_cxx_werror_flag=yes
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577 ac_cv_prog_cxx_g=yes
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608 ac_cv_prog_cxx_g=yes
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620 CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622 if test "$GXX" = yes; then
4628 if test "$GXX" = yes; then
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643 if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4651 if test -n "$GNATBIND"; then
4652 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683 ac_ct_GNATBIND=$GNATBIND
4684 # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$ac_ct_GNATBIND"; then
4692 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4720 if test "x$ac_ct_GNATBIND" = x; then
4723 case $cross_compiling:$ac_tool_warned in
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4729 GNATBIND=$ac_ct_GNATBIND
4732 GNATBIND="$ac_cv_prog_GNATBIND"
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$GNATMAKE"; then
4744 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775 ac_ct_GNATMAKE=$GNATMAKE
4776 # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4783 if test -n "$ac_ct_GNATMAKE"; then
4784 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4812 if test "x$ac_ct_GNATMAKE" = x; then
4815 case $cross_compiling:$ac_tool_warned in
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4821 GNATMAKE=$ac_ct_GNATMAKE
4824 GNATMAKE="$ac_cv_prog_GNATMAKE"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4832 cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file. So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846 acx_cv_cc_gcc_supports_ada=yes
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4853 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4862 NO_MINUS_C_MINUS_O=yes
4864 OUTPUT_OPTION='-o $@'
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4872 */prev-gcc/xgcc*) ;;
4873 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4877 # Determine PICFLAG for target gnatlib.
4883 # PIC is the default on some targets or must not be used.
4885 # PIC is the default on this platform
4886 # Common symbols not allowed in MH_DYLIB files
4887 PICFLAG_FOR_TARGET=-fno-common
4890 # PIC is the default.
4893 # PIC is the default for 64-bit PA HP-UX.
4895 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4897 i[34567]86-*-interix3*)
4898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4899 # Instead, we relocate shared libraries at runtime.
4901 i[34567]86-*-nto-qnx*)
4902 # QNX uses GNU C++, but need to define -shared option too, otherwise
4904 PICFLAG_FOR_TARGET='-fPIC -shared'
4906 i[34567]86-pc-msdosdjgpp*)
4907 # DJGPP does not support shared libraries at all.
4910 # On IA64 HP-UX, PIC is the default but the pic flag
4911 # sets the default TLS model and affects inlining.
4912 PICFLAG_FOR_TARGET=-fPIC
4915 # PIC is the default.
4917 rs6000-ibm-aix* | powerpc-ibm-aix*)
4918 # All AIX code is PIC.
4921 # Some targets support both -fPIC and -fpic, but prefer the latter.
4923 i[34567]86-*-* | x86_64-*-*)
4924 PICFLAG_FOR_TARGET=-fpic
4927 PICFLAG_FOR_TARGET=-fpic
4930 PICFLAG_FOR_TARGET=-fpic
4932 # FIXME: Override -fPIC default in libgcc only?
4933 sh-*-linux* | sh[2346lbe]*-*-linux*)
4934 PICFLAG_FOR_TARGET=-fpic
4936 # FIXME: Simplify to sh*-*-netbsd*?
4937 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4938 sh64-*-netbsd* | sh64l*-*-netbsd*)
4939 PICFLAG_FOR_TARGET=-fpic
4941 # Default to -fPIC unless specified otherwise.
4943 PICFLAG_FOR_TARGET=-fPIC
4947 # If the user explicitly uses -fpic/-fPIC, keep that.
4948 case "${CFLAGS_FOR_TARGET}" in
4950 PICFLAG_FOR_TARGET=-fpic
4953 PICFLAG_FOR_TARGET=-fPIC
4959 # -------------------------
4960 # Check C compiler features
4961 # -------------------------
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4971 # On Suns, sometimes $CPP names a directory.
4972 if test -n "$CPP" && test -d "$CPP"; then
4975 if test -z "$CPP"; then
4976 if test "${ac_cv_prog_CPP+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4979 # Double quotes because CPP needs to be expanded
4980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4983 for ac_c_preproc_warn_flag in '' yes
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4994 # include <limits.h>
4996 # include <assert.h>
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5003 # Broken: fails on valid input.
5006 rm -f conftest.err conftest.$ac_ext
5008 # OK, works on sane cases. Now check whether nonexistent headers
5009 # can be detected and how.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #include <ac_nonexistent.h>
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5015 # Broken: success on invalid input.
5018 # Passes both tests.
5022 rm -f conftest.err conftest.$ac_ext
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.
$ac_ext
5027 if $ac_preproc_ok; then :
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5040 $as_echo "$CPP" >&6; }
5042 for ac_c_preproc_warn_flag
in '' yes
5044 # Use a header file that comes with gcc, so configuring glibc
5045 # with a fresh cross-compiler works.
5046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047 # <limits.h> exists even on freestanding compilers.
5048 # On the NeXT, cc -E runs the code through the compiler's parser,
5049 # not just through cpp. "Syntax error" is here to catch this case.
5050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5053 # include <limits.h>
5055 # include <assert.h>
5059 if ac_fn_c_try_cpp
"$LINENO"; then :
5062 # Broken: fails on valid input.
5065 rm -f conftest.err conftest.
$ac_ext
5067 # OK, works on sane cases. Now check whether nonexistent headers
5068 # can be detected and how.
5069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 #include <ac_nonexistent.h>
5073 if ac_fn_c_try_cpp
"$LINENO"; then :
5074 # Broken: success on invalid input.
5077 # Passes both tests.
5081 rm -f conftest.err conftest.
$ac_ext
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.
$ac_ext
5086 if $ac_preproc_ok; then :
5089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details." "$LINENO" 5; }
5096 ac_cpp
='$CPP $CPPFLAGS'
5097 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5104 if test "${ac_cv_path_GREP+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5107 if test -z "$GREP"; then
5108 ac_path_GREP_found
=false
5109 # Loop through the user's path and test for each of PROGNAME-LIST
5110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5111 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5114 test -z "$as_dir" && as_dir
=.
5115 for ac_prog
in grep ggrep
; do
5116 for ac_exec_ext
in '' $ac_executable_extensions; do
5117 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5118 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5119 # Check for GNU ac_path_GREP and select it if it is found.
5120 # Check for GNU $ac_path_GREP
5121 case `"$ac_path_GREP" --version 2>&1` in
5123 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5126 $as_echo_n 0123456789 >"conftest.in"
5129 cat "conftest.in" "conftest.in" >"conftest.tmp"
5130 mv "conftest.tmp" "conftest.in"
5131 cp "conftest.in" "conftest.nl"
5132 $as_echo 'GREP' >> "conftest.nl"
5133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5134 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5135 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5137 # Best one so far, save it but keep looking for a better one
5138 ac_cv_path_GREP
="$ac_path_GREP"
5139 ac_path_GREP_max
=$ac_count
5141 # 10*(2^10) chars as input seems more than enough
5142 test $ac_count -gt 10 && break
5144 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5147 $ac_path_GREP_found && break 3
5152 if test -z "$ac_cv_path_GREP"; then
5153 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5156 ac_cv_path_GREP
=$GREP
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5161 $as_echo "$ac_cv_path_GREP" >&6; }
5162 GREP
="$ac_cv_path_GREP"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5166 $as_echo_n "checking for egrep... " >&6; }
5167 if test "${ac_cv_path_EGREP+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5170 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5171 then ac_cv_path_EGREP
="$GREP -E"
5173 if test -z "$EGREP"; then
5174 ac_path_EGREP_found
=false
5175 # Loop through the user's path and test for each of PROGNAME-LIST
5176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5177 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5180 test -z "$as_dir" && as_dir
=.
5181 for ac_prog
in egrep; do
5182 for ac_exec_ext
in '' $ac_executable_extensions; do
5183 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5185 # Check for GNU ac_path_EGREP and select it if it is found.
5186 # Check for GNU $ac_path_EGREP
5187 case `"$ac_path_EGREP" --version 2>&1` in
5189 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5192 $as_echo_n 0123456789 >"conftest.in"
5195 cat "conftest.in" "conftest.in" >"conftest.tmp"
5196 mv "conftest.tmp" "conftest.in"
5197 cp "conftest.in" "conftest.nl"
5198 $as_echo 'EGREP' >> "conftest.nl"
5199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5200 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5201 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5203 # Best one so far, save it but keep looking for a better one
5204 ac_cv_path_EGREP
="$ac_path_EGREP"
5205 ac_path_EGREP_max
=$ac_count
5207 # 10*(2^10) chars as input seems more than enough
5208 test $ac_count -gt 10 && break
5210 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5213 $ac_path_EGREP_found && break 3
5218 if test -z "$ac_cv_path_EGREP"; then
5219 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5222 ac_cv_path_EGREP
=$EGREP
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5228 $as_echo "$ac_cv_path_EGREP" >&6; }
5229 EGREP
="$ac_cv_path_EGREP"
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5233 $as_echo_n "checking for ANSI C header files... " >&6; }
5234 if test "${ac_cv_header_stdc+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5252 if ac_fn_c_try_compile
"$LINENO"; then :
5253 ac_cv_header_stdc
=yes
5255 ac_cv_header_stdc
=no
5257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5259 if test $ac_cv_header_stdc = yes; then
5260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5267 $EGREP "memchr" >/dev
/null
2>&1; then :
5270 ac_cv_header_stdc
=no
5276 if test $ac_cv_header_stdc = yes; then
5277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "free" >/dev
/null
2>&1; then :
5287 ac_cv_header_stdc
=no
5293 if test $ac_cv_header_stdc = yes; then
5294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5295 if test "$cross_compiling" = yes; then :
5298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5302 #if ((' ' & 0x0FF) == 0x020)
5303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5306 # define ISLOWER(c) \
5307 (('a' <= (c) && (c) <= 'i') \
5308 || ('j' <= (c) && (c) <= 'r') \
5309 || ('s' <= (c) && (c) <= 'z'))
5310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5318 for (i = 0; i < 256; i++)
5319 if (XOR (islower (i), ISLOWER (i))
5320 || toupper (i) != TOUPPER (i))
5325 if ac_fn_c_try_run
"$LINENO"; then :
5328 ac_cv_header_stdc
=no
5330 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5331 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5337 $as_echo "$ac_cv_header_stdc" >&6; }
5338 if test $ac_cv_header_stdc = yes; then
5340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5345 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5346 inttypes.h stdint.h unistd.h
5348 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5351 eval as_val
=\$
$as_ac_Header
5352 if test "x$as_val" = x
""yes; then :
5353 cat >>confdefs.h
<<_ACEOF
5354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5363 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5364 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5371 if test "$MINIX" = yes; then
5373 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5376 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5379 $as_echo "#define _MINIX 1" >>confdefs.h
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5385 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5386 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5392 # define __EXTENSIONS__ 1
5393 $ac_includes_default
5402 if ac_fn_c_try_compile
"$LINENO"; then :
5403 ac_cv_safe_to_define___extensions__
=yes
5405 ac_cv_safe_to_define___extensions__
=no
5407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5410 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5411 test $ac_cv_safe_to_define___extensions__ = yes &&
5412 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5414 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5416 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5418 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5420 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5424 ac_cpp
='$CPP $CPPFLAGS'
5425 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5430 # On Suns, sometimes $CPP names a directory.
5431 if test -n "$CPP" && test -d "$CPP"; then
5434 if test -z "$CPP"; then
5435 if test "${ac_cv_prog_CPP+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5438 # Double quotes because CPP needs to be expanded
5439 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5442 for ac_c_preproc_warn_flag
in '' yes
5444 # Use a header file that comes with gcc, so configuring glibc
5445 # with a fresh cross-compiler works.
5446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447 # <limits.h> exists even on freestanding compilers.
5448 # On the NeXT, cc -E runs the code through the compiler's parser,
5449 # not just through cpp. "Syntax error" is here to catch this case.
5450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5453 # include <limits.h>
5455 # include <assert.h>
5459 if ac_fn_c_try_cpp
"$LINENO"; then :
5462 # Broken: fails on valid input.
5465 rm -f conftest.err conftest.
$ac_ext
5467 # OK, works on sane cases. Now check whether nonexistent headers
5468 # can be detected and how.
5469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <ac_nonexistent.h>
5473 if ac_fn_c_try_cpp
"$LINENO"; then :
5474 # Broken: success on invalid input.
5477 # Passes both tests.
5481 rm -f conftest.err conftest.
$ac_ext
5484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485 rm -f conftest.err conftest.
$ac_ext
5486 if $ac_preproc_ok; then :
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5499 $as_echo "$CPP" >&6; }
5501 for ac_c_preproc_warn_flag
in '' yes
5503 # Use a header file that comes with gcc, so configuring glibc
5504 # with a fresh cross-compiler works.
5505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506 # <limits.h> exists even on freestanding compilers.
5507 # On the NeXT, cc -E runs the code through the compiler's parser,
5508 # not just through cpp. "Syntax error" is here to catch this case.
5509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5512 # include <limits.h>
5514 # include <assert.h>
5518 if ac_fn_c_try_cpp
"$LINENO"; then :
5521 # Broken: fails on valid input.
5524 rm -f conftest.err conftest.
$ac_ext
5526 # OK, works on sane cases. Now check whether nonexistent headers
5527 # can be detected and how.
5528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <ac_nonexistent.h>
5532 if ac_fn_c_try_cpp
"$LINENO"; then :
5533 # Broken: success on invalid input.
5536 # Passes both tests.
5540 rm -f conftest.err conftest.
$ac_ext
5543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5544 rm -f conftest.err conftest.
$ac_ext
5545 if $ac_preproc_ok; then :
5548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5551 See \`config.log' for more details." "$LINENO" 5; }
5555 ac_cpp
='$CPP $CPPFLAGS'
5556 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5561 $as_echo_n "checking for inline... " >&6; }
5562 if test "${ac_cv_c_inline+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5566 for ac_kw
in inline __inline__ __inline
; do
5567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5571 static $ac_kw foo_t static_foo () {return 0; }
5572 $ac_kw foo_t foo () {return 0; }
5576 if ac_fn_c_try_compile
"$LINENO"; then :
5577 ac_cv_c_inline
=$ac_kw
5579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5580 test "$ac_cv_c_inline" != no
&& break
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5585 $as_echo "$ac_cv_c_inline" >&6; }
5587 case $ac_cv_c_inline in
5590 case $ac_cv_c_inline in
5592 *) ac_val
=$ac_cv_c_inline;;
5594 cat >>confdefs.h
<<_ACEOF
5596 #define inline $ac_val
5603 # Check whether --enable-largefile was given.
5604 if test "${enable_largefile+set}" = set; then :
5605 enableval
=$enable_largefile;
5608 if test "$enable_largefile" != no
; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5611 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5612 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5615 ac_cv_sys_largefile_CC
=no
5616 if test "$GCC" != yes; then
5619 # IRIX 6.2 and later do not support large files by default,
5620 # so use the C compiler's -n32 option if that helps.
5621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 /* Check that off_t can represent 2**63 - 1 correctly.
5625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5626 since some C++ compilers masquerading as C compilers
5627 incorrectly reject 9223372036854775807. */
5628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5630 && LARGE_OFF_T % 2147483647 == 1)
5640 if ac_fn_c_try_compile
"$LINENO"; then :
5643 rm -f core conftest.err conftest.
$ac_objext
5645 if ac_fn_c_try_compile
"$LINENO"; then :
5646 ac_cv_sys_largefile_CC
=' -n32'; break
5648 rm -f core conftest.err conftest.
$ac_objext
5652 rm -f conftest.
$ac_ext
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5656 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5657 if test "$ac_cv_sys_largefile_CC" != no
; then
5658 CC
=$CC$ac_cv_sys_largefile_CC
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5662 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5663 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
5667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5686 if ac_fn_c_try_compile
"$LINENO"; then :
5687 ac_cv_sys_file_offset_bits
=no
; break
5689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #define _FILE_OFFSET_BITS 64
5693 #include <sys/types.h>
5694 /* Check that off_t can represent 2**63 - 1 correctly.
5695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5696 since some C++ compilers masquerading as C compilers
5697 incorrectly reject 9223372036854775807. */
5698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5700 && LARGE_OFF_T % 2147483647 == 1)
5710 if ac_fn_c_try_compile
"$LINENO"; then :
5711 ac_cv_sys_file_offset_bits
=64; break
5713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5714 ac_cv_sys_file_offset_bits
=unknown
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5719 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5720 case $ac_cv_sys_file_offset_bits in #(
5723 cat >>confdefs.h
<<_ACEOF
5724 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5729 if test $ac_cv_sys_file_offset_bits = unknown
; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5731 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5732 if test "${ac_cv_sys_large_files+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5755 if ac_fn_c_try_compile
"$LINENO"; then :
5756 ac_cv_sys_large_files
=no
; break
5758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #define _LARGE_FILES 1
5762 #include <sys/types.h>
5763 /* Check that off_t can represent 2**63 - 1 correctly.
5764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5765 since some C++ compilers masquerading as C compilers
5766 incorrectly reject 9223372036854775807. */
5767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5769 && LARGE_OFF_T % 2147483647 == 1)
5779 if ac_fn_c_try_compile
"$LINENO"; then :
5780 ac_cv_sys_large_files
=1; break
5782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5783 ac_cv_sys_large_files
=unknown
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5788 $as_echo "$ac_cv_sys_large_files" >&6; }
5789 case $ac_cv_sys_large_files in #(
5792 cat >>confdefs.h
<<_ACEOF
5793 #define _LARGE_FILES $ac_cv_sys_large_files
5802 # sizeof(char) is 1 by definition.
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5808 $as_echo_n "checking size of void *... " >&6; }
5809 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5812 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5815 if test "$ac_cv_type_void_p" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 { as_fn_set_status
77
5819 as_fn_error
"cannot compute sizeof (void *)
5820 See \`config.log' for more details." "$LINENO" 5; }; }
5822 ac_cv_sizeof_void_p
=0
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5828 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5832 cat >>confdefs.h
<<_ACEOF
5833 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5837 # The cast to long int works around a bug in the HP C Compiler
5838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5840 # This bug is HP SR number 8606223364.
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5842 $as_echo_n "checking size of short... " >&6; }
5843 if test "${ac_cv_sizeof_short+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5846 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5849 if test "$ac_cv_type_short" = yes; then
5850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 { as_fn_set_status
77
5853 as_fn_error
"cannot compute sizeof (short)
5854 See \`config.log' for more details." "$LINENO" 5; }; }
5856 ac_cv_sizeof_short
=0
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5862 $as_echo "$ac_cv_sizeof_short" >&6; }
5866 cat >>confdefs.h
<<_ACEOF
5867 #define SIZEOF_SHORT $ac_cv_sizeof_short
5871 # The cast to long int works around a bug in the HP C Compiler
5872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5874 # This bug is HP SR number 8606223364.
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5876 $as_echo_n "checking size of int... " >&6; }
5877 if test "${ac_cv_sizeof_int+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5880 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5883 if test "$ac_cv_type_int" = yes; then
5884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5886 { as_fn_set_status
77
5887 as_fn_error
"cannot compute sizeof (int)
5888 See \`config.log' for more details." "$LINENO" 5; }; }
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5896 $as_echo "$ac_cv_sizeof_int" >&6; }
5900 cat >>confdefs.h
<<_ACEOF
5901 #define SIZEOF_INT $ac_cv_sizeof_int
5905 # The cast to long int works around a bug in the HP C Compiler
5906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5908 # This bug is HP SR number 8606223364.
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5910 $as_echo_n "checking size of long... " >&6; }
5911 if test "${ac_cv_sizeof_long+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5914 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5917 if test "$ac_cv_type_long" = yes; then
5918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 { as_fn_set_status
77
5921 as_fn_error
"cannot compute sizeof (long)
5922 See \`config.log' for more details." "$LINENO" 5; }; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5930 $as_echo "$ac_cv_sizeof_long" >&6; }
5934 cat >>confdefs.h
<<_ACEOF
5935 #define SIZEOF_LONG $ac_cv_sizeof_long
5939 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5940 if test "x$ac_cv_type_long_long" = x
""yes; then :
5942 cat >>confdefs.h
<<_ACEOF
5943 #define HAVE_LONG_LONG 1
5946 # The cast to long int works around a bug in the HP C Compiler
5947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5949 # This bug is HP SR number 8606223364.
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5951 $as_echo_n "checking size of long long... " >&6; }
5952 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5955 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5958 if test "$ac_cv_type_long_long" = yes; then
5959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5961 { as_fn_set_status
77
5962 as_fn_error
"cannot compute sizeof (long long)
5963 See \`config.log' for more details." "$LINENO" 5; }; }
5965 ac_cv_sizeof_long_long
=0
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5971 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5975 cat >>confdefs.h
<<_ACEOF
5976 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5982 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5983 if test "x$ac_cv_type___int64" = x
""yes; then :
5985 cat >>confdefs.h
<<_ACEOF
5986 #define HAVE___INT64 1
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5994 $as_echo_n "checking size of __int64... " >&6; }
5995 if test "${ac_cv_sizeof___int64+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5998 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6001 if test "$ac_cv_type___int64" = yes; then
6002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status
77
6005 as_fn_error
"cannot compute sizeof (__int64)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6008 ac_cv_sizeof___int64
=0
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6014 $as_echo "$ac_cv_sizeof___int64" >&6; }
6018 cat >>confdefs.h
<<_ACEOF
6019 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6025 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6026 case $ac_cv_c_int8_t in #(
6030 cat >>confdefs.h
<<_ACEOF
6031 #define int8_t $ac_cv_c_int8_t
6036 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6037 case $ac_cv_c_int16_t in #(
6041 cat >>confdefs.h
<<_ACEOF
6042 #define int16_t $ac_cv_c_int16_t
6047 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6048 case $ac_cv_c_int32_t in #(
6052 cat >>confdefs.h
<<_ACEOF
6053 #define int32_t $ac_cv_c_int32_t
6058 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6059 case $ac_cv_c_int64_t in #(
6063 cat >>confdefs.h
<<_ACEOF
6064 #define int64_t $ac_cv_c_int64_t
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6071 $as_echo_n "checking for long long int... " >&6; }
6072 if test "${ac_cv_type_long_long_int+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6078 /* For now, do not test the preprocessor; as of 2007 there are too many
6079 implementations with broken preprocessors. Perhaps this can
6080 be revisited in 2012. In the meantime, code should not expect
6081 #if to work with literals wider than 32 bits. */
6082 /* Test literals. */
6083 long long int ll = 9223372036854775807ll;
6084 long long int nll = -9223372036854775807LL;
6085 unsigned long long int ull = 18446744073709551615ULL;
6086 /* Test constant expressions. */
6087 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6089 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6095 /* Test availability of runtime routines for shift and division. */
6096 long long int llmax = 9223372036854775807ll;
6097 unsigned long long int ullmax = 18446744073709551615ull;
6098 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6099 | (llmax / ll) | (llmax % ll)
6100 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6101 | (ullmax / ull) | (ullmax % ull));
6107 if ac_fn_c_try_link
"$LINENO"; then :
6108 if test "$cross_compiling" = yes; then :
6109 ac_cv_type_long_long_int
=yes
6111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6116 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6117 # define LLONG_MAX (HALF - 1 + HALF)
6122 long long int n = 1;
6126 long long int m = n << i;
6129 if (LLONG_MAX / 2 < m)
6137 if ac_fn_c_try_run
"$LINENO"; then :
6138 ac_cv_type_long_long_int
=yes
6140 ac_cv_type_long_long_int
=no
6142 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6143 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6147 ac_cv_type_long_long_int
=no
6149 rm -f core conftest.err conftest.
$ac_objext \
6150 conftest
$ac_exeext conftest.
$ac_ext
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6153 $as_echo "$ac_cv_type_long_long_int" >&6; }
6154 if test $ac_cv_type_long_long_int = yes; then
6156 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6162 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6163 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6165 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6168 test $ac_cv_type_long_long_int = yes \
6169 && ac_type
='long long int' \
6170 || ac_type
='long int'
6172 cat >>confdefs.h
<<_ACEOF
6173 #define intmax_t $ac_type
6180 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6181 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6183 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6186 for ac_type
in 'int' 'long int' 'long long int'; do
6187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 $ac_includes_default
6193 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6200 if ac_fn_c_try_compile
"$LINENO"; then :
6202 cat >>confdefs.h
<<_ACEOF
6203 #define intptr_t $ac_type
6208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6209 test -z "$ac_type" && break
6214 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6215 case $ac_cv_c_uint8_t in #(
6219 $as_echo "#define _UINT8_T 1" >>confdefs.h
6222 cat >>confdefs.h
<<_ACEOF
6223 #define uint8_t $ac_cv_c_uint8_t
6228 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6229 case $ac_cv_c_uint16_t in #(
6234 cat >>confdefs.h
<<_ACEOF
6235 #define uint16_t $ac_cv_c_uint16_t
6240 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6241 case $ac_cv_c_uint32_t in #(
6245 $as_echo "#define _UINT32_T 1" >>confdefs.h
6248 cat >>confdefs.h
<<_ACEOF
6249 #define uint32_t $ac_cv_c_uint32_t
6254 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6255 case $ac_cv_c_uint64_t in #(
6259 $as_echo "#define _UINT64_T 1" >>confdefs.h
6262 cat >>confdefs.h
<<_ACEOF
6263 #define uint64_t $ac_cv_c_uint64_t
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6270 $as_echo_n "checking for unsigned long long int... " >&6; }
6271 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6277 /* For now, do not test the preprocessor; as of 2007 there are too many
6278 implementations with broken preprocessors. Perhaps this can
6279 be revisited in 2012. In the meantime, code should not expect
6280 #if to work with literals wider than 32 bits. */
6281 /* Test literals. */
6282 long long int ll = 9223372036854775807ll;
6283 long long int nll = -9223372036854775807LL;
6284 unsigned long long int ull = 18446744073709551615ULL;
6285 /* Test constant expressions. */
6286 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6288 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6294 /* Test availability of runtime routines for shift and division. */
6295 long long int llmax = 9223372036854775807ll;
6296 unsigned long long int ullmax = 18446744073709551615ull;
6297 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6298 | (llmax / ll) | (llmax % ll)
6299 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6300 | (ullmax / ull) | (ullmax % ull));
6306 if ac_fn_c_try_link
"$LINENO"; then :
6307 ac_cv_type_unsigned_long_long_int
=yes
6309 ac_cv_type_unsigned_long_long_int
=no
6311 rm -f core conftest.err conftest.
$ac_objext \
6312 conftest
$ac_exeext conftest.
$ac_ext
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6315 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6316 if test $ac_cv_type_unsigned_long_long_int = yes; then
6318 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6324 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6325 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6327 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6330 test $ac_cv_type_unsigned_long_long_int = yes \
6331 && ac_type
='unsigned long long int' \
6332 || ac_type
='unsigned long int'
6334 cat >>confdefs.h
<<_ACEOF
6335 #define uintmax_t $ac_type
6342 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6345 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6348 for ac_type
in 'unsigned int' 'unsigned long int' \
6349 'unsigned long long int'; do
6350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 $ac_includes_default
6356 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6363 if ac_fn_c_try_compile
"$LINENO"; then :
6365 cat >>confdefs.h
<<_ACEOF
6366 #define uintptr_t $ac_type
6371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6372 test -z "$ac_type" && break
6390 # ---------------------
6391 # Warnings and checking
6392 # ---------------------
6394 # Check $CC warning features (if it's GCC).
6395 # We want to use -pedantic, but we don't want warnings about
6398 # * overlong strings
6399 # So, we only use -pedantic if we can disable those warnings.
6402 save_CFLAGS
="$CFLAGS"
6403 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6404 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6407 $as_echo_n "checking whether $CC supports $option... " >&6; }
6408 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6409 $as_echo_n "(cached) " >&6
6412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6423 if ac_fn_c_try_compile
"$LINENO"; then :
6424 eval "$as_acx_Woption=yes"
6426 eval "$as_acx_Woption=no"
6428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6431 eval ac_res
=\$
$as_acx_Woption
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6435 loose_warn
="$loose_warn${loose_warn:+ }$option"
6438 CFLAGS
="$save_CFLAGS"
6441 save_CFLAGS
="$CFLAGS"
6442 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6443 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6446 $as_echo_n "checking whether $CC supports $option... " >&6; }
6447 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6448 $as_echo_n "(cached) " >&6
6451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6462 if ac_fn_c_try_compile
"$LINENO"; then :
6463 eval "$as_acx_Woption=yes"
6465 eval "$as_acx_Woption=no"
6467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6470 eval ac_res
=\$
$as_acx_Woption
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472 $as_echo "$ac_res" >&6; }
6473 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6474 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6477 CFLAGS
="$save_CFLAGS"
6480 save_CFLAGS
="$CFLAGS"
6481 for option
in -Wmissing-format-attribute; do
6482 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487 $as_echo_n "(cached) " >&6
6490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6501 if ac_fn_c_try_compile
"$LINENO"; then :
6502 eval "$as_acx_Woption=yes"
6504 eval "$as_acx_Woption=no"
6506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6509 eval ac_res
=\$
$as_acx_Woption
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513 strict_warn
="$strict_warn${strict_warn:+ }$option"
6516 CFLAGS
="$save_CFLAGS"
6519 save_CFLAGS
="$CFLAGS"
6520 for option
in -Wold-style-definition -Wc++-compat; do
6521 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526 $as_echo_n "(cached) " >&6
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6540 if ac_fn_c_try_compile
"$LINENO"; then :
6541 eval "$as_acx_Woption=yes"
6543 eval "$as_acx_Woption=no"
6545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6548 eval ac_res
=\$
$as_acx_Woption
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6555 CFLAGS
="$save_CFLAGS"
6557 if test "$GCC" = yes; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6559 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6560 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6563 save_CFLAGS
="$CFLAGS"
6564 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6576 if ac_fn_c_try_compile
"$LINENO"; then :
6577 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6579 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6582 CFLAGS
="$save_CFLAGS"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6585 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6586 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6587 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6592 # Check whether --enable-werror-always was given.
6593 if test "${enable_werror_always+set}" = set; then :
6594 enableval
=$enable_werror_always;
6596 enable_werror_always
=no
6599 if test $enable_werror_always = yes; then :
6600 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6605 # The above macros do nothing if the compiler is not GCC. However, the
6606 # Makefile has more goo to add other flags, so these variables are used
6607 # to enable warnings only for GCC.
6610 if test "x$GCC" = "xyes"; then
6611 warn_cflags
='$(GCC_WARN_CFLAGS)'
6612 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6617 # Enable expensive internal checks
6619 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6623 # Check whether --enable-checking was given.
6624 if test "${enable_checking+set}" = set; then :
6625 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6628 # Determine the default checks.
6629 if test x
$is_release = x
; then
6630 ac_checking_flags
=yes
6632 ac_checking_flags
=release
6636 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6637 for check
in release
$ac_checking_flags
6640 # these set all the flags to specific states
6641 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6642 ac_fold_checking
= ; ac_gc_checking
=1 ;
6643 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6644 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6645 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6646 ac_types_checking
=1 ;;
6647 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6648 ac_fold_checking
= ; ac_gc_checking
= ;
6649 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6650 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6651 ac_tree_checking
= ; ac_valgrind_checking
= ;
6652 ac_types_checking
= ;;
6653 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6654 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6655 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6656 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6657 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6658 ac_types_checking
=1 ;;
6659 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6660 ac_fold_checking
= ; ac_gc_checking
= ;
6661 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6662 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6663 ac_tree_checking
= ; ac_valgrind_checking
= ;
6664 ac_types_checking
= ;;
6665 # these enable particular checks
6666 assert
) ac_assert_checking
=1 ;;
6667 df
) ac_df_checking
=1 ;;
6668 fold) ac_fold_checking
=1 ;;
6669 gc
) ac_gc_checking
=1 ;;
6670 gcac
) ac_gc_always_collect
=1 ;;
6671 gimple
) ac_gimple_checking
=1 ;;
6672 misc
) ac_checking
=1 ;;
6673 rtl
) ac_rtl_checking
=1 ;;
6674 rtlflag
) ac_rtlflag_checking
=1 ;;
6675 runtime
) ac_runtime_checking
=1 ;;
6676 tree
) ac_tree_checking
=1 ;;
6677 types
) ac_types_checking
=1 ;;
6678 valgrind
) ac_valgrind_checking
=1 ;;
6679 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6685 if test x
$ac_checking != x
; then
6687 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6689 nocommon_flag
=-fno-common
6692 if test x
$ac_df_checking != x
; then
6694 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6697 if test x
$ac_assert_checking != x
; then
6699 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6702 if test x
$ac_gimple_checking != x
; then
6704 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6708 if test x
$ac_runtime_checking != x
; then
6710 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6713 if test x
$ac_tree_checking != x
; then
6715 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6717 TREEBROWSER
=tree-browser.o
6719 if test x
$ac_types_checking != x
; then
6721 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6725 if test x
$ac_rtl_checking != x
; then
6727 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6730 if test x
$ac_rtlflag_checking != x
; then
6732 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6735 if test x
$ac_gc_checking != x
; then
6737 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6740 if test x
$ac_gc_always_collect != x
; then
6742 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6745 if test x
$ac_fold_checking != x
; then
6747 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6750 valgrind_path_defines
=
6753 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6754 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6762 if test x
$ac_valgrind_checking != x
; then
6763 # It is certainly possible that there's valgrind but no valgrind.h.
6764 # GCC relies on making annotations so we must have both.
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6766 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6769 #include <valgrind/memcheck.h>
6770 #ifndef VALGRIND_DISCARD
6771 #error VALGRIND_DISCARD not defined
6774 if ac_fn_c_try_cpp
"$LINENO"; then :
6775 gcc_cv_header_valgrind_memcheck_h
=yes
6777 gcc_cv_header_valgrind_memcheck_h
=no
6779 rm -f conftest.err conftest.
$ac_ext
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6781 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6783 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <memcheck.h>
6787 #ifndef VALGRIND_DISCARD
6788 #error VALGRIND_DISCARD not defined
6791 if ac_fn_c_try_cpp
"$LINENO"; then :
6792 gcc_cv_header_memcheck_h
=yes
6794 gcc_cv_header_memcheck_h
=no
6796 rm -f conftest.err conftest.
$ac_ext
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6798 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6800 # Prepare PATH_SEPARATOR.
6801 # The user is always right.
6802 if test "${PATH_SEPARATOR+set}" != set; then
6803 echo "#! /bin/sh" >conf$$.sh
6804 echo "exit 0" >>conf$$.sh
6806 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6814 # Find out how to test for executable files. Don't use a zero-byte file,
6815 # as systems may use methods other than mode bits to determine executability.
6816 cat >conf$$.
file <<_ASEOF
6820 chmod +x conf$$.
file
6821 if test -x conf$$.
file >/dev
/null
2>&1; then
6822 ac_executable_p
="test -x"
6824 ac_executable_p
="test -f"
6828 # Extract the first word of "valgrind", so it can be a program name with args.
6829 set dummy valgrind
; ac_word
=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6833 $as_echo_n "(cached) " >&6
6835 case "$valgrind_path" in
6837 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6840 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6841 for ac_dir
in $PATH; do
6843 test -z "$ac_dir" && ac_dir
=.
6844 for ac_exec_ext
in '' $ac_executable_extensions; do
6845 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6846 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6847 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6857 valgrind_path
="$ac_cv_path_valgrind_path"
6858 if test -n "$valgrind_path"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6860 $as_echo "$valgrind_path" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6866 if test "x$valgrind_path" = "x" \
6867 ||
(test $have_valgrind_h = no \
6868 && test $gcc_cv_header_memcheck_h = no \
6869 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6870 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6872 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6873 valgrind_command
="$valgrind_path -q"
6875 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6877 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6879 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6882 if test $gcc_cv_header_memcheck_h = yes; then
6884 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6891 # Enable code coverage collection
6892 # Check whether --enable-coverage was given.
6893 if test "${enable_coverage+set}" = set; then :
6894 enableval
=$enable_coverage; case "${enableval}" in
6896 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6899 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6902 # a.k.a. --disable-coverage
6906 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6915 # Check whether --enable-gather-detailed-mem-stats was given.
6916 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6917 enableval
=$enable_gather_detailed_mem_stats;
6919 enable_gather_detailed_mem_stats
=no
6922 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6924 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6928 # -------------------------------
6929 # Miscenalleous configure options
6930 # -------------------------------
6932 # See if we are building gcc with C++.
6933 # Check whether --enable-build-with-cxx was given.
6934 if test "${enable_build_with_cxx+set}" = set; then :
6935 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6937 ENABLE_BUILD_WITH_CXX
=no
6941 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6943 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6949 # Check whether --with-stabs was given.
6950 if test "${with_stabs+set}" = set; then :
6951 withval
=$with_stabs; stabs
="$with_stabs"
6957 # Determine whether or not multilibs are enabled.
6958 # Check whether --enable-multilib was given.
6959 if test "${enable_multilib+set}" = set; then :
6960 enableval
=$enable_multilib;
6967 # Enable __cxa_atexit for C++.
6968 # Check whether --enable-__cxa_atexit was given.
6969 if test "${enable___cxa_atexit+set}" = set; then :
6970 enableval
=$enable___cxa_atexit;
6974 # Enable C extension for decimal float if target supports it.
6976 # Check whether --enable-decimal-float was given.
6977 if test "${enable_decimal_float+set}" = set; then :
6978 enableval
=$enable_decimal_float;
6979 case $enable_decimal_float in
6980 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6981 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6982 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6988 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6989 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6991 enable_decimal_float
=yes
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6995 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6996 enable_decimal_float
=no
7003 # x86's use BID format instead of DPD
7004 case x
$enable_decimal_float in
7007 i?
86*-*-* | x86_64
*-*-*)
7008 enable_decimal_float
=bid
7011 enable_decimal_float
=dpd
7014 default_decimal_float
=$enable_decimal_float
7017 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7018 # dependency on libdecnumber.
7019 default_decimal_float
=dpd
7026 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7028 cat >>confdefs.h
<<_ACEOF
7029 #define ENABLE_DECIMAL_FLOAT $dfp
7033 # Use default_decimal_float for dependency.
7034 enable_decimal_float
=$default_decimal_float
7036 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7038 cat >>confdefs.h
<<_ACEOF
7039 #define ENABLE_DECIMAL_BID_FORMAT $bid
7043 # Enable C extension for fixed-point arithmetic.
7044 # Check whether --enable-fixed-point was given.
7045 if test "${enable_fixed_point+set}" = set; then :
7046 enableval
=$enable_fixed_point;
7051 enable_fixed_point
=yes
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7058 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7059 enable_fixed_point
=no
7062 enable_fixed_point
=yes
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7068 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7069 enable_fixed_point
=no
7077 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7079 cat >>confdefs.h
<<_ACEOF
7080 #define ENABLE_FIXED_POINT $fixedpoint
7085 # Pass with no value to take the default
7086 # Pass with a value to specify a thread package
7087 # Check whether --enable-threads was given.
7088 if test "${enable_threads+set}" = set; then :
7089 enableval
=$enable_threads;
7095 # Check whether --enable-tls was given.
7096 if test "${enable_tls+set}" = set; then :
7097 enableval
=$enable_tls;
7100 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7101 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7109 # Check whether --enable-objc-gc was given.
7110 if test "${enable_objc_gc+set}" = set; then :
7111 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7122 # Check whether --with-dwarf2 was given.
7123 if test "${with_dwarf2+set}" = set; then :
7124 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7130 # Check whether --enable-shared was given.
7131 if test "${enable_shared+set}" = set; then :
7132 enableval
=$enable_shared;
7133 case $enable_shared in
7137 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7138 for pkg
in $enableval; do
7139 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7154 # Check whether --with-build-sysroot was given.
7155 if test "${with_build_sysroot+set}" = set; then :
7156 withval
=$with_build_sysroot;
7161 # Check whether --with-sysroot was given.
7162 if test "${with_sysroot+set}" = set; then :
7163 withval
=$with_sysroot;
7164 case ${with_sysroot} in
7165 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7166 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7169 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7170 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7172 if test "x$prefix" = xNONE
; then
7173 test_prefix
=/usr
/local
7177 if test "x$exec_prefix" = xNONE
; then
7178 test_exec_prefix
=$test_prefix
7180 test_exec_prefix
=$exec_prefix
7182 case ${TARGET_SYSTEM_ROOT} in
7183 "${test_prefix}"|
"${test_prefix}/"*|\
7184 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7185 '${prefix}'|
'${prefix}/'*|\
7186 '${exec_prefix}'|
'${exec_prefix}/'*)
7187 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7188 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7195 TARGET_SYSTEM_ROOT_DEFINE
=
7196 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7205 # Check whether --with-specs was given.
7206 if test "${with_specs+set}" = set; then :
7207 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7217 # Check whether --with-pkgversion was given.
7218 if test "${with_pkgversion+set}" = set; then :
7219 withval
=$with_pkgversion; case "$withval" in
7220 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7222 *) PKGVERSION
="($withval) " ;;
7233 # Check whether --with-bugurl was given.
7234 if test "${with_bugurl+set}" = set; then :
7235 withval
=$with_bugurl; case "$withval" in
7236 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7239 *) BUGURL
="$withval"
7243 BUGURL
="http://gcc.gnu.org/bugs.html"
7253 REPORT_BUGS_TO
="<$BUGURL>"
7254 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7261 # Sanity check enable_languages in case someone does not run the toplevel
7262 # configure # script.
7263 # Check whether --enable-languages was given.
7264 if test "${enable_languages+set}" = set; then :
7265 enableval
=$enable_languages; case ,${enable_languages}, in
7267 # go safe -- we cannot be much sure without the toplevel
7269 # analysis of which target libs are present and usable
7273 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7278 enable_languages
=c
,${enable_languages}
7287 # Check whether --with-multilib-list was given.
7288 if test "${with_multilib_list+set}" = set; then :
7289 withval
=$with_multilib_list; :
7291 with_multilib_list
=default
7295 # -------------------------
7296 # Checks for other programs
7297 # -------------------------
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7300 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7302 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7303 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7304 $as_echo_n "(cached) " >&6
7306 cat >conftest.
make <<\_ACEOF
7309 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7312 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7314 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7316 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7320 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7322 $as_echo "yes" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 SET_MAKE
="MAKE=${MAKE-make}"
7331 # Find some useful tools
7332 for ac_prog
in gawk mawk nawk
awk
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy
$ac_prog; ac_word
=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_AWK+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$AWK"; then
7342 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir
=.
7349 for ac_exec_ext
in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_AWK
="$ac_prog"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 if test -n "$AWK"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7364 $as_echo "$AWK" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7371 test -n "$AWK" && break
7374 # We need awk to create options.c and options.h.
7375 # Bail out if it's missing.
7377 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7381 $as_echo_n "checking whether ln -s works... " >&6; }
7382 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7385 rm -f conftestdata_t
7386 echo >conftestdata_f
7387 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7389 gcc_cv_prog_LN_S
="ln -s"
7391 if ln conftestdata_f conftestdata_t
2>/dev
/null
7395 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7397 gcc_cv_prog_LN_S
="cp -p"
7403 rm -f conftestdata_f conftestdata_t
7406 LN_S
="$gcc_cv_prog_LN_S"
7407 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7411 if test "$gcc_cv_prog_LN_S" = "ln"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7413 $as_echo "no, using ln" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7416 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7421 $as_echo_n "checking whether ln works... " >&6; }
7422 if test "${acx_cv_prog_LN+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7425 rm -f conftestdata_t
7426 echo >conftestdata_f
7427 if ln conftestdata_f conftestdata_t
2>/dev
/null
7433 rm -f conftestdata_f conftestdata_t
7436 if test $acx_cv_prog_LN = no
; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7439 $as_echo "no, using $LN" >&6; }
7441 LN
="$acx_cv_prog_LN"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7443 $as_echo "yes" >&6; }
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7448 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7454 if test -n "$RANLIB"; then
7455 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir
=.
7462 for ac_exec_ext
in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 RANLIB
=$ac_cv_prog_RANLIB
7475 if test -n "$RANLIB"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7477 $as_echo "$RANLIB" >&6; }
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7485 if test -z "$ac_cv_prog_RANLIB"; then
7486 ac_ct_RANLIB
=$RANLIB
7487 # Extract the first word of "ranlib", so it can be a program name with args.
7488 set dummy ranlib
; ac_word
=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7494 if test -n "$ac_ct_RANLIB"; then
7495 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7501 test -z "$as_dir" && as_dir
=.
7502 for ac_exec_ext
in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7515 if test -n "$ac_ct_RANLIB"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7517 $as_echo "$ac_ct_RANLIB" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7523 if test "x$ac_ct_RANLIB" = x
; then
7526 case $cross_compiling:$ac_tool_warned in
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530 ac_tool_warned
=yes ;;
7532 RANLIB
=$ac_ct_RANLIB
7535 RANLIB
="$ac_cv_prog_RANLIB"
7540 # By default, the Darwin ranlib will not treat common symbols as
7541 # definitions when building the archive table of contents. Other
7542 # ranlibs do that; pass an option to the Darwin ranlib that makes
7543 # it behave similarly.
7551 # Find a good install program. We prefer a C program (faster),
7552 # so one script is as good as another. But avoid the broken or
7553 # incompatible versions:
7554 # SysV /etc/install, /usr/sbin/install
7555 # SunOS /usr/etc/install
7556 # IRIX /sbin/install
7558 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7559 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7560 # ./install, which can be erroneously created by make from ./install.sh.
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7562 $as_echo_n "checking for a BSD compatible install... " >&6; }
7563 if test -z "$INSTALL"; then
7564 if test "${ac_cv_path_install+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7567 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7568 for ac_dir
in $PATH; do
7569 # Account for people who put trailing slashes in PATH elements.
7571 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7573 # OSF1 and SCO ODT 3.0 have their own names for install.
7574 for ac_prog
in ginstall scoinst
install; do
7575 if test -f $ac_dir/$ac_prog; then
7576 if test $ac_prog = install &&
7577 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7578 # AIX install. It has an incompatible calling convention.
7579 # OSF/1 installbsd also uses dspmsg, but is usable.
7582 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7593 if test "${ac_cv_path_install+set}" = set; then
7594 INSTALL
="$ac_cv_path_install"
7596 # As a last resort, use the slow shell script. We don't cache a
7597 # path for INSTALL within a source directory, because that will
7598 # break other packages using the cache if that directory is
7599 # removed, or if the path is relative.
7600 INSTALL
="$ac_install_sh"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7604 $as_echo "$INSTALL" >&6; }
7606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7607 # It thinks the first close brace ends the variable substitution.
7608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7610 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7613 # See if cmp has --ignore-initial.
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7615 $as_echo_n "checking for cmp's capabilities... " >&6; }
7616 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7621 gcc_cv_prog_cmp_skip
=slowcompare
7622 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7623 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7626 gcc_cv_prog_cmp_skip
=gnucompare
7629 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7630 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7631 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7634 gcc_cv_prog_cmp_skip
=fastcompare
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7642 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7643 make_compare_target
=$gcc_cv_prog_cmp_skip
7647 # See if we have the mktemp command.
7648 # Extract the first word of "mktemp", so it can be a program name with args.
7649 set dummy mktemp
; ac_word
=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7655 if test -n "$have_mktemp_command"; then
7656 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7662 test -z "$as_dir" && as_dir
=.
7663 for ac_exec_ext
in '' $ac_executable_extensions; do
7664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665 ac_cv_prog_have_mktemp_command
="yes"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7676 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7677 if test -n "$have_mktemp_command"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7679 $as_echo "$have_mktemp_command" >&6; }
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7687 # See if makeinfo has been installed and is modern enough
7688 # that we can use it.
7690 # Extract the first word of "makeinfo", so it can be a program name with args.
7691 set dummy makeinfo
; ac_word
=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7695 $as_echo_n "(cached) " >&6
7697 if test -n "$MAKEINFO"; then
7698 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7704 test -z "$as_dir" && as_dir
=.
7705 for ac_exec_ext
in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_prog_MAKEINFO
="makeinfo"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 MAKEINFO
=$ac_cv_prog_MAKEINFO
7718 if test -n "$MAKEINFO"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7720 $as_echo "$MAKEINFO" >&6; }
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7727 if test -n "$MAKEINFO"; then
7728 # Found it, now check the version.
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7730 $as_echo_n "checking for modern makeinfo... " >&6; }
7731 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7734 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7735 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7737 case $ac_prog_version in
7738 '') gcc_cv_prog_makeinfo_modern
=no
;;
7739 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7740 *) gcc_cv_prog_makeinfo_modern
=no
;;
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7745 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7747 gcc_cv_prog_makeinfo_modern
=no
7749 if test $gcc_cv_prog_makeinfo_modern = no
; then
7750 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7753 if test $gcc_cv_prog_makeinfo_modern = no
; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7755 *** Makeinfo is missing or too old.
7756 *** Info documentation will not be built." >&5
7757 $as_echo "$as_me: WARNING:
7758 *** Makeinfo is missing or too old.
7759 *** Info documentation will not be built." >&2;}
7766 # Is pod2man recent enough to regenerate manpages?
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7768 $as_echo_n "checking for recent Pod::Man... " >&6; }
7769 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7771 $as_echo "yes" >&6; }
7772 GENERATED_MANPAGES
=generated-manpages
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7780 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7785 # Extract the first word of "$ac_prog", so it can be a program name with args.
7786 set dummy
$ac_prog; ac_word
=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if test "${ac_cv_prog_FLEX+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
7792 if test -n "$FLEX"; then
7793 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7799 test -z "$as_dir" && as_dir
=.
7800 for ac_exec_ext
in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_FLEX
="$ac_prog"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 FLEX
=$ac_cv_prog_FLEX
7813 if test -n "$FLEX"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7815 $as_echo "$FLEX" >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7822 test -n "$FLEX" && break
7824 test -n "$FLEX" || FLEX
="$MISSING flex"
7828 for ac_prog
in bison
7830 # Extract the first word of "$ac_prog", so it can be a program name with args.
7831 set dummy
$ac_prog; ac_word
=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if test "${ac_cv_prog_BISON+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7837 if test -n "$BISON"; then
7838 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7844 test -z "$as_dir" && as_dir
=.
7845 for ac_exec_ext
in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847 ac_cv_prog_BISON
="$ac_prog"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 BISON
=$ac_cv_prog_BISON
7858 if test -n "$BISON"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7860 $as_echo "$BISON" >&6; }
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7867 test -n "$BISON" && break
7869 test -n "$BISON" || BISON
="$MISSING bison"
7872 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7873 # check for build == host before using them.
7876 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7877 && test -d ..
/binutils
; then
7878 NM
='${objdir}/../binutils/nm-new'
7880 # Extract the first word of "nm", so it can be a program name with args.
7881 set dummy nm
; ac_word
=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if test "${ac_cv_prog_NM+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7887 if test -n "$NM"; then
7888 ac_cv_prog_NM
="$NM" # Let the user override the test.
7890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7894 test -z "$as_dir" && as_dir
=.
7895 for ac_exec_ext
in '' $ac_executable_extensions; do
7896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7909 if test -n "$NM"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7911 $as_echo "$NM" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7921 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7922 && test -d ..
/binutils
; then
7923 AR
='${objdir}/../binutils/ar'
7925 # Extract the first word of "ar", so it can be a program name with args.
7926 set dummy
ar; ac_word
=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if test "${ac_cv_prog_AR+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7932 if test -n "$AR"; then
7933 ac_cv_prog_AR
="$AR" # Let the user override the test.
7935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7939 test -z "$as_dir" && as_dir
=.
7940 for ac_exec_ext
in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7954 if test -n "$AR"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7956 $as_echo "$AR" >&6; }
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7966 # --------------------
7967 # Checks for C headers
7968 # --------------------
7970 # Need to reject headers which give warnings, so that the -Werror bootstrap
7971 # works later. *sigh* This needs to come before all header checks.
7973 ac_c_preproc_warn_flag
=yes
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7976 $as_echo_n "checking for ANSI C header files... " >&6; }
7977 if test "${ac_cv_header_stdc+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7995 if ac_fn_c_try_compile
"$LINENO"; then :
7996 ac_cv_header_stdc
=yes
7998 ac_cv_header_stdc
=no
8000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8002 if test $ac_cv_header_stdc = yes; then
8003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8010 $EGREP "memchr" >/dev
/null
2>&1; then :
8013 ac_cv_header_stdc
=no
8019 if test $ac_cv_header_stdc = yes; then
8020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027 $EGREP "free" >/dev
/null
2>&1; then :
8030 ac_cv_header_stdc
=no
8036 if test $ac_cv_header_stdc = yes; then
8037 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8038 if test "$cross_compiling" = yes; then :
8041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8045 #if ((' ' & 0x0FF) == 0x020)
8046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8049 # define ISLOWER(c) \
8050 (('a' <= (c) && (c) <= 'i') \
8051 || ('j' <= (c) && (c) <= 'r') \
8052 || ('s' <= (c) && (c) <= 'z'))
8053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8061 for (i = 0; i < 256; i++)
8062 if (XOR (islower (i), ISLOWER (i))
8063 || toupper (i) != TOUPPER (i))
8068 if ac_fn_c_try_run
"$LINENO"; then :
8071 ac_cv_header_stdc
=no
8073 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8074 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8080 $as_echo "$ac_cv_header_stdc" >&6; }
8081 if test $ac_cv_header_stdc = yes; then
8083 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8088 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8089 if test "${ac_cv_header_time+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 #include <sys/types.h>
8095 #include <sys/time.h>
8101 if ((struct tm *) 0)
8107 if ac_fn_c_try_compile
"$LINENO"; then :
8108 ac_cv_header_time
=yes
8110 ac_cv_header_time
=no
8112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8115 $as_echo "$ac_cv_header_time" >&6; }
8116 if test $ac_cv_header_time = yes; then
8118 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8123 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8124 if test "${gcc_cv_header_string+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
8127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8130 #include <strings.h>
8139 if ac_fn_c_try_compile
"$LINENO"; then :
8140 gcc_cv_header_string
=yes
8142 gcc_cv_header_string
=no
8144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8147 $as_echo "$gcc_cv_header_string" >&6; }
8148 if test $gcc_cv_header_string = yes; then
8150 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8155 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8156 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 #include <sys/types.h>
8162 #include <sys/wait.h>
8164 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8167 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8175 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8180 if ac_fn_c_try_compile
"$LINENO"; then :
8181 ac_cv_header_sys_wait_h
=yes
8183 ac_cv_header_sys_wait_h
=no
8185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8188 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8189 if test $ac_cv_header_sys_wait_h = yes; then
8191 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8195 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8196 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8197 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8198 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8200 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8201 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8202 eval as_val
=\$
$as_ac_Header
8203 if test "x$as_val" = x
""yes; then :
8204 cat >>confdefs.h
<<_ACEOF
8205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8212 # Check for thread headers.
8213 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8214 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8220 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8221 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8228 # These tests can't be done till we know if we have limits.h.
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8230 $as_echo_n "checking for CHAR_BIT... " >&6; }
8231 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #ifdef HAVE_LIMITS_H
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 $EGREP "found" >/dev
/null
2>&1; then :
8245 gcc_cv_decl_char_bit
=yes
8247 gcc_cv_decl_char_bit
=no
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8254 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8255 if test $gcc_cv_decl_char_bit = no
; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8257 $as_echo_n "checking number of bits in a byte... " >&6; }
8258 if test "${gcc_cv_c_nbby+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8263 while test $i -lt 65; do
8264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8271 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8272 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8278 if ac_fn_c_try_compile
"$LINENO"; then :
8279 gcc_cv_c_nbby
=$i; break
8281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8284 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8288 $as_echo "$gcc_cv_c_nbby" >&6; }
8289 if test $gcc_cv_c_nbby = failed
; then
8290 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8293 cat >>confdefs.h
<<_ACEOF
8294 #define CHAR_BIT $gcc_cv_c_nbby
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8300 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8301 if test "${ac_cv_c_bigendian+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8304 ac_cv_c_bigendian
=unknown
8305 # See if we're dealing with a universal compiler.
8306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 #ifndef __APPLE_CC__
8309 not a universal capable compiler
8314 if ac_fn_c_try_compile
"$LINENO"; then :
8316 # Check for potential -arch flags. It is not universal unless
8317 # there are at least two -arch flags with different values.
8320 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8321 if test -n "$ac_prev"; then
8323 i?
86 | x86_64 | ppc | ppc64
)
8324 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8327 ac_cv_c_bigendian
=universal
8333 elif test "x$ac_word" = "x-arch"; then
8338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8339 if test $ac_cv_c_bigendian = unknown
; then
8340 # See if sys/param.h defines the BYTE_ORDER macro.
8341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #include <sys/types.h>
8344 #include <sys/param.h>
8349 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8350 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8359 if ac_fn_c_try_compile
"$LINENO"; then :
8360 # It does; now see whether it defined to BIG_ENDIAN or not.
8361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #include <sys/types.h>
8364 #include <sys/param.h>
8369 #if BYTE_ORDER != BIG_ENDIAN
8377 if ac_fn_c_try_compile
"$LINENO"; then :
8378 ac_cv_c_bigendian
=yes
8380 ac_cv_c_bigendian
=no
8382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8386 if test $ac_cv_c_bigendian = unknown
; then
8387 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8395 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8403 if ac_fn_c_try_compile
"$LINENO"; then :
8404 # It does; now see whether it defined to _BIG_ENDIAN or not.
8405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8420 if ac_fn_c_try_compile
"$LINENO"; then :
8421 ac_cv_c_bigendian
=yes
8423 ac_cv_c_bigendian
=no
8425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8429 if test $ac_cv_c_bigendian = unknown
; then
8430 # Compile a test program.
8431 if test "$cross_compiling" = yes; then :
8432 # Try to guess by grepping values from an object file.
8433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 short int ascii_mm[] =
8436 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8437 short int ascii_ii[] =
8438 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8439 int use_ascii (int i) {
8440 return ascii_mm[i] + ascii_ii[i];
8442 short int ebcdic_ii[] =
8443 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8444 short int ebcdic_mm[] =
8445 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8446 int use_ebcdic (int i) {
8447 return ebcdic_mm[i] + ebcdic_ii[i];
8454 return use_ascii (foo) == use_ebcdic (foo);
8459 if ac_fn_c_try_compile
"$LINENO"; then :
8460 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8461 ac_cv_c_bigendian
=yes
8463 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8464 if test "$ac_cv_c_bigendian" = unknown
; then
8465 ac_cv_c_bigendian
=no
8467 # finding both strings is unlikely to happen, but who knows?
8468 ac_cv_c_bigendian
=unknown
8472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 $ac_includes_default
8481 /* Are we little or big endian? From Harbison&Steele. */
8485 char c[sizeof (long int)];
8488 return u.c[sizeof (long int) - 1] == 1;
8494 if ac_fn_c_try_run
"$LINENO"; then :
8495 ac_cv_c_bigendian
=no
8497 ac_cv_c_bigendian
=yes
8499 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8500 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8506 $as_echo "$ac_cv_c_bigendian" >&6; }
8507 case $ac_cv_c_bigendian in #(
8509 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8515 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8519 as_fn_error
"unknown endianness
8520 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8524 # ----------------------
8525 # Checks for C++ headers
8526 # ----------------------
8529 ac_cpp
='$CXXCPP $CPPFLAGS'
8530 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8531 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8532 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8534 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8535 if test -z "$CXXCPP"; then
8536 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8539 # Double quotes because CXXCPP needs to be expanded
8540 for CXXCPP
in "$CXX -E" "/lib/cpp"
8543 for ac_cxx_preproc_warn_flag
in '' yes
8545 # Use a header file that comes with gcc, so configuring glibc
8546 # with a fresh cross-compiler works.
8547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8548 # <limits.h> exists even on freestanding compilers.
8549 # On the NeXT, cc -E runs the code through the compiler's parser,
8550 # not just through cpp. "Syntax error" is here to catch this case.
8551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8554 # include <limits.h>
8556 # include <assert.h>
8560 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8563 # Broken: fails on valid input.
8566 rm -f conftest.err conftest.
$ac_ext
8568 # OK, works on sane cases. Now check whether nonexistent headers
8569 # can be detected and how.
8570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 #include <ac_nonexistent.h>
8574 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8575 # Broken: success on invalid input.
8578 # Passes both tests.
8582 rm -f conftest.err conftest.
$ac_ext
8585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8586 rm -f conftest.err conftest.
$ac_ext
8587 if $ac_preproc_ok; then :
8592 ac_cv_prog_CXXCPP
=$CXXCPP
8595 CXXCPP
=$ac_cv_prog_CXXCPP
8597 ac_cv_prog_CXXCPP
=$CXXCPP
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8600 $as_echo "$CXXCPP" >&6; }
8602 for ac_cxx_preproc_warn_flag
in '' yes
8604 # Use a header file that comes with gcc, so configuring glibc
8605 # with a fresh cross-compiler works.
8606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8607 # <limits.h> exists even on freestanding compilers.
8608 # On the NeXT, cc -E runs the code through the compiler's parser,
8609 # not just through cpp. "Syntax error" is here to catch this case.
8610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8613 # include <limits.h>
8615 # include <assert.h>
8619 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8622 # Broken: fails on valid input.
8625 rm -f conftest.err conftest.
$ac_ext
8627 # OK, works on sane cases. Now check whether nonexistent headers
8628 # can be detected and how.
8629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8631 #include <ac_nonexistent.h>
8633 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8634 # Broken: success on invalid input.
8637 # Passes both tests.
8641 rm -f conftest.err conftest.
$ac_ext
8644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8645 rm -f conftest.err conftest.
$ac_ext
8646 if $ac_preproc_ok; then :
8649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8652 See \`config.log' for more details." >&5
8653 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8654 See \`config.log' for more details." >&2;}; }
8658 ac_cpp
='$CPP $CPPFLAGS'
8659 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8660 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8661 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8665 ac_cpp
='$CXXCPP $CPPFLAGS'
8666 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8667 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8668 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8673 for ac_header
in unordered_map
8675 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8676 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8677 cat >>confdefs.h
<<_ACEOF
8678 #define HAVE_UNORDERED_MAP 1
8684 for ac_header
in tr1/unordered_map
8686 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8687 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8688 cat >>confdefs.h
<<_ACEOF
8689 #define HAVE_TR1_UNORDERED_MAP 1
8695 for ac_header
in ext
/hash_map
8697 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8698 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8699 cat >>confdefs.h
<<_ACEOF
8700 #define HAVE_EXT_HASH_MAP 1
8708 ac_cpp
='$CPP $CPPFLAGS'
8709 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8710 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8711 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8719 # These libraries may be used by collect2.
8720 # We may need a special search path to get them linked.
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8722 $as_echo_n "checking for collect2 libraries... " >&6; }
8723 if test "${gcc_cv_collect2_libs+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8727 for libs
in '' -lld -lmld \
8728 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8729 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8735 /* Override any GCC internal prototype to avoid an error.
8736 Use char because int might match the return type of a GCC
8737 builtin and then its argument prototype would still apply. */
8750 if ac_fn_c_try_link
"$LINENO"; then :
8751 gcc_cv_collect2_libs
="$libs"; break
8753 rm -f core conftest.err conftest.
$ac_objext \
8754 conftest
$ac_exeext conftest.
$ac_ext
8757 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8760 $as_echo "$gcc_cv_collect2_libs" >&6; }
8761 case $gcc_cv_collect2_libs in
8763 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8767 # When building Ada code on Alpha, we need exc_resume which is usually in
8768 # -lexc. So test for it.
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8772 $as_echo_n "checking for library containing exc_resume... " >&6; }
8773 if test "${ac_cv_search_exc_resume+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8776 ac_func_search_save_LIBS
=$LIBS
8777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8780 /* Override any GCC internal prototype to avoid an error.
8781 Use char because int might match the return type of a GCC
8782 builtin and then its argument prototype would still apply. */
8790 return exc_resume ();
8795 for ac_lib
in '' exc
; do
8796 if test -z "$ac_lib"; then
8797 ac_res
="none required"
8800 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8802 if ac_fn_c_try_link
"$LINENO"; then :
8803 ac_cv_search_exc_resume
=$ac_res
8805 rm -f core conftest.err conftest.
$ac_objext \
8807 if test "${ac_cv_search_exc_resume+set}" = set; then :
8811 if test "${ac_cv_search_exc_resume+set}" = set; then :
8814 ac_cv_search_exc_resume
=no
8817 LIBS
=$ac_func_search_save_LIBS
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8820 $as_echo "$ac_cv_search_exc_resume" >&6; }
8821 ac_res
=$ac_cv_search_exc_resume
8822 if test "$ac_res" != no
; then :
8823 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8831 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8835 $as_echo_n "checking for library containing kstat_open... " >&6; }
8836 if test "${ac_cv_search_kstat_open+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
8839 ac_func_search_save_LIBS
=$LIBS
8840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8853 return kstat_open ();
8858 for ac_lib
in '' kstat
; do
8859 if test -z "$ac_lib"; then
8860 ac_res
="none required"
8863 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8865 if ac_fn_c_try_link
"$LINENO"; then :
8866 ac_cv_search_kstat_open
=$ac_res
8868 rm -f core conftest.err conftest.
$ac_objext \
8870 if test "${ac_cv_search_kstat_open+set}" = set; then :
8874 if test "${ac_cv_search_kstat_open+set}" = set; then :
8877 ac_cv_search_kstat_open
=no
8880 LIBS
=$ac_func_search_save_LIBS
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8883 $as_echo "$ac_cv_search_kstat_open" >&6; }
8884 ac_res
=$ac_cv_search_kstat_open
8885 if test "$ac_res" != no
; then :
8886 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8890 EXTRA_GCC_LIBS
="$LIBS"
8894 # Some systems put ldexp and frexp in libm instead of libc; assume
8895 # they're both in the same place. jcf-dump needs them.
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8899 $as_echo_n "checking for library containing ldexp... " >&6; }
8900 if test "${ac_cv_search_ldexp+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8903 ac_func_search_save_LIBS
=$LIBS
8904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8907 /* Override any GCC internal prototype to avoid an error.
8908 Use char because int might match the return type of a GCC
8909 builtin and then its argument prototype would still apply. */
8922 for ac_lib
in '' m
; do
8923 if test -z "$ac_lib"; then
8924 ac_res
="none required"
8927 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8929 if ac_fn_c_try_link
"$LINENO"; then :
8930 ac_cv_search_ldexp
=$ac_res
8932 rm -f core conftest.err conftest.
$ac_objext \
8934 if test "${ac_cv_search_ldexp+set}" = set; then :
8938 if test "${ac_cv_search_ldexp+set}" = set; then :
8941 ac_cv_search_ldexp
=no
8944 LIBS
=$ac_func_search_save_LIBS
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8947 $as_echo "$ac_cv_search_ldexp" >&6; }
8948 ac_res
=$ac_cv_search_ldexp
8949 if test "$ac_res" != no
; then :
8950 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8958 # Use <inttypes.h> only if it exists,
8959 # doesn't clash with <sys/types.h>, and declares intmax_t.
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8961 $as_echo_n "checking for inttypes.h... " >&6; }
8962 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967 #include <sys/types.h>
8968 #include <inttypes.h>
8977 if ac_fn_c_try_compile
"$LINENO"; then :
8978 gcc_cv_header_inttypes_h
=yes
8980 gcc_cv_header_inttypes_h
=no
8982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8986 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8987 if test $gcc_cv_header_inttypes_h = yes; then
8989 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8995 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8996 sysconf strsignal getrusage nl_langinfo \
8997 gettimeofday mbstowcs wcswidth mmap setlocale \
8998 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
9000 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9001 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9002 eval as_val
=\$
$as_ac_var
9003 if test "x$as_val" = x
""yes; then :
9004 cat >>confdefs.h
<<_ACEOF
9005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9012 if test x
$ac_cv_func_mbstowcs = xyes
; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9014 $as_echo_n "checking whether mbstowcs works... " >&6; }
9015 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9018 if test "$cross_compiling" = yes; then :
9019 gcc_cv_func_mbstowcs_works
=yes
9021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9030 if ac_fn_c_try_run
"$LINENO"; then :
9031 gcc_cv_func_mbstowcs_works
=yes
9033 gcc_cv_func_mbstowcs_works
=no
9035 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9036 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9041 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9042 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9044 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9049 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9050 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9054 cat >>confdefs.h
<<_ACEOF
9060 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9061 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9065 cat >>confdefs.h
<<_ACEOF
9066 #define caddr_t char *
9073 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9074 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9075 gcc_header_sys_mman_h
=yes
9077 gcc_header_sys_mman_h
=no
9080 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9081 if test "x$ac_cv_func_mmap" = x
""yes; then :
9087 if test "$gcc_header_sys_mman_h" != yes \
9088 ||
test "$gcc_func_mmap" != yes; then
9089 gcc_cv_func_mmap_file
=no
9090 gcc_cv_func_mmap_dev_zero
=no
9091 gcc_cv_func_mmap_anon
=no
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9094 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9095 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9096 $as_echo_n "(cached) " >&6
9098 # Add a system to this blacklist if
9099 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9100 # memory area containing the same data that you'd get if you applied
9101 # read() to the same fd. The only system known to have a problem here
9102 # is VMS, where text files have record structure.
9105 gcc_cv_func_mmap_file
=no
;;
9107 gcc_cv_func_mmap_file
=yes;;
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9111 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9113 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9114 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9117 # Add a system to this blacklist if it has mmap() but /dev/zero
9118 # does not exist, or if mmapping /dev/zero does not give anonymous
9119 # zeroed pages with both the following properties:
9120 # 1. If you map N consecutive pages in with one call, and then
9121 # unmap any subset of those pages, the pages that were not
9122 # explicitly unmapped remain accessible.
9123 # 2. If you map two adjacent blocks of memory and then unmap them
9124 # both at once, they must both go away.
9125 # Systems known to be in this category are Windows (all variants),
9128 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9129 gcc_cv_func_mmap_dev_zero
=no
;;
9131 gcc_cv_func_mmap_dev_zero
=yes;;
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9135 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9137 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9139 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9140 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9141 $as_echo_n "(cached) " >&6
9143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 #include <sys/types.h>
9146 #include <sys/mman.h>
9149 #ifndef MAP_ANONYMOUS
9150 #define MAP_ANONYMOUS MAP_ANON
9156 int n = MAP_ANONYMOUS;
9161 if ac_fn_c_try_compile
"$LINENO"; then :
9162 gcc_cv_decl_map_anon
=yes
9164 gcc_cv_decl_map_anon
=no
9166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9169 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9171 if test $gcc_cv_decl_map_anon = no
; then
9172 gcc_cv_func_mmap_anon
=no
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9175 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9176 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9179 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9180 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9181 # doesn't give anonymous zeroed pages with the same properties listed
9182 # above for use of /dev/zero.
9183 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9185 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9186 gcc_cv_func_mmap_anon
=no
;;
9188 gcc_cv_func_mmap_anon
=yes;;
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9192 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9196 if test $gcc_cv_func_mmap_file = yes; then
9198 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9201 if test $gcc_cv_func_mmap_dev_zero = yes; then
9203 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9206 if test $gcc_cv_func_mmap_anon = yes; then
9208 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9215 # Under VMS, vfork works very differently than on Unix. The standard test
9216 # won't work, and it isn't easily adaptable. It makes more sense to
9218 ac_cv_func_vfork_works
=yes
9221 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9222 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9226 cat >>confdefs.h
<<_ACEOF
9232 for ac_header
in vfork.h
9234 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9235 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9236 cat >>confdefs.h
<<_ACEOF
9237 #define HAVE_VFORK_H 1
9243 for ac_func
in fork vfork
9245 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9246 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9247 eval as_val
=\$
$as_ac_var
9248 if test "x$as_val" = x
""yes; then :
9249 cat >>confdefs.h
<<_ACEOF
9250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9256 if test "x$ac_cv_func_fork" = xyes
; then
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9258 $as_echo_n "checking for working fork... " >&6; }
9259 if test "${ac_cv_func_fork_works+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9262 if test "$cross_compiling" = yes; then :
9263 ac_cv_func_fork_works
=cross
9265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9267 $ac_includes_default
9272 /* By Ruediger Kuhlmann. */
9279 if ac_fn_c_try_run
"$LINENO"; then :
9280 ac_cv_func_fork_works
=yes
9282 ac_cv_func_fork_works
=no
9284 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9285 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9290 $as_echo "$ac_cv_func_fork_works" >&6; }
9293 ac_cv_func_fork_works
=$ac_cv_func_fork
9295 if test "x$ac_cv_func_fork_works" = xcross
; then
9297 *-*-amigaos* |
*-*-msdosdjgpp*)
9298 # Override, as these systems have only a dummy fork() stub
9299 ac_cv_func_fork_works
=no
9302 ac_cv_func_fork_works
=yes
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9306 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9308 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9309 if test "x$ac_cv_func_vfork" = xyes
; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9311 $as_echo_n "checking for working vfork... " >&6; }
9312 if test "${ac_cv_func_vfork_works+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
9315 if test "$cross_compiling" = yes; then :
9316 ac_cv_func_vfork_works
=cross
9318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 /* Thanks to Paul Eggert for this test. */
9321 $ac_includes_default
9322 #include <sys/wait.h>
9326 /* On some sparc systems, changes by the child to local and incoming
9327 argument registers are propagated back to the parent. The compiler
9328 is told about this with #include <vfork.h>, but some compilers
9329 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9330 static variable whose address is put into a register that is
9331 clobbered by the vfork. */
9334 sparc_address_test (int arg)
9336 sparc_address_test (arg) int arg;
9357 pid_t parent = getpid ();
9360 sparc_address_test (0);
9365 /* Here is another test for sparc vfork register problems. This
9366 test uses lots of local variables, at least as many local
9367 variables as main has allocated so far including compiler
9368 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9369 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9370 reuse the register of parent for one of the local variables,
9371 since it will think that parent can't possibly be used any more
9372 in this routine. Assigning to the local variable will thus
9373 munge parent in the parent process. */
9375 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9376 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9377 /* Convince the compiler that p..p7 are live; otherwise, it might
9378 use the same hardware register for all 8 local variables. */
9379 if (p != p1 || p != p2 || p != p3 || p != p4
9380 || p != p5 || p != p6 || p != p7)
9383 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9384 from child file descriptors. If the child closes a descriptor
9385 before it execs or exits, this munges the parent's descriptor
9386 as well. Test for this by closing stdout in the child. */
9387 _exit(close(fileno(stdout)) != 0);
9392 while (wait(&status) != child)
9395 /* Was there some problem with vforking? */
9398 /* Did the child fail? (This shouldn't happen.) */
9401 /* Did the vfork/compiler bug occur? */
9402 || parent != getpid()
9404 /* Did the file descriptor bug occur? */
9405 || fstat(fileno(stdout), &st) != 0
9410 if ac_fn_c_try_run
"$LINENO"; then :
9411 ac_cv_func_vfork_works
=yes
9413 ac_cv_func_vfork_works
=no
9415 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9416 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9421 $as_echo "$ac_cv_func_vfork_works" >&6; }
9424 if test "x$ac_cv_func_fork_works" = xcross
; then
9425 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9427 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9430 if test "x$ac_cv_func_vfork_works" = xyes
; then
9432 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9436 $as_echo "#define vfork fork" >>confdefs.h
9439 if test "x$ac_cv_func_fork_works" = xyes
; then
9441 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9446 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9447 # iconv() prototype.
9449 if test "X$prefix" = "XNONE"; then
9450 acl_final_prefix
="$ac_default_prefix"
9452 acl_final_prefix
="$prefix"
9454 if test "X$exec_prefix" = "XNONE"; then
9455 acl_final_exec_prefix
='${prefix}'
9457 acl_final_exec_prefix
="$exec_prefix"
9459 acl_save_prefix
="$prefix"
9460 prefix
="$acl_final_prefix"
9461 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9462 prefix
="$acl_save_prefix"
9465 # Check whether --with-gnu-ld was given.
9466 if test "${with_gnu_ld+set}" = set; then :
9467 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9472 # Prepare PATH_SEPARATOR.
9473 # The user is always right.
9474 if test "${PATH_SEPARATOR+set}" != set; then
9475 echo "#! /bin/sh" >conf$$.sh
9476 echo "exit 0" >>conf$$.sh
9478 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9486 if test "$GCC" = yes; then
9487 # Check if gcc -print-prog-name=ld gives a path.
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9489 $as_echo_n "checking for ld used by GCC... " >&6; }
9492 # gcc leaves a trailing carriage return which upsets mingw
9493 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9495 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9498 # Accept absolute paths.
9499 [\\/]* |
[A-Za-z
]:[\\/]*)
9500 re_direlt
='/[^/][^/]*/\.\./'
9501 # Canonicalize the path of ld
9502 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9503 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9504 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9506 test -z "$LD" && LD
="$ac_prog"
9509 # If it fails, then pretend we aren't using GCC.
9513 # If it is relative, then search for the first ld in PATH.
9517 elif test "$with_gnu_ld" = yes; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9519 $as_echo_n "checking for GNU ld... " >&6; }
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9522 $as_echo_n "checking for non-GNU ld... " >&6; }
9524 if test "${acl_cv_path_LD+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9527 if test -z "$LD"; then
9528 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9529 for ac_dir
in $PATH; do
9530 test -z "$ac_dir" && ac_dir
=.
9531 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9532 acl_cv_path_LD
="$ac_dir/$ac_prog"
9533 # Check to see if the program is GNU ld. I'd rather use --version,
9534 # but apparently some GNU ld's only accept -v.
9535 # Break only if it was the GNU/non-GNU ld that we prefer.
9536 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9537 test "$with_gnu_ld" != no
&& break
9539 test "$with_gnu_ld" != yes && break
9545 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9549 LD
="$acl_cv_path_LD"
9550 if test -n "$LD"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9552 $as_echo "$LD" >&6; }
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9557 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9559 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9560 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9563 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9564 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9565 acl_cv_prog_gnu_ld
=yes
9567 acl_cv_prog_gnu_ld
=no
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9571 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9572 with_gnu_ld
=$acl_cv_prog_gnu_ld
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9577 $as_echo_n "checking for shared library run path origin... " >&6; }
9578 if test "${acl_cv_rpath+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9582 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9583 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9590 $as_echo "$acl_cv_rpath" >&6; }
9592 libext
="$acl_cv_libext"
9593 shlibext
="$acl_cv_shlibext"
9594 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9595 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9596 hardcode_direct
="$acl_cv_hardcode_direct"
9597 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9598 # Check whether --enable-rpath was given.
9599 if test "${enable_rpath+set}" = set; then :
9600 enableval
=$enable_rpath; :
9614 acl_save_prefix
="$prefix"
9615 prefix
="$acl_final_prefix"
9616 acl_save_exec_prefix
="$exec_prefix"
9617 exec_prefix
="$acl_final_exec_prefix"
9619 eval additional_includedir
=\"$includedir\"
9620 eval additional_libdir
=\"$libdir\"
9622 exec_prefix
="$acl_save_exec_prefix"
9623 prefix
="$acl_save_prefix"
9626 # Check whether --with-libiconv-prefix was given.
9627 if test "${with_libiconv_prefix+set}" = set; then :
9628 withval
=$with_libiconv_prefix;
9629 if test "X$withval" = "Xno"; then
9632 if test "X$withval" = "X"; then
9634 acl_save_prefix
="$prefix"
9635 prefix
="$acl_final_prefix"
9636 acl_save_exec_prefix
="$exec_prefix"
9637 exec_prefix
="$acl_final_exec_prefix"
9639 eval additional_includedir
=\"$includedir\"
9640 eval additional_libdir
=\"$libdir\"
9642 exec_prefix
="$acl_save_exec_prefix"
9643 prefix
="$acl_save_prefix"
9646 additional_includedir
="$withval/include"
9647 additional_libdir
="$withval/lib"
9658 names_already_handled
=
9659 names_next_round
='iconv '
9660 while test -n "$names_next_round"; do
9661 names_this_round
="$names_next_round"
9663 for name
in $names_this_round; do
9665 for n
in $names_already_handled; do
9666 if test "$n" = "$name"; then
9671 if test -z "$already_handled"; then
9672 names_already_handled
="$names_already_handled $name"
9673 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9674 eval value
=\"\
$HAVE_LIB$uppername\"
9675 if test -n "$value"; then
9676 if test "$value" = yes; then
9677 eval value
=\"\
$LIB$uppername\"
9678 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9679 eval value
=\"\
$LTLIB$uppername\"
9680 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9689 if test $use_additional = yes; then
9690 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9691 found_dir
="$additional_libdir"
9692 found_so
="$additional_libdir/lib$name.$shlibext"
9693 if test -f "$additional_libdir/lib$name.la"; then
9694 found_la
="$additional_libdir/lib$name.la"
9697 if test -f "$additional_libdir/lib$name.$libext"; then
9698 found_dir
="$additional_libdir"
9699 found_a
="$additional_libdir/lib$name.$libext"
9700 if test -f "$additional_libdir/lib$name.la"; then
9701 found_la
="$additional_libdir/lib$name.la"
9706 if test "X$found_dir" = "X"; then
9707 for x
in $LDFLAGS $LTLIBICONV; do
9709 acl_save_prefix
="$prefix"
9710 prefix
="$acl_final_prefix"
9711 acl_save_exec_prefix
="$exec_prefix"
9712 exec_prefix
="$acl_final_exec_prefix"
9714 exec_prefix
="$acl_save_exec_prefix"
9715 prefix
="$acl_save_prefix"
9719 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9720 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9722 found_so
="$dir/lib$name.$shlibext"
9723 if test -f "$dir/lib$name.la"; then
9724 found_la
="$dir/lib$name.la"
9727 if test -f "$dir/lib$name.$libext"; then
9729 found_a
="$dir/lib$name.$libext"
9730 if test -f "$dir/lib$name.la"; then
9731 found_la
="$dir/lib$name.la"
9737 if test "X$found_dir" != "X"; then
9742 if test "X$found_dir" != "X"; then
9743 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9744 if test "X$found_so" != "X"; then
9745 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9746 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9749 for x
in $ltrpathdirs; do
9750 if test "X$x" = "X$found_dir"; then
9755 if test -z "$haveit"; then
9756 ltrpathdirs
="$ltrpathdirs $found_dir"
9758 if test "$hardcode_direct" = yes; then
9759 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9761 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9762 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9764 for x
in $rpathdirs; do
9765 if test "X$x" = "X$found_dir"; then
9770 if test -z "$haveit"; then
9771 rpathdirs
="$rpathdirs $found_dir"
9775 for x
in $LDFLAGS $LIBICONV; do
9777 acl_save_prefix
="$prefix"
9778 prefix
="$acl_final_prefix"
9779 acl_save_exec_prefix
="$exec_prefix"
9780 exec_prefix
="$acl_final_exec_prefix"
9782 exec_prefix
="$acl_save_exec_prefix"
9783 prefix
="$acl_save_prefix"
9785 if test "X$x" = "X-L$found_dir"; then
9790 if test -z "$haveit"; then
9791 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9793 if test "$hardcode_minus_L" != no
; then
9794 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9796 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9802 if test "X$found_a" != "X"; then
9803 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9805 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9808 additional_includedir
=
9809 case "$found_dir" in
9811 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9812 additional_includedir
="$basedir/include"
9815 if test "X$additional_includedir" != "X"; then
9816 if test "X$additional_includedir" != "X/usr/include"; then
9818 if test "X$additional_includedir" = "X/usr/local/include"; then
9819 if test -n "$GCC"; then
9821 linux
*) haveit
=yes;;
9825 if test -z "$haveit"; then
9826 for x
in $CPPFLAGS $INCICONV; do
9828 acl_save_prefix
="$prefix"
9829 prefix
="$acl_final_prefix"
9830 acl_save_exec_prefix
="$exec_prefix"
9831 exec_prefix
="$acl_final_exec_prefix"
9833 exec_prefix
="$acl_save_exec_prefix"
9834 prefix
="$acl_save_prefix"
9836 if test "X$x" = "X-I$additional_includedir"; then
9841 if test -z "$haveit"; then
9842 if test -d "$additional_includedir"; then
9843 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9849 if test -n "$found_la"; then
9850 save_libdir
="$libdir"
9852 */* |
*\\*) .
"$found_la" ;;
9853 *) .
"./$found_la" ;;
9855 libdir
="$save_libdir"
9856 for dep
in $dependency_libs; do
9859 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9860 if test "X$additional_libdir" != "X/usr/lib"; then
9862 if test "X$additional_libdir" = "X/usr/local/lib"; then
9863 if test -n "$GCC"; then
9865 linux
*) haveit
=yes;;
9869 if test -z "$haveit"; then
9871 for x
in $LDFLAGS $LIBICONV; do
9873 acl_save_prefix
="$prefix"
9874 prefix
="$acl_final_prefix"
9875 acl_save_exec_prefix
="$exec_prefix"
9876 exec_prefix
="$acl_final_exec_prefix"
9878 exec_prefix
="$acl_save_exec_prefix"
9879 prefix
="$acl_save_prefix"
9881 if test "X$x" = "X-L$additional_libdir"; then
9886 if test -z "$haveit"; then
9887 if test -d "$additional_libdir"; then
9888 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9892 for x
in $LDFLAGS $LTLIBICONV; do
9894 acl_save_prefix
="$prefix"
9895 prefix
="$acl_final_prefix"
9896 acl_save_exec_prefix
="$exec_prefix"
9897 exec_prefix
="$acl_final_exec_prefix"
9899 exec_prefix
="$acl_save_exec_prefix"
9900 prefix
="$acl_save_prefix"
9902 if test "X$x" = "X-L$additional_libdir"; then
9907 if test -z "$haveit"; then
9908 if test -d "$additional_libdir"; then
9909 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9916 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9917 if test "$enable_rpath" != no
; then
9919 for x
in $rpathdirs; do
9920 if test "X$x" = "X$dir"; then
9925 if test -z "$haveit"; then
9926 rpathdirs
="$rpathdirs $dir"
9929 for x
in $ltrpathdirs; do
9930 if test "X$x" = "X$dir"; then
9935 if test -z "$haveit"; then
9936 ltrpathdirs
="$ltrpathdirs $dir"
9941 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9944 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9947 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9948 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9954 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9955 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9961 if test "X$rpathdirs" != "X"; then
9962 if test -n "$hardcode_libdir_separator"; then
9964 for found_dir
in $rpathdirs; do
9965 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9967 acl_save_libdir
="$libdir"
9969 eval flag
=\"$hardcode_libdir_flag_spec\"
9970 libdir
="$acl_save_libdir"
9971 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9973 for found_dir
in $rpathdirs; do
9974 acl_save_libdir
="$libdir"
9976 eval flag
=\"$hardcode_libdir_flag_spec\"
9977 libdir
="$acl_save_libdir"
9978 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9982 if test "X$ltrpathdirs" != "X"; then
9983 for found_dir
in $ltrpathdirs; do
9984 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9989 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9991 ac_cpp
='$CXXCPP $CPPFLAGS'
9992 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9993 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9994 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10001 am_save_CPPFLAGS
="$CPPFLAGS"
10003 for element
in $INCICONV; do
10005 for x
in $CPPFLAGS; do
10007 acl_save_prefix
="$prefix"
10008 prefix
="$acl_final_prefix"
10009 acl_save_exec_prefix
="$exec_prefix"
10010 exec_prefix
="$acl_final_exec_prefix"
10012 exec_prefix
="$acl_save_exec_prefix"
10013 prefix
="$acl_save_prefix"
10015 if test "X$x" = "X$element"; then
10020 if test -z "$haveit"; then
10021 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10027 $as_echo_n "checking for iconv... " >&6; }
10028 if test "${am_cv_func_iconv+set}" = set; then :
10029 $as_echo_n "(cached) " >&6
10032 am_cv_func_iconv
="no, consider installing GNU libiconv"
10034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10036 #include <stdlib.h>
10041 iconv_t cd = iconv_open("","");
10042 iconv(cd,NULL,NULL,NULL,NULL);
10048 if ac_fn_cxx_try_link
"$LINENO"; then :
10049 am_cv_func_iconv
=yes
10051 rm -f core conftest.err conftest.
$ac_objext \
10052 conftest
$ac_exeext conftest.
$ac_ext
10053 if test "$am_cv_func_iconv" != yes; then
10054 am_save_LIBS
="$LIBS"
10055 LIBS
="$LIBS $LIBICONV"
10056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10058 #include <stdlib.h>
10063 iconv_t cd = iconv_open("","");
10064 iconv(cd,NULL,NULL,NULL,NULL);
10070 if ac_fn_cxx_try_link
"$LINENO"; then :
10071 am_cv_lib_iconv
=yes
10072 am_cv_func_iconv
=yes
10074 rm -f core conftest.err conftest.
$ac_objext \
10075 conftest
$ac_exeext conftest.
$ac_ext
10076 LIBS
="$am_save_LIBS"
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10081 $as_echo "$am_cv_func_iconv" >&6; }
10082 if test "$am_cv_func_iconv" = yes; then
10084 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10087 if test "$am_cv_lib_iconv" = yes; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10089 $as_echo_n "checking how to link with libiconv... " >&6; }
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10091 $as_echo "$LIBICONV" >&6; }
10093 CPPFLAGS
="$am_save_CPPFLAGS"
10100 if test "$am_cv_func_iconv" = yes; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10102 $as_echo_n "checking for iconv declaration... " >&6; }
10103 if test "${am_cv_proto_iconv+set}" = set; then :
10104 $as_echo_n "(cached) " >&6
10107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10110 #include <stdlib.h>
10116 #if defined(__STDC__) || defined(__cplusplus)
10117 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10130 if ac_fn_cxx_try_compile
"$LINENO"; then :
10131 am_cv_proto_iconv_arg1
=""
10133 am_cv_proto_iconv_arg1
="const"
10135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10136 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);"
10139 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10141 }$am_cv_proto_iconv" >&5
10143 }$am_cv_proto_iconv" >&6; }
10145 cat >>confdefs.h
<<_ACEOF
10146 #define ICONV_CONST $am_cv_proto_iconv_arg1
10152 ac_cpp
='$CPP $CPPFLAGS'
10153 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10154 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10155 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10163 am_save_CPPFLAGS
="$CPPFLAGS"
10165 for element
in $INCICONV; do
10167 for x
in $CPPFLAGS; do
10169 acl_save_prefix
="$prefix"
10170 prefix
="$acl_final_prefix"
10171 acl_save_exec_prefix
="$exec_prefix"
10172 exec_prefix
="$acl_final_exec_prefix"
10174 exec_prefix
="$acl_save_exec_prefix"
10175 prefix
="$acl_save_prefix"
10177 if test "X$x" = "X$element"; then
10182 if test -z "$haveit"; then
10183 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10189 $as_echo_n "checking for iconv... " >&6; }
10190 if test "${am_cv_func_iconv+set}" = set; then :
10191 $as_echo_n "(cached) " >&6
10194 am_cv_func_iconv
="no, consider installing GNU libiconv"
10196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 #include <stdlib.h>
10203 iconv_t cd = iconv_open("","");
10204 iconv(cd,NULL,NULL,NULL,NULL);
10210 if ac_fn_c_try_link
"$LINENO"; then :
10211 am_cv_func_iconv
=yes
10213 rm -f core conftest.err conftest.
$ac_objext \
10214 conftest
$ac_exeext conftest.
$ac_ext
10215 if test "$am_cv_func_iconv" != yes; then
10216 am_save_LIBS
="$LIBS"
10217 LIBS
="$LIBS $LIBICONV"
10218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 #include <stdlib.h>
10225 iconv_t cd = iconv_open("","");
10226 iconv(cd,NULL,NULL,NULL,NULL);
10232 if ac_fn_c_try_link
"$LINENO"; then :
10233 am_cv_lib_iconv
=yes
10234 am_cv_func_iconv
=yes
10236 rm -f core conftest.err conftest.
$ac_objext \
10237 conftest
$ac_exeext conftest.
$ac_ext
10238 LIBS
="$am_save_LIBS"
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10243 $as_echo "$am_cv_func_iconv" >&6; }
10244 if test "$am_cv_func_iconv" = yes; then
10246 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10249 if test "$am_cv_lib_iconv" = yes; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10251 $as_echo_n "checking how to link with libiconv... " >&6; }
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10253 $as_echo "$LIBICONV" >&6; }
10255 CPPFLAGS
="$am_save_CPPFLAGS"
10262 if test "$am_cv_func_iconv" = yes; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10264 $as_echo_n "checking for iconv declaration... " >&6; }
10265 if test "${am_cv_proto_iconv+set}" = set; then :
10266 $as_echo_n "(cached) " >&6
10269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10272 #include <stdlib.h>
10278 #if defined(__STDC__) || defined(__cplusplus)
10279 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10292 if ac_fn_c_try_compile
"$LINENO"; then :
10293 am_cv_proto_iconv_arg1
=""
10295 am_cv_proto_iconv_arg1
="const"
10297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10298 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);"
10301 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10303 }$am_cv_proto_iconv" >&5
10305 }$am_cv_proto_iconv" >&6; }
10307 cat >>confdefs.h
<<_ACEOF
10308 #define ICONV_CONST $am_cv_proto_iconv_arg1
10315 # Until we have in-tree GNU iconv:
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10321 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10322 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #include <locale.h>
10336 if ac_fn_c_try_link
"$LINENO"; then :
10337 am_cv_val_LC_MESSAGES
=yes
10339 am_cv_val_LC_MESSAGES
=no
10341 rm -f core conftest.err conftest.
$ac_objext \
10342 conftest
$ac_exeext conftest.
$ac_ext
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10345 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10346 if test $am_cv_val_LC_MESSAGES = yes; then
10348 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10355 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10356 if test "${am_cv_langinfo_codeset+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361 #include <langinfo.h>
10365 char* cs = nl_langinfo(CODESET);
10370 if ac_fn_c_try_link
"$LINENO"; then :
10371 am_cv_langinfo_codeset
=yes
10373 am_cv_langinfo_codeset
=no
10375 rm -f core conftest.err conftest.
$ac_objext \
10376 conftest
$ac_exeext conftest.
$ac_ext
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10380 $as_echo "$am_cv_langinfo_codeset" >&6; }
10381 if test $am_cv_langinfo_codeset = yes; then
10383 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10388 # We will need to find libiberty.h and ansidecl.h
10389 saved_CFLAGS
="$CFLAGS"
10390 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10391 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10392 strsignal strstr strverscmp \
10393 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10394 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
10396 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10398 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10399 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10400 $as_echo_n "(cached) " >&6
10402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10405 #define $ac_tr_decl 1
10407 #include "ansidecl.h"
10408 #include "system.h"
10414 char *(*pfn) = (char *(*)) $ac_func ;
10420 if ac_fn_c_try_compile
"$LINENO"; then :
10421 eval "gcc_cv_have_decl_$ac_func=yes"
10423 eval "gcc_cv_have_decl_$ac_func=no"
10425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10428 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10430 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10431 #define $ac_tr_decl 1
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10437 #define $ac_tr_decl 0
10445 for ac_func
in getrlimit setrlimit getrusage
10447 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10449 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10450 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10451 $as_echo_n "(cached) " >&6
10453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10456 #define $ac_tr_decl 1
10458 #include "ansidecl.h"
10459 #include "system.h"
10460 #ifdef HAVE_SYS_RESOURCE_H
10461 #include <sys/resource.h>
10469 char *(*pfn) = (char *(*)) $ac_func ;
10475 if ac_fn_c_try_compile
"$LINENO"; then :
10476 eval "gcc_cv_have_decl_$ac_func=yes"
10478 eval "gcc_cv_have_decl_$ac_func=no"
10480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10483 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10485 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10486 #define $ac_tr_decl 1
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10492 #define $ac_tr_decl 0
10500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10503 #include "ansidecl.h"
10504 #include "system.h"
10505 #ifdef HAVE_SYS_RESOURCE_H
10506 #include <sys/resource.h>
10517 if ac_fn_c_try_compile
"$LINENO"; then :
10521 $as_echo "#define rlim_t long" >>confdefs.h
10524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10526 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10527 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10528 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10529 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10530 for ac_func
in ldgetname
10532 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10534 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10535 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10536 $as_echo_n "(cached) " >&6
10538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10541 #define $ac_tr_decl 1
10543 #include "ansidecl.h"
10544 #include "system.h"
10545 #ifdef HAVE_LDFCN_H
10556 char *(*pfn) = (char *(*)) $ac_func ;
10562 if ac_fn_c_try_compile
"$LINENO"; then :
10563 eval "gcc_cv_have_decl_$ac_func=yes"
10565 eval "gcc_cv_have_decl_$ac_func=no"
10567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10570 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10573 #define $ac_tr_decl 1
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10579 #define $ac_tr_decl 0
10587 for ac_func
in times
10589 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10591 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10592 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10593 $as_echo_n "(cached) " >&6
10595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10598 #define $ac_tr_decl 1
10600 #include "ansidecl.h"
10601 #include "system.h"
10602 #ifdef HAVE_SYS_TIMES_H
10603 #include <sys/times.h>
10611 char *(*pfn) = (char *(*)) $ac_func ;
10617 if ac_fn_c_try_compile
"$LINENO"; then :
10618 eval "gcc_cv_have_decl_$ac_func=yes"
10620 eval "gcc_cv_have_decl_$ac_func=no"
10622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10625 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10627 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10628 #define $ac_tr_decl 1
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10634 #define $ac_tr_decl 0
10642 for ac_func
in sigaltstack
10644 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10646 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10647 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10648 $as_echo_n "(cached) " >&6
10650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 #define $ac_tr_decl 1
10655 #include "ansidecl.h"
10656 #include "system.h"
10657 #include <signal.h>
10664 char *(*pfn) = (char *(*)) $ac_func ;
10670 if ac_fn_c_try_compile
"$LINENO"; then :
10671 eval "gcc_cv_have_decl_$ac_func=yes"
10673 eval "gcc_cv_have_decl_$ac_func=no"
10675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10678 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10680 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10681 #define $ac_tr_decl 1
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10687 #define $ac_tr_decl 0
10695 # More time-related stuff.
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10697 $as_echo_n "checking for struct tms... " >&6; }
10698 if test "${ac_cv_struct_tms+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10705 #include "ansidecl.h"
10706 #include "system.h"
10707 #ifdef HAVE_SYS_TIMES_H
10708 #include <sys/times.h>
10719 if ac_fn_c_try_compile
"$LINENO"; then :
10720 ac_cv_struct_tms
=yes
10722 ac_cv_struct_tms
=no
10724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10727 $as_echo "$ac_cv_struct_tms" >&6; }
10728 if test $ac_cv_struct_tms = yes; then
10730 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10734 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10735 # revisit after autoconf 2.50.
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10737 $as_echo_n "checking for clock_t... " >&6; }
10738 if test "${gcc_cv_type_clock_t+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10745 #include "ansidecl.h"
10746 #include "system.h"
10756 if ac_fn_c_try_compile
"$LINENO"; then :
10757 gcc_cv_type_clock_t
=yes
10759 gcc_cv_type_clock_t
=no
10761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10764 $as_echo "$gcc_cv_type_clock_t" >&6; }
10765 if test $gcc_cv_type_clock_t = yes; then
10767 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10771 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10772 CFLAGS
="$saved_CFLAGS"
10774 # Check whether --enable-initfini-array was given.
10775 if test "${enable_initfini_array+set}" = set; then :
10776 enableval
=$enable_initfini_array;
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10780 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10781 if test "${gcc_cv_initfini_array+set}" = set; then :
10782 $as_echo_n "(cached) " >&6
10784 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10785 if test "$cross_compiling" = yes; then :
10786 gcc_cv_initfini_array
=no
10788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10792 #error Not an ELF OS
10795 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10796 if it can be used. */
10798 int main (void) { return x; }
10799 int foo (void) { x = 0; }
10800 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10802 extern void abort ();
10812 void (*const init_array1005) ()
10813 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10821 void (*const fini_array1005) ()
10822 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10832 void (*const ctors1007) ()
10833 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10842 void (*const dtors1007) ()
10843 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10853 void (*const init_array65530) ()
10854 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10859 if (count != 65530)
10863 void (*const fini_array65530) ()
10864 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10870 if (count != 65530)
10874 void (*const ctors65535) ()
10875 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10880 if (count != 65535)
10884 void (*const dtors65535) ()
10885 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10891 if (count != 65535)
10898 if ac_fn_c_try_run
"$LINENO"; then :
10899 gcc_cv_initfini_array
=yes
10901 gcc_cv_initfini_array
=no
10903 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10904 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10909 $as_echo_n "checking cross compile... guessing... " >&6; }
10910 gcc_cv_initfini_array
=no
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10914 $as_echo "$gcc_cv_initfini_array" >&6; }
10915 enable_initfini_array
=$gcc_cv_initfini_array
10919 if test $enable_initfini_array = yes; then
10921 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10925 # mkdir takes a single argument on some systems.
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10927 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10928 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10934 #include <sys/types.h>
10935 #ifdef HAVE_SYS_STAT_H
10936 # include <sys/stat.h>
10938 #ifdef HAVE_UNISTD_H
10939 # include <unistd.h>
10941 #ifdef HAVE_DIRECT_H
10942 # include <direct.h>
10952 if ac_fn_c_try_compile
"$LINENO"; then :
10953 gcc_cv_mkdir_takes_one_arg
=no
10955 gcc_cv_mkdir_takes_one_arg
=yes
10957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10960 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10961 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10963 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10974 # With Setjmp/Longjmp based exception handling.
10975 # Check whether --enable-sjlj-exceptions was given.
10976 if test "${enable_sjlj_exceptions+set}" = set; then :
10977 enableval
=$enable_sjlj_exceptions; case $target in
10979 if test $enableval != yes; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10981 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10986 force_sjlj_exceptions
=yes
10990 force_sjlj_exceptions
=yes
10994 force_sjlj_exceptions
=no
10999 if test $force_sjlj_exceptions = yes; then
11000 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11002 cat >>confdefs.h
<<_ACEOF
11003 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11008 # --------------------------------------------------------
11009 # Build, host, and target specific configuration fragments
11010 # --------------------------------------------------------
11012 # Collect build-machine-specific information.
11013 .
${srcdir}/config.build
11015 # Collect host-machine-specific information.
11016 .
${srcdir}/config.
host
11020 # Collect target-machine-specific information.
11021 .
${srcdir}/config.gcc
11023 extra_objs
="${host_extra_objs} ${extra_objs}"
11024 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11026 # Default the target-machine variables that were not explicitly set.
11027 if test x
"$tm_file" = x
11028 then tm_file
=$cpu_type/$cpu_type.h
; fi
11030 if test x
"$extra_headers" = x
11031 then extra_headers
=; fi
11033 if test x
$md_file = x
11034 then md_file
=$cpu_type/$cpu_type.md
; fi
11036 if test x
$out_file = x
11037 then out_file
=$cpu_type/$cpu_type.c
; fi
11039 if test x
"$tmake_file" = x
11040 then tmake_file
=$cpu_type/t-
$cpu_type
11043 if test x
"$dwarf2" = xyes
11044 then tm_file
="$tm_file tm-dwarf2.h"
11047 # Say what files are being used for the output code and MD file.
11048 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11049 echo "Using \`$srcdir/config/$md_file' as machine description file."
11051 # If any of the xm_file variables contain nonexistent files, warn
11052 # about them and drop them.
11055 for x
in $build_xm_file; do
11056 if test -f $srcdir/config
/$x
11058 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11059 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11062 build_xm_file
="$bx"
11065 for x
in $host_xm_file; do
11066 if test -f $srcdir/config
/$x
11068 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11069 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11075 for x
in $xm_file; do
11076 if test -f $srcdir/config
/$x
11078 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11079 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11085 for f
in $tm_file; do
11088 if test $count = ax
; then
11089 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11091 echo "Using the following target machine macro files:"
11092 for f
in $tm_file; do
11093 echo " $srcdir/config/$f"
11097 if test x
$need_64bit_hwint = xyes
; then
11099 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11103 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11105 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11110 for f
in $host_xm_file; do
11113 if test $count = a
; then
11115 elif test $count = ax
; then
11116 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11118 echo "Using the following host machine macro files:"
11119 for f
in $host_xm_file; do
11120 echo " $srcdir/config/$f"
11123 echo "Using ${out_host_hook_obj} for host machine hooks."
11125 if test "$host_xm_file" != "$build_xm_file"; then
11127 for f
in $build_xm_file; do
11130 if test $count = a
; then
11132 elif test $count = ax
; then
11133 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11135 echo "Using the following build machine macro files:"
11136 for f
in $build_xm_file; do
11137 echo " $srcdir/config/$f"
11143 powerpc
*-*-darwin*)
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11145 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11146 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
11149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11152 #include <sys/cdefs.h>
11153 #include <sys/signal.h>
11154 #include <ucontext.h>
11155 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11158 if ac_fn_c_try_compile
"$LINENO"; then :
11159 gcc_cv_mcontext_underscores
=no
11161 gcc_cv_mcontext_underscores
=yes
11163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11166 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11167 if test $gcc_cv_mcontext_underscores = yes; then
11169 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11179 # Check if a valid thread package
11180 case ${enable_threads} in
11183 target_thread_file
='single'
11187 target_thread_file
='single'
11189 aix | dce | lynx | mipssde | posix | rtems | \
11190 single | tpf | vxworks | win32
)
11191 target_thread_file
=${enable_threads}
11194 echo "${enable_threads} is an unknown thread package" 1>&2
11199 if test x
${thread_file} = x
; then
11200 # No thread file set by target-specific clauses in config.gcc,
11201 # so use file chosen by default logic above
11202 thread_file
=${target_thread_file}
11205 # Make gthr-default.h if we have a thread file.
11207 if test $thread_file != single
; then
11208 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11209 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
11210 rm -f gthr-default.h-t
11212 mv -f gthr-default.h-t gthr-default.h
11214 gthread_flags
=-DHAVE_GTHR_DEFAULT
11223 if test x
$enable___cxa_atexit = xyes || \
11224 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11225 if test x
$host = x
$target; then
11227 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11228 # keyed to flag_use_cxa_atexit
11233 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11234 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11237 echo "__cxa_atexit can't be enabled on this target"
11243 # We can't check for __cxa_atexit when building a cross, so assume
11247 if test x
$use_cxa_atexit = xyes
; then
11249 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11254 # Look for a file containing extra machine modes.
11255 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11256 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11259 cat >>confdefs.h
<<_ACEOF
11260 #define EXTRA_MODES_FILE "config/$extra_modes"
11265 # Convert extra_options into a form suitable for Makefile use.
11268 for f
in $extra_options; do
11269 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11270 all_opt_files
="$all_opt_files $srcdir/config/$f"
11274 # auto-host.h is the file containing items generated by autoconf and is
11275 # the first file included by config.h.
11276 # If host=build, it is correct to have bconfig include auto-host.h
11277 # as well. If host!=build, we are in error and need to do more
11278 # work to find out the build config parameters.
11279 if test x
$host = x
$build
11281 build_auto
=auto-host.h
11283 # We create a subdir, then run autoconf in the subdir.
11284 # To prevent recursion we set host and build for the new
11285 # invocation of configure to the build for this invocation
11292 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11293 *) realsrcdir
=..
/${srcdir};;
11295 saved_CFLAGS
="${CFLAGS}"
11296 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11297 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11298 ${realsrcdir}/configure \
11299 --enable-languages=${enable_languages-all} \
11300 --target=$target_alias --host=$build_alias --build=$build_alias
11301 CFLAGS
="${saved_CFLAGS}"
11303 # We just finished tests for the build machine, so rename
11304 # the file auto-build.h in the gcc directory.
11305 mv auto-host.h ..
/auto-build.h
11308 build_auto
=auto-build.h
11312 tm_file
="${tm_file} defaults.h"
11313 tm_p_file
="${tm_p_file} tm-preds.h"
11314 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11315 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11316 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11317 # put this back in temporarily.
11318 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11324 # Compile in configure arguments.
11325 if test -f configargs.h
; then
11326 # Being re-configured.
11327 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11328 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11330 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11333 # Double all backslashes and backslash all quotes to turn
11334 # gcc_config_arguments into a C string.
11335 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11336 $gcc_config_arguments
11338 gcc_config_arguments_str
=`cat conftest.out`
11341 cat > configargs.h
<<EOF
11342 /* Generated automatically. */
11343 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11344 static const char thread_model[] = "$thread_file";
11346 static const struct {
11347 const char *name, *value;
11348 } configure_default_options[] = $configure_default_options;
11351 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11352 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11353 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11354 if test -f $srcdir/REVISION
; then
11355 gcc_REVISION
=`cat $srcdir/REVISION`
11359 cat > plugin-version.h
<<EOF
11360 #include "configargs.h"
11362 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11363 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11364 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11365 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11367 static char basever[] = "$gcc_BASEVER";
11368 static char datestamp[] = "$gcc_DATESTAMP";
11369 static char devphase[] = "$gcc_DEVPHASE";
11370 static char revision[] = "$gcc_REVISION";
11372 /* FIXME plugins: We should make the version information more precise.
11373 One way to do is to add a checksum. */
11375 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11376 devphase, revision,
11377 configuration_arguments};
11380 # Internationalization
11381 # If we haven't got the data from the intl directory,
11382 # assume NLS is disabled.
11391 if test -f ..
/intl
/config.intl
; then
11392 . ..
/intl
/config.intl
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11395 $as_echo_n "checking whether NLS is requested... " >&6; }
11396 if test x
"$USE_NLS" != xyes
; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398 $as_echo "no" >&6; }
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11403 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11407 $as_echo_n "checking for catalogs to be installed... " >&6; }
11408 # Look for .po and .gmo files in the source directory.
11411 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11412 # If there aren't any .gmo files the shell will give us the
11413 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11415 case "$cat" in *\
**)
11418 # The quadruple backslash is collapsed to a double backslash
11419 # by the backticks, then collapsed again by the double quotes,
11420 # leaving us with one backslash in the sed expression (right
11421 # before the dot that mustn't act as a wildcard).
11422 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11423 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11424 # The user is allowed to set LINGUAS to a list of languages to
11425 # install catalogs for. If it's empty that means "all of them."
11426 if test "x$LINGUAS" = x
; then
11427 CATALOGS
="$CATALOGS $cat"
11428 XLINGUAS
="$XLINGUAS $lang"
11430 case "$LINGUAS" in *$lang*)
11431 CATALOGS
="$CATALOGS $cat"
11432 XLINGUAS
="$XLINGUAS $lang"
11437 LINGUAS
="$XLINGUAS"
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11439 $as_echo "$LINGUAS" >&6; }
11452 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11453 # -liconv on the link line twice.
11454 case "$LIBINTL" in *$LIBICONV*)
11458 # Check whether --enable-secureplt was given.
11459 if test "${enable_secureplt+set}" = set; then :
11460 enableval
=$enable_secureplt;
11464 # Check whether --enable-leading-mingw64-underscores was given.
11465 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11466 enableval
=$enable_leading_mingw64_underscores;
11469 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11471 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11475 # Check whether --enable-cld was given.
11476 if test "${enable_cld+set}" = set; then :
11477 enableval
=$enable_cld;
11483 # Check whether --enable-frame-pointer was given.
11484 if test "${enable_frame_pointer+set}" = set; then :
11485 enableval
=$enable_frame_pointer;
11489 linux
* | darwin
[8912]*)
11490 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11492 enable_frame_pointer
=no
11495 enable_frame_pointer
=yes
11502 # Windows32 Registry support for specifying GCC installation paths.
11503 # Check whether --enable-win32-registry was given.
11504 if test "${enable_win32_registry+set}" = set; then :
11505 enableval
=$enable_win32_registry;
11510 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11511 if test "x$enable_win32_registry" != xno
; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11513 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11514 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11517 ac_func_search_save_LIBS
=$LIBS
11518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11527 char RegOpenKeyExA ();
11531 return RegOpenKeyExA ();
11536 for ac_lib
in '' advapi32
; do
11537 if test -z "$ac_lib"; then
11538 ac_res
="none required"
11541 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11543 if ac_fn_c_try_link
"$LINENO"; then :
11544 ac_cv_search_RegOpenKeyExA
=$ac_res
11546 rm -f core conftest.err conftest.
$ac_objext \
11548 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11552 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11555 ac_cv_search_RegOpenKeyExA
=no
11557 rm conftest.
$ac_ext
11558 LIBS
=$ac_func_search_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11561 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11562 ac_res
=$ac_cv_search_RegOpenKeyExA
11563 if test "$ac_res" != no
; then :
11564 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11567 enable_win32_registry
=no
11572 if test "x$enable_win32_registry" != xno
; then
11574 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11577 if test "x$enable_win32_registry" != xyes \
11578 && test "x$enable_win32_registry" != x
; then
11580 cat >>confdefs.h
<<_ACEOF
11581 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11589 # Get an absolute path to the GCC top-level source directory
11590 holddir
=`${PWDCMD-pwd}`
11592 topdir
=`${PWDCMD-pwd}`
11595 # Conditionalize the makefile for this host machine.
11597 for f
in ${host_xmake_file}
11599 if test -f ${srcdir}/config
/$f
11601 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11605 # Conditionalize the makefile for this target machine.
11607 for f
in ${tmake_file}
11609 if test -f ${srcdir}/config
/$f
11611 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11614 tmake_file
="${tmake_file_}"
11616 out_object_file
=`basename $out_file .c`.o
11617 common_out_object_file
=`basename $common_out_file .c`.o
11619 tm_file_list
="options.h"
11620 tm_include_list
="options.h insn-constants.h"
11621 for f
in $tm_file; do
11624 f
=`echo $f | sed 's/^..//'`
11625 tm_file_list
="${tm_file_list} $f"
11626 tm_include_list
="${tm_include_list} $f"
11629 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11630 tm_include_list
="${tm_include_list} $f"
11633 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11634 tm_include_list
="${tm_include_list} config/$f"
11639 libgcc_tm_file_list
=
11640 libgcc_tm_include_list
=
11641 for f
in $libgcc_tm_file; do
11642 libgcc_tm_file_list
="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11643 libgcc_tm_include_list
="${libgcc_tm_include_list} ../libgcc/config/$f"
11648 for f
in $tm_p_file; do
11651 tm_p_file_list
="${tm_p_file_list} $f"
11652 tm_p_include_list
="${tm_p_include_list} $f"
11655 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11656 tm_p_include_list
="${tm_p_include_list} config/$f"
11662 for f
in $xm_file; do
11665 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11666 xm_include_list
="${xm_include_list} $f"
11669 xm_file_list
="${xm_file_list} $f"
11670 xm_include_list
="${xm_include_list} $f"
11673 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11674 xm_include_list
="${xm_include_list} config/$f"
11680 host_xm_include_list
=
11681 for f
in $host_xm_file; do
11684 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11685 host_xm_include_list
="${host_xm_include_list} $f"
11688 host_xm_file_list
="${host_xm_file_list} $f"
11689 host_xm_include_list
="${host_xm_include_list} $f"
11692 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11693 host_xm_include_list
="${host_xm_include_list} config/$f"
11698 build_xm_file_list
=
11699 for f
in $build_xm_file; do
11702 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11703 build_xm_include_list
="${build_xm_include_list} $f"
11705 auto-build.h | auto-host.h
)
11706 build_xm_file_list
="${build_xm_file_list} $f"
11707 build_xm_include_list
="${build_xm_include_list} $f"
11710 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11711 build_xm_include_list
="${build_xm_include_list} config/$f"
11716 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11717 # cross-compiler which does not use the native headers and libraries.
11718 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11721 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11723 if test "x$with_build_sysroot" != x
; then
11724 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11726 # This value is used, even on a native system, because
11727 # CROSS_SYSTEM_HEADER_DIR is just
11728 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11729 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11732 if test x
$host != x
$target
11734 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11736 SYSTEM_HEADER_DIR
=$build_system_header_dir
11737 case "$host","$target" in
11738 # Darwin crosses can use the host system's libraries and headers,
11739 # because of the fat library support. Of course, it must be the
11740 # same version of Darwin on both sides. Allow the user to
11741 # just say --target=foo-darwin without a version number to mean
11742 # "the version on this system".
11743 *-*-darwin*,*-*-darwin*)
11744 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11745 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11746 if test $hostos = $targetos -o $targetos = darwin
; then
11748 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11753 i?
86-*-*,x86_64-
*-* \
11754 | powerpc
*-*-*,powerpc64
*-*-*)
11755 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11760 if test "x$with_headers" = x
; then
11767 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11768 SYSTEM_HEADER_DIR
=$build_system_header_dir
11771 # If this is a cross-compiler that does not
11772 # have its own set of headers then define
11775 # If this is using newlib, without having the headers available now,
11776 # then define inhibit_libc in LIBGCC2_CFLAGS.
11777 # This prevents libgcc2 from containing any code which requires libc
11779 : ${inhibit_libc=false}
11780 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11781 test x
$with_newlib = xyes
; } &&
11782 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11787 # When building gcc with a cross-compiler, we need to adjust things so
11788 # that the generator programs are still built with the native compiler.
11789 # Also, we cannot run fixincludes.
11791 # These are the normal (build=host) settings:
11792 CC_FOR_BUILD
='$(CC)'
11793 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11794 BUILD_LDFLAGS
='$(LDFLAGS)'
11795 STMP_FIXINC
=stmp-fixinc
11797 # And these apply if build != host, or we are generating coverage data
11798 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11800 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11801 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11804 # Expand extra_headers to include complete path.
11805 # This substitutes for lots of t-* files.
11806 extra_headers_list
=
11807 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11808 for file in ${extra_headers} ; do
11809 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11812 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11813 if test x
"$use_gcc_tgmath" = xyes
11814 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11817 # Define collect2 in Makefile.
11818 case $host_can_use_collect2 in
11820 *) collect2
='collect2$(exeext)' ;;
11824 # Add a definition of USE_COLLECT2 if system wants one.
11825 case $use_collect2 in
11826 no
) use_collect2
= ;;
11829 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11830 xm_defines
="${xm_defines} USE_COLLECT2"
11831 case $host_can_use_collect2 in
11833 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11840 cat >>confdefs.h
<<_ACEOF
11841 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11845 # ---------------------------
11846 # Assembler & linker features
11847 # ---------------------------
11849 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11850 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11851 # However when ld-new is first executed from the build tree, libtool will
11852 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11853 # to the build tree. While doing this we need to use the previous-stage
11854 # linker, or we have an infinite loop. The presence of a shell script as
11855 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11856 # the gcc/collect-ld script. So we need to know how libtool works, or
11857 # exec-tool will fail.
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11863 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11868 macro_version
='2.2.7a'
11869 macro_revision
='1.3134'
11883 ltmain
="$ac_aux_dir/ltmain.sh"
11885 # Backslashify metacharacters that are still active within
11886 # double-quoted strings.
11887 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11889 # Same as above, but do not quote variable references.
11890 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11892 # Sed substitution to delay expansion of an escaped shell variable in a
11893 # double_quote_subst'ed string.
11894 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11896 # Sed substitution to delay expansion of an escaped single quote.
11897 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11899 # Sed substitution to avoid accidental globbing in evaled expressions
11900 no_glob_subst
='s/\*/\\\*/g'
11902 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11903 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11904 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11907 $as_echo_n "checking how to print strings... " >&6; }
11908 # Test print first, because it will be a builtin if present.
11909 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11910 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11912 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11915 # Use this function as a fallback that always works.
11916 func_fallback_echo ()
11918 eval 'cat <<_LTECHO_EOF
11922 ECHO='func_fallback_echo
'
11925 # func_echo_all arg...
11926 # Invoke $ECHO with all args, space-separated.
11933 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11934 $as_echo "printf" >&6; } ;;
11935 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11936 $as_echo "print -r" >&6; } ;;
11937 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11938 $as_echo "cat" >&6; } ;;
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11955 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11956 if test "${ac_cv_path_SED+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
11959 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11960 for ac_i in 1 2 3 4 5 6 7; do
11961 ac_script="$ac_script$as_nl$ac_script"
11963 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11964 { ac_script=; unset ac_script;}
11965 if test -z "$SED"; then
11966 ac_path_SED_found=false
11967 # Loop through the user's path and
test for each of PROGNAME-LIST
11968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11969 for as_dir
in $PATH
11972 test -z "$as_dir" && as_dir
=.
11973 for ac_prog
in sed gsed
; do
11974 for ac_exec_ext
in '' $ac_executable_extensions; do
11975 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11976 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11977 # Check for GNU ac_path_SED and select it if it is found.
11978 # Check for GNU $ac_path_SED
11979 case `"$ac_path_SED" --version 2>&1` in
11981 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11984 $as_echo_n 0123456789 >"conftest.in"
11987 cat "conftest.in" "conftest.in" >"conftest.tmp"
11988 mv "conftest.tmp" "conftest.in"
11989 cp "conftest.in" "conftest.nl"
11990 $as_echo '' >> "conftest.nl"
11991 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11992 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11993 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11994 if test $ac_count -gt ${ac_path_SED_max-0}; then
11995 # Best one so far, save it but keep looking for a better one
11996 ac_cv_path_SED
="$ac_path_SED"
11997 ac_path_SED_max
=$ac_count
11999 # 10*(2^10) chars as input seems more than enough
12000 test $ac_count -gt 10 && break
12002 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12005 $ac_path_SED_found && break 3
12010 if test -z "$ac_cv_path_SED"; then
12011 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12014 ac_cv_path_SED
=$SED
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12019 $as_echo "$ac_cv_path_SED" >&6; }
12020 SED
="$ac_cv_path_SED"
12023 test -z "$SED" && SED
=sed
12024 Xsed
="$SED -e 1s/^X//"
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12037 $as_echo_n "checking for fgrep... " >&6; }
12038 if test "${ac_cv_path_FGREP+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12041 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12042 then ac_cv_path_FGREP
="$GREP -F"
12044 if test -z "$FGREP"; then
12045 ac_path_FGREP_found
=false
12046 # Loop through the user's path and test for each of PROGNAME-LIST
12047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12048 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12051 test -z "$as_dir" && as_dir
=.
12052 for ac_prog
in fgrep
; do
12053 for ac_exec_ext
in '' $ac_executable_extensions; do
12054 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12055 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12056 # Check for GNU ac_path_FGREP and select it if it is found.
12057 # Check for GNU $ac_path_FGREP
12058 case `"$ac_path_FGREP" --version 2>&1` in
12060 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12063 $as_echo_n 0123456789 >"conftest.in"
12066 cat "conftest.in" "conftest.in" >"conftest.tmp"
12067 mv "conftest.tmp" "conftest.in"
12068 cp "conftest.in" "conftest.nl"
12069 $as_echo 'FGREP' >> "conftest.nl"
12070 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12071 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12072 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12073 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12074 # Best one so far, save it but keep looking for a better one
12075 ac_cv_path_FGREP
="$ac_path_FGREP"
12076 ac_path_FGREP_max
=$ac_count
12078 # 10*(2^10) chars as input seems more than enough
12079 test $ac_count -gt 10 && break
12081 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12084 $ac_path_FGREP_found && break 3
12089 if test -z "$ac_cv_path_FGREP"; then
12090 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12093 ac_cv_path_FGREP
=$FGREP
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12099 $as_echo "$ac_cv_path_FGREP" >&6; }
12100 FGREP
="$ac_cv_path_FGREP"
12103 test -z "$GREP" && GREP
=grep
12123 # Check whether --with-gnu-ld was given.
12124 if test "${with_gnu_ld+set}" = set; then :
12125 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12131 if test "$GCC" = yes; then
12132 # Check if gcc -print-prog-name=ld gives a path.
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12134 $as_echo_n "checking for ld used by $CC... " >&6; }
12137 # gcc leaves a trailing carriage return which upsets mingw
12138 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12140 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12143 # Accept absolute paths.
12145 re_direlt
='/[^/][^/]*/\.\./'
12146 # Canonicalize the pathname of ld
12147 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12148 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12149 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12151 test -z "$LD" && LD
="$ac_prog"
12154 # If it fails, then pretend we aren't using GCC.
12158 # If it is relative, then search for the first ld in PATH.
12159 with_gnu_ld
=unknown
12162 elif test "$with_gnu_ld" = yes; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12164 $as_echo_n "checking for GNU ld... " >&6; }
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12167 $as_echo_n "checking for non-GNU ld... " >&6; }
12169 if test "${lt_cv_path_LD+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12172 if test -z "$LD"; then
12173 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12174 for ac_dir
in $PATH; do
12176 test -z "$ac_dir" && ac_dir
=.
12177 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12178 lt_cv_path_LD
="$ac_dir/$ac_prog"
12179 # Check to see if the program is GNU ld. I'd rather use --version,
12180 # but apparently some variants of GNU ld only accept -v.
12181 # Break only if it was the GNU/non-GNU ld that we prefer.
12182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12183 *GNU
* |
*'with BFD'*)
12184 test "$with_gnu_ld" != no
&& break
12187 test "$with_gnu_ld" != yes && break
12194 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12198 LD
="$lt_cv_path_LD"
12199 if test -n "$LD"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12201 $as_echo "$LD" >&6; }
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12206 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12208 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12209 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12212 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12213 case `$LD -v 2>&1 </dev/null` in
12214 *GNU
* |
*'with BFD'*)
12215 lt_cv_prog_gnu_ld
=yes
12218 lt_cv_prog_gnu_ld
=no
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12223 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12224 with_gnu_ld
=$lt_cv_prog_gnu_ld
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12235 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12236 if test "${lt_cv_path_NM+set}" = set; then :
12237 $as_echo_n "(cached) " >&6
12239 if test -n "$NM"; then
12240 # Let the user override the test.
12241 lt_cv_path_NM
="$NM"
12243 lt_nm_to_check
="${ac_tool_prefix}nm"
12244 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12245 lt_nm_to_check
="$lt_nm_to_check nm"
12247 for lt_tmp_nm
in $lt_nm_to_check; do
12248 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12249 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12251 test -z "$ac_dir" && ac_dir
=.
12252 tmp_nm
="$ac_dir/$lt_tmp_nm"
12253 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12254 # Check to see if the nm accepts a BSD-compat flag.
12255 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12256 # nm: unknown option "B" ignored
12257 # Tru64's nm complains that /dev/null is an invalid object file
12258 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12259 */dev
/null
* |
*'Invalid file or object type'*)
12260 lt_cv_path_NM
="$tmp_nm -B"
12264 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12266 lt_cv_path_NM
="$tmp_nm -p"
12270 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12271 continue # so that we can try to find one that supports BSD flags
12280 : ${lt_cv_path_NM=no}
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12284 $as_echo "$lt_cv_path_NM" >&6; }
12285 if test "$lt_cv_path_NM" != "no"; then
12286 NM
="$lt_cv_path_NM"
12288 # Didn't find any BSD compatible name lister, look for dumpbin.
12289 if test -n "$DUMPBIN"; then :
12290 # Let the user override the test.
12292 if test -n "$ac_tool_prefix"; then
12293 for ac_prog
in dumpbin
"link -dump"
12295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12296 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
12302 if test -n "$DUMPBIN"; then
12303 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12306 for as_dir
in $PATH
12309 test -z "$as_dir" && as_dir
=.
12310 for ac_exec_ext
in '' $ac_executable_extensions; do
12311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 DUMPBIN
=$ac_cv_prog_DUMPBIN
12323 if test -n "$DUMPBIN"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12325 $as_echo "$DUMPBIN" >&6; }
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12332 test -n "$DUMPBIN" && break
12335 if test -z "$DUMPBIN"; then
12336 ac_ct_DUMPBIN
=$DUMPBIN
12337 for ac_prog
in dumpbin
"link -dump"
12339 # Extract the first word of "$ac_prog", so it can be a program name with args.
12340 set dummy
$ac_prog; ac_word
=$2
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342 $as_echo_n "checking for $ac_word... " >&6; }
12343 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
12346 if test -n "$ac_ct_DUMPBIN"; then
12347 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12350 for as_dir
in $PATH
12353 test -z "$as_dir" && as_dir
=.
12354 for ac_exec_ext
in '' $ac_executable_extensions; do
12355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12356 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12367 if test -n "$ac_ct_DUMPBIN"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12369 $as_echo "$ac_ct_DUMPBIN" >&6; }
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12376 test -n "$ac_ct_DUMPBIN" && break
12379 if test "x$ac_ct_DUMPBIN" = x
; then
12382 case $cross_compiling:$ac_tool_warned in
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12386 ac_tool_warned
=yes ;;
12388 DUMPBIN
=$ac_ct_DUMPBIN
12392 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12394 DUMPBIN
="$DUMPBIN -symbols"
12402 if test "$DUMPBIN" != ":"; then
12406 test -z "$NM" && NM
=nm
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12414 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12415 if test "${lt_cv_nm_interface+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12418 lt_cv_nm_interface
="BSD nm"
12419 echo "int some_variable = 0;" > conftest.
$ac_ext
12420 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12421 (eval "$ac_compile" 2>conftest.err
)
12422 cat conftest.err
>&5
12423 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12424 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12425 cat conftest.err
>&5
12426 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12427 cat conftest.out
>&5
12428 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12429 lt_cv_nm_interface
="MS dumpbin"
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12434 $as_echo "$lt_cv_nm_interface" >&6; }
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12437 $as_echo_n "checking whether ln -s works... " >&6; }
12439 if test "$LN_S" = "ln -s"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441 $as_echo "yes" >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12444 $as_echo "no, using $LN_S" >&6; }
12447 # find the maximum length of command line arguments
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12449 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12450 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12458 # On DJGPP, this test can blow up pretty badly due to problems in libc
12459 # (any single argument exceeding 2000 bytes causes a buffer overrun
12460 # during glob expansion). Even if it were fixed, the result of this
12461 # check would be larger than it should be.
12462 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12466 # Under GNU Hurd, this test is not required because there is
12467 # no limit to the length of command line arguments.
12468 # Libtool will interpret -1 as no limit whatsoever
12469 lt_cv_sys_max_cmd_len
=-1;
12472 cygwin
* | mingw
* | cegcc
*)
12473 # On Win9x/ME, this test blows up -- it succeeds, but takes
12474 # about 5 minutes as the teststring grows exponentially.
12475 # Worse, since 9x/ME are not pre-emptively multitasking,
12476 # you end up with a "frozen" computer, even though with patience
12477 # the test eventually succeeds (with a max line length of 256k).
12478 # Instead, let's just punt: use the minimum linelength reported by
12479 # all of the supported platforms: 8192 (on NT/2K/XP).
12480 lt_cv_sys_max_cmd_len
=8192;
12484 # On MiNT this can take a long time and run out of memory.
12485 lt_cv_sys_max_cmd_len
=8192;
12489 # On AmigaOS with pdksh, this test takes hours, literally.
12490 # So we just punt and use a minimum line length of 8192.
12491 lt_cv_sys_max_cmd_len
=8192;
12494 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12495 # This has been around since 386BSD, at least. Likely further.
12496 if test -x /sbin
/sysctl
; then
12497 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12498 elif test -x /usr
/sbin
/sysctl
; then
12499 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12501 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12503 # And add a safety zone
12504 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12505 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12509 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12510 lt_cv_sys_max_cmd_len
=196608
12514 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12515 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12516 # nice to cause kernel panics so lets avoid the loop below.
12517 # First set a reasonable default.
12518 lt_cv_sys_max_cmd_len
=16384
12520 if test -x /sbin
/sysconfig
; then
12521 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12522 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12527 lt_cv_sys_max_cmd_len
=102400
12529 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12530 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12531 if test -n "$kargmax"; then
12532 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12534 lt_cv_sys_max_cmd_len
=32768
12538 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12539 if test -n "$lt_cv_sys_max_cmd_len"; then
12540 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12541 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12543 # Make teststring a little bigger before we do anything with it.
12544 # a 1K string should be a reasonable start.
12545 for i
in 1 2 3 4 5 6 7 8 ; do
12546 teststring
=$teststring$teststring
12548 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12549 # If test is not a shell built-in, we'll probably end up computing a
12550 # maximum length that is only half of the actual maximum length, but
12552 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12553 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12554 test $i != 17 # 1/2 MB should be enough
12557 teststring
=$teststring$teststring
12559 # Only check the string length outside the loop.
12560 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12562 # Add a significant safety factor because C++ compilers can tack on
12563 # massive amounts of additional arguments before passing them to the
12564 # linker. It appears as though 1/2 is a usable value.
12565 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12572 if test -n $lt_cv_sys_max_cmd_len ; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12574 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12577 $as_echo "none" >&6; }
12579 max_cmd_len
=$lt_cv_sys_max_cmd_len
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12591 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12592 # Try some XSI features
12594 ( _lt_dummy
="a/b/c"
12595 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12597 && eval 'test $(( 1 + 1 )) -eq 2 \
12598 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12601 $as_echo "$xsi_shell" >&6; }
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12605 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12607 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12609 && lt_shell_append=yes
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12611 $as_echo "$lt_shell_append" >&6; }
12614 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12624 # test EBCDIC or ASCII
12625 case `echo X|tr X '\101'` in
12626 A) # ASCII based system
12627 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12628 lt_SP2NL='tr \040 \012'
12629 lt_NL2SP='tr \015\012 \040\040'
12631 *) # EBCDIC based system
12632 lt_SP2NL='tr \100 \n'
12633 lt_NL2SP='tr \r\n \100\100'
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12646 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12647 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12648 $as_echo_n "(cached
) " >&6
12650 lt_cv_ld_reload_flag='-r'
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12653 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12654 reload_flag=$lt_cv_ld_reload_flag
12655 case $reload_flag in
12657 *) reload_flag=" $reload_flag" ;;
12659 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12662 if test "$GCC" = yes; then
12663 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12665 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12678 if test -n "$ac_tool_prefix"; then
12679 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12680 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12682 $as_echo_n "checking
for $ac_word...
" >&6; }
12683 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12684 $as_echo_n "(cached
) " >&6
12686 if test -n "$OBJDUMP"; then
12687 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12696 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12706 OBJDUMP=$ac_cv_prog_OBJDUMP
12707 if test -n "$OBJDUMP"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12709 $as_echo "$OBJDUMP" >&6; }
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12712 $as_echo "no
" >&6; }
12717 if test -z "$ac_cv_prog_OBJDUMP"; then
12718 ac_ct_OBJDUMP=$OBJDUMP
12719 # Extract the first word of "objdump
", so it can be a program name with args.
12720 set dummy objdump; ac_word=$2
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12722 $as_echo_n "checking
for $ac_word...
" >&6; }
12723 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12724 $as_echo_n "(cached
) " >&6
12726 if test -n "$ac_ct_OBJDUMP"; then
12727 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12733 test -z "$as_dir" && as_dir=.
12734 for ac_exec_ext in '' $ac_executable_extensions; do
12735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12736 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12746 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12747 if test -n "$ac_ct_OBJDUMP"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12749 $as_echo "$ac_ct_OBJDUMP" >&6; }
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12752 $as_echo "no
" >&6; }
12755 if test "x
$ac_ct_OBJDUMP" = x; then
12758 case $cross_compiling:$ac_tool_warned in
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12761 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12762 ac_tool_warned=yes ;;
12764 OBJDUMP=$ac_ct_OBJDUMP
12767 OBJDUMP="$ac_cv_prog_OBJDUMP"
12770 test -z "$OBJDUMP" && OBJDUMP=objdump
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12781 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12782 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12783 $as_echo_n "(cached
) " >&6
12785 lt_cv_file_magic_cmd='$MAGIC_CMD'
12786 lt_cv_file_magic_test_file=
12787 lt_cv_deplibs_check_method='unknown'
12788 # Need to set the preceding variable on all platforms that support
12789 # interlibrary dependencies.
12790 # 'none' -- dependencies not supported.
12791 # `unknown' -- same as none, but documents that we really don't know.
12792 # 'pass_all' -- all dependencies passed with no checks.
12793 # 'test_compile' -- check by making test program.
12794 # 'file_magic [[regex]]' -- check by looking for files in library path
12795 # which responds to the $file_magic_cmd with a given extended regex.
12796 # If you have `file' or equivalent on your system and you're not sure
12797 # whether `pass_all' will *always* work, you probably want this one.
12801 lt_cv_deplibs_check_method=pass_all
12805 lt_cv_deplibs_check_method=pass_all
12809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12810 lt_cv_file_magic_cmd='/usr/bin/file -L'
12811 lt_cv_file_magic_test_file=/shlib/libc.so
12815 # func_win32_libid is a shell function defined in ltmain.sh
12816 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12817 lt_cv_file_magic_cmd='func_win32_libid'
12821 # Base MSYS/MinGW do not provide the 'file' command needed by
12822 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12823 # unless we find 'file', for example because we are cross-compiling.
12824 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12825 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12826 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12827 lt_cv_file_magic_cmd='func_win32_libid'
12829 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12830 lt_cv_file_magic_cmd='$OBJDUMP -f'
12835 # use the weaker test based on 'objdump'. See mingw*.
12836 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12837 lt_cv_file_magic_cmd='$OBJDUMP -f'
12840 darwin* | rhapsody*)
12841 lt_cv_deplibs_check_method=pass_all
12844 freebsd* | dragonfly*)
12845 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12848 # Not sure whether the presence of OpenBSD here was a mistake.
12849 # Let's accept both of them until this is cleared up.
12850 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12851 lt_cv_file_magic_cmd=/usr/bin/file
12852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12856 lt_cv_deplibs_check_method=pass_all
12861 lt_cv_deplibs_check_method=pass_all
12865 lt_cv_deplibs_check_method=pass_all
12868 hpux10.20* | hpux11*)
12869 lt_cv_file_magic_cmd=/usr/bin/file
12872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12876 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]'
12877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12887 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12891 irix5* | irix6* | nonstopux*)
12893 *-32|*"-32 ") libmagic=32-bit;;
12894 *-n32|*"-n32 ") libmagic=N32;;
12895 *-64|*"-64 ") libmagic=64-bit;;
12896 *) libmagic=never-match;;
12898 lt_cv_deplibs_check_method=pass_all
12901 # This must be Linux ELF.
12902 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12903 lt_cv_deplibs_check_method=pass_all
12907 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12916 lt_cv_file_magic_cmd=/usr/bin/file
12917 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12921 lt_cv_deplibs_check_method=pass_all
12925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12932 osf3* | osf4* | osf5*)
12933 lt_cv_deplibs_check_method=pass_all
12937 lt_cv_deplibs_check_method=pass_all
12941 lt_cv_deplibs_check_method=pass_all
12944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12945 lt_cv_deplibs_check_method=pass_all
12949 case $host_vendor in
12951 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]'
12952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12955 lt_cv_deplibs_check_method=pass_all
12958 lt_cv_file_magic_cmd='/bin/file'
12959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12962 lt_cv_file_magic_cmd='/bin/file'
12963 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12964 lt_cv_file_magic_test_file=/lib/libc.so
12967 lt_cv_deplibs_check_method=pass_all
12970 lt_cv_deplibs_check_method=pass_all
12976 lt_cv_deplibs_check_method=pass_all
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12982 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12983 file_magic_cmd=$lt_cv_file_magic_cmd
12984 deplibs_check_method=$lt_cv_deplibs_check_method
12985 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12998 if test -n "$ac_tool_prefix"; then
12999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13000 set dummy ${ac_tool_prefix}ar; ac_word=$2
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13002 $as_echo_n "checking
for $ac_word...
" >&6; }
13003 if test "${ac_cv_prog_AR+set}" = set; then :
13004 $as_echo_n "(cached
) " >&6
13006 if test -n "$AR"; then
13007 ac_cv_prog_AR="$AR" # Let the user override the test.
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
13015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13016 ac_cv_prog_AR="${ac_tool_prefix}ar"
13017 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13027 if test -n "$AR"; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13029 $as_echo "$AR" >&6; }
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13032 $as_echo "no
" >&6; }
13037 if test -z "$ac_cv_prog_AR"; then
13039 # Extract the first word of "ar", so it can be a program name with args.
13040 set dummy ar; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13042 $as_echo_n "checking
for $ac_word...
" >&6; }
13043 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13044 $as_echo_n "(cached
) " >&6
13046 if test -n "$ac_ct_AR"; then
13047 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
13055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13056 ac_cv_prog_ac_ct_AR="ar"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13066 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13067 if test -n "$ac_ct_AR"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13069 $as_echo "$ac_ct_AR" >&6; }
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13072 $as_echo "no
" >&6; }
13075 if test "x
$ac_ct_AR" = x; then
13078 case $cross_compiling:$ac_tool_warned in
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13081 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13082 ac_tool_warned=yes ;;
13087 AR="$ac_cv_prog_AR"
13090 test -z "$AR" && AR=ar
13091 test -z "$AR_FLAGS" && AR_FLAGS=cru
13103 if test -n "$ac_tool_prefix"; then
13104 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13105 set dummy ${ac_tool_prefix}strip; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13107 $as_echo_n "checking
for $ac_word...
" >&6; }
13108 if test "${ac_cv_prog_STRIP+set}" = set; then :
13109 $as_echo_n "(cached
) " >&6
13111 if test -n "$STRIP"; then
13112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13118 test -z "$as_dir" && as_dir=.
13119 for ac_exec_ext in '' $ac_executable_extensions; do
13120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13121 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13122 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13131 STRIP=$ac_cv_prog_STRIP
13132 if test -n "$STRIP"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13134 $as_echo "$STRIP" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13137 $as_echo "no
" >&6; }
13142 if test -z "$ac_cv_prog_STRIP"; then
13144 # Extract the first word of "strip
", so it can be a program name with args.
13145 set dummy strip; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13147 $as_echo_n "checking
for $ac_word...
" >&6; }
13148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13149 $as_echo_n "(cached
) " >&6
13151 if test -n "$ac_ct_STRIP"; then
13152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155 for as_dir in $PATH
13158 test -z "$as_dir" && as_dir=.
13159 for ac_exec_ext in '' $ac_executable_extensions; do
13160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13161 ac_cv_prog_ac_ct_STRIP="strip
"
13162 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13172 if test -n "$ac_ct_STRIP"; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13174 $as_echo "$ac_ct_STRIP" >&6; }
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13177 $as_echo "no
" >&6; }
13180 if test "x
$ac_ct_STRIP" = x; then
13183 case $cross_compiling:$ac_tool_warned in
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13186 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13187 ac_tool_warned=yes ;;
13192 STRIP="$ac_cv_prog_STRIP"
13195 test -z "$STRIP" && STRIP=:
13202 if test -n "$ac_tool_prefix"; then
13203 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13204 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13206 $as_echo_n "checking
for $ac_word...
" >&6; }
13207 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13208 $as_echo_n "(cached
) " >&6
13210 if test -n "$RANLIB"; then
13211 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214 for as_dir in $PATH
13217 test -z "$as_dir" && as_dir=.
13218 for ac_exec_ext in '' $ac_executable_extensions; do
13219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13220 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13221 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13230 RANLIB=$ac_cv_prog_RANLIB
13231 if test -n "$RANLIB"; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13233 $as_echo "$RANLIB" >&6; }
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13236 $as_echo "no
" >&6; }
13241 if test -z "$ac_cv_prog_RANLIB"; then
13242 ac_ct_RANLIB=$RANLIB
13243 # Extract the first word of "ranlib
", so it can be a program name with args.
13244 set dummy ranlib; ac_word=$2
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13246 $as_echo_n "checking
for $ac_word...
" >&6; }
13247 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13248 $as_echo_n "(cached
) " >&6
13250 if test -n "$ac_ct_RANLIB"; then
13251 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254 for as_dir in $PATH
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
13259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13260 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13270 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13271 if test -n "$ac_ct_RANLIB"; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13273 $as_echo "$ac_ct_RANLIB" >&6; }
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13276 $as_echo "no
" >&6; }
13279 if test "x
$ac_ct_RANLIB" = x; then
13282 case $cross_compiling:$ac_tool_warned in
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13285 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13286 ac_tool_warned=yes ;;
13288 RANLIB=$ac_ct_RANLIB
13291 RANLIB="$ac_cv_prog_RANLIB"
13294 test -z "$RANLIB" && RANLIB=:
13301 # Determine commands to create old-style static archives.
13302 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13303 old_postinstall_cmds='chmod 644 $oldlib'
13304 old_postuninstall_cmds=
13306 if test -n "$RANLIB"; then
13309 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13312 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13315 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13320 lock_old_archive_extraction=yes ;;
13322 lock_old_archive_extraction=no ;;
13363 # If no C compiler was specified, use CC.
13366 # If no C compiler flags were specified, use CFLAGS.
13367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13369 # Allow CC to be a program name with arguments.
13373 # Check for command to grab the raw symbol name followed by C symbol from nm.
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13375 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13376 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13377 $as_echo_n "(cached
) " >&6
13380 # These are sane defaults that work on at least a few old systems.
13381 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13383 # Character class describing NM global symbol codes.
13384 symcode='[BCDEGRST]'
13386 # Regexp to match symbols that can be accessed directly from C.
13387 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13389 # Define system-specific variables.
13394 cygwin* | mingw* | pw32* | cegcc*)
13395 symcode='[ABCDGISTW]'
13398 if test "$host_cpu" = ia64; then
13399 symcode='[ABCDEGRST]'
13402 irix* | nonstopux*)
13403 symcode='[BCDEGRST]'
13406 symcode='[BCDEGQRST]'
13417 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13425 # If we're using GNU nm, then use its standard symbol codes.
13426 case `$NM -V 2>&1` in
13427 *GNU* | *'with BFD'*)
13428 symcode='[ABCDGIRSTW]' ;;
13431 # Transform an extracted symbol line into a proper C declaration.
13432 # Some systems (esp. on ia64) link data and code symbols differently,
13433 # so use this general approach.
13434 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13436 # Transform an extracted symbol line into symbol name and symbol address
13437 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13438 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'"
13440 # Handle CRLF in mingw tool chain
13444 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13448 # Try without a prefix underscore, then with it.
13449 for ac_symprfx in "" "_
"; do
13451 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13452 symxfrm="\\1 $ac_symprfx\\2 \\2"
13454 # Write the raw and C identifiers.
13455 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13456 # Fake it for dumpbin and say T for any non-static function
13457 # and D for any global variable.
13458 # Also find C++ and __fastcall symbols from MSVC++,
13459 # which start with @ or ?.
13460 lt_cv_sys_global_symbol_pipe="$AWK '"\
13461 " {last_section=section; section=\$ 3};"\
13462 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13463 " \$ 0!~/External *\|/{next};"\
13464 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13465 " {if(hide[section]) next};"\
13466 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13467 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13468 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13469 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13470 " ' prfx
=^
$ac_symprfx"
13472 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13475 # Check to see that the pipe works correctly.
13479 cat > conftest.$ac_ext <<_LT_EOF
13484 void nm_test_func(void);
13485 void nm_test_func(void){}
13489 int main(){nm_test_var='a';nm_test_func();return(0);}
13492 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13493 (eval $ac_compile) 2>&5
13495 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13496 test $ac_status = 0; }; then
13497 # Now try to grab the symbols.
13499 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13500 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13502 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13503 test $ac_status = 0; } && test -s "$nlist"; then
13504 # Try sorting and uniquifying the output.
13505 if sort "$nlist" | uniq > "$nlist"T; then
13506 mv -f "$nlist"T "$nlist"
13511 # Make sure that we snagged all the symbols we need.
13512 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13513 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13514 cat <<_LT_EOF > conftest.$ac_ext
13520 # Now generate the symbol file.
13521 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13523 cat <<_LT_EOF >> conftest.$ac_ext
13525 /* The mapping between symbol names and symbols. */
13530 lt__PROGRAM__LTX_preloaded_symbols[] =
13532 { "@PROGRAM@
", (void *) 0 },
13534 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13535 cat <<\_LT_EOF >> conftest.$ac_ext
13539 /* This works around a problem in FreeBSD linker */
13540 #ifdef FREEBSD_WORKAROUND
13541 static const void *lt_preloaded_setup() {
13542 return lt__PROGRAM__LTX_preloaded_symbols;
13550 # Now try linking the two files.
13551 mv conftest.$ac_objext conftstm.$ac_objext
13552 lt_save_LIBS="$LIBS"
13553 lt_save_CFLAGS="$CFLAGS"
13554 LIBS="conftstm.
$ac_objext"
13555 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13556 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13557 (eval $ac_link) 2>&5
13559 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13560 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13563 LIBS="$lt_save_LIBS"
13564 CFLAGS="$lt_save_CFLAGS"
13566 echo "cannot
find nm_test_func
in $nlist" >&5
13569 echo "cannot
find nm_test_var
in $nlist" >&5
13572 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13575 echo "$progname: failed program was
:" >&5
13576 cat conftest.$ac_ext >&5
13578 rm -rf conftest* conftst*
13580 # Do not use the global_symbol_pipe unless it works.
13581 if test "$pipe_works" = yes; then
13584 lt_cv_sys_global_symbol_pipe=
13590 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13591 lt_cv_sys_global_symbol_to_cdecl=
13593 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13595 $as_echo "failed
" >&6; }
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13598 $as_echo "ok
" >&6; }
13622 # Check whether --enable-libtool-lock was given.
13623 if test "${enable_libtool_lock+set}" = set; then :
13624 enableval=$enable_libtool_lock;
13627 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13629 # Some flags need to be propagated to the compiler or linker for good
13633 # Find out which ABI we are using.
13634 echo 'int i;' > conftest.$ac_ext
13635 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13636 (eval $ac_compile) 2>&5
13638 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13639 test $ac_status = 0; }; then
13640 case `/usr/bin/file conftest.$ac_objext` in
13642 HPUX_IA64_MODE="32"
13645 HPUX_IA64_MODE="64"
13652 # Find out which ABI we are using.
13653 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13654 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13655 (eval $ac_compile) 2>&5
13657 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13658 test $ac_status = 0; }; then
13659 if test "$lt_cv_prog_gnu_ld" = yes; then
13660 case `/usr/bin/file conftest.$ac_objext` in
13662 LD="${LD-ld} -melf32bsmip"
13665 LD="${LD-ld} -melf32bmipn32"
13668 LD="${LD-ld} -melf64bmip"
13672 case `/usr/bin/file conftest.$ac_objext` in
13688 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13689 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13690 # Find out which ABI we are using.
13691 echo 'int i;' > conftest.$ac_ext
13692 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13693 (eval $ac_compile) 2>&5
13695 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13696 test $ac_status = 0; }; then
13697 case `/usr/bin/file conftest.o` in
13700 x86_64-*kfreebsd*-gnu)
13701 LD="${LD-ld} -m elf_i386_fbsd
"
13704 LD="${LD-ld} -m elf_i386
"
13706 ppc64-*linux*|powerpc64-*linux*)
13707 LD="${LD-ld} -m elf32ppclinux
"
13710 LD="${LD-ld} -m elf_s390
"
13713 LD="${LD-ld} -m elf32_sparc
"
13719 x86_64-*kfreebsd*-gnu)
13720 LD="${LD-ld} -m elf_x86_64_fbsd
"
13723 LD="${LD-ld} -m elf_x86_64
"
13725 ppc*-*linux*|powerpc*-*linux*)
13726 LD="${LD-ld} -m elf64ppc
"
13728 s390*-*linux*|s390*-*tpf*)
13729 LD="${LD-ld} -m elf64_s390
"
13732 LD="${LD-ld} -m elf64_sparc
"
13742 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13743 SAVE_CFLAGS="$CFLAGS"
13744 CFLAGS="$CFLAGS -belf"
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13746 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13747 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13748 $as_echo_n "(cached
) " >&6
13751 ac_cpp='$CPP $CPPFLAGS'
13752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13767 if ac_fn_c_try_link "$LINENO"; then :
13768 lt_cv_cc_needs_belf=yes
13770 lt_cv_cc_needs_belf=no
13772 rm -f core conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext conftest.$ac_ext
13775 ac_cpp='$CPP $CPPFLAGS'
13776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13782 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13783 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13784 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13785 CFLAGS="$SAVE_CFLAGS"
13789 # Find out which ABI we are using.
13790 echo 'int i;' > conftest.$ac_ext
13791 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13792 (eval $ac_compile) 2>&5
13794 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13795 test $ac_status = 0; }; then
13796 case `/usr/bin/file conftest.o` in
13798 case $lt_cv_prog_gnu_ld in
13799 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13801 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13813 need_locks="$enable_libtool_lock"
13817 rhapsody* | darwin*)
13818 if test -n "$ac_tool_prefix"; then
13819 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13820 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13822 $as_echo_n "checking
for $ac_word...
" >&6; }
13823 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13824 $as_echo_n "(cached
) " >&6
13826 if test -n "$DSYMUTIL"; then
13827 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13833 test -z "$as_dir" && as_dir=.
13834 for ac_exec_ext in '' $ac_executable_extensions; do
13835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13836 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13837 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13846 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13847 if test -n "$DSYMUTIL"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13849 $as_echo "$DSYMUTIL" >&6; }
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13852 $as_echo "no
" >&6; }
13857 if test -z "$ac_cv_prog_DSYMUTIL"; then
13858 ac_ct_DSYMUTIL=$DSYMUTIL
13859 # Extract the first word of "dsymutil
", so it can be a program name with args.
13860 set dummy dsymutil; ac_word=$2
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13862 $as_echo_n "checking
for $ac_word...
" >&6; }
13863 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13864 $as_echo_n "(cached
) " >&6
13866 if test -n "$ac_ct_DSYMUTIL"; then
13867 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870 for as_dir in $PATH
13873 test -z "$as_dir" && as_dir=.
13874 for ac_exec_ext in '' $ac_executable_extensions; do
13875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13876 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13886 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13887 if test -n "$ac_ct_DSYMUTIL"; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13889 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13892 $as_echo "no
" >&6; }
13895 if test "x
$ac_ct_DSYMUTIL" = x; then
13898 case $cross_compiling:$ac_tool_warned in
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13901 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13902 ac_tool_warned=yes ;;
13904 DSYMUTIL=$ac_ct_DSYMUTIL
13907 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13910 if test -n "$ac_tool_prefix"; then
13911 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13912 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13914 $as_echo_n "checking
for $ac_word...
" >&6; }
13915 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13916 $as_echo_n "(cached
) " >&6
13918 if test -n "$NMEDIT"; then
13919 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13928 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13938 NMEDIT=$ac_cv_prog_NMEDIT
13939 if test -n "$NMEDIT"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13941 $as_echo "$NMEDIT" >&6; }
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13944 $as_echo "no
" >&6; }
13949 if test -z "$ac_cv_prog_NMEDIT"; then
13950 ac_ct_NMEDIT=$NMEDIT
13951 # Extract the first word of "nmedit
", so it can be a program name with args.
13952 set dummy nmedit; ac_word=$2
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13954 $as_echo_n "checking
for $ac_word...
" >&6; }
13955 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13956 $as_echo_n "(cached
) " >&6
13958 if test -n "$ac_ct_NMEDIT"; then
13959 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13965 test -z "$as_dir" && as_dir=.
13966 for ac_exec_ext in '' $ac_executable_extensions; do
13967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13968 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13978 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13979 if test -n "$ac_ct_NMEDIT"; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13981 $as_echo "$ac_ct_NMEDIT" >&6; }
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13984 $as_echo "no
" >&6; }
13987 if test "x
$ac_ct_NMEDIT" = x; then
13990 case $cross_compiling:$ac_tool_warned in
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13993 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13994 ac_tool_warned=yes ;;
13996 NMEDIT=$ac_ct_NMEDIT
13999 NMEDIT="$ac_cv_prog_NMEDIT"
14002 if test -n "$ac_tool_prefix"; then
14003 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14004 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14006 $as_echo_n "checking
for $ac_word...
" >&6; }
14007 if test "${ac_cv_prog_LIPO+set}" = set; then :
14008 $as_echo_n "(cached
) " >&6
14010 if test -n "$LIPO"; then
14011 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14020 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14030 LIPO=$ac_cv_prog_LIPO
14031 if test -n "$LIPO"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14033 $as_echo "$LIPO" >&6; }
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14036 $as_echo "no
" >&6; }
14041 if test -z "$ac_cv_prog_LIPO"; then
14043 # Extract the first word of "lipo
", so it can be a program name with args.
14044 set dummy lipo; ac_word=$2
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14046 $as_echo_n "checking
for $ac_word...
" >&6; }
14047 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14048 $as_echo_n "(cached
) " >&6
14050 if test -n "$ac_ct_LIPO"; then
14051 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14060 ac_cv_prog_ac_ct_LIPO="lipo
"
14061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14070 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14071 if test -n "$ac_ct_LIPO"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14073 $as_echo "$ac_ct_LIPO" >&6; }
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14076 $as_echo "no
" >&6; }
14079 if test "x
$ac_ct_LIPO" = x; then
14082 case $cross_compiling:$ac_tool_warned in
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14085 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14086 ac_tool_warned=yes ;;
14091 LIPO="$ac_cv_prog_LIPO"
14094 if test -n "$ac_tool_prefix"; then
14095 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14096 set dummy ${ac_tool_prefix}otool; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14098 $as_echo_n "checking
for $ac_word...
" >&6; }
14099 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14100 $as_echo_n "(cached
) " >&6
14102 if test -n "$OTOOL"; then
14103 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14122 OTOOL=$ac_cv_prog_OTOOL
14123 if test -n "$OTOOL"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14125 $as_echo "$OTOOL" >&6; }
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14128 $as_echo "no
" >&6; }
14133 if test -z "$ac_cv_prog_OTOOL"; then
14135 # Extract the first word of "otool
", so it can be a program name with args.
14136 set dummy otool; ac_word=$2
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14138 $as_echo_n "checking
for $ac_word...
" >&6; }
14139 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14140 $as_echo_n "(cached
) " >&6
14142 if test -n "$ac_ct_OTOOL"; then
14143 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14149 test -z "$as_dir" && as_dir=.
14150 for ac_exec_ext in '' $ac_executable_extensions; do
14151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14152 ac_cv_prog_ac_ct_OTOOL="otool
"
14153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14162 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14163 if test -n "$ac_ct_OTOOL"; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14165 $as_echo "$ac_ct_OTOOL" >&6; }
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14168 $as_echo "no
" >&6; }
14171 if test "x
$ac_ct_OTOOL" = x; then
14174 case $cross_compiling:$ac_tool_warned in
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14177 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14178 ac_tool_warned=yes ;;
14183 OTOOL="$ac_cv_prog_OTOOL"
14186 if test -n "$ac_tool_prefix"; then
14187 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14188 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14190 $as_echo_n "checking
for $ac_word...
" >&6; }
14191 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14192 $as_echo_n "(cached
) " >&6
14194 if test -n "$OTOOL64"; then
14195 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14204 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14214 OTOOL64=$ac_cv_prog_OTOOL64
14215 if test -n "$OTOOL64"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14217 $as_echo "$OTOOL64" >&6; }
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14220 $as_echo "no
" >&6; }
14225 if test -z "$ac_cv_prog_OTOOL64"; then
14226 ac_ct_OTOOL64=$OTOOL64
14227 # Extract the first word of "otool64
", so it can be a program name with args.
14228 set dummy otool64; ac_word=$2
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14230 $as_echo_n "checking
for $ac_word...
" >&6; }
14231 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14232 $as_echo_n "(cached
) " >&6
14234 if test -n "$ac_ct_OTOOL64"; then
14235 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14241 test -z "$as_dir" && as_dir=.
14242 for ac_exec_ext in '' $ac_executable_extensions; do
14243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14244 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14254 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14255 if test -n "$ac_ct_OTOOL64"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14257 $as_echo "$ac_ct_OTOOL64" >&6; }
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14260 $as_echo "no
" >&6; }
14263 if test "x
$ac_ct_OTOOL64" = x; then
14266 case $cross_compiling:$ac_tool_warned in
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14269 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14270 ac_tool_warned=yes ;;
14272 OTOOL64=$ac_ct_OTOOL64
14275 OTOOL64="$ac_cv_prog_OTOOL64"
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14305 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14306 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14307 $as_echo_n "(cached
) " >&6
14309 lt_cv_apple_cc_single_mod=no
14310 if test -z "${LT_MULTI_MODULE}"; then
14311 # By default we will add the -single_module flag. You can override
14312 # by either setting the environment variable LT_MULTI_MODULE
14313 # non-empty at configure time, or by adding -multi_module to the
14315 rm -rf libconftest.dylib*
14316 echo "int foo
(void
){return 1;}" > conftest.c
14317 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14318 -dynamiclib -Wl,-single_module conftest.c
" >&5
14319 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14320 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14322 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14323 lt_cv_apple_cc_single_mod=yes
14325 cat conftest.err >&5
14327 rm -rf libconftest.dylib*
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14332 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14334 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14335 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14336 $as_echo_n "(cached
) " >&6
14338 lt_cv_ld_exported_symbols_list=no
14339 save_LDFLAGS=$LDFLAGS
14340 echo "_main
" > conftest.sym
14341 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14353 if ac_fn_c_try_link "$LINENO"; then :
14354 lt_cv_ld_exported_symbols_list=yes
14356 lt_cv_ld_exported_symbols_list=no
14358 rm -f core conftest.err conftest.$ac_objext \
14359 conftest$ac_exeext conftest.$ac_ext
14360 LDFLAGS="$save_LDFLAGS"
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14364 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14366 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14367 if test "${lt_cv_ld_force_load+set}" = set; then :
14368 $as_echo_n "(cached
) " >&6
14370 lt_cv_ld_force_load=no
14371 cat > conftest.c << _LT_EOF
14372 int forced_loaded() { return 2;}
14374 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14375 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14376 echo "$AR cru libconftest.a conftest.o
" >&5
14377 $AR cru libconftest.a conftest.o 2>&5
14378 cat > conftest.c << _LT_EOF
14379 int main() { return 0;}
14381 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14382 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14384 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14385 lt_cv_ld_force_load=yes
14387 cat conftest.err >&5
14389 rm -f conftest.err libconftest.a conftest conftest.c
14390 rm -rf conftest.dSYM
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14394 $as_echo "$lt_cv_ld_force_load" >&6; }
14396 rhapsody* | darwin1.[012])
14397 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14399 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14400 darwin*) # darwin 5.x on
14401 # if running on 10.5 or later, the deployment target defaults
14402 # to the OS version, if on x86, and 10.4, the deployment
14403 # target defaults to 10.4. Don't you love it?
14404 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14405 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14406 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14410 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14414 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14415 _lt_dar_single_mod='$single_module'
14417 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14418 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14420 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14422 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14423 _lt_dsymutil='~$DSYMUTIL $lib || :'
14430 for ac_header in dlfcn.h
14432 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14433 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14434 cat >>confdefs.h <<_ACEOF
14435 #define HAVE_DLFCN_H 1
14452 enable_win32_dll=no
14455 # Check whether --enable-shared was given.
14456 if test "${enable_shared+set}" = set; then :
14457 enableval=$enable_shared; p=${PACKAGE-default}
14459 yes) enable_shared=yes ;;
14460 no) enable_shared=no ;;
14463 # Look at the argument we got. We use all the common list separators.
14464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14465 for pkg in $enableval; do
14467 if test "X
$pkg" = "X
$p"; then
14486 # Check whether --enable-static was given.
14487 if test "${enable_static+set}" = set; then :
14488 enableval=$enable_static; p=${PACKAGE-default}
14490 yes) enable_static=yes ;;
14491 no) enable_static=no ;;
14494 # Look at the argument we got. We use all the common list separators.
14495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14496 for pkg in $enableval; do
14498 if test "X
$pkg" = "X
$p"; then
14518 # Check whether --with-pic was given.
14519 if test "${with_pic+set}" = set; then :
14520 withval=$with_pic; pic_mode="$withval"
14526 test -z "$pic_mode" && pic_mode=default
14534 # Check whether --enable-fast-install was given.
14535 if test "${enable_fast_install+set}" = set; then :
14536 enableval=$enable_fast_install; p=${PACKAGE-default}
14538 yes) enable_fast_install=yes ;;
14539 no) enable_fast_install=no ;;
14541 enable_fast_install=no
14542 # Look at the argument we got. We use all the common list separators.
14543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14544 for pkg in $enableval; do
14546 if test "X
$pkg" = "X
$p"; then
14547 enable_fast_install=yes
14554 enable_fast_install=yes
14567 # This can be used to rebuild libtool when needed
14568 LIBTOOL_DEPS="$ltmain"
14570 # Always use our own libtool.
14571 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14598 test -z "$LN_S" && LN_S="ln -s"
14613 if test -n "${ZSH_VERSION+set}" ; then
14614 setopt NO_GLOB_SUBST
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14618 $as_echo_n "checking
for objdir...
" >&6; }
14619 if test "${lt_cv_objdir+set}" = set; then :
14620 $as_echo_n "(cached
) " >&6
14622 rm -f .libs 2>/dev/null
14623 mkdir .libs 2>/dev/null
14624 if test -d .libs; then
14627 # MS-DOS does not allow filenames that begin with a dot.
14630 rmdir .libs 2>/dev/null
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14633 $as_echo "$lt_cv_objdir" >&6; }
14634 objdir=$lt_cv_objdir
14640 cat >>confdefs.h <<_ACEOF
14641 #define LT_OBJDIR "$lt_cv_objdir/"
14649 # AIX sometimes has problems with the GCC collect2 program. For some
14650 # reason, if we set the COLLECT_NAMES environment variable, the problems
14651 # vanish in a puff of smoke.
14652 if test "X
${COLLECT_NAMES+set}" != Xset; then
14654 export COLLECT_NAMES
14659 # Global variables:
14661 can_build_shared=yes
14663 # All known linkers require a `.a' archive for static linking (except MSVC,
14664 # which needs '.lib').
14667 with_gnu_ld="$lt_cv_prog_gnu_ld"
14670 old_CFLAGS="$CFLAGS"
14672 # Set sane defaults for various variables
14673 test -z "$CC" && CC=cc
14674 test -z "$LTCC" && LTCC=$CC
14675 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14676 test -z "$LD" && LD=ld
14677 test -z "$ac_objext" && ac_objext=o
14679 for cc_temp in $compiler""; do
14681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14687 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14690 # Only perform the check for file, if the check method requires it
14691 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14692 case $deplibs_check_method in
14694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14696 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14698 $as_echo_n "(cached
) " >&6
14702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14705 lt_save_MAGIC_CMD="$MAGIC_CMD"
14706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14707 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14708 for ac_dir in $ac_dummy; do
14710 test -z "$ac_dir" && ac_dir=.
14711 if test -f $ac_dir/${ac_tool_prefix}file; then
14712 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14713 if test -n "$file_magic_test_file"; then
14714 case $deplibs_check_method in
14716 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14717 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14718 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14719 $EGREP "$file_magic_regex" > /dev/null; then
14724 *** Warning: the command libtool uses to detect shared libraries,
14725 *** $file_magic_cmd, produces output that libtool cannot recognize.
14726 *** The result is that libtool may fail to recognize shared libraries
14727 *** as such. This will affect the creation of libtool libraries that
14728 *** depend on shared libraries, but programs linked with such libtool
14729 *** libraries will work regardless of this problem. Nevertheless, you
14730 *** may want to report the problem to your system manager and/or to
14731 *** bug-libtool@gnu.org
14741 MAGIC_CMD="$lt_save_MAGIC_CMD"
14746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14747 if test -n "$MAGIC_CMD"; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14749 $as_echo "$MAGIC_CMD" >&6; }
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14752 $as_echo "no
" >&6; }
14759 if test -z "$lt_cv_path_MAGIC_CMD"; then
14760 if test -n "$ac_tool_prefix"; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14762 $as_echo_n "checking
for file...
" >&6; }
14763 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14764 $as_echo_n "(cached
) " >&6
14768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14771 lt_save_MAGIC_CMD="$MAGIC_CMD"
14772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14773 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14774 for ac_dir in $ac_dummy; do
14776 test -z "$ac_dir" && ac_dir=.
14777 if test -f $ac_dir/file; then
14778 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14779 if test -n "$file_magic_test_file"; then
14780 case $deplibs_check_method in
14782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14785 $EGREP "$file_magic_regex" > /dev/null; then
14790 *** Warning: the command libtool uses to detect shared libraries,
14791 *** $file_magic_cmd, produces output that libtool cannot recognize.
14792 *** The result is that libtool may fail to recognize shared libraries
14793 *** as such. This will affect the creation of libtool libraries that
14794 *** depend on shared libraries, but programs linked with such libtool
14795 *** libraries will work regardless of this problem. Nevertheless, you
14796 *** may want to report the problem to your system manager and/or to
14797 *** bug-libtool@gnu.org
14807 MAGIC_CMD="$lt_save_MAGIC_CMD"
14812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14813 if test -n "$MAGIC_CMD"; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14815 $as_echo "$MAGIC_CMD" >&6; }
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14818 $as_echo "no
" >&6; }
14831 # Use C for the default configuration in the libtool script
14835 ac_cpp='$CPP $CPPFLAGS'
14836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14841 # Source file extension for C test sources.
14844 # Object file extension for compiled C test sources.
14848 # Code to be used in simple compile tests
14849 lt_simple_compile_test_code="int some_variable
= 0;"
14851 # Code to be used in simple link tests
14852 lt_simple_link_test_code='int main(){return(0);}'
14860 # If no C compiler was specified, use CC.
14863 # If no C compiler flags were specified, use CFLAGS.
14864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14866 # Allow CC to be a program name with arguments.
14869 # Save the default compiler, since it gets overwritten when the other
14870 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14871 compiler_DEFAULT=$CC
14873 # save warnings/boilerplate of simple test code
14874 ac_outfile=conftest.$ac_objext
14875 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14877 _lt_compiler_boilerplate=`cat conftest.err`
14880 ac_outfile=conftest.$ac_objext
14881 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14882 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14883 _lt_linker_boilerplate=`cat conftest.err`
14888 ## There is no encapsulation within the following macros, do not change
14889 ## the running order or otherwise move them around unless you know exactly
14890 ## what you are doing...
14891 if test -n "$compiler"; then
14893 lt_prog_compiler_no_builtin_flag=
14895 if test "$GCC" = yes; then
14896 case $cc_basename in
14898 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14900 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14904 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14905 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14906 $as_echo_n "(cached
) " >&6
14908 lt_cv_prog_compiler_rtti_exceptions=no
14909 ac_outfile=conftest.$ac_objext
14910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14911 lt_compiler_flag="-fno-rtti -fno-exceptions"
14912 # Insert the option either (1) after the last *FLAGS variable, or
14913 # (2) before a word containing "conftest.
", or (3) at the end.
14914 # Note that $ac_compile itself does not contain backslashes and begins
14915 # with a dollar sign (not a hyphen), so the echo should work correctly.
14916 # The option is referenced via a variable to avoid confusing sed.
14917 lt_compile=`echo "$ac_compile" | $SED \
14918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14920 -e 's:$: $lt_compiler_flag:'`
14921 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14922 (eval "$lt_compile" 2>conftest.err)
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14926 if (exit $ac_status) && test -s "$ac_outfile"; then
14927 # The compiler can only warn and ignore the option if not recognized
14928 # So say no if there are warnings other than the usual output.
14929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14932 lt_cv_prog_compiler_rtti_exceptions=yes
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14939 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14941 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14942 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14954 lt_prog_compiler_wl=
14955 lt_prog_compiler_pic=
14956 lt_prog_compiler_static=
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14959 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14961 if test "$GCC" = yes; then
14962 lt_prog_compiler_wl='-Wl,'
14963 lt_prog_compiler_static='-static'
14967 # All AIX code is PIC.
14968 if test "$host_cpu" = ia64; then
14969 # AIX 5 now supports IA64 processor
14970 lt_prog_compiler_static='-Bstatic'
14977 # see comment about AmigaOS4 .so support
14978 lt_prog_compiler_pic='-fPIC'
14981 # FIXME: we need at least 68020 code to build shared libraries, but
14982 # adding the `-m68020' flag to GCC prevents building anything better,
14984 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14989 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14990 # PIC is the default for these OSes.
14993 mingw* | cygwin* | pw32* | os2* | cegcc*)
14994 # This hack is so that the source file can tell whether it is being
14995 # built for inclusion in a dll (and should export symbols for example).
14996 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14997 # (--disable-auto-import) libraries
14998 lt_prog_compiler_pic='-DDLL_EXPORT'
15001 darwin* | rhapsody*)
15002 # PIC is the default on this platform
15003 # Common symbols not allowed in MH_DYLIB files
15004 lt_prog_compiler_pic='-fno-common'
15008 # PIC is the default for Haiku.
15009 # The "-static" flag exists, but is broken.
15010 lt_prog_compiler_static=
15014 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15015 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15016 # sets the default TLS model and affects inlining.
15022 lt_prog_compiler_pic='-fPIC'
15028 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15029 # Instead, we relocate shared libraries at runtime.
15033 # Just because we use GCC doesn't mean we suddenly get shared libraries
15034 # on systems that don't support them.
15035 lt_prog_compiler_can_build_shared=no
15040 # QNX uses GNU C++, but need to define -shared option too, otherwise
15041 # it will coredump.
15042 lt_prog_compiler_pic='-fPIC -shared'
15046 if test -d /usr/nec; then
15047 lt_prog_compiler_pic=-Kconform_pic
15052 lt_prog_compiler_pic='-fPIC'
15056 case $cc_basename in
15057 nvcc*) # Cuda Compiler Driver 2.2
15058 lt_prog_compiler_wl='-Xlinker '
15059 lt_prog_compiler_pic='-Xcompiler -fPIC'
15063 # PORTME Check for flag to pass linker flags through the system compiler.
15066 lt_prog_compiler_wl='-Wl,'
15067 if test "$host_cpu" = ia64; then
15068 # AIX 5 now supports IA64 processor
15069 lt_prog_compiler_static='-Bstatic'
15071 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15075 mingw* | cygwin* | pw32* | os2* | cegcc*)
15076 # This hack is so that the source file can tell whether it is being
15077 # built for inclusion in a dll (and should export symbols for example).
15078 lt_prog_compiler_pic='-DDLL_EXPORT'
15081 hpux9* | hpux10* | hpux11*)
15082 lt_prog_compiler_wl='-Wl,'
15083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15084 # not for PA HP-UX.
15090 lt_prog_compiler_pic='+Z'
15093 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15094 lt_prog_compiler_static='${wl}-a ${wl}archive'
15097 irix5* | irix6* | nonstopux*)
15098 lt_prog_compiler_wl='-Wl,'
15099 # PIC (with -KPIC) is the default.
15100 lt_prog_compiler_static='-non_shared'
15103 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15104 case $cc_basename in
15105 # old Intel for x86_64 which still supported -KPIC.
15107 lt_prog_compiler_wl='-Wl,'
15108 lt_prog_compiler_pic='-KPIC'
15109 lt_prog_compiler_static='-static'
15111 # icc used to be incompatible with GCC.
15112 # ICC 10 doesn't accept -KPIC any more.
15114 lt_prog_compiler_wl='-Wl,'
15115 lt_prog_compiler_pic='-fPIC'
15116 lt_prog_compiler_static='-static'
15118 # Lahey Fortran 8.1.
15120 lt_prog_compiler_wl='-Wl,'
15121 lt_prog_compiler_pic='--shared'
15122 lt_prog_compiler_static='--static'
15124 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15125 # Portland Group compilers (*not* the Pentium gcc compiler,
15126 # which looks to be a dead project)
15127 lt_prog_compiler_wl='-Wl,'
15128 lt_prog_compiler_pic='-fpic'
15129 lt_prog_compiler_static='-Bstatic'
15132 lt_prog_compiler_wl='-Wl,'
15133 # All Alpha code is PIC.
15134 lt_prog_compiler_static='-non_shared'
15136 xl* | bgxl* | bgf* | mpixl*)
15137 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15138 lt_prog_compiler_wl='-Wl,'
15139 lt_prog_compiler_pic='-qpic'
15140 lt_prog_compiler_static='-qstaticlink'
15143 case `$CC -V 2>&1 | sed 5q` in
15144 *Sun\ F* | *Sun*Fortran*)
15145 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15146 lt_prog_compiler_pic='-KPIC'
15147 lt_prog_compiler_static='-Bstatic'
15148 lt_prog_compiler_wl=''
15152 lt_prog_compiler_pic='-KPIC'
15153 lt_prog_compiler_static='-Bstatic'
15154 lt_prog_compiler_wl='-Wl,'
15162 lt_prog_compiler_pic='-KPIC'
15163 lt_prog_compiler_static='-Bstatic'
15167 # QNX uses GNU C++, but need to define -shared option too, otherwise
15168 # it will coredump.
15169 lt_prog_compiler_pic='-fPIC -shared'
15172 osf3* | osf4* | osf5*)
15173 lt_prog_compiler_wl='-Wl,'
15174 # All OSF/1 code is PIC.
15175 lt_prog_compiler_static='-non_shared'
15179 lt_prog_compiler_static='-non_shared'
15183 lt_prog_compiler_pic='-KPIC'
15184 lt_prog_compiler_static='-Bstatic'
15185 case $cc_basename in
15186 f77* | f90* | f95*)
15187 lt_prog_compiler_wl='-Qoption ld ';;
15189 lt_prog_compiler_wl='-Wl,';;
15194 lt_prog_compiler_wl='-Qoption ld '
15195 lt_prog_compiler_pic='-PIC'
15196 lt_prog_compiler_static='-Bstatic'
15199 sysv4 | sysv4.2uw2* | sysv4.3*)
15200 lt_prog_compiler_wl='-Wl,'
15201 lt_prog_compiler_pic='-KPIC'
15202 lt_prog_compiler_static='-Bstatic'
15206 if test -d /usr/nec ;then
15207 lt_prog_compiler_pic='-Kconform_pic'
15208 lt_prog_compiler_static='-Bstatic'
15212 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15213 lt_prog_compiler_wl='-Wl,'
15214 lt_prog_compiler_pic='-KPIC'
15215 lt_prog_compiler_static='-Bstatic'
15219 lt_prog_compiler_wl='-Wl,'
15220 lt_prog_compiler_can_build_shared=no
15224 lt_prog_compiler_pic='-pic'
15225 lt_prog_compiler_static='-Bstatic'
15229 lt_prog_compiler_can_build_shared=no
15235 # For platforms which do not support PIC, -DPIC is meaningless:
15237 lt_prog_compiler_pic=
15240 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15244 $as_echo "$lt_prog_compiler_pic" >&6; }
15252 # Check to make sure the PIC flag actually works.
15254 if test -n "$lt_prog_compiler_pic"; then
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15256 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15257 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15258 $as_echo_n "(cached
) " >&6
15260 lt_cv_prog_compiler_pic_works=no
15261 ac_outfile=conftest.$ac_objext
15262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15263 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15264 # Insert the option either (1) after the last *FLAGS variable, or
15265 # (2) before a word containing "conftest.
", or (3) at the end.
15266 # Note that $ac_compile itself does not contain backslashes and begins
15267 # with a dollar sign (not a hyphen), so the echo should work correctly.
15268 # The option is referenced via a variable to avoid confusing sed.
15269 lt_compile=`echo "$ac_compile" | $SED \
15270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272 -e 's:$: $lt_compiler_flag:'`
15273 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15274 (eval "$lt_compile" 2>conftest.err)
15276 cat conftest.err >&5
15277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15278 if (exit $ac_status) && test -s "$ac_outfile"; then
15279 # The compiler can only warn and ignore the option if not recognized
15280 # So say no if there are warnings other than the usual output.
15281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15284 lt_cv_prog_compiler_pic_works=yes
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15291 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15293 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15294 case $lt_prog_compiler_pic in
15296 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15299 lt_prog_compiler_pic=
15300 lt_prog_compiler_can_build_shared=no
15311 # Check to make sure the static flag actually works.
15313 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15315 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15316 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15317 $as_echo_n "(cached
) " >&6
15319 lt_cv_prog_compiler_static_works=no
15320 save_LDFLAGS="$LDFLAGS"
15321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15322 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15324 # The linker can only warn and ignore the option if not recognized
15325 # So say no if there are warnings
15326 if test -s conftest.err; then
15327 # Append any errors to the config.log.
15328 cat conftest.err 1>&5
15329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15331 if diff conftest.exp conftest.er2 >/dev/null; then
15332 lt_cv_prog_compiler_static_works=yes
15335 lt_cv_prog_compiler_static_works=yes
15339 LDFLAGS="$save_LDFLAGS"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15343 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15345 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15348 lt_prog_compiler_static=
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15358 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15359 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15360 $as_echo_n "(cached
) " >&6
15362 lt_cv_prog_compiler_c_o=no
15363 $RM -r conftest 2>/dev/null
15367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15369 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15370 # Insert the option either (1) after the last *FLAGS variable, or
15371 # (2) before a word containing "conftest.
", or (3) at the end.
15372 # Note that $ac_compile itself does not contain backslashes and begins
15373 # with a dollar sign (not a hyphen), so the echo should work correctly.
15374 lt_compile=`echo "$ac_compile" | $SED \
15375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15377 -e 's:$: $lt_compiler_flag:'`
15378 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15379 (eval "$lt_compile" 2>out/conftest.err)
15381 cat out/conftest.err >&5
15382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15385 # The compiler can only warn and ignore the option if not recognized
15386 # So say no if there are warnings
15387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15390 lt_cv_prog_compiler_c_o=yes
15395 # SGI C++ compiler will create directory out/ii_files/ for
15396 # template instantiation
15397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15398 $RM out/* && rmdir out
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15405 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15413 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15414 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15415 $as_echo_n "(cached
) " >&6
15417 lt_cv_prog_compiler_c_o=no
15418 $RM -r conftest 2>/dev/null
15422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15424 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15425 # Insert the option either (1) after the last *FLAGS variable, or
15426 # (2) before a word containing "conftest.
", or (3) at the end.
15427 # Note that $ac_compile itself does not contain backslashes and begins
15428 # with a dollar sign (not a hyphen), so the echo should work correctly.
15429 lt_compile=`echo "$ac_compile" | $SED \
15430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15432 -e 's:$: $lt_compiler_flag:'`
15433 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15434 (eval "$lt_compile" 2>out/conftest.err)
15436 cat out/conftest.err >&5
15437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15440 # The compiler can only warn and ignore the option if not recognized
15441 # So say no if there are warnings
15442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15445 lt_cv_prog_compiler_c_o=yes
15450 # SGI C++ compiler will create directory out/ii_files/ for
15451 # template instantiation
15452 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15453 $RM out/* && rmdir out
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15460 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15465 hard_links="nottested
"
15466 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15467 # do not overwrite the value of need_locks provided by the user
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15469 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15474 ln conftest.a conftest.b 2>&5 || hard_links=no
15475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15477 $as_echo "$hard_links" >&6; }
15478 if test "$hard_links" = no; then
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15480 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15493 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15496 allow_undefined_flag=
15497 always_export_symbols=no
15499 archive_expsym_cmds=
15500 compiler_needs_object=no
15501 enable_shared_with_static_runtimes=no
15502 export_dynamic_flag_spec=
15503 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15504 hardcode_automatic=no
15506 hardcode_direct_absolute=no
15507 hardcode_libdir_flag_spec=
15508 hardcode_libdir_flag_spec_ld=
15509 hardcode_libdir_separator=
15510 hardcode_minus_L=no
15511 hardcode_shlibpath_var=unsupported
15513 link_all_deplibs=unknown
15515 module_expsym_cmds=
15516 old_archive_from_new_cmds=
15517 old_archive_from_expsyms_cmds=
15518 thread_safe_flag_spec=
15519 whole_archive_flag_spec=
15520 # include_expsyms should be a list of space-separated symbols to be *always*
15521 # included in the symbol list
15523 # exclude_expsyms can be an extended regexp of symbols to exclude
15524 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15525 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15526 # as well as any symbol that contains `d'.
15527 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15528 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15529 # platforms (ab)use it in PIC code, but their linkers get confused if
15530 # the symbol is explicitly referenced. Since portable code cannot
15531 # rely on this symbol name, it's probably fine to never include it in
15532 # preloaded symbol tables.
15533 # Exclude shared library initialization/finalization symbols.
15534 extract_expsyms_cmds=
15537 cygwin* | mingw* | pw32* | cegcc*)
15538 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15539 # When not using gcc, we currently assume that we are using
15540 # Microsoft Visual C++.
15541 if test "$GCC" != yes; then
15546 # we just hope/assume this is gcc and not c89 (= MSVC++)
15556 # On some targets, GNU ld is compatible enough with the native linker
15557 # that we're better off using the native interface for both.
15558 lt_use_gnu_ld_interface=no
15559 if test "$with_gnu_ld" = yes; then
15562 # The AIX port of GNU ld has always aspired to compatibility
15563 # with the native linker. However, as the warning in the GNU ld
15564 # block says, versions before 2.19.5* couldn't really create working
15565 # shared libraries, regardless of the interface used.
15566 case `$LD -v 2>&1` in
15567 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15568 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15569 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15571 lt_use_gnu_ld_interface=yes
15576 lt_use_gnu_ld_interface=yes
15581 if test "$lt_use_gnu_ld_interface" = yes; then
15582 # If archive_cmds runs LD, not CC, wlarc should be empty
15585 # Set some defaults for GNU ld with shared library support. These
15586 # are reset later if shared libraries are not supported. Putting them
15587 # here allows them to be overridden if necessary.
15588 runpath_var=LD_RUN_PATH
15589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15590 export_dynamic_flag_spec='${wl}--export-dynamic'
15591 # ancient GNU ld didn't support --whole-archive et. al.
15592 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15593 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15595 whole_archive_flag_spec=
15597 supports_anon_versioning=no
15598 case `$LD -v 2>&1` in
15599 *GNU\ gold*) supports_anon_versioning=yes ;;
15600 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15603 *\ 2.11.*) ;; # other 2.11 versions
15604 *) supports_anon_versioning=yes ;;
15607 # See if GNU ld supports shared libraries.
15610 # On AIX/PPC, the GNU linker is very broken
15611 if test "$host_cpu" != ia64; then
15615 *** Warning: the GNU linker, at least up to release 2.19, is reported
15616 *** to be unable to reliably create shared libraries on AIX.
15617 *** Therefore, libtool is disabling shared libraries support. If you
15618 *** really care for shared libraries, you may want to install binutils
15619 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15620 *** You will then need to restart the configuration process.
15629 # see comment about AmigaOS4 .so support
15630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15631 archive_expsym_cmds=''
15634 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)'
15635 hardcode_libdir_flag_spec
='-L$libdir'
15636 hardcode_minus_L
=yes
15642 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15643 allow_undefined_flag
=unsupported
15644 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15645 # support --undefined. This deserves some investigation. FIXME
15646 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15652 cygwin
* | mingw
* | pw32
* | cegcc
*)
15653 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15654 # as there is no search path for DLLs.
15655 hardcode_libdir_flag_spec
='-L$libdir'
15656 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15657 allow_undefined_flag
=unsupported
15658 always_export_symbols
=no
15659 enable_shared_with_static_runtimes
=yes
15660 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15662 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15663 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15664 # If the export-symbols file already is a .def file (1st line
15665 # is EXPORTS), use it as is; otherwise, prepend...
15666 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15667 cp $export_symbols $output_objdir/$soname.def;
15669 echo EXPORTS > $output_objdir/$soname.def;
15670 cat $export_symbols >> $output_objdir/$soname.def;
15672 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15679 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15680 link_all_deplibs
=yes
15685 hardcode_shlibpath_var
=no
15686 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15687 export_dynamic_flag_spec
='${wl}-E'
15688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15689 # Instead, shared libraries are loaded at an image base (0x10000000 by
15690 # default) and relocated if they conflict, which is a slow very memory
15691 # consuming and fragmenting process. To avoid this, we pick a random,
15692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15694 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15695 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'
15698 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15700 if test "$host_os" = linux-dietlibc
; then
15701 case $cc_basename in
15702 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15705 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15706 && test "$tmp_diet" = no
15709 tmp_sharedflag
='-shared'
15710 case $cc_basename,$host_cpu in
15711 pgcc
*) # Portland Group C compiler
15712 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'
15713 tmp_addflag
=' $pic_flag'
15715 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15716 # Portland Group f77 and f90 compilers
15717 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'
15718 tmp_addflag
=' $pic_flag -Mnomain' ;;
15719 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15720 tmp_addflag
=' -i_dynamic' ;;
15721 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15722 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15723 ifc
* | ifort
*) # Intel Fortran compiler
15724 tmp_addflag
=' -nofor_main' ;;
15725 lf95
*) # Lahey Fortran 8.1
15726 whole_archive_flag_spec
=
15727 tmp_sharedflag
='--shared' ;;
15728 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15729 tmp_sharedflag
='-qmkshrobj'
15731 nvcc
*) # Cuda Compiler Driver 2.2
15732 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'
15733 compiler_needs_object
=yes
15736 case `$CC -V 2>&1 | sed 5q` in
15737 *Sun\ C
*) # Sun C 5.9
15738 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'
15739 compiler_needs_object
=yes
15740 tmp_sharedflag
='-G' ;;
15741 *Sun\ F
*) # Sun Fortran 8.3
15742 tmp_sharedflag
='-G' ;;
15744 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15746 if test "x$supports_anon_versioning" = xyes
; then
15747 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15749 echo "local: *; };" >> $output_objdir/$libname.ver~
15750 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15753 case $cc_basename in
15754 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15755 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15756 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15757 hardcode_libdir_flag_spec
=
15758 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15759 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15760 if test "x$supports_anon_versioning" = xyes
; then
15761 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15763 echo "local: *; };" >> $output_objdir/$libname.ver~
15764 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15774 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15775 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15778 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15779 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15784 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15789 *** create shared libraries on Solaris systems. Therefore, libtool
15790 *** is disabling shared libraries support. We urge you to upgrade GNU
15791 *** binutils to release 2.9.1 or newer. Another option is to modify
15792 *** your PATH or compiler configuration so that the native linker is
15793 *** used, and then restart.
15796 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15797 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15798 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15804 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15805 case `$LD -v 2>&1` in
15806 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15811 *** reliably create shared libraries on SCO systems. Therefore, libtool
15812 *** is disabling shared libraries support. We urge you to upgrade GNU
15813 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15814 *** your PATH or compiler configuration so that the native linker is
15815 *** used, and then restart.
15820 # For security reasons, it is highly recommended that you always
15821 # use absolute paths for naming shared libraries, and exclude the
15822 # DT_RUNPATH tag from executables and libraries. But doing so
15823 # requires that you compile everything twice, which is a pain.
15824 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15825 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15826 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15827 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15836 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15838 hardcode_direct
=yes
15839 hardcode_shlibpath_var
=no
15843 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15844 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15845 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15852 if test "$ld_shlibs" = no
; then
15854 hardcode_libdir_flag_spec
=
15855 export_dynamic_flag_spec
=
15856 whole_archive_flag_spec
=
15859 # PORTME fill in a description of your system's linker (not GNU ld)
15862 allow_undefined_flag
=unsupported
15863 always_export_symbols
=yes
15864 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'
15865 # Note: this linker hardcodes the directories in LIBPATH if there
15866 # are no directories specified by -L.
15867 hardcode_minus_L
=yes
15868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15869 # Neither direct hardcoding nor static linking is supported with a
15871 hardcode_direct
=unsupported
15876 if test "$host_cpu" = ia64
; then
15877 # On IA64, the linker does run time linking by default, so we don't
15878 # have to do anything special.
15879 aix_use_runtimelinking
=no
15880 exp_sym_flag
='-Bexport'
15883 # If we're using GNU nm, then we don't want the "-C" option.
15884 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15885 # Also, AIX nm treats weak defined symbols like other global
15886 # defined symbols, whereas GNU nm marks them as "W".
15887 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15888 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'
15890 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'
15892 aix_use_runtimelinking
=no
15894 # Test if we are trying to use run time linking or normal
15895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15896 # need to do runtime linking.
15897 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15898 for ld_flag
in $LDFLAGS; do
15899 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15900 aix_use_runtimelinking
=yes
15907 exp_sym_flag
='-bexport'
15908 no_entry_flag
='-bnoentry'
15911 # When large executables or shared objects are built, AIX ld can
15912 # have problems creating the table of contents. If linking a library
15913 # or program results in "error TOC overflow" add -mminimal-toc to
15914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15918 hardcode_direct
=yes
15919 hardcode_direct_absolute
=yes
15920 hardcode_libdir_separator
=':'
15921 link_all_deplibs
=yes
15922 file_list_spec
='${wl}-f,'
15924 if test "$GCC" = yes; then
15925 case $host_os in aix4.
[012]|aix4.
[012].
*)
15926 # We only want to do this on AIX 4.2 and lower, the check
15927 # below for broken collect2 doesn't work under 4.3+
15928 collect2name
=`${CC} -print-prog-name=collect2`
15929 if test -f "$collect2name" &&
15930 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15932 # We have reworked collect2
15935 # We have old collect2
15936 hardcode_direct
=unsupported
15937 # It fails to find uninstalled libraries when the uninstalled
15938 # path is not listed in the libpath. Setting hardcode_minus_L
15939 # to unsupported forces relinking
15940 hardcode_minus_L
=yes
15941 hardcode_libdir_flag_spec
='-L$libdir'
15942 hardcode_libdir_separator
=
15946 shared_flag
='-shared'
15947 if test "$aix_use_runtimelinking" = yes; then
15948 shared_flag
="$shared_flag "'${wl}-G'
15952 if test "$host_cpu" = ia64
; then
15953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15954 # chokes on -Wl,-G. The following line is correct:
15957 if test "$aix_use_runtimelinking" = yes; then
15958 shared_flag
='${wl}-G'
15960 shared_flag
='${wl}-bM:SRE'
15965 export_dynamic_flag_spec
='${wl}-bexpall'
15966 # It seems that -bexpall does not export symbols beginning with
15967 # underscore (_), so it is better to generate a list of symbols to export.
15968 always_export_symbols
=yes
15969 if test "$aix_use_runtimelinking" = yes; then
15970 # Warning - without using the other runtime loading flags (-brtl),
15971 # -berok will link without error, but may produce a broken library.
15972 allow_undefined_flag
='-berok'
15973 # Determine the default libpath from the value encoded in an
15974 # empty executable.
15975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15986 if ac_fn_c_try_link
"$LINENO"; then :
15988 lt_aix_libpath_sed
='
15989 /Import File Strings/,/^$/ {
15995 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15996 # Check for a 64-bit object if we didn't find anything.
15997 if test -z "$aix_libpath"; then
15998 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16001 rm -f core conftest.err conftest.
$ac_objext \
16002 conftest
$ac_exeext conftest.
$ac_ext
16003 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16005 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16006 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"
16008 if test "$host_cpu" = ia64
; then
16009 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16010 allow_undefined_flag
="-z nodefs"
16011 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"
16013 # Determine the default libpath from the value encoded in an
16014 # empty executable.
16015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16026 if ac_fn_c_try_link
"$LINENO"; then :
16028 lt_aix_libpath_sed
='
16029 /Import File Strings/,/^$/ {
16035 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16036 # Check for a 64-bit object if we didn't find anything.
16037 if test -z "$aix_libpath"; then
16038 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16041 rm -f core conftest.err conftest.
$ac_objext \
16042 conftest
$ac_exeext conftest.
$ac_ext
16043 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16045 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16046 # Warning - without using the other run time loading flags,
16047 # -berok will link without error, but may produce a broken library.
16048 no_undefined_flag
=' ${wl}-bernotok'
16049 allow_undefined_flag
=' ${wl}-berok'
16050 if test "$with_gnu_ld" = yes; then
16051 # We only use this code for GNU lds that support --whole-archive.
16052 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16054 # Exported symbols can be pulled into shared objects from archives
16055 whole_archive_flag_spec
='$convenience'
16057 archive_cmds_need_lc
=yes
16058 # This is similar to how AIX traditionally builds its shared libraries.
16059 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'
16067 # see comment about AmigaOS4 .so support
16068 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16069 archive_expsym_cmds
=''
16072 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)'
16073 hardcode_libdir_flag_spec
='-L$libdir'
16074 hardcode_minus_L
=yes
16080 export_dynamic_flag_spec
=-rdynamic
16083 cygwin
* | mingw
* | pw32
* | cegcc
*)
16084 # When not using gcc, we currently assume that we are using
16085 # Microsoft Visual C++.
16086 # hardcode_libdir_flag_spec is actually meaningless, as there is
16087 # no search path for DLLs.
16088 hardcode_libdir_flag_spec
=' '
16089 allow_undefined_flag
=unsupported
16090 # Tell ltmain to make .lib files, not .a files.
16092 # Tell ltmain to make .dll files, not .so files.
16094 # FIXME: Setting linknames here is a bad hack.
16095 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16096 # The linker will automatically build a .lib file if we build a DLL.
16097 old_archive_from_new_cmds
='true'
16098 # FIXME: Should let the user specify the lib program.
16099 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16100 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16101 enable_shared_with_static_runtimes
=yes
16104 darwin
* | rhapsody
*)
16107 archive_cmds_need_lc
=no
16109 hardcode_automatic
=yes
16110 hardcode_shlibpath_var
=unsupported
16111 if test "$lt_cv_ld_force_load" = "yes"; then
16112 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\"`'
16114 whole_archive_flag_spec
=''
16116 link_all_deplibs
=yes
16117 allow_undefined_flag
="$_lt_dar_allow_undefined"
16118 case $cc_basename in
16119 ifort
*) _lt_dar_can_shared
=yes ;;
16120 *) _lt_dar_can_shared
=$GCC ;;
16122 if test "$_lt_dar_can_shared" = "yes"; then
16123 output_verbose_link_cmd
=func_echo_all
16124 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16125 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16126 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}"
16127 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}"
16136 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137 hardcode_libdir_flag_spec
='-L$libdir'
16138 hardcode_shlibpath_var
=no
16141 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16142 # support. Future versions do this automatically, but an explicit c++rt0.o
16143 # does not break anything, and helps significantly (at the cost of a little
16146 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16147 hardcode_libdir_flag_spec
='-R$libdir'
16148 hardcode_direct
=yes
16149 hardcode_shlibpath_var
=no
16152 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16154 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16155 hardcode_direct
=yes
16156 hardcode_minus_L
=yes
16157 hardcode_shlibpath_var
=no
16160 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16161 freebsd
* | dragonfly
*)
16162 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16163 hardcode_libdir_flag_spec
='-R$libdir'
16164 hardcode_direct
=yes
16165 hardcode_shlibpath_var
=no
16169 if test "$GCC" = yes; then
16170 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'
16172 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'
16174 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16175 hardcode_libdir_separator
=:
16176 hardcode_direct
=yes
16178 # hardcode_minus_L: Not really in the search PATH,
16179 # but as the default location of the library.
16180 hardcode_minus_L
=yes
16181 export_dynamic_flag_spec
='${wl}-E'
16185 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16186 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16188 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16190 if test "$with_gnu_ld" = no
; then
16191 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16192 hardcode_libdir_flag_spec_ld
='+b $libdir'
16193 hardcode_libdir_separator
=:
16194 hardcode_direct
=yes
16195 hardcode_direct_absolute
=yes
16196 export_dynamic_flag_spec
='${wl}-E'
16197 # hardcode_minus_L: Not really in the search PATH,
16198 # but as the default location of the library.
16199 hardcode_minus_L
=yes
16204 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16207 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16210 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16213 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16219 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16222 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16226 # Older versions of the 11.00 compiler do not understand -b yet
16227 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16229 $as_echo_n "checking if $CC understands -b... " >&6; }
16230 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16231 $as_echo_n "(cached) " >&6
16233 lt_cv_prog_compiler__b
=no
16234 save_LDFLAGS
="$LDFLAGS"
16235 LDFLAGS
="$LDFLAGS -b"
16236 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16237 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16238 # The linker can only warn and ignore the option if not recognized
16239 # So say no if there are warnings
16240 if test -s conftest.err
; then
16241 # Append any errors to the config.log.
16242 cat conftest.err
1>&5
16243 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16244 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16245 if diff conftest.exp conftest.er2
>/dev
/null
; then
16246 lt_cv_prog_compiler__b
=yes
16249 lt_cv_prog_compiler__b
=yes
16253 LDFLAGS
="$save_LDFLAGS"
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16257 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16259 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16260 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16262 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16268 if test "$with_gnu_ld" = no
; then
16269 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16270 hardcode_libdir_separator
=:
16275 hardcode_shlibpath_var
=no
16278 hardcode_direct
=yes
16279 hardcode_direct_absolute
=yes
16280 export_dynamic_flag_spec
='${wl}-E'
16282 # hardcode_minus_L: Not really in the search PATH,
16283 # but as the default location of the library.
16284 hardcode_minus_L
=yes
16290 irix5
* | irix6
* | nonstopux
*)
16291 if test "$GCC" = yes; then
16292 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'
16293 # Try to use the -exported_symbol ld option, if it does not
16294 # work, assume that -exports_file does not work either and
16295 # implicitly export all symbols.
16296 save_LDFLAGS
="$LDFLAGS"
16297 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16302 if ac_fn_c_try_link
"$LINENO"; then :
16303 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'
16306 rm -f core conftest.err conftest.
$ac_objext \
16307 conftest
$ac_exeext conftest.
$ac_ext
16308 LDFLAGS
="$save_LDFLAGS"
16310 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'
16311 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'
16313 archive_cmds_need_lc
='no'
16314 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16315 hardcode_libdir_separator
=:
16317 link_all_deplibs
=yes
16321 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16322 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16324 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16326 hardcode_libdir_flag_spec
='-R$libdir'
16327 hardcode_direct
=yes
16328 hardcode_shlibpath_var
=no
16332 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16333 hardcode_direct
=yes
16334 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16335 hardcode_libdir_separator
=:
16336 hardcode_shlibpath_var
=no
16343 if test -f /usr
/libexec
/ld.so
; then
16344 hardcode_direct
=yes
16345 hardcode_shlibpath_var
=no
16346 hardcode_direct_absolute
=yes
16347 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16348 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16349 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16350 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16351 export_dynamic_flag_spec
='${wl}-E'
16354 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16355 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16356 hardcode_libdir_flag_spec
='-R$libdir'
16359 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16360 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16370 hardcode_libdir_flag_spec
='-L$libdir'
16371 hardcode_minus_L
=yes
16372 allow_undefined_flag
=unsupported
16373 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'
16374 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16378 if test "$GCC" = yes; then
16379 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16380 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'
16382 allow_undefined_flag
=' -expect_unresolved \*'
16383 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'
16385 archive_cmds_need_lc
='no'
16386 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16387 hardcode_libdir_separator
=:
16390 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16391 if test "$GCC" = yes; then
16392 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16393 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'
16394 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16396 allow_undefined_flag
=' -expect_unresolved \*'
16397 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'
16398 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~
16399 $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'
16401 # Both c and cxx compiler support -rpath directly
16402 hardcode_libdir_flag_spec
='-rpath $libdir'
16404 archive_cmds_need_lc
='no'
16405 hardcode_libdir_separator
=:
16409 no_undefined_flag
=' -z defs'
16410 if test "$GCC" = yes; then
16412 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16413 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16414 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16416 case `$CC -V 2>&1` in
16419 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16420 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16421 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16425 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16426 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16427 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16431 hardcode_libdir_flag_spec
='-R$libdir'
16432 hardcode_shlibpath_var
=no
16434 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16436 # The compiler driver will combine and reorder linker options,
16437 # but understands `-z linker_flag'. GCC discards it without `$wl',
16438 # but is careful enough not to reorder.
16439 # Supported since Solaris 2.6 (maybe 2.5.1?)
16440 if test "$GCC" = yes; then
16441 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16443 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16447 link_all_deplibs
=yes
16451 if test "x$host_vendor" = xsequent
; then
16452 # Use $CC to link under sequent, because it throws in some extra .o
16453 # files that make .init and .fini sections work.
16454 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16456 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16458 hardcode_libdir_flag_spec
='-L$libdir'
16459 hardcode_direct
=yes
16460 hardcode_minus_L
=yes
16461 hardcode_shlibpath_var
=no
16465 case $host_vendor in
16467 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468 hardcode_direct
=yes # is this really true???
16471 ## LD is ld it makes a PLAMLIB
16472 ## CC just makes a GrossModule.
16473 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16474 reload_cmds
='$CC -r -o $output$reload_objs'
16478 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16479 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16482 runpath_var
='LD_RUN_PATH'
16483 hardcode_shlibpath_var
=no
16487 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16488 hardcode_shlibpath_var
=no
16489 export_dynamic_flag_spec
='-Bexport'
16493 if test -d /usr
/nec
; then
16494 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_shlibpath_var
=no
16496 runpath_var
=LD_RUN_PATH
16497 hardcode_runpath_var
=yes
16502 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16503 no_undefined_flag
='${wl}-z,text'
16504 archive_cmds_need_lc
=no
16505 hardcode_shlibpath_var
=no
16506 runpath_var
='LD_RUN_PATH'
16508 if test "$GCC" = yes; then
16509 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16510 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16512 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16513 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16517 sysv5
* | sco3.2v5
* | sco5v6
*)
16518 # Note: We can NOT use -z defs as we might desire, because we do not
16519 # link with -lc, and that would cause any symbols used from libc to
16520 # always be unresolved, which means just about no library would
16521 # ever link correctly. If we're not using GNU ld we use -z text
16522 # though, which does catch some bad symbols but isn't as heavy-handed
16524 no_undefined_flag
='${wl}-z,text'
16525 allow_undefined_flag
='${wl}-z,nodefs'
16526 archive_cmds_need_lc
=no
16527 hardcode_shlibpath_var
=no
16528 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16529 hardcode_libdir_separator
=':'
16530 link_all_deplibs
=yes
16531 export_dynamic_flag_spec
='${wl}-Bexport'
16532 runpath_var
='LD_RUN_PATH'
16534 if test "$GCC" = yes; then
16535 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16538 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16539 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16544 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545 hardcode_libdir_flag_spec
='-L$libdir'
16546 hardcode_shlibpath_var
=no
16554 if test x
$host_vendor = xsni
; then
16556 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16557 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16564 $as_echo "$ld_shlibs" >&6; }
16565 test "$ld_shlibs" = no
&& can_build_shared
=no
16567 with_gnu_ld
=$with_gnu_ld
16584 # Do we need to explicitly link libc?
16586 case "x$archive_cmds_need_lc" in
16588 # Assume -lc should be added
16589 archive_cmds_need_lc
=yes
16591 if test "$enable_shared" = yes && test "$GCC" = yes; then
16592 case $archive_cmds in
16594 # FIXME: we may have to deal with multi-command sequences.
16597 # Test whether the compiler implicitly links with -lc since on some
16598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16599 # to ld, don't add -lc before -lgcc.
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16601 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16602 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16603 $as_echo_n "(cached) " >&6
16606 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16609 (eval $ac_compile) 2>&5
16611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16612 test $ac_status = 0; } 2>conftest.err
; then
16615 libobjs
=conftest.
$ac_objext
16617 wl
=$lt_prog_compiler_wl
16618 pic_flag
=$lt_prog_compiler_pic
16624 lt_save_allow_undefined_flag
=$allow_undefined_flag
16625 allow_undefined_flag
=
16626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16627 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16630 test $ac_status = 0; }
16632 lt_cv_archive_cmds_need_lc
=no
16634 lt_cv_archive_cmds_need_lc
=yes
16636 allow_undefined_flag
=$lt_save_allow_undefined_flag
16638 cat conftest.err
1>&5
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16644 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16645 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16809 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16811 if test "$GCC" = yes; then
16813 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16814 *) lt_awk_arg
="/^libraries:/" ;;
16817 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16818 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16820 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16821 case $lt_search_path_spec in
16823 # if the path contains ";" then we assume it to be the separator
16824 # otherwise default to the standard path separator (i.e. ":") - it is
16825 # assumed that no part of a normal pathname contains ";" but that should
16826 # okay in the real world where ";" in dirpaths is itself problematic.
16827 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16830 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16833 # Ok, now we have the path, separated by spaces, we can step through it
16834 # and add multilib dir if necessary.
16835 lt_tmp_lt_search_path_spec
=
16836 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16837 for lt_sys_path
in $lt_search_path_spec; do
16838 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16839 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16841 test -d "$lt_sys_path" && \
16842 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16845 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16846 BEGIN {RS=" "; FS="/|\n";} {
16849 for (lt_i = NF; lt_i > 0; lt_i--) {
16850 if ($lt_i != "" && $lt_i != ".") {
16851 if ($lt_i == "..") {
16854 if (lt_count == 0) {
16855 lt_foo="/" $lt_i lt_foo;
16862 if (lt_foo != "") { lt_freq[lt_foo]++; }
16863 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16865 # AWK program above erroneously prepends '/' to C:/dos/paths
16868 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16869 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16871 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16873 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16875 library_names_spec
=
16876 libname_spec
='lib$name'
16880 postuninstall_cmds
=
16884 shlibpath_overrides_runpath
=unknown
16886 dynamic_linker
="$host_os ld.so"
16887 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16888 need_lib_prefix
=unknown
16889 hardcode_into_libs
=no
16891 # when you set need_version to no, make sure it does not cause -set_version
16892 # flags to be left without arguments
16893 need_version
=unknown
16898 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16899 shlibpath_var
=LIBPATH
16901 # AIX 3 has no versioning support, so we append a major version to the name.
16902 soname_spec
='${libname}${release}${shared_ext}$major'
16909 hardcode_into_libs
=yes
16910 if test "$host_cpu" = ia64
; then
16911 # AIX 5 supports IA64
16912 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16913 shlibpath_var
=LD_LIBRARY_PATH
16915 # With GCC up to 2.95.x, collect2 would create an import file
16916 # for dependence libraries. The import file would start with
16917 # the line `#! .'. This would cause the generated library to
16918 # depend on `.', always an invalid library. This was fixed in
16919 # development snapshots of GCC prior to 3.0.
16921 aix4 | aix4.
[01] | aix4.
[01].
*)
16922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16924 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16927 can_build_shared
=no
16931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16932 # soname into executable. Probably we can add versioning support to
16933 # collect2, so additional links can be useful in future.
16934 if test "$aix_use_runtimelinking" = yes; then
16935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16936 # instead of lib<name>.a to let people know that these are not
16937 # typical AIX shared libraries.
16938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940 # We preserve .a as extension for shared libraries through AIX4.2
16941 # and later when we are not doing run time linking.
16942 library_names_spec
='${libname}${release}.a $libname.a'
16943 soname_spec
='${libname}${release}${shared_ext}$major'
16945 shlibpath_var
=LIBPATH
16952 # Since July 2007 AmigaOS4 officially supports .so libraries.
16953 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957 library_names_spec
='$libname.ixlibrary $libname.a'
16958 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16959 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'
16965 library_names_spec
='${libname}${shared_ext}'
16966 dynamic_linker
="$host_os ld.so"
16967 shlibpath_var
=LIBRARY_PATH
16973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974 soname_spec
='${libname}${release}${shared_ext}$major'
16975 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16976 shlibpath_var
=LD_LIBRARY_PATH
16977 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16978 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16979 # the default ld.so.conf also contains /usr/contrib/lib and
16980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16981 # libtool to hard-code these into programs
16984 cygwin
* | mingw
* | pw32
* | cegcc
*)
16985 version_type
=windows
16990 case $GCC,$host_os in
16991 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16992 library_names_spec
='$libname.dll.a'
16993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16994 postinstall_cmds
='base_file=`basename \${file}`~
16995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16996 dldir=$destdir/`dirname \$dlpath`~
16997 test -d \$dldir || mkdir -p \$dldir~
16998 $install_prog $dir/$dlname \$dldir/$dlname~
16999 chmod a+x \$dldir/$dlname~
17000 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17001 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17003 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17004 dlpath=$dir/\$dldll~
17006 shlibpath_overrides_runpath
=yes
17010 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17011 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17013 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17016 # MinGW DLLs use traditional 'lib' prefix
17017 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17020 # pw32 DLLs use 'pw' prefix rather than 'lib'
17021 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17027 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17030 dynamic_linker
='Win32 ld.exe'
17031 # FIXME: first we should search . and the directory the executable is in
17035 darwin
* | rhapsody
*)
17036 dynamic_linker
="$host_os dyld"
17037 version_type
=darwin
17040 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17041 soname_spec
='${libname}${release}${major}$shared_ext'
17042 shlibpath_overrides_runpath
=yes
17043 shlibpath_var
=DYLD_LIBRARY_PATH
17044 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17046 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17047 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17055 soname_spec
='${libname}${release}${shared_ext}$major'
17056 shlibpath_var
=LD_LIBRARY_PATH
17059 freebsd
* | dragonfly
*)
17060 # DragonFly does not have aout. When/if they implement a new
17061 # versioning mechanism, adjust this.
17062 if test -x /usr
/bin
/objformat
; then
17063 objformat
=`/usr/bin/objformat`
17066 freebsd
[123]*) objformat
=aout
;;
17067 *) objformat
=elf
;;
17070 version_type
=freebsd-
$objformat
17071 case $version_type in
17073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17078 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17082 shlibpath_var
=LD_LIBRARY_PATH
17085 shlibpath_overrides_runpath
=yes
17087 freebsd3.
[01]* | freebsdelf3.
[01]*)
17088 shlibpath_overrides_runpath
=yes
17089 hardcode_into_libs
=yes
17091 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17092 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17093 shlibpath_overrides_runpath
=no
17094 hardcode_into_libs
=yes
17096 *) # from 4.6 on, and DragonFly
17097 shlibpath_overrides_runpath
=yes
17098 hardcode_into_libs
=yes
17107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17108 soname_spec
='${libname}${release}${shared_ext}$major'
17109 shlibpath_var
=LD_LIBRARY_PATH
17110 hardcode_into_libs
=yes
17117 dynamic_linker
="$host_os runtime_loader"
17118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17119 soname_spec
='${libname}${release}${shared_ext}$major'
17120 shlibpath_var
=LIBRARY_PATH
17121 shlibpath_overrides_runpath
=yes
17122 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17123 hardcode_into_libs
=yes
17126 hpux9
* | hpux10
* | hpux11
*)
17127 # Give a soname corresponding to the major version so that dld.sl refuses to
17128 # link against other versions.
17135 hardcode_into_libs
=yes
17136 dynamic_linker
="$host_os dld.so"
17137 shlibpath_var
=LD_LIBRARY_PATH
17138 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17139 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140 soname_spec
='${libname}${release}${shared_ext}$major'
17141 if test "X$HPUX_IA64_MODE" = X32
; then
17142 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17144 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17146 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17150 hardcode_into_libs
=yes
17151 dynamic_linker
="$host_os dld.sl"
17152 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17153 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17154 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155 soname_spec
='${libname}${release}${shared_ext}$major'
17156 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17157 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17161 dynamic_linker
="$host_os dld.sl"
17162 shlibpath_var
=SHLIB_PATH
17163 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165 soname_spec
='${libname}${release}${shared_ext}$major'
17168 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17169 postinstall_cmds
='chmod 555 $lib'
17170 # or fails outright, so override atomically:
17171 install_override_mode
=555
17178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17179 soname_spec
='${libname}${release}${shared_ext}$major'
17180 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17181 shlibpath_var
=LD_LIBRARY_PATH
17182 shlibpath_overrides_runpath
=no
17183 hardcode_into_libs
=yes
17186 irix5
* | irix6
* | nonstopux
*)
17188 nonstopux
*) version_type
=nonstopux
;;
17190 if test "$lt_cv_prog_gnu_ld" = yes; then
17198 soname_spec
='${libname}${release}${shared_ext}$major'
17199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17201 irix5
* | nonstopux
*)
17202 libsuff
= shlibsuff
=
17205 case $LD in # libtool.m4 will add one of these switches to LD
17206 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17207 libsuff
= shlibsuff
= libmagic
=32-bit;;
17208 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17209 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17210 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17211 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17212 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17216 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17217 shlibpath_overrides_runpath
=no
17218 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17219 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17220 hardcode_into_libs
=yes
17223 # No shared lib support for Linux oldld, aout, or coff.
17224 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17228 # This must be Linux ELF.
17229 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234 soname_spec
='${libname}${release}${shared_ext}$major'
17235 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17236 shlibpath_var
=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath
=no
17239 # Some binutils ld are patched to set DT_RUNPATH
17240 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17241 $as_echo_n "(cached) " >&6
17243 lt_cv_shlibpath_overrides_runpath
=no
17244 save_LDFLAGS
=$LDFLAGS
17245 save_libdir
=$libdir
17246 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17247 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17259 if ac_fn_c_try_link
"$LINENO"; then :
17260 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17261 lt_cv_shlibpath_overrides_runpath
=yes
17264 rm -f core conftest.err conftest.
$ac_objext \
17265 conftest
$ac_exeext conftest.
$ac_ext
17266 LDFLAGS
=$save_LDFLAGS
17267 libdir
=$save_libdir
17271 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17273 # This implies no fast_install, which is unacceptable.
17274 # Some rework will be needed to allow for fast_install
17275 # before this can be enabled.
17276 hardcode_into_libs
=yes
17278 # Append ld.so.conf contents to the search path
17279 if test -f /etc
/ld.so.conf
; then
17280 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' ' '`
17281 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17284 # We used to test for /lib/ld.so.1 and disable shared libraries on
17285 # powerpc, because MkLinux only supported shared libraries with the
17286 # GNU dynamic linker. Since this was broken with cross compilers,
17287 # most powerpc-linux boxes support dynamic linking these days and
17288 # people can always --disable-shared, the test was removed, and we
17289 # assume the GNU/Linux dynamic linker is in use.
17290 dynamic_linker
='GNU/Linux ld.so'
17297 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17299 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17300 dynamic_linker
='NetBSD (a.out) ld.so'
17302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17303 soname_spec
='${libname}${release}${shared_ext}$major'
17304 dynamic_linker
='NetBSD ld.elf_so'
17306 shlibpath_var
=LD_LIBRARY_PATH
17307 shlibpath_overrides_runpath
=yes
17308 hardcode_into_libs
=yes
17313 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17314 shlibpath_var
=LD_LIBRARY_PATH
17315 shlibpath_overrides_runpath
=yes
17322 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17323 soname_spec
='${libname}${release}${shared_ext}$major'
17324 shlibpath_var
=LD_LIBRARY_PATH
17325 shlibpath_overrides_runpath
=no
17326 hardcode_into_libs
=yes
17327 dynamic_linker
='ldqnx.so'
17332 sys_lib_dlsearch_path_spec
="/usr/lib"
17334 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17336 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17337 *) need_version
=no
;;
17339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17340 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17341 shlibpath_var
=LD_LIBRARY_PATH
17342 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17344 openbsd2.
[89] | openbsd2.
[89].
*)
17345 shlibpath_overrides_runpath
=no
17348 shlibpath_overrides_runpath
=yes
17352 shlibpath_overrides_runpath
=yes
17357 libname_spec
='$name'
17360 library_names_spec
='$libname${shared_ext} $libname.a'
17361 dynamic_linker
='OS/2 ld.exe'
17362 shlibpath_var
=LIBPATH
17365 osf3
* | osf4
* | osf5
*)
17369 soname_spec
='${libname}${release}${shared_ext}$major'
17370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17371 shlibpath_var
=LD_LIBRARY_PATH
17372 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17373 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17385 soname_spec
='${libname}${release}${shared_ext}$major'
17386 shlibpath_var
=LD_LIBRARY_PATH
17387 shlibpath_overrides_runpath
=yes
17388 hardcode_into_libs
=yes
17389 # ldd complains unless libraries are executable
17390 postinstall_cmds
='chmod +x $lib'
17395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17396 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17397 shlibpath_var
=LD_LIBRARY_PATH
17398 shlibpath_overrides_runpath
=yes
17399 if test "$with_gnu_ld" = yes; then
17407 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408 soname_spec
='${libname}${release}${shared_ext}$major'
17409 shlibpath_var
=LD_LIBRARY_PATH
17410 case $host_vendor in
17412 shlibpath_overrides_runpath
=no
17414 runpath_var
=LD_RUN_PATH
17422 shlibpath_overrides_runpath
=no
17423 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17429 if test -d /usr
/nec
;then
17431 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17432 soname_spec
='$libname${shared_ext}.$major'
17433 shlibpath_var
=LD_LIBRARY_PATH
17437 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17438 version_type
=freebsd-elf
17441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17442 soname_spec
='${libname}${release}${shared_ext}$major'
17443 shlibpath_var
=LD_LIBRARY_PATH
17444 shlibpath_overrides_runpath
=yes
17445 hardcode_into_libs
=yes
17446 if test "$with_gnu_ld" = yes; then
17447 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17449 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17452 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17456 sys_lib_dlsearch_path_spec
='/usr/lib'
17460 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17464 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465 shlibpath_var
=LD_LIBRARY_PATH
17466 shlibpath_overrides_runpath
=no
17467 hardcode_into_libs
=yes
17472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17473 soname_spec
='${libname}${release}${shared_ext}$major'
17474 shlibpath_var
=LD_LIBRARY_PATH
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17482 $as_echo "$dynamic_linker" >&6; }
17483 test "$dynamic_linker" = no
&& can_build_shared
=no
17485 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17486 if test "$GCC" = yes; then
17487 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17490 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17491 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17493 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17494 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17589 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17591 if test -n "$hardcode_libdir_flag_spec" ||
17592 test -n "$runpath_var" ||
17593 test "X$hardcode_automatic" = "Xyes" ; then
17595 # We can hardcode non-existent directories.
17596 if test "$hardcode_direct" != no
&&
17597 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17598 # have to relink, otherwise we might link with an installed library
17599 # when we should be linking with a yet-to-be-installed one
17600 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17601 test "$hardcode_minus_L" != no
; then
17602 # Linking always hardcodes the temporary library directory.
17603 hardcode_action
=relink
17605 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17606 hardcode_action
=immediate
17609 # We cannot hardcode anything, or else we can only hardcode existing
17611 hardcode_action
=unsupported
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17614 $as_echo "$hardcode_action" >&6; }
17616 if test "$hardcode_action" = relink ||
17617 test "$inherit_rpath" = yes; then
17618 # Fast installation is not supported
17619 enable_fast_install
=no
17620 elif test "$shlibpath_overrides_runpath" = yes ||
17621 test "$enable_shared" = no
; then
17622 # Fast installation is not necessary
17623 enable_fast_install
=needless
17631 if test "x$enable_dlopen" != xyes
; then
17632 enable_dlopen
=unknown
17633 enable_dlopen_self
=unknown
17634 enable_dlopen_self_static
=unknown
17641 lt_cv_dlopen
="load_add_on"
17643 lt_cv_dlopen_self
=yes
17646 mingw
* | pw32
* | cegcc
*)
17647 lt_cv_dlopen
="LoadLibrary"
17652 lt_cv_dlopen
="dlopen"
17657 # if libdl is installed we need to link against it
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17659 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17661 $as_echo_n "(cached) " >&6
17663 ac_check_lib_save_LIBS
=$LIBS
17665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17668 /* Override any GCC internal prototype to avoid an error.
17669 Use char because int might match the return type of a GCC
17670 builtin and then its argument prototype would still apply. */
17683 if ac_fn_c_try_link
"$LINENO"; then :
17684 ac_cv_lib_dl_dlopen
=yes
17686 ac_cv_lib_dl_dlopen
=no
17688 rm -f core conftest.err conftest.
$ac_objext \
17689 conftest
$ac_exeext conftest.
$ac_ext
17690 LIBS
=$ac_check_lib_save_LIBS
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17693 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17694 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17695 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17698 lt_cv_dlopen
="dyld"
17700 lt_cv_dlopen_self
=yes
17707 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17708 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17709 lt_cv_dlopen
="shl_load"
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17712 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17713 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17714 $as_echo_n "(cached) " >&6
17716 ac_check_lib_save_LIBS
=$LIBS
17718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17719 /* end confdefs.h. */
17721 /* Override any GCC internal prototype to avoid an error.
17722 Use char because int might match the return type of a GCC
17723 builtin and then its argument prototype would still apply. */
17731 return shl_load ();
17736 if ac_fn_c_try_link
"$LINENO"; then :
17737 ac_cv_lib_dld_shl_load
=yes
17739 ac_cv_lib_dld_shl_load
=no
17741 rm -f core conftest.err conftest.
$ac_objext \
17742 conftest
$ac_exeext conftest.
$ac_ext
17743 LIBS
=$ac_check_lib_save_LIBS
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17746 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17747 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17748 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17750 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17751 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17752 lt_cv_dlopen
="dlopen"
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17755 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17756 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17757 $as_echo_n "(cached) " >&6
17759 ac_check_lib_save_LIBS
=$LIBS
17761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17764 /* Override any GCC internal prototype to avoid an error.
17765 Use char because int might match the return type of a GCC
17766 builtin and then its argument prototype would still apply. */
17779 if ac_fn_c_try_link
"$LINENO"; then :
17780 ac_cv_lib_dl_dlopen
=yes
17782 ac_cv_lib_dl_dlopen
=no
17784 rm -f core conftest.err conftest.
$ac_objext \
17785 conftest
$ac_exeext conftest.
$ac_ext
17786 LIBS
=$ac_check_lib_save_LIBS
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17789 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17790 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17791 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17794 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17795 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17796 $as_echo_n "(cached) " >&6
17798 ac_check_lib_save_LIBS
=$LIBS
17799 LIBS
="-lsvld $LIBS"
17800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h. */
17803 /* Override any GCC internal prototype to avoid an error.
17804 Use char because int might match the return type of a GCC
17805 builtin and then its argument prototype would still apply. */
17818 if ac_fn_c_try_link
"$LINENO"; then :
17819 ac_cv_lib_svld_dlopen
=yes
17821 ac_cv_lib_svld_dlopen
=no
17823 rm -f core conftest.err conftest.
$ac_objext \
17824 conftest
$ac_exeext conftest.
$ac_ext
17825 LIBS
=$ac_check_lib_save_LIBS
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17828 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17829 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17830 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17833 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17834 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17835 $as_echo_n "(cached) " >&6
17837 ac_check_lib_save_LIBS
=$LIBS
17839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17842 /* Override any GCC internal prototype to avoid an error.
17843 Use char because int might match the return type of a GCC
17844 builtin and then its argument prototype would still apply. */
17852 return dld_link ();
17857 if ac_fn_c_try_link
"$LINENO"; then :
17858 ac_cv_lib_dld_dld_link
=yes
17860 ac_cv_lib_dld_dld_link
=no
17862 rm -f core conftest.err conftest.
$ac_objext \
17863 conftest
$ac_exeext conftest.
$ac_ext
17864 LIBS
=$ac_check_lib_save_LIBS
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17867 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17868 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17869 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17890 if test "x$lt_cv_dlopen" != xno
; then
17896 case $lt_cv_dlopen in
17898 save_CPPFLAGS
="$CPPFLAGS"
17899 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17901 save_LDFLAGS
="$LDFLAGS"
17902 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17905 LIBS
="$lt_cv_dlopen_libs $LIBS"
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17908 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17909 if test "${lt_cv_dlopen_self+set}" = set; then :
17910 $as_echo_n "(cached) " >&6
17912 if test "$cross_compiling" = yes; then :
17913 lt_cv_dlopen_self
=cross
17915 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17916 lt_status
=$lt_dlunknown
17917 cat > conftest.
$ac_ext <<_LT_EOF
17918 #line 17918 "configure"
17919 #include "confdefs.h"
17928 # define LT_DLGLOBAL RTLD_GLOBAL
17931 # define LT_DLGLOBAL DL_GLOBAL
17933 # define LT_DLGLOBAL 0
17937 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17938 find out it does not work in some platform. */
17939 #ifndef LT_DLLAZY_OR_NOW
17941 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17944 # define LT_DLLAZY_OR_NOW DL_LAZY
17947 # define LT_DLLAZY_OR_NOW RTLD_NOW
17950 # define LT_DLLAZY_OR_NOW DL_NOW
17952 # define LT_DLLAZY_OR_NOW 0
17959 /* When -fvisbility=hidden is used, assume the code has been annotated
17960 correspondingly for the symbols needed. */
17961 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17962 void fnord () __attribute__((visibility("default")));
17965 void fnord () { int i=42; }
17968 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17969 int status = $lt_dlunknown;
17973 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17976 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17977 else puts (dlerror ());
17979 /* dlclose (self); */
17987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17988 (eval $ac_link) 2>&5
17990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17991 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17992 (.
/conftest
; exit; ) >&5 2>/dev
/null
17994 case x
$lt_status in
17995 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17996 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17997 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18000 # compilation failed
18001 lt_cv_dlopen_self
=no
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18009 $as_echo "$lt_cv_dlopen_self" >&6; }
18011 if test "x$lt_cv_dlopen_self" = xyes
; then
18012 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18014 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18015 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18016 $as_echo_n "(cached) " >&6
18018 if test "$cross_compiling" = yes; then :
18019 lt_cv_dlopen_self_static
=cross
18021 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18022 lt_status
=$lt_dlunknown
18023 cat > conftest.
$ac_ext <<_LT_EOF
18024 #line 18024 "configure"
18025 #include "confdefs.h"
18034 # define LT_DLGLOBAL RTLD_GLOBAL
18037 # define LT_DLGLOBAL DL_GLOBAL
18039 # define LT_DLGLOBAL 0
18043 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18044 find out it does not work in some platform. */
18045 #ifndef LT_DLLAZY_OR_NOW
18047 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18050 # define LT_DLLAZY_OR_NOW DL_LAZY
18053 # define LT_DLLAZY_OR_NOW RTLD_NOW
18056 # define LT_DLLAZY_OR_NOW DL_NOW
18058 # define LT_DLLAZY_OR_NOW 0
18065 /* When -fvisbility=hidden is used, assume the code has been annotated
18066 correspondingly for the symbols needed. */
18067 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18068 void fnord () __attribute__((visibility("default")));
18071 void fnord () { int i=42; }
18074 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18075 int status = $lt_dlunknown;
18079 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18082 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18083 else puts (dlerror ());
18085 /* dlclose (self); */
18093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18094 (eval $ac_link) 2>&5
18096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18097 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18098 (.
/conftest
; exit; ) >&5 2>/dev
/null
18100 case x
$lt_status in
18101 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18102 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18103 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18106 # compilation failed
18107 lt_cv_dlopen_self_static
=no
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18115 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18118 CPPFLAGS
="$save_CPPFLAGS"
18119 LDFLAGS
="$save_LDFLAGS"
18124 case $lt_cv_dlopen_self in
18125 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18126 *) enable_dlopen_self
=unknown
;;
18129 case $lt_cv_dlopen_self_static in
18130 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18131 *) enable_dlopen_self_static
=unknown
;;
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18154 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18155 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18156 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18157 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18159 $as_echo "yes" >&6; }
18161 # FIXME - insert some real tests, host_os isn't really good enough
18164 if test -n "$STRIP" ; then
18165 striplib
="$STRIP -x"
18166 old_striplib
="$STRIP -S"
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18168 $as_echo "yes" >&6; }
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18171 $as_echo "no" >&6; }
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18176 $as_echo "no" >&6; }
18192 # Report which library types will actually be built
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18194 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18196 $as_echo "$can_build_shared" >&6; }
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18199 $as_echo_n "checking whether to build shared libraries... " >&6; }
18200 test "$can_build_shared" = "no" && enable_shared
=no
18202 # On AIX, shared libraries and static libraries use the same namespace, and
18203 # are all built from PIC.
18206 test "$enable_shared" = yes && enable_static
=no
18207 if test -n "$RANLIB"; then
18208 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18209 postinstall_cmds
='$RANLIB $lib'
18214 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18215 test "$enable_shared" = yes && enable_static
=no
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18220 $as_echo "$enable_shared" >&6; }
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18223 $as_echo_n "checking whether to build static libraries... " >&6; }
18224 # Make sure either enable_shared or enable_static is yes.
18225 test "$enable_shared" = yes || enable_static
=yes
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18227 $as_echo "$enable_static" >&6; }
18234 ac_cpp
='$CPP $CPPFLAGS'
18235 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18236 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18237 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18241 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18242 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18243 (test "X$CXX" != "Xg++"))) ; then
18245 ac_cpp
='$CXXCPP $CPPFLAGS'
18246 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18247 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18248 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18250 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18251 if test -z "$CXXCPP"; then
18252 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18253 $as_echo_n "(cached) " >&6
18255 # Double quotes because CXXCPP needs to be expanded
18256 for CXXCPP
in "$CXX -E" "/lib/cpp"
18258 ac_preproc_ok
=false
18259 for ac_cxx_preproc_warn_flag
in '' yes
18261 # Use a header file that comes with gcc, so configuring glibc
18262 # with a fresh cross-compiler works.
18263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18264 # <limits.h> exists even on freestanding compilers.
18265 # On the NeXT, cc -E runs the code through the compiler's parser,
18266 # not just through cpp. "Syntax error" is here to catch this case.
18267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h. */
18270 # include <limits.h>
18272 # include <assert.h>
18276 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18279 # Broken: fails on valid input.
18282 rm -f conftest.err conftest.
$ac_ext
18284 # OK, works on sane cases. Now check whether nonexistent headers
18285 # can be detected and how.
18286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18288 #include <ac_nonexistent.h>
18290 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18291 # Broken: success on invalid input.
18294 # Passes both tests.
18298 rm -f conftest.err conftest.
$ac_ext
18301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18302 rm -f conftest.err conftest.
$ac_ext
18303 if $ac_preproc_ok; then :
18308 ac_cv_prog_CXXCPP
=$CXXCPP
18311 CXXCPP
=$ac_cv_prog_CXXCPP
18313 ac_cv_prog_CXXCPP
=$CXXCPP
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18316 $as_echo "$CXXCPP" >&6; }
18317 ac_preproc_ok
=false
18318 for ac_cxx_preproc_warn_flag
in '' yes
18320 # Use a header file that comes with gcc, so configuring glibc
18321 # with a fresh cross-compiler works.
18322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18323 # <limits.h> exists even on freestanding compilers.
18324 # On the NeXT, cc -E runs the code through the compiler's parser,
18325 # not just through cpp. "Syntax error" is here to catch this case.
18326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18329 # include <limits.h>
18331 # include <assert.h>
18335 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18338 # Broken: fails on valid input.
18341 rm -f conftest.err conftest.
$ac_ext
18343 # OK, works on sane cases. Now check whether nonexistent headers
18344 # can be detected and how.
18345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18347 #include <ac_nonexistent.h>
18349 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18350 # Broken: success on invalid input.
18353 # Passes both tests.
18357 rm -f conftest.err conftest.
$ac_ext
18360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18361 rm -f conftest.err conftest.
$ac_ext
18362 if $ac_preproc_ok; then :
18365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18367 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18368 See \`config.log' for more details." "$LINENO" 5; }
18372 ac_cpp
='$CPP $CPPFLAGS'
18373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18378 _lt_caught_CXX_error
=yes
18382 ac_cpp
='$CXXCPP $CPPFLAGS'
18383 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18384 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18385 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18387 archive_cmds_need_lc_CXX
=no
18388 allow_undefined_flag_CXX
=
18389 always_export_symbols_CXX
=no
18390 archive_expsym_cmds_CXX
=
18391 compiler_needs_object_CXX
=no
18392 export_dynamic_flag_spec_CXX
=
18393 hardcode_direct_CXX
=no
18394 hardcode_direct_absolute_CXX
=no
18395 hardcode_libdir_flag_spec_CXX
=
18396 hardcode_libdir_flag_spec_ld_CXX
=
18397 hardcode_libdir_separator_CXX
=
18398 hardcode_minus_L_CXX
=no
18399 hardcode_shlibpath_var_CXX
=unsupported
18400 hardcode_automatic_CXX
=no
18401 inherit_rpath_CXX
=no
18403 module_expsym_cmds_CXX
=
18404 link_all_deplibs_CXX
=unknown
18405 old_archive_cmds_CXX
=$old_archive_cmds
18406 reload_flag_CXX
=$reload_flag
18407 reload_cmds_CXX
=$reload_cmds
18408 no_undefined_flag_CXX
=
18409 whole_archive_flag_spec_CXX
=
18410 enable_shared_with_static_runtimes_CXX
=no
18412 # Source file extension for C++ test sources.
18415 # Object file extension for compiled C++ test sources.
18419 # No sense in running all these tests if we already determined that
18420 # the CXX compiler isn't working. Some variables (like enable_shared)
18421 # are currently assumed to apply to all compilers on this platform,
18422 # and will be corrupted by setting them based on a non-working compiler.
18423 if test "$_lt_caught_CXX_error" != yes; then
18424 # Code to be used in simple compile tests
18425 lt_simple_compile_test_code
="int some_variable = 0;"
18427 # Code to be used in simple link tests
18428 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18430 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18437 # If no C compiler was specified, use CC.
18440 # If no C compiler flags were specified, use CFLAGS.
18441 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18443 # Allow CC to be a program name with arguments.
18447 # save warnings/boilerplate of simple test code
18448 ac_outfile
=conftest.
$ac_objext
18449 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18450 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18451 _lt_compiler_boilerplate
=`cat conftest.err`
18454 ac_outfile
=conftest.
$ac_objext
18455 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18456 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18457 _lt_linker_boilerplate
=`cat conftest.err`
18461 # Allow CC to be a program name with arguments.
18466 lt_save_with_gnu_ld
=$with_gnu_ld
18467 lt_save_path_LD
=$lt_cv_path_LD
18468 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18469 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18471 $as_unset lt_cv_prog_gnu_ld
18473 if test -n "${lt_cv_path_LDCXX+set}"; then
18474 lt_cv_path_LD
=$lt_cv_path_LDCXX
18476 $as_unset lt_cv_path_LD
18478 test -z "${LDCXX+set}" || LD
=$LDCXX
18482 for cc_temp
in $compiler""; do
18484 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18485 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18490 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18493 if test -n "$compiler"; then
18494 # We don't want -fno-exception when compiling C++ code, so set the
18495 # no_builtin_flag separately
18496 if test "$GXX" = yes; then
18497 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18499 lt_prog_compiler_no_builtin_flag_CXX
=
18502 if test "$GXX" = yes; then
18503 # Set up default GNU C++ configuration
18507 # Check whether --with-gnu-ld was given.
18508 if test "${with_gnu_ld+set}" = set; then :
18509 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18515 if test "$GCC" = yes; then
18516 # Check if gcc -print-prog-name=ld gives a path.
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18518 $as_echo_n "checking for ld used by $CC... " >&6; }
18521 # gcc leaves a trailing carriage return which upsets mingw
18522 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18524 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18527 # Accept absolute paths.
18529 re_direlt
='/[^/][^/]*/\.\./'
18530 # Canonicalize the pathname of ld
18531 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18532 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18533 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18535 test -z "$LD" && LD
="$ac_prog"
18538 # If it fails, then pretend we aren't using GCC.
18542 # If it is relative, then search for the first ld in PATH.
18543 with_gnu_ld
=unknown
18546 elif test "$with_gnu_ld" = yes; then
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18548 $as_echo_n "checking for GNU ld... " >&6; }
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18551 $as_echo_n "checking for non-GNU ld... " >&6; }
18553 if test "${lt_cv_path_LD+set}" = set; then :
18554 $as_echo_n "(cached) " >&6
18556 if test -z "$LD"; then
18557 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18558 for ac_dir
in $PATH; do
18560 test -z "$ac_dir" && ac_dir
=.
18561 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18562 lt_cv_path_LD
="$ac_dir/$ac_prog"
18563 # Check to see if the program is GNU ld. I'd rather use --version,
18564 # but apparently some variants of GNU ld only accept -v.
18565 # Break only if it was the GNU/non-GNU ld that we prefer.
18566 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18567 *GNU
* |
*'with BFD'*)
18568 test "$with_gnu_ld" != no
&& break
18571 test "$with_gnu_ld" != yes && break
18578 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18582 LD
="$lt_cv_path_LD"
18583 if test -n "$LD"; then
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18585 $as_echo "$LD" >&6; }
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18588 $as_echo "no" >&6; }
18590 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18592 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18593 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18594 $as_echo_n "(cached) " >&6
18596 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18597 case `$LD -v 2>&1 </dev/null` in
18598 *GNU
* |
*'with BFD'*)
18599 lt_cv_prog_gnu_ld
=yes
18602 lt_cv_prog_gnu_ld
=no
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18607 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18608 with_gnu_ld
=$lt_cv_prog_gnu_ld
18616 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18617 # archiving commands below assume that GNU ld is being used.
18618 if test "$with_gnu_ld" = yes; then
18619 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18620 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'
18622 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18623 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18625 # If archive_cmds runs LD, not CC, wlarc should be empty
18626 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18627 # investigate it a little bit more. (MM)
18630 # ancient GNU ld didn't support --whole-archive et. al.
18631 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18632 $GREP 'no-whole-archive' > /dev
/null
; then
18633 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18635 whole_archive_flag_spec_CXX
=
18641 # A generic and very simple default shared library creation
18642 # command for GNU C++ for the case where it uses the native
18643 # linker, instead of GNU ld. If possible, this setting should
18644 # overridden to take advantage of the native linker features on
18645 # the platform it is being used on.
18646 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18649 # Commands to make compiler produce verbose output that lists
18650 # what "hidden" libraries, object files and flags are used when
18651 # linking a shared library.
18652 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18660 # PORTME: fill in a description of your system's C++ link characteristics
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18662 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18666 # FIXME: insert proper C++ library support
18670 if test "$host_cpu" = ia64
; then
18671 # On IA64, the linker does run time linking by default, so we don't
18672 # have to do anything special.
18673 aix_use_runtimelinking
=no
18674 exp_sym_flag
='-Bexport'
18677 aix_use_runtimelinking
=no
18679 # Test if we are trying to use run time linking or normal
18680 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18681 # need to do runtime linking.
18682 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18683 for ld_flag
in $LDFLAGS; do
18686 aix_use_runtimelinking
=yes
18694 exp_sym_flag
='-bexport'
18695 no_entry_flag
='-bnoentry'
18698 # When large executables or shared objects are built, AIX ld can
18699 # have problems creating the table of contents. If linking a library
18700 # or program results in "error TOC overflow" add -mminimal-toc to
18701 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18702 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18704 archive_cmds_CXX
=''
18705 hardcode_direct_CXX
=yes
18706 hardcode_direct_absolute_CXX
=yes
18707 hardcode_libdir_separator_CXX
=':'
18708 link_all_deplibs_CXX
=yes
18709 file_list_spec_CXX
='${wl}-f,'
18711 if test "$GXX" = yes; then
18712 case $host_os in aix4.
[012]|aix4.
[012].
*)
18713 # We only want to do this on AIX 4.2 and lower, the check
18714 # below for broken collect2 doesn't work under 4.3+
18715 collect2name
=`${CC} -print-prog-name=collect2`
18716 if test -f "$collect2name" &&
18717 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18719 # We have reworked collect2
18722 # We have old collect2
18723 hardcode_direct_CXX
=unsupported
18724 # It fails to find uninstalled libraries when the uninstalled
18725 # path is not listed in the libpath. Setting hardcode_minus_L
18726 # to unsupported forces relinking
18727 hardcode_minus_L_CXX
=yes
18728 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18729 hardcode_libdir_separator_CXX
=
18732 shared_flag
='-shared'
18733 if test "$aix_use_runtimelinking" = yes; then
18734 shared_flag
="$shared_flag "'${wl}-G'
18738 if test "$host_cpu" = ia64
; then
18739 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18740 # chokes on -Wl,-G. The following line is correct:
18743 if test "$aix_use_runtimelinking" = yes; then
18744 shared_flag
='${wl}-G'
18746 shared_flag
='${wl}-bM:SRE'
18751 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18752 # It seems that -bexpall does not export symbols beginning with
18753 # underscore (_), so it is better to generate a list of symbols to
18755 always_export_symbols_CXX
=yes
18756 if test "$aix_use_runtimelinking" = yes; then
18757 # Warning - without using the other runtime loading flags (-brtl),
18758 # -berok will link without error, but may produce a broken library.
18759 allow_undefined_flag_CXX
='-berok'
18760 # Determine the default libpath from the value encoded in an empty
18762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18763 /* end confdefs.h. */
18773 if ac_fn_cxx_try_link
"$LINENO"; then :
18775 lt_aix_libpath_sed
='
18776 /Import File Strings/,/^$/ {
18782 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18783 # Check for a 64-bit object if we didn't find anything.
18784 if test -z "$aix_libpath"; then
18785 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18788 rm -f core conftest.err conftest.
$ac_objext \
18789 conftest
$ac_exeext conftest.
$ac_ext
18790 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18792 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18794 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"
18796 if test "$host_cpu" = ia64
; then
18797 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18798 allow_undefined_flag_CXX
="-z nodefs"
18799 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"
18801 # Determine the default libpath from the value encoded in an
18802 # empty executable.
18803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18814 if ac_fn_cxx_try_link
"$LINENO"; then :
18816 lt_aix_libpath_sed
='
18817 /Import File Strings/,/^$/ {
18823 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18824 # Check for a 64-bit object if we didn't find anything.
18825 if test -z "$aix_libpath"; then
18826 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18829 rm -f core conftest.err conftest.
$ac_objext \
18830 conftest
$ac_exeext conftest.
$ac_ext
18831 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18833 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18834 # Warning - without using the other run time loading flags,
18835 # -berok will link without error, but may produce a broken library.
18836 no_undefined_flag_CXX
=' ${wl}-bernotok'
18837 allow_undefined_flag_CXX
=' ${wl}-berok'
18838 if test "$with_gnu_ld" = yes; then
18839 # We only use this code for GNU lds that support --whole-archive.
18840 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18842 # Exported symbols can be pulled into shared objects from archives
18843 whole_archive_flag_spec_CXX
='$convenience'
18845 archive_cmds_need_lc_CXX
=yes
18846 # This is similar to how AIX traditionally builds its shared
18848 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'
18854 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18855 allow_undefined_flag_CXX
=unsupported
18856 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18857 # support --undefined. This deserves some investigation. FIXME
18858 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18865 case $cc_basename in
18867 # FIXME: insert proper C++ library support
18873 cygwin
* | mingw
* | pw32
* | cegcc
*)
18874 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18875 # as there is no search path for DLLs.
18876 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18877 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18878 allow_undefined_flag_CXX
=unsupported
18879 always_export_symbols_CXX
=no
18880 enable_shared_with_static_runtimes_CXX
=yes
18882 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18883 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'
18884 # If the export-symbols file already is a .def file (1st line
18885 # is EXPORTS), use it as is; otherwise, prepend...
18886 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18887 cp $export_symbols $output_objdir/$soname.def;
18889 echo EXPORTS > $output_objdir/$soname.def;
18890 cat $export_symbols >> $output_objdir/$soname.def;
18892 $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'
18897 darwin
* | rhapsody
*)
18900 archive_cmds_need_lc_CXX
=no
18901 hardcode_direct_CXX
=no
18902 hardcode_automatic_CXX
=yes
18903 hardcode_shlibpath_var_CXX
=unsupported
18904 if test "$lt_cv_ld_force_load" = "yes"; then
18905 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\"`'
18907 whole_archive_flag_spec_CXX
=''
18909 link_all_deplibs_CXX
=yes
18910 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18911 case $cc_basename in
18912 ifort
*) _lt_dar_can_shared
=yes ;;
18913 *) _lt_dar_can_shared
=$GCC ;;
18915 if test "$_lt_dar_can_shared" = "yes"; then
18916 output_verbose_link_cmd
=func_echo_all
18917 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}"
18918 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18919 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}"
18920 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}"
18921 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18922 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}"
18923 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}"
18933 case $cc_basename in
18935 # FIXME: insert proper C++ library support
18939 # Green Hills C++ Compiler
18940 # FIXME: insert proper C++ library support
18944 # FIXME: insert proper C++ library support
18951 # C++ shared libraries reported to be fairly broken before
18957 archive_cmds_need_lc_CXX
=no
18960 freebsd
* | dragonfly
*)
18961 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18970 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18971 link_all_deplibs_CXX
=yes
18975 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18976 hardcode_libdir_separator_CXX
=:
18977 export_dynamic_flag_spec_CXX
='${wl}-E'
18978 hardcode_direct_CXX
=yes
18979 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18980 # but as the default
18981 # location of the library.
18983 case $cc_basename in
18985 # FIXME: insert proper C++ library support
18989 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'
18990 # Commands to make compiler produce verbose output that lists
18991 # what "hidden" libraries, object files and flags are used when
18992 # linking a shared library.
18994 # There doesn't appear to be a way to prevent this compiler from
18995 # explicitly linking system object files so we need to strip them
18996 # from the output so that they don't get included in the library
18998 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"'
19001 if test "$GXX" = yes; then
19002 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'
19004 # FIXME: insert proper C++ library support
19012 if test $with_gnu_ld = no
; then
19013 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19014 hardcode_libdir_separator_CXX
=:
19020 export_dynamic_flag_spec_CXX
='${wl}-E'
19026 hardcode_direct_CXX
=no
19027 hardcode_shlibpath_var_CXX
=no
19030 hardcode_direct_CXX
=yes
19031 hardcode_direct_absolute_CXX
=yes
19032 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19033 # but as the default
19034 # location of the library.
19038 case $cc_basename in
19040 # FIXME: insert proper C++ library support
19046 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19049 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19052 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19055 # Commands to make compiler produce verbose output that lists
19056 # what "hidden" libraries, object files and flags are used when
19057 # linking a shared library.
19059 # There doesn't appear to be a way to prevent this compiler from
19060 # explicitly linking system object files so we need to strip them
19061 # from the output so that they don't get included in the library
19063 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"'
19066 if test "$GXX" = yes; then
19067 if test $with_gnu_ld = no
; then
19070 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19073 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19076 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'
19081 # FIXME: insert proper C++ library support
19089 hardcode_direct_CXX
=no
19090 hardcode_shlibpath_var_CXX
=no
19091 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19092 export_dynamic_flag_spec_CXX
='${wl}-E'
19093 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19094 # Instead, shared libraries are loaded at an image base (0x10000000 by
19095 # default) and relocated if they conflict, which is a slow very memory
19096 # consuming and fragmenting process. To avoid this, we pick a random,
19097 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19098 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19099 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'
19100 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'
19103 case $cc_basename in
19106 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'
19108 # Archives containing C++ object files must be created using
19109 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19110 # necessary to make sure instantiated templates are included
19112 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19115 if test "$GXX" = yes; then
19116 if test "$with_gnu_ld" = no
; then
19117 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'
19119 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'
19122 link_all_deplibs_CXX
=yes
19125 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19126 hardcode_libdir_separator_CXX
=:
19127 inherit_rpath_CXX
=yes
19130 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19131 case $cc_basename in
19133 # Kuck and Associates, Inc. (KAI) C++ Compiler
19135 # KCC will only create a shared library if the output file
19136 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19137 # to its proper name (with version) after linking.
19138 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'
19139 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'
19140 # Commands to make compiler produce verbose output that lists
19141 # what "hidden" libraries, object files and flags are used when
19142 # linking a shared library.
19144 # There doesn't appear to be a way to prevent this compiler from
19145 # explicitly linking system object files so we need to strip them
19146 # from the output so that they don't get included in the library
19148 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"'
19150 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19151 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19153 # Archives containing C++ object files must be created using
19154 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19155 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19160 # version 8.0 and above of icpc choke on multiply defined symbols
19161 # if we add $predep_objects and $postdep_objects, however 7.1 and
19162 # earlier do not add the objects themselves.
19163 case `$CC -V 2>&1` in
19165 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19166 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'
19168 *) # Version 8.0 or newer
19171 ia64
*) tmp_idyn
=' -i_dynamic';;
19173 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19174 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'
19177 archive_cmds_need_lc_CXX
=no
19178 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19179 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19180 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19183 # Portland Group C++ compiler
19185 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19186 prelink_cmds_CXX
='tpldir=Template.dir~
19188 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19189 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19190 old_archive_cmds_CXX
='tpldir=Template.dir~
19192 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19193 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19195 archive_cmds_CXX
='tpldir=Template.dir~
19197 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19198 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19199 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19201 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19202 $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'
19204 *) # Version 6 and above use weak symbols
19205 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19206 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'
19210 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19211 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19212 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'
19216 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19217 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'
19219 runpath_var
=LD_RUN_PATH
19220 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19221 hardcode_libdir_separator_CXX
=:
19223 # Commands to make compiler produce verbose output that lists
19224 # what "hidden" libraries, object files and flags are used when
19225 # linking a shared library.
19227 # There doesn't appear to be a way to prevent this compiler from
19228 # explicitly linking system object files so we need to strip them
19229 # from the output so that they don't get included in the library
19231 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'
19233 xl
* | mpixl
* | bgxl
*)
19234 # IBM XL 8.0 on PPC, with GNU ld
19235 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19236 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19237 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19238 if test "x$supports_anon_versioning" = xyes
; then
19239 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19241 echo "local: *; };" >> $output_objdir/$libname.ver~
19242 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19246 case `$CC -V 2>&1 | sed 5q` in
19249 no_undefined_flag_CXX
=' -zdefs'
19250 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251 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'
19252 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19253 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'
19254 compiler_needs_object_CXX
=yes
19256 # Not sure whether something based on
19257 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19259 output_verbose_link_cmd
='func_echo_all'
19261 # Archives containing C++ object files must be created using
19262 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19263 # necessary to make sure instantiated templates are included
19265 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19273 # FIXME: insert proper C++ library support
19278 # FIXME: insert proper C++ library support
19283 case $cc_basename in
19285 # FIXME: insert proper C++ library support
19289 # FIXME: insert proper C++ library support
19296 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19297 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19299 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19300 hardcode_direct_CXX
=yes
19301 hardcode_shlibpath_var_CXX
=no
19303 # Workaround some broken pre-1.5 toolchains
19304 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19312 # C++ shared libraries are fairly broken
19317 if test -f /usr
/libexec
/ld.so
; then
19318 hardcode_direct_CXX
=yes
19319 hardcode_shlibpath_var_CXX
=no
19320 hardcode_direct_absolute_CXX
=yes
19321 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19322 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19324 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19325 export_dynamic_flag_spec_CXX
='${wl}-E'
19326 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19328 output_verbose_link_cmd
=func_echo_all
19334 osf3
* | osf4
* | osf5
*)
19335 case $cc_basename in
19337 # Kuck and Associates, Inc. (KAI) C++ Compiler
19339 # KCC will only create a shared library if the output file
19340 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19341 # to its proper name (with version) after linking.
19342 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'
19344 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19345 hardcode_libdir_separator_CXX
=:
19347 # Archives containing C++ object files must be created using
19348 # the KAI C++ compiler.
19350 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19351 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19355 # Rational C++ 2.4.1
19356 # FIXME: insert proper C++ library support
19362 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19363 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'
19364 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19367 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19368 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'
19369 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19370 echo "-hidden">> $lib.exp~
19371 $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~
19373 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19377 hardcode_libdir_separator_CXX
=:
19379 # Commands to make compiler produce verbose output that lists
19380 # what "hidden" libraries, object files and flags are used when
19381 # linking a shared library.
19383 # There doesn't appear to be a way to prevent this compiler from
19384 # explicitly linking system object files so we need to strip them
19385 # from the output so that they don't get included in the library
19387 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"'
19390 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19391 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19394 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'
19397 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'
19401 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19402 hardcode_libdir_separator_CXX
=:
19404 # Commands to make compiler produce verbose output that lists
19405 # what "hidden" libraries, object files and flags are used when
19406 # linking a shared library.
19407 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19410 # FIXME: insert proper C++ library support
19418 # FIXME: insert proper C++ library support
19423 case $cc_basename in
19426 # FIXME: insert proper C++ library support
19431 # FIXME: insert proper C++ library support
19435 # FIXME: insert proper C++ library support
19442 case $cc_basename in
19444 # Sun C++ 4.2, 5.x and Centerline C++
19445 archive_cmds_need_lc_CXX
=yes
19446 no_undefined_flag_CXX
=' -zdefs'
19447 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19448 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19449 $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'
19451 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19452 hardcode_shlibpath_var_CXX
=no
19454 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19456 # The compiler driver will combine and reorder linker options,
19457 # but understands `-z linker_flag'.
19458 # Supported since Solaris 2.6 (maybe 2.5.1?)
19459 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19462 link_all_deplibs_CXX
=yes
19464 output_verbose_link_cmd
='func_echo_all'
19466 # Archives containing C++ object files must be created using
19467 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19468 # necessary to make sure instantiated templates are included
19470 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19473 # Green Hills C++ Compiler
19474 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19476 # The C++ compiler must be used to create the archive.
19477 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19480 # GNU C++ compiler with Solaris linker
19481 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19482 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19483 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19484 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19485 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19486 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19488 # Commands to make compiler produce verbose output that lists
19489 # what "hidden" libraries, object files and flags are used when
19490 # linking a shared library.
19491 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19493 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19495 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19496 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19497 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19499 # Commands to make compiler produce verbose output that lists
19500 # what "hidden" libraries, object files and flags are used when
19501 # linking a shared library.
19502 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19505 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19507 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19509 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19517 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19518 no_undefined_flag_CXX
='${wl}-z,text'
19519 archive_cmds_need_lc_CXX
=no
19520 hardcode_shlibpath_var_CXX
=no
19521 runpath_var
='LD_RUN_PATH'
19523 case $cc_basename in
19525 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19526 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19529 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19530 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19535 sysv5
* | sco3.2v5
* | sco5v6
*)
19536 # Note: We can NOT use -z defs as we might desire, because we do not
19537 # link with -lc, and that would cause any symbols used from libc to
19538 # always be unresolved, which means just about no library would
19539 # ever link correctly. If we're not using GNU ld we use -z text
19540 # though, which does catch some bad symbols but isn't as heavy-handed
19542 no_undefined_flag_CXX
='${wl}-z,text'
19543 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19544 archive_cmds_need_lc_CXX
=no
19545 hardcode_shlibpath_var_CXX
=no
19546 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19547 hardcode_libdir_separator_CXX
=':'
19548 link_all_deplibs_CXX
=yes
19549 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19550 runpath_var
='LD_RUN_PATH'
19552 case $cc_basename in
19554 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19555 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19557 '"$old_archive_cmds_CXX"
19558 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19559 '"$reload_cmds_CXX"
19562 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19569 case $cc_basename in
19571 # NonStop-UX NCC 3.20
19572 # FIXME: insert proper C++ library support
19576 # FIXME: insert proper C++ library support
19583 # FIXME: insert proper C++ library support
19588 # FIXME: insert proper C++ library support
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19594 $as_echo "$ld_shlibs_CXX" >&6; }
19595 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19601 ## There is no encapsulation within the following macros, do not change
19602 ## the running order or otherwise move them around unless you know exactly
19603 ## what you are doing...
19604 # Dependencies to place before and after the object being linked:
19605 predep_objects_CXX
=
19606 postdep_objects_CXX
=
19609 compiler_lib_search_path_CXX
=
19611 cat > conftest.
$ac_ext <<_LT_EOF
19615 Foo (void) { a = 0; }
19621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19622 (eval $ac_compile) 2>&5
19624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19625 test $ac_status = 0; }; then
19626 # Parse the compiler output and extract the necessary
19627 # objects, libraries and library flags.
19629 # Sentinel used to keep track of whether or not we are before
19630 # the conftest object file.
19631 pre_test_object_deps_done
=no
19633 for p
in `eval "$output_verbose_link_cmd"`; do
19637 # Some compilers place space between "-{L,R}" and the path.
19638 # Remove the space.
19639 if test $p = "-L" ||
19640 test $p = "-R"; then
19647 if test "$pre_test_object_deps_done" = no
; then
19650 # Internal compiler library paths should come after those
19651 # provided the user. The postdeps already come after the
19652 # user supplied libs so there is no need to process them.
19653 if test -z "$compiler_lib_search_path_CXX"; then
19654 compiler_lib_search_path_CXX
="${prev}${p}"
19656 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19659 # The "-l" case would never come before the object being
19660 # linked, so don't bother handling this case.
19663 if test -z "$postdeps_CXX"; then
19664 postdeps_CXX
="${prev}${p}"
19666 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19672 # This assumes that the test object file only shows up
19673 # once in the compiler output.
19674 if test "$p" = "conftest.$objext"; then
19675 pre_test_object_deps_done
=yes
19679 if test "$pre_test_object_deps_done" = no
; then
19680 if test -z "$predep_objects_CXX"; then
19681 predep_objects_CXX
="$p"
19683 predep_objects_CXX
="$predep_objects_CXX $p"
19686 if test -z "$postdep_objects_CXX"; then
19687 postdep_objects_CXX
="$p"
19689 postdep_objects_CXX
="$postdep_objects_CXX $p"
19694 *) ;; # Ignore the rest.
19702 echo "libtool.m4: error: problem compiling CXX test program"
19705 $RM -f confest.
$objext
19707 # PORTME: override above test on systems where it is broken
19710 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19711 # hack all around it, let's just trust "g++" to DTRT.
19712 predep_objects_CXX
=
19713 postdep_objects_CXX
=
19718 case `$CC -V 2>&1 | sed 5q` in
19722 # The more standards-conforming stlport4 library is
19723 # incompatible with the Cstd library. Avoid specifying
19724 # it if it's in CXXFLAGS. Ignore libCrun as
19725 # -library=stlport4 depends on it.
19726 case " $CXX $CXXFLAGS " in
19727 *" -library=stlport4 "*)
19728 solaris_use_stlport4
=yes
19732 if test "$solaris_use_stlport4" != yes; then
19733 postdeps_CXX
='-library=Cstd -library=Crun'
19740 case $cc_basename in
19742 # The more standards-conforming stlport4 library is
19743 # incompatible with the Cstd library. Avoid specifying
19744 # it if it's in CXXFLAGS. Ignore libCrun as
19745 # -library=stlport4 depends on it.
19746 case " $CXX $CXXFLAGS " in
19747 *" -library=stlport4 "*)
19748 solaris_use_stlport4
=yes
19752 # Adding this requires a known-good setup of shared libraries for
19753 # Sun compiler versions before 5.6, else PIC objects from an old
19754 # archive will be linked into the output, leading to subtle bugs.
19755 if test "$solaris_use_stlport4" != yes; then
19756 postdeps_CXX
='-library=Cstd -library=Crun'
19764 case " $postdeps_CXX " in
19765 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19767 compiler_lib_search_dirs_CXX
=
19768 if test -n "${compiler_lib_search_path_CXX}"; then
19769 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19802 lt_prog_compiler_wl_CXX
=
19803 lt_prog_compiler_pic_CXX
=
19804 lt_prog_compiler_static_CXX
=
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19807 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19809 # C++ specific cases for pic, static, wl, etc.
19810 if test "$GXX" = yes; then
19811 lt_prog_compiler_wl_CXX
='-Wl,'
19812 lt_prog_compiler_static_CXX
='-static'
19816 # All AIX code is PIC.
19817 if test "$host_cpu" = ia64
; then
19818 # AIX 5 now supports IA64 processor
19819 lt_prog_compiler_static_CXX
='-Bstatic'
19826 # see comment about AmigaOS4 .so support
19827 lt_prog_compiler_pic_CXX
='-fPIC'
19830 # FIXME: we need at least 68020 code to build shared libraries, but
19831 # adding the `-m68020' flag to GCC prevents building anything better,
19833 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19838 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19839 # PIC is the default for these OSes.
19841 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19842 # This hack is so that the source file can tell whether it is being
19843 # built for inclusion in a dll (and should export symbols for example).
19844 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19845 # (--disable-auto-import) libraries
19846 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19848 darwin
* | rhapsody
*)
19849 # PIC is the default on this platform
19850 # Common symbols not allowed in MH_DYLIB files
19851 lt_prog_compiler_pic_CXX
='-fno-common'
19854 # DJGPP does not support shared libraries at all
19855 lt_prog_compiler_pic_CXX
=
19858 # PIC is the default for Haiku.
19859 # The "-static" flag exists, but is broken.
19860 lt_prog_compiler_static_CXX
=
19863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19864 # Instead, we relocate shared libraries at runtime.
19867 if test -d /usr
/nec
; then
19868 lt_prog_compiler_pic_CXX
=-Kconform_pic
19872 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19873 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19874 # sets the default TLS model and affects inlining.
19879 lt_prog_compiler_pic_CXX
='-fPIC'
19884 # QNX uses GNU C++, but need to define -shared option too, otherwise
19885 # it will coredump.
19886 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19889 lt_prog_compiler_pic_CXX
='-fPIC'
19895 # All AIX code is PIC.
19896 if test "$host_cpu" = ia64
; then
19897 # AIX 5 now supports IA64 processor
19898 lt_prog_compiler_static_CXX
='-Bstatic'
19900 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19904 case $cc_basename in
19906 # Green Hills C++ Compiler
19907 # _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"
19912 case $cc_basename in
19914 lt_prog_compiler_pic_CXX
='-KPIC'
19917 # Green Hills C++ Compiler
19918 lt_prog_compiler_pic_CXX
='-pic'
19924 freebsd
* | dragonfly
*)
19925 # FreeBSD uses GNU C++
19927 hpux9
* | hpux10
* | hpux11
*)
19928 case $cc_basename in
19930 lt_prog_compiler_wl_CXX
='-Wl,'
19931 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19932 if test "$host_cpu" != ia64
; then
19933 lt_prog_compiler_pic_CXX
='+Z'
19937 lt_prog_compiler_wl_CXX
='-Wl,'
19938 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19944 lt_prog_compiler_pic_CXX
='+Z'
19953 # This is c89, which is MS Visual C++ (no shared libs)
19954 # Anyone wants to do a port?
19956 irix5
* | irix6
* | nonstopux
*)
19957 case $cc_basename in
19959 lt_prog_compiler_wl_CXX
='-Wl,'
19960 lt_prog_compiler_static_CXX
='-non_shared'
19961 # CC pic flag -KPIC is the default.
19967 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19968 case $cc_basename in
19971 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19972 lt_prog_compiler_pic_CXX
='-fPIC'
19975 # old Intel C++ for x86_64 which still supported -KPIC.
19976 lt_prog_compiler_wl_CXX
='-Wl,'
19977 lt_prog_compiler_pic_CXX
='-KPIC'
19978 lt_prog_compiler_static_CXX
='-static'
19981 # Intel C++, used to be incompatible with GCC.
19982 # ICC 10 doesn't accept -KPIC any more.
19983 lt_prog_compiler_wl_CXX
='-Wl,'
19984 lt_prog_compiler_pic_CXX
='-fPIC'
19985 lt_prog_compiler_static_CXX
='-static'
19988 # Portland Group C++ compiler
19989 lt_prog_compiler_wl_CXX
='-Wl,'
19990 lt_prog_compiler_pic_CXX
='-fpic'
19991 lt_prog_compiler_static_CXX
='-Bstatic'
19995 # Make sure the PIC flag is empty. It appears that all Alpha
19996 # Linux and Compaq Tru64 Unix objects are PIC.
19997 lt_prog_compiler_pic_CXX
=
19998 lt_prog_compiler_static_CXX
='-non_shared'
20000 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20001 # IBM XL 8.0, 9.0 on PPC and BlueGene
20002 lt_prog_compiler_wl_CXX
='-Wl,'
20003 lt_prog_compiler_pic_CXX
='-qpic'
20004 lt_prog_compiler_static_CXX
='-qstaticlink'
20007 case `$CC -V 2>&1 | sed 5q` in
20010 lt_prog_compiler_pic_CXX
='-KPIC'
20011 lt_prog_compiler_static_CXX
='-Bstatic'
20012 lt_prog_compiler_wl_CXX
='-Qoption ld '
20023 case $cc_basename in
20025 lt_prog_compiler_pic_CXX
='-W c,exportall'
20034 # QNX uses GNU C++, but need to define -shared option too, otherwise
20035 # it will coredump.
20036 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20038 osf3
* | osf4
* | osf5
*)
20039 case $cc_basename in
20041 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20044 # Rational C++ 2.4.1
20045 lt_prog_compiler_pic_CXX
='-pic'
20048 # Digital/Compaq C++
20049 lt_prog_compiler_wl_CXX
='-Wl,'
20050 # Make sure the PIC flag is empty. It appears that all Alpha
20051 # Linux and Compaq Tru64 Unix objects are PIC.
20052 lt_prog_compiler_pic_CXX
=
20053 lt_prog_compiler_static_CXX
='-non_shared'
20062 case $cc_basename in
20064 # Sun C++ 4.2, 5.x and Centerline C++
20065 lt_prog_compiler_pic_CXX
='-KPIC'
20066 lt_prog_compiler_static_CXX
='-Bstatic'
20067 lt_prog_compiler_wl_CXX
='-Qoption ld '
20070 # Green Hills C++ Compiler
20071 lt_prog_compiler_pic_CXX
='-PIC'
20078 case $cc_basename in
20081 lt_prog_compiler_pic_CXX
='-pic'
20082 lt_prog_compiler_static_CXX
='-Bstatic'
20086 lt_prog_compiler_pic_CXX
='-pic'
20092 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20093 case $cc_basename in
20095 lt_prog_compiler_wl_CXX
='-Wl,'
20096 lt_prog_compiler_pic_CXX
='-KPIC'
20097 lt_prog_compiler_static_CXX
='-Bstatic'
20102 case $cc_basename in
20104 # NonStop-UX NCC 3.20
20105 lt_prog_compiler_pic_CXX
='-KPIC'
20114 lt_prog_compiler_can_build_shared_CXX
=no
20120 # For platforms which do not support PIC, -DPIC is meaningless:
20122 lt_prog_compiler_pic_CXX
=
20125 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20129 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20134 # Check to make sure the PIC flag actually works.
20136 if test -n "$lt_prog_compiler_pic_CXX"; then
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20138 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20139 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20140 $as_echo_n "(cached) " >&6
20142 lt_cv_prog_compiler_pic_works_CXX
=no
20143 ac_outfile
=conftest.
$ac_objext
20144 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20145 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20146 # Insert the option either (1) after the last *FLAGS variable, or
20147 # (2) before a word containing "conftest.", or (3) at the end.
20148 # Note that $ac_compile itself does not contain backslashes and begins
20149 # with a dollar sign (not a hyphen), so the echo should work correctly.
20150 # The option is referenced via a variable to avoid confusing sed.
20151 lt_compile
=`echo "$ac_compile" | $SED \
20152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20154 -e 's:$: $lt_compiler_flag:'`
20155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20156 (eval "$lt_compile" 2>conftest.err
)
20158 cat conftest.err
>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 if (exit $ac_status) && test -s "$ac_outfile"; then
20161 # The compiler can only warn and ignore the option if not recognized
20162 # So say no if there are warnings other than the usual output.
20163 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20164 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20165 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20166 lt_cv_prog_compiler_pic_works_CXX
=yes
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20173 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20175 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20176 case $lt_prog_compiler_pic_CXX in
20178 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20181 lt_prog_compiler_pic_CXX
=
20182 lt_prog_compiler_can_build_shared_CXX
=no
20190 # Check to make sure the static flag actually works.
20192 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20194 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20195 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20196 $as_echo_n "(cached) " >&6
20198 lt_cv_prog_compiler_static_works_CXX
=no
20199 save_LDFLAGS
="$LDFLAGS"
20200 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20201 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20202 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20203 # The linker can only warn and ignore the option if not recognized
20204 # So say no if there are warnings
20205 if test -s conftest.err
; then
20206 # Append any errors to the config.log.
20207 cat conftest.err
1>&5
20208 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20209 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20210 if diff conftest.exp conftest.er2
>/dev
/null
; then
20211 lt_cv_prog_compiler_static_works_CXX
=yes
20214 lt_cv_prog_compiler_static_works_CXX
=yes
20218 LDFLAGS
="$save_LDFLAGS"
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20222 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20224 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20227 lt_prog_compiler_static_CXX
=
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20234 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20235 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20236 $as_echo_n "(cached) " >&6
20238 lt_cv_prog_compiler_c_o_CXX
=no
20239 $RM -r conftest
2>/dev
/null
20243 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20245 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20246 # Insert the option either (1) after the last *FLAGS variable, or
20247 # (2) before a word containing "conftest.", or (3) at the end.
20248 # Note that $ac_compile itself does not contain backslashes and begins
20249 # with a dollar sign (not a hyphen), so the echo should work correctly.
20250 lt_compile
=`echo "$ac_compile" | $SED \
20251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20253 -e 's:$: $lt_compiler_flag:'`
20254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20255 (eval "$lt_compile" 2>out
/conftest.err
)
20257 cat out
/conftest.err
>&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20261 # The compiler can only warn and ignore the option if not recognized
20262 # So say no if there are warnings
20263 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20264 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20265 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20266 lt_cv_prog_compiler_c_o_CXX
=yes
20271 # SGI C++ compiler will create directory out/ii_files/ for
20272 # template instantiation
20273 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20274 $RM out
/* && rmdir out
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20281 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20287 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20288 $as_echo_n "(cached) " >&6
20290 lt_cv_prog_compiler_c_o_CXX
=no
20291 $RM -r conftest
2>/dev
/null
20295 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20297 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20298 # Insert the option either (1) after the last *FLAGS variable, or
20299 # (2) before a word containing "conftest.", or (3) at the end.
20300 # Note that $ac_compile itself does not contain backslashes and begins
20301 # with a dollar sign (not a hyphen), so the echo should work correctly.
20302 lt_compile
=`echo "$ac_compile" | $SED \
20303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20305 -e 's:$: $lt_compiler_flag:'`
20306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20307 (eval "$lt_compile" 2>out
/conftest.err
)
20309 cat out
/conftest.err
>&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20313 # The compiler can only warn and ignore the option if not recognized
20314 # So say no if there are warnings
20315 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20316 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20317 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20318 lt_cv_prog_compiler_c_o_CXX
=yes
20323 # SGI C++ compiler will create directory out/ii_files/ for
20324 # template instantiation
20325 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20326 $RM out
/* && rmdir out
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20333 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20338 hard_links
="nottested"
20339 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20340 # do not overwrite the value of need_locks provided by the user
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20342 $as_echo_n "checking if we can lock with hard links... " >&6; }
20345 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20347 ln conftest.a conftest.b
2>&5 || hard_links
=no
20348 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20350 $as_echo "$hard_links" >&6; }
20351 if test "$hard_links" = no
; then
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20353 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20363 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20365 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20368 # If we're using GNU nm, then we don't want the "-C" option.
20369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20370 # Also, AIX nm treats weak defined symbols like other global defined
20371 # symbols, whereas GNU nm marks them as "W".
20372 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20373 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'
20375 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'
20379 export_symbols_cmds_CXX
="$ltdll_cmds"
20381 cygwin
* | mingw
* | cegcc
*)
20382 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'
20385 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20388 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20391 $as_echo "$ld_shlibs_CXX" >&6; }
20392 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20394 with_gnu_ld_CXX
=$with_gnu_ld
20402 # Do we need to explicitly link libc?
20404 case "x$archive_cmds_need_lc_CXX" in
20406 # Assume -lc should be added
20407 archive_cmds_need_lc_CXX
=yes
20409 if test "$enable_shared" = yes && test "$GCC" = yes; then
20410 case $archive_cmds_CXX in
20412 # FIXME: we may have to deal with multi-command sequences.
20415 # Test whether the compiler implicitly links with -lc since on some
20416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20417 # to ld, don't add -lc before -lgcc.
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20419 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20420 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20421 $as_echo_n "(cached) " >&6
20424 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20427 (eval $ac_compile) 2>&5
20429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20430 test $ac_status = 0; } 2>conftest.err
; then
20433 libobjs
=conftest.
$ac_objext
20435 wl
=$lt_prog_compiler_wl_CXX
20436 pic_flag
=$lt_prog_compiler_pic_CXX
20442 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20443 allow_undefined_flag_CXX
=
20444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20445 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20448 test $ac_status = 0; }
20450 lt_cv_archive_cmds_need_lc_CXX
=no
20452 lt_cv_archive_cmds_need_lc_CXX
=yes
20454 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20456 cat conftest.err
1>&5
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20462 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20463 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20534 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20536 library_names_spec
=
20537 libname_spec
='lib$name'
20541 postuninstall_cmds
=
20545 shlibpath_overrides_runpath
=unknown
20547 dynamic_linker
="$host_os ld.so"
20548 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20549 need_lib_prefix
=unknown
20550 hardcode_into_libs
=no
20552 # when you set need_version to no, make sure it does not cause -set_version
20553 # flags to be left without arguments
20554 need_version
=unknown
20559 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20560 shlibpath_var
=LIBPATH
20562 # AIX 3 has no versioning support, so we append a major version to the name.
20563 soname_spec
='${libname}${release}${shared_ext}$major'
20570 hardcode_into_libs
=yes
20571 if test "$host_cpu" = ia64
; then
20572 # AIX 5 supports IA64
20573 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20574 shlibpath_var
=LD_LIBRARY_PATH
20576 # With GCC up to 2.95.x, collect2 would create an import file
20577 # for dependence libraries. The import file would start with
20578 # the line `#! .'. This would cause the generated library to
20579 # depend on `.', always an invalid library. This was fixed in
20580 # development snapshots of GCC prior to 3.0.
20582 aix4 | aix4.
[01] | aix4.
[01].
*)
20583 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20585 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20588 can_build_shared
=no
20592 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20593 # soname into executable. Probably we can add versioning support to
20594 # collect2, so additional links can be useful in future.
20595 if test "$aix_use_runtimelinking" = yes; then
20596 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20597 # instead of lib<name>.a to let people know that these are not
20598 # typical AIX shared libraries.
20599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20601 # We preserve .a as extension for shared libraries through AIX4.2
20602 # and later when we are not doing run time linking.
20603 library_names_spec
='${libname}${release}.a $libname.a'
20604 soname_spec
='${libname}${release}${shared_ext}$major'
20606 shlibpath_var
=LIBPATH
20613 # Since July 2007 AmigaOS4 officially supports .so libraries.
20614 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20615 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618 library_names_spec
='$libname.ixlibrary $libname.a'
20619 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20620 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'
20626 library_names_spec
='${libname}${shared_ext}'
20627 dynamic_linker
="$host_os ld.so"
20628 shlibpath_var
=LIBRARY_PATH
20634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20635 soname_spec
='${libname}${release}${shared_ext}$major'
20636 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20637 shlibpath_var
=LD_LIBRARY_PATH
20638 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20639 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20640 # the default ld.so.conf also contains /usr/contrib/lib and
20641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20642 # libtool to hard-code these into programs
20645 cygwin
* | mingw
* | pw32
* | cegcc
*)
20646 version_type
=windows
20651 case $GCC,$host_os in
20652 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20653 library_names_spec
='$libname.dll.a'
20654 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20655 postinstall_cmds
='base_file=`basename \${file}`~
20656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20657 dldir=$destdir/`dirname \$dlpath`~
20658 test -d \$dldir || mkdir -p \$dldir~
20659 $install_prog $dir/$dlname \$dldir/$dlname~
20660 chmod a+x \$dldir/$dlname~
20661 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20662 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20664 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20665 dlpath=$dir/\$dldll~
20667 shlibpath_overrides_runpath
=yes
20671 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20672 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20676 # MinGW DLLs use traditional 'lib' prefix
20677 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20680 # pw32 DLLs use 'pw' prefix rather than 'lib'
20681 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20687 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20690 dynamic_linker
='Win32 ld.exe'
20691 # FIXME: first we should search . and the directory the executable is in
20695 darwin
* | rhapsody
*)
20696 dynamic_linker
="$host_os dyld"
20697 version_type
=darwin
20700 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20701 soname_spec
='${libname}${release}${major}$shared_ext'
20702 shlibpath_overrides_runpath
=yes
20703 shlibpath_var
=DYLD_LIBRARY_PATH
20704 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20706 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20714 soname_spec
='${libname}${release}${shared_ext}$major'
20715 shlibpath_var
=LD_LIBRARY_PATH
20718 freebsd
* | dragonfly
*)
20719 # DragonFly does not have aout. When/if they implement a new
20720 # versioning mechanism, adjust this.
20721 if test -x /usr
/bin
/objformat
; then
20722 objformat
=`/usr/bin/objformat`
20725 freebsd
[123]*) objformat
=aout
;;
20726 *) objformat
=elf
;;
20729 version_type
=freebsd-
$objformat
20730 case $version_type in
20732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20737 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20741 shlibpath_var
=LD_LIBRARY_PATH
20744 shlibpath_overrides_runpath
=yes
20746 freebsd3.
[01]* | freebsdelf3.
[01]*)
20747 shlibpath_overrides_runpath
=yes
20748 hardcode_into_libs
=yes
20750 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20751 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20752 shlibpath_overrides_runpath
=no
20753 hardcode_into_libs
=yes
20755 *) # from 4.6 on, and DragonFly
20756 shlibpath_overrides_runpath
=yes
20757 hardcode_into_libs
=yes
20766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20767 soname_spec
='${libname}${release}${shared_ext}$major'
20768 shlibpath_var
=LD_LIBRARY_PATH
20769 hardcode_into_libs
=yes
20776 dynamic_linker
="$host_os runtime_loader"
20777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20778 soname_spec
='${libname}${release}${shared_ext}$major'
20779 shlibpath_var
=LIBRARY_PATH
20780 shlibpath_overrides_runpath
=yes
20781 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20782 hardcode_into_libs
=yes
20785 hpux9
* | hpux10
* | hpux11
*)
20786 # Give a soname corresponding to the major version so that dld.sl refuses to
20787 # link against other versions.
20794 hardcode_into_libs
=yes
20795 dynamic_linker
="$host_os dld.so"
20796 shlibpath_var
=LD_LIBRARY_PATH
20797 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20799 soname_spec
='${libname}${release}${shared_ext}$major'
20800 if test "X$HPUX_IA64_MODE" = X32
; then
20801 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20803 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20805 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20809 hardcode_into_libs
=yes
20810 dynamic_linker
="$host_os dld.sl"
20811 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20812 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20814 soname_spec
='${libname}${release}${shared_ext}$major'
20815 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20816 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20820 dynamic_linker
="$host_os dld.sl"
20821 shlibpath_var
=SHLIB_PATH
20822 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20824 soname_spec
='${libname}${release}${shared_ext}$major'
20827 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20828 postinstall_cmds
='chmod 555 $lib'
20829 # or fails outright, so override atomically:
20830 install_override_mode
=555
20837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20838 soname_spec
='${libname}${release}${shared_ext}$major'
20839 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20840 shlibpath_var
=LD_LIBRARY_PATH
20841 shlibpath_overrides_runpath
=no
20842 hardcode_into_libs
=yes
20845 irix5
* | irix6
* | nonstopux
*)
20847 nonstopux
*) version_type
=nonstopux
;;
20849 if test "$lt_cv_prog_gnu_ld" = yes; then
20857 soname_spec
='${libname}${release}${shared_ext}$major'
20858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20860 irix5
* | nonstopux
*)
20861 libsuff
= shlibsuff
=
20864 case $LD in # libtool.m4 will add one of these switches to LD
20865 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20866 libsuff
= shlibsuff
= libmagic
=32-bit;;
20867 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20868 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20869 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20870 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20871 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20875 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20876 shlibpath_overrides_runpath
=no
20877 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20878 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20879 hardcode_into_libs
=yes
20882 # No shared lib support for Linux oldld, aout, or coff.
20883 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20887 # This must be Linux ELF.
20888 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893 soname_spec
='${libname}${release}${shared_ext}$major'
20894 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20895 shlibpath_var
=LD_LIBRARY_PATH
20896 shlibpath_overrides_runpath
=no
20898 # Some binutils ld are patched to set DT_RUNPATH
20899 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20900 $as_echo_n "(cached) " >&6
20902 lt_cv_shlibpath_overrides_runpath
=no
20903 save_LDFLAGS
=$LDFLAGS
20904 save_libdir
=$libdir
20905 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20906 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20908 /* end confdefs.h. */
20918 if ac_fn_cxx_try_link
"$LINENO"; then :
20919 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20920 lt_cv_shlibpath_overrides_runpath
=yes
20923 rm -f core conftest.err conftest.
$ac_objext \
20924 conftest
$ac_exeext conftest.
$ac_ext
20925 LDFLAGS
=$save_LDFLAGS
20926 libdir
=$save_libdir
20930 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20932 # This implies no fast_install, which is unacceptable.
20933 # Some rework will be needed to allow for fast_install
20934 # before this can be enabled.
20935 hardcode_into_libs
=yes
20937 # Append ld.so.conf contents to the search path
20938 if test -f /etc
/ld.so.conf
; then
20939 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' ' '`
20940 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20943 # We used to test for /lib/ld.so.1 and disable shared libraries on
20944 # powerpc, because MkLinux only supported shared libraries with the
20945 # GNU dynamic linker. Since this was broken with cross compilers,
20946 # most powerpc-linux boxes support dynamic linking these days and
20947 # people can always --disable-shared, the test was removed, and we
20948 # assume the GNU/Linux dynamic linker is in use.
20949 dynamic_linker
='GNU/Linux ld.so'
20956 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20958 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20959 dynamic_linker
='NetBSD (a.out) ld.so'
20961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20962 soname_spec
='${libname}${release}${shared_ext}$major'
20963 dynamic_linker
='NetBSD ld.elf_so'
20965 shlibpath_var
=LD_LIBRARY_PATH
20966 shlibpath_overrides_runpath
=yes
20967 hardcode_into_libs
=yes
20972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20973 shlibpath_var
=LD_LIBRARY_PATH
20974 shlibpath_overrides_runpath
=yes
20981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20982 soname_spec
='${libname}${release}${shared_ext}$major'
20983 shlibpath_var
=LD_LIBRARY_PATH
20984 shlibpath_overrides_runpath
=no
20985 hardcode_into_libs
=yes
20986 dynamic_linker
='ldqnx.so'
20991 sys_lib_dlsearch_path_spec
="/usr/lib"
20993 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20995 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20996 *) need_version
=no
;;
20998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20999 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21000 shlibpath_var
=LD_LIBRARY_PATH
21001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21003 openbsd2.
[89] | openbsd2.
[89].
*)
21004 shlibpath_overrides_runpath
=no
21007 shlibpath_overrides_runpath
=yes
21011 shlibpath_overrides_runpath
=yes
21016 libname_spec
='$name'
21019 library_names_spec
='$libname${shared_ext} $libname.a'
21020 dynamic_linker
='OS/2 ld.exe'
21021 shlibpath_var
=LIBPATH
21024 osf3
* | osf4
* | osf5
*)
21028 soname_spec
='${libname}${release}${shared_ext}$major'
21029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 shlibpath_var
=LD_LIBRARY_PATH
21031 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21032 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21043 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21044 soname_spec
='${libname}${release}${shared_ext}$major'
21045 shlibpath_var
=LD_LIBRARY_PATH
21046 shlibpath_overrides_runpath
=yes
21047 hardcode_into_libs
=yes
21048 # ldd complains unless libraries are executable
21049 postinstall_cmds
='chmod +x $lib'
21054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21055 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21056 shlibpath_var
=LD_LIBRARY_PATH
21057 shlibpath_overrides_runpath
=yes
21058 if test "$with_gnu_ld" = yes; then
21066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21067 soname_spec
='${libname}${release}${shared_ext}$major'
21068 shlibpath_var
=LD_LIBRARY_PATH
21069 case $host_vendor in
21071 shlibpath_overrides_runpath
=no
21073 runpath_var
=LD_RUN_PATH
21081 shlibpath_overrides_runpath
=no
21082 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21088 if test -d /usr
/nec
;then
21090 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21091 soname_spec
='$libname${shared_ext}.$major'
21092 shlibpath_var
=LD_LIBRARY_PATH
21096 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21097 version_type
=freebsd-elf
21100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21101 soname_spec
='${libname}${release}${shared_ext}$major'
21102 shlibpath_var
=LD_LIBRARY_PATH
21103 shlibpath_overrides_runpath
=yes
21104 hardcode_into_libs
=yes
21105 if test "$with_gnu_ld" = yes; then
21106 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21108 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21111 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21115 sys_lib_dlsearch_path_spec
='/usr/lib'
21119 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21124 shlibpath_var
=LD_LIBRARY_PATH
21125 shlibpath_overrides_runpath
=no
21126 hardcode_into_libs
=yes
21131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21132 soname_spec
='${libname}${release}${shared_ext}$major'
21133 shlibpath_var
=LD_LIBRARY_PATH
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21141 $as_echo "$dynamic_linker" >&6; }
21142 test "$dynamic_linker" = no
&& can_build_shared
=no
21144 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21145 if test "$GCC" = yes; then
21146 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21149 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21150 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21152 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21153 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21194 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21195 hardcode_action_CXX
=
21196 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21197 test -n "$runpath_var_CXX" ||
21198 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21200 # We can hardcode non-existent directories.
21201 if test "$hardcode_direct_CXX" != no
&&
21202 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21203 # have to relink, otherwise we might link with an installed library
21204 # when we should be linking with a yet-to-be-installed one
21205 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21206 test "$hardcode_minus_L_CXX" != no
; then
21207 # Linking always hardcodes the temporary library directory.
21208 hardcode_action_CXX
=relink
21210 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21211 hardcode_action_CXX
=immediate
21214 # We cannot hardcode anything, or else we can only hardcode existing
21216 hardcode_action_CXX
=unsupported
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21219 $as_echo "$hardcode_action_CXX" >&6; }
21221 if test "$hardcode_action_CXX" = relink ||
21222 test "$inherit_rpath_CXX" = yes; then
21223 # Fast installation is not supported
21224 enable_fast_install
=no
21225 elif test "$shlibpath_overrides_runpath" = yes ||
21226 test "$enable_shared" = no
; then
21227 # Fast installation is not necessary
21228 enable_fast_install
=needless
21237 fi # test -n "$compiler"
21243 with_gnu_ld
=$lt_save_with_gnu_ld
21244 lt_cv_path_LDCXX
=$lt_cv_path_LD
21245 lt_cv_path_LD
=$lt_save_path_LD
21246 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21247 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21248 fi # test "$_lt_caught_CXX_error" != yes
21251 ac_cpp
='$CPP $CPPFLAGS'
21252 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21253 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21254 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21271 # Only expand once:
21277 # Identify the assembler which will work hand-in-glove with the newly
21278 # built GCC, so that we can examine its features. This is the assembler
21279 # which will be driven by the driver program.
21281 # If build != host, and we aren't building gas in-tree, we identify a
21282 # build->target assembler and hope that it will have the same features
21283 # as the host->target assembler we'll be using.
21284 gcc_cv_gas_major_version
=
21285 gcc_cv_gas_minor_version
=
21286 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21288 if test "${gcc_cv_as+set}" = set; then :
21292 if test -x "$DEFAULT_ASSEMBLER"; then
21293 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21294 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21295 && test -f ..
/gas
/Makefile \
21296 && test x
$build = x
$host; then
21297 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21298 elif test -x as
$build_exeext; then
21299 # Build using assembler in the current directory.
21300 gcc_cv_as
=.
/as
$build_exeext
21301 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21302 gcc_cv_as
="$AS_FOR_TARGET"
21304 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21305 set dummy
$AS_FOR_TARGET; ac_word
=$2
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21307 $as_echo_n "checking for $ac_word... " >&6; }
21308 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21309 $as_echo_n "(cached) " >&6
21313 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21317 for as_dir
in $PATH
21320 test -z "$as_dir" && as_dir
=.
21321 for ac_exec_ext
in '' $ac_executable_extensions; do
21322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21323 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21334 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21335 if test -n "$gcc_cv_as"; then
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21337 $as_echo "$gcc_cv_as" >&6; }
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21340 $as_echo "no" >&6; }
21347 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21349 case "$ORIGINAL_AS_FOR_TARGET" in
21350 .
/as | .
/as
$build_exeext) ;;
21351 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21356 $as_echo_n "checking what assembler to use... " >&6; }
21357 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21358 # Single tree build which includes gas. We want to prefer it
21359 # over whatever linker top-level may have detected, since
21360 # we'll use what we're building after installation anyway.
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21362 $as_echo "newly built gas" >&6; }
21364 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21365 for f
in $gcc_cv_as_bfd_srcdir/configure \
21366 $gcc_cv_as_gas_srcdir/configure \
21367 $gcc_cv_as_gas_srcdir/configure.
in \
21368 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21369 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21370 if test x
$gcc_cv_gas_version != x
; then
21374 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21375 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21376 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21377 case $gcc_cv_gas_patch_version in
21378 "") gcc_cv_gas_patch_version
="0" ;;
21380 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21381 + $gcc_cv_gas_minor_version \) \* 1000 \
21382 + $gcc_cv_gas_patch_version`
21384 in_tree_gas_is_elf
=no
21385 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21386 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21387 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21389 in_tree_gas_is_elf
=yes
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21393 $as_echo "$gcc_cv_as" >&6; }
21397 # Identify the linker which will work hand-in-glove with the newly
21398 # built GCC, so that we can examine its features. This is the linker
21399 # which will be driven by the driver program.
21401 # If build != host, and we aren't building gas in-tree, we identify a
21402 # build->target linker and hope that it will have the same features
21403 # as the host->target linker we'll be using.
21404 gcc_cv_gld_major_version
=
21405 gcc_cv_gld_minor_version
=
21406 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21407 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21409 if test "${gcc_cv_ld+set}" = set; then :
21413 if test -x "$DEFAULT_LINKER"; then
21414 gcc_cv_ld
="$DEFAULT_LINKER"
21415 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21416 && test -f ..
/ld
/Makefile \
21417 && test x
$build = x
$host; then
21418 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21419 elif test -x collect-ld
$build_exeext; then
21420 # Build using linker in the current directory.
21421 gcc_cv_ld
=.
/collect-ld
$build_exeext
21422 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21423 gcc_cv_ld
="$LD_FOR_TARGET"
21425 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21426 set dummy
$LD_FOR_TARGET; ac_word
=$2
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21428 $as_echo_n "checking for $ac_word... " >&6; }
21429 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21430 $as_echo_n "(cached) " >&6
21434 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21438 for as_dir
in $PATH
21441 test -z "$as_dir" && as_dir
=.
21442 for ac_exec_ext
in '' $ac_executable_extensions; do
21443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21444 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21455 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21456 if test -n "$gcc_cv_ld"; then
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21458 $as_echo "$gcc_cv_ld" >&6; }
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21461 $as_echo "no" >&6; }
21468 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21469 PLUGIN_LD
=`basename $gcc_cv_ld`
21471 # Check whether --with-plugin-ld was given.
21472 if test "${with_plugin_ld+set}" = set; then :
21473 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21474 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21475 PLUGIN_LD
="$withval"
21481 cat >>confdefs.h
<<_ACEOF
21482 #define PLUGIN_LD "$PLUGIN_LD"
21486 # Check to see if we are using gold instead of ld
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21488 $as_echo_n "checking whether we are using gold... " >&6; }
21490 if test x
$gcc_cv_ld != x
; then
21491 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21492 |
grep "GNU gold" > /dev
/null
; then
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21497 $as_echo "$ld_is_gold" >&6; }
21499 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21501 case "$ORIGINAL_LD_FOR_TARGET" in
21502 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21503 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21508 $as_echo_n "checking what linker to use... " >&6; }
21509 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21510 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21511 # Single tree build which includes ld. We want to prefer it
21512 # over whatever linker top-level may have detected, since
21513 # we'll use what we're building after installation anyway.
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21515 $as_echo "newly built ld" >&6; }
21517 in_tree_ld_is_elf
=no
21518 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21519 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21520 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21521 in_tree_ld_is_elf
=yes
21522 elif test "$ld_is_gold" = yes; then
21523 in_tree_ld_is_elf
=yes
21525 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
21527 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21528 if test x
$gcc_cv_gld_version != x
; then
21532 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21533 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21536 $as_echo "$gcc_cv_ld" >&6; }
21540 # Figure out what nm we will be using.
21541 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21542 if test "${gcc_cv_nm+set}" = set; then :
21546 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21547 && test -f ..
/binutils
/Makefile \
21548 && test x
$build = x
$host; then
21549 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21550 elif test -x nm
$build_exeext; then
21551 gcc_cv_nm
=.
/nm
$build_exeext
21552 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21553 gcc_cv_nm
="$NM_FOR_TARGET"
21555 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21556 set dummy
$NM_FOR_TARGET; ac_word
=$2
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21558 $as_echo_n "checking for $ac_word... " >&6; }
21559 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21560 $as_echo_n "(cached) " >&6
21564 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21568 for as_dir
in $PATH
21571 test -z "$as_dir" && as_dir
=.
21572 for ac_exec_ext
in '' $ac_executable_extensions; do
21573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21574 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21585 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21586 if test -n "$gcc_cv_nm"; then
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21588 $as_echo "$gcc_cv_nm" >&6; }
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21599 $as_echo_n "checking what nm to use... " >&6; }
21600 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21601 # Single tree build which includes binutils.
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21603 $as_echo "newly built nm" >&6; }
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21607 $as_echo "$gcc_cv_nm" >&6; }
21611 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21613 case "$ORIGINAL_NM_FOR_TARGET" in
21614 .
/nm | .
/nm
$build_exeext) ;;
21615 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21620 # Figure out what objdump we will be using.
21621 if test "${gcc_cv_objdump+set}" = set; then :
21625 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21626 && test -f ..
/binutils
/Makefile \
21627 && test x
$build = x
$host; then
21628 # Single tree build which includes binutils.
21629 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21630 elif test -x objdump
$build_exeext; then
21631 gcc_cv_objdump
=.
/objdump
$build_exeext
21632 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21633 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21635 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21636 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21638 $as_echo_n "checking for $ac_word... " >&6; }
21639 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21640 $as_echo_n "(cached) " >&6
21642 case $gcc_cv_objdump in
21644 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21648 for as_dir
in $PATH
21651 test -z "$as_dir" && as_dir
=.
21652 for ac_exec_ext
in '' $ac_executable_extensions; do
21653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21654 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21665 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21666 if test -n "$gcc_cv_objdump"; then
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21668 $as_echo "$gcc_cv_objdump" >&6; }
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21679 $as_echo_n "checking what objdump to use... " >&6; }
21680 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21681 # Single tree build which includes binutils.
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21683 $as_echo "newly built objdump" >&6; }
21684 elif test x
$gcc_cv_objdump = x
; then
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21686 $as_echo "not found" >&6; }
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21689 $as_echo "$gcc_cv_objdump" >&6; }
21692 # Figure out what readelf we will be using.
21693 if test "${gcc_cv_readelf+set}" = set; then :
21697 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21698 && test -f ..
/binutils
/Makefile \
21699 && test x
$build = x
$host; then
21700 # Single tree build which includes binutils.
21701 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21702 elif test -x readelf
$build_exeext; then
21703 gcc_cv_readelf
=.
/readelf
$build_exeext
21705 # Extract the first word of "readelf", so it can be a program name with args.
21706 set dummy readelf
; ac_word
=$2
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21708 $as_echo_n "checking for $ac_word... " >&6; }
21709 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21710 $as_echo_n "(cached) " >&6
21712 case $gcc_cv_readelf in
21714 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21718 for as_dir
in $PATH
21721 test -z "$as_dir" && as_dir
=.
21722 for ac_exec_ext
in '' $ac_executable_extensions; do
21723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21724 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21735 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21736 if test -n "$gcc_cv_readelf"; then
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21738 $as_echo "$gcc_cv_readelf" >&6; }
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21741 $as_echo "no" >&6; }
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21749 $as_echo_n "checking what readelf to use... " >&6; }
21750 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21751 # Single tree build which includes binutils.
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21753 $as_echo "newly built readelf" >&6; }
21754 elif test x
$gcc_cv_readelf = x
; then
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21756 $as_echo "not found" >&6; }
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21759 $as_echo "$gcc_cv_readelf" >&6; }
21762 # Figure out what assembler alignment features are present.
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21764 $as_echo_n "checking assembler flags... " >&6; }
21765 if test "${gcc_cv_as_flags+set}" = set; then :
21766 $as_echo_n "(cached) " >&6
21769 i
[34567]86-*-linux*)
21770 gcc_cv_as_flags
="--32"
21772 powerpc
*-*-darwin*)
21773 gcc_cv_as_flags
="-arch ppc"
21776 gcc_cv_as_flags
=" "
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21781 $as_echo "$gcc_cv_as_flags" >&6; }
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21784 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21785 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21786 $as_echo_n "(cached) " >&6
21788 gcc_cv_as_balign_and_p2align
=no
21789 if test $in_tree_gas = yes; then
21790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21791 then gcc_cv_as_balign_and_p2align
=yes
21793 elif test x
$gcc_cv_as != x
; then
21794 $as_echo '.balign 4
21795 .p2align 2' > conftest.s
21796 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21798 (eval $ac_try) 2>&5
21800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21801 test $ac_status = 0; }; }
21803 gcc_cv_as_balign_and_p2align
=yes
21805 echo "configure: failed program was" >&5
21808 rm -f conftest.o conftest.s
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21812 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21813 if test $gcc_cv_as_balign_and_p2align = yes; then
21815 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21820 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21821 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21822 $as_echo_n "(cached) " >&6
21824 gcc_cv_as_max_skip_p2align
=no
21825 if test $in_tree_gas = yes; then
21826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21827 then gcc_cv_as_max_skip_p2align
=yes
21829 elif test x
$gcc_cv_as != x
; then
21830 $as_echo '.p2align 4,,7' > conftest.s
21831 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21833 (eval $ac_try) 2>&5
21835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21836 test $ac_status = 0; }; }
21838 gcc_cv_as_max_skip_p2align
=yes
21840 echo "configure: failed program was" >&5
21843 rm -f conftest.o conftest.s
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21847 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21848 if test $gcc_cv_as_max_skip_p2align = yes; then
21850 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21855 $as_echo_n "checking assembler for .literal16... " >&6; }
21856 if test "${gcc_cv_as_literal16+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21859 gcc_cv_as_literal16
=no
21860 if test $in_tree_gas = yes; then
21861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21862 then gcc_cv_as_literal16
=yes
21864 elif test x
$gcc_cv_as != x
; then
21865 $as_echo '.literal16' > conftest.s
21866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21868 (eval $ac_try) 2>&5
21870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21871 test $ac_status = 0; }; }
21873 gcc_cv_as_literal16
=yes
21875 echo "configure: failed program was" >&5
21878 rm -f conftest.o conftest.s
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21882 $as_echo "$gcc_cv_as_literal16" >&6; }
21883 if test $gcc_cv_as_literal16 = yes; then
21885 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21890 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21891 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21892 $as_echo_n "(cached) " >&6
21894 gcc_cv_as_subsection_m1
=no
21895 if test $in_tree_gas = yes; then
21896 if test $in_tree_gas_is_elf = yes \
21897 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21898 then gcc_cv_as_subsection_m1
=yes
21900 elif test x
$gcc_cv_as != x
; then
21901 $as_echo 'conftest_label1: .word 0
21903 conftest_label2: .word 0
21904 .previous' > conftest.s
21905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21907 (eval $ac_try) 2>&5
21909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910 test $ac_status = 0; }; }
21912 if test x
$gcc_cv_nm != x
; then
21913 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21914 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21915 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21917 else gcc_cv_as_subsection_m1
=yes
21919 rm -f conftest.nm1 conftest.nm2
21922 echo "configure: failed program was" >&5
21925 rm -f conftest.o conftest.s
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21929 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21930 if test $gcc_cv_as_subsection_m1 = yes; then
21932 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21937 $as_echo_n "checking assembler for .weak... " >&6; }
21938 if test "${gcc_cv_as_weak+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21942 if test $in_tree_gas = yes; then
21943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21944 then gcc_cv_as_weak
=yes
21946 elif test x
$gcc_cv_as != x
; then
21947 $as_echo ' .weak foobar' > conftest.s
21948 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21950 (eval $ac_try) 2>&5
21952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21953 test $ac_status = 0; }; }
21957 echo "configure: failed program was" >&5
21960 rm -f conftest.o conftest.s
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21964 $as_echo "$gcc_cv_as_weak" >&6; }
21965 if test $gcc_cv_as_weak = yes; then
21967 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21972 $as_echo_n "checking assembler for .weakref... " >&6; }
21973 if test "${gcc_cv_as_weakref+set}" = set; then :
21974 $as_echo_n "(cached) " >&6
21976 gcc_cv_as_weakref
=no
21977 if test $in_tree_gas = yes; then
21978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21979 then gcc_cv_as_weakref
=yes
21981 elif test x
$gcc_cv_as != x
; then
21982 $as_echo ' .weakref foobar, barfnot' > conftest.s
21983 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21985 (eval $ac_try) 2>&5
21987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21988 test $ac_status = 0; }; }
21990 gcc_cv_as_weakref
=yes
21992 echo "configure: failed program was" >&5
21995 rm -f conftest.o conftest.s
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21999 $as_echo "$gcc_cv_as_weakref" >&6; }
22000 if test $gcc_cv_as_weakref = yes; then
22002 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22007 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22008 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22011 gcc_cv_as_nsubspa_comdat
=no
22012 if test $in_tree_gas = yes; then
22013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22014 then gcc_cv_as_nsubspa_comdat
=yes
22016 elif test x
$gcc_cv_as != x
; then
22017 $as_echo ' .SPACE $TEXT$
22018 .NSUBSPA $CODE$,COMDAT' > conftest.s
22019 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22021 (eval $ac_try) 2>&5
22023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22024 test $ac_status = 0; }; }
22026 gcc_cv_as_nsubspa_comdat
=yes
22028 echo "configure: failed program was" >&5
22031 rm -f conftest.o conftest.s
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22035 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22036 if test $gcc_cv_as_nsubspa_comdat = yes; then
22038 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22042 # .hidden needs to be supported in both the assembler and the linker,
22043 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22044 # This is irritatingly difficult to feature test for; we have to check the
22045 # date string after the version number. If we've got an in-tree
22046 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22048 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22050 $as_echo_n "checking assembler for .hidden... " >&6; }
22051 if test "${gcc_cv_as_hidden+set}" = set; then :
22052 $as_echo_n "(cached) " >&6
22054 gcc_cv_as_hidden
=no
22055 if test $in_tree_gas = yes; then
22056 if test $in_tree_gas_is_elf = yes \
22057 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22058 then gcc_cv_as_hidden
=yes
22060 elif test x
$gcc_cv_as != x
; then
22061 $as_echo ' .hidden foobar
22062 foobar:' > conftest.s
22063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22065 (eval $ac_try) 2>&5
22067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22068 test $ac_status = 0; }; }
22071 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22072 # STV_HIDDEN, so disable .hidden support if so.
22073 case "${target}" in
22074 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22075 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22076 cat > conftest.s
<<EOF
22081 .set default,hidden
22083 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22084 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22085 grep '\.hidden default' > /dev
/null
; then
22086 gcc_cv_as_hidden
=no
22088 gcc_cv_as_hidden
=yes
22091 # Assume bug is present if objdump is missing.
22092 gcc_cv_as_hidden
=no
22096 gcc_cv_as_hidden
=yes
22100 echo "configure: failed program was" >&5
22103 rm -f conftest.o conftest.s
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22107 $as_echo "$gcc_cv_as_hidden" >&6; }
22109 case "${target}" in
22111 # Darwin as has some visibility support, though with a different syntax.
22112 gcc_cv_as_hidden
=yes
22116 # gnu_indirect_function type is an extension proposed at
22117 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22118 # selection of function implementation
22119 # Check whether --enable-gnu-indirect-function was given.
22120 if test "${enable_gnu_indirect_function+set}" = set; then :
22121 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22123 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22124 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22127 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22130 if test x
$enable_gnu_indirect_function = xyes
; then
22132 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22136 if test $in_tree_ld != yes ; then
22137 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22138 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22139 if test x
"$ld_is_gold" = xyes
; then
22140 # GNU gold --version looks like this:
22142 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22144 # We extract the binutils version which is more familiar and specific
22145 # than the gold version.
22146 ld_vers
=`echo $ld_ver | sed -n \
22147 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22149 # GNU ld --version looks like this:
22151 # GNU ld (GNU Binutils) 2.21.51.20110225
22152 ld_vers
=`echo $ld_ver | sed -n \
22153 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22155 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'`
22156 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22157 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22158 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22160 case "${target}" in
22163 # Solaris 2 ld -V output looks like this for a regular version:
22165 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22167 # but test versions add stuff at the end:
22169 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22171 ld_ver
=`$gcc_cv_ld -V 2>&1`
22172 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22173 ld_vers
=`echo $ld_ver | sed -n \
22174 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22175 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22176 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22184 $as_echo_n "checking linker for .hidden support... " >&6; }
22185 if test "${gcc_cv_ld_hidden+set}" = set; then :
22186 $as_echo_n "(cached) " >&6
22188 if test $in_tree_ld = yes ; then
22189 gcc_cv_ld_hidden
=no
22190 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 \
22191 && test $in_tree_ld_is_elf = yes; then
22192 gcc_cv_ld_hidden
=yes
22195 gcc_cv_ld_hidden
=yes
22196 if test x
"$ld_is_gold" = xyes
; then
22198 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22199 if test 0"$ld_date" -lt 20020404; then
22200 if test -n "$ld_date"; then
22201 # If there was date string, but was earlier than 2002-04-04, fail
22202 gcc_cv_ld_hidden
=no
22203 elif test -z "$ld_vers"; then
22204 # If there was no date string nor ld version number, something is wrong
22205 gcc_cv_ld_hidden
=no
22207 test -z "$ld_vers_patch" && ld_vers_patch
=0
22208 if test "$ld_vers_major" -lt 2; then
22209 gcc_cv_ld_hidden
=no
22210 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22211 gcc_cv_ld_hidden
="no"
22212 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22213 gcc_cv_ld_hidden
=no
22218 case "${target}" in
22220 # Darwin ld has some visibility support.
22221 gcc_cv_ld_hidden
=yes
22223 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22224 gcc_cv_ld_hidden
=yes
22227 # .hidden support was backported to Solaris 8, starting with ld
22229 if test "$ld_vers_minor" -ge 276; then
22230 gcc_cv_ld_hidden
=yes
22232 gcc_cv_ld_hidden
=no
22235 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22236 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22237 # .symbolic was only added in Solaris 9 12/02.
22238 gcc_cv_ld_hidden
=yes
22241 gcc_cv_ld_hidden
=no
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22248 $as_echo "$gcc_cv_ld_hidden" >&6; }
22249 libgcc_visibility
=no
22252 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22253 libgcc_visibility
=yes
22255 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22260 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22261 gcc_cv_ld_ro_rw_mix
=unknown
22262 if test $in_tree_ld = yes ; then
22263 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 \
22264 && test $in_tree_ld_is_elf = yes; then
22265 gcc_cv_ld_ro_rw_mix
=read-write
22267 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22268 echo '.section myfoosect, "a"' > conftest1.s
22269 echo '.section myfoosect, "aw"' > conftest2.s
22270 echo '.byte 1' >> conftest2.s
22271 echo '.section myfoosect, "a"' > conftest3.s
22272 echo '.byte 0' >> conftest3.s
22273 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22274 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22275 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22276 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22277 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22278 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22279 | sed -e '/myfoosect/!d' -e N`
22280 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22281 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22282 gcc_cv_ld_ro_rw_mix
=read-only
22284 gcc_cv_ld_ro_rw_mix
=read-write
22288 rm -f conftest.
* conftest
[123].
*
22290 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22292 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22296 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22298 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22300 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22301 if test "${gcc_cv_as_leb128+set}" = set; then :
22302 $as_echo_n "(cached) " >&6
22304 gcc_cv_as_leb128
=no
22305 if test $in_tree_gas = yes; then
22306 if test $in_tree_gas_is_elf = yes \
22307 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22308 then gcc_cv_as_leb128
=yes
22310 elif test x
$gcc_cv_as != x
; then
22317 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22319 (eval $ac_try) 2>&5
22321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22322 test $ac_status = 0; }; }
22324 # GAS versions before 2.11 do not support uleb128,
22325 # despite appearing to.
22326 # ??? There exists an elf-specific test that will crash
22327 # the assembler. Perhaps it's better to figure out whether
22328 # arbitrary sections are supported and try the test.
22329 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22330 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22331 as_vers
=`echo $as_ver | sed -n \
22332 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22333 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22334 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22335 if test $as_major -eq 2 && test $as_minor -lt 11
22337 else gcc_cv_as_leb128
=yes
22341 echo "configure: failed program was" >&5
22344 rm -f conftest.o conftest.s
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22348 $as_echo "$gcc_cv_as_leb128" >&6; }
22349 if test $gcc_cv_as_leb128 = yes; then
22351 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22355 # Check if we have assembler support for unwind directives.
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22357 $as_echo_n "checking assembler for cfi directives... " >&6; }
22358 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22359 $as_echo_n "(cached) " >&6
22361 gcc_cv_as_cfi_directive
=no
22362 if test x
$gcc_cv_as != x
; then
22368 .cfi_escape 1, 2, 3, 4, 5
22369 .cfi_endproc' > conftest.s
22370 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22372 (eval $ac_try) 2>&5
22374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22375 test $ac_status = 0; }; }
22379 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22380 # read-only and read-write sections, we need to make sure that the
22381 # assembler used emits read-write .eh_frame sections.
22382 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22383 if test "x$gcc_cv_objdump" != x
; then
22384 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22385 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22386 gcc_cv_as_cfi_directive
=no
22389 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22390 # On Solaris/x86, make sure that GCC and gas agree on using
22391 # read-only .eh_frame sections for 64-bit.
22392 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22393 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22394 sed -e /.eh_frame
/!d
-e N | \
22395 grep READONLY
> /dev
/null
; then
22396 gcc_cv_as_cfi_directive
=yes
22398 gcc_cv_as_cfi_directive
=no
22402 gcc_cv_as_cfi_directive
=yes
22407 # no objdump, err on the side of caution
22408 gcc_cv_as_cfi_directive
=no
22411 gcc_cv_as_cfi_directive
=yes
22415 gcc_cv_as_cfi_directive
=yes
22419 echo "configure: failed program was" >&5
22422 rm -f conftest.o conftest.s
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22426 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22428 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22430 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22431 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22434 gcc_cv_as_cfi_advance_working
=no
22435 if test x
$gcc_cv_as != x
; then
22438 .cfi_adjust_cfa_offset 64
22440 .cfi_adjust_cfa_offset 128
22441 .cfi_endproc' > conftest.s
22442 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22444 (eval $ac_try) 2>&5
22446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22447 test $ac_status = 0; }; }
22450 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22451 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22452 gcc_cv_as_cfi_advance_working
=yes
22456 echo "configure: failed program was" >&5
22459 rm -f conftest.o conftest.s
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22463 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22466 # no objdump, err on the side of caution
22467 gcc_cv_as_cfi_advance_working
=no
22471 cat >>confdefs.h
<<_ACEOF
22472 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22473 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22479 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22480 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22481 $as_echo_n "(cached) " >&6
22483 gcc_cv_as_cfi_personality_directive
=no
22484 if test x
$gcc_cv_as != x
; then
22487 .cfi_personality 0, symbol
22488 .cfi_endproc' > conftest.s
22489 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22491 (eval $ac_try) 2>&5
22493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22494 test $ac_status = 0; }; }
22496 gcc_cv_as_cfi_personality_directive
=yes
22498 echo "configure: failed program was" >&5
22501 rm -f conftest.o conftest.s
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22505 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22508 cat >>confdefs.h
<<_ACEOF
22509 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22510 then echo 1; else echo 0; fi`
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22515 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22516 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22517 $as_echo_n "(cached) " >&6
22519 gcc_cv_as_cfi_sections_directive
=no
22520 if test x
$gcc_cv_as != x
; then
22522 .cfi_sections .debug_frame, .eh_frame
22524 .cfi_endproc' > conftest.s
22525 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22527 (eval $ac_try) 2>&5
22529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22530 test $ac_status = 0; }; }
22533 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22534 # Need to check that we generated the correct relocation for the
22535 # .debug_frame section. This was fixed for binutils 2.21.
22536 gcc_cv_as_cfi_sections_directive
=no
22537 if test "x$gcc_cv_objdump" != x
; then
22538 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22539 grep secrel
> /dev
/null
; then
22540 gcc_cv_as_cfi_sections_directive
=yes
22545 gcc_cv_as_cfi_sections_directive
=yes
22549 echo "configure: failed program was" >&5
22552 rm -f conftest.o conftest.s
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22556 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22560 cat >>confdefs.h
<<_ACEOF
22561 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22562 then echo 1; else echo 0; fi`
22566 # GAS versions up to and including 2.11.0 may mis-optimize
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22569 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22570 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22571 $as_echo_n "(cached) " >&6
22573 gcc_cv_as_eh_frame
=no
22574 if test $in_tree_gas = yes; then
22575 if test $in_tree_gas_is_elf = yes \
22576 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22577 then gcc_cv_as_eh_frame
=yes
22579 elif test x
$gcc_cv_as != x
; then
22586 .section .eh_frame,"aw",@progbits
22588 .4byte .LECIE1-.LSCIE1
22602 .4byte .LEFDE1-.LASFDE1
22604 .4byte .LASFDE1-__FRAME_BEGIN__
22611 .LEFDE1:' > conftest.s
22612 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22614 (eval $ac_try) 2>&5
22616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22617 test $ac_status = 0; }; }
22619 cat > conftest.lit
<<EOF
22620 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22621 0010 01000000 12000000 18000000 00000000 ................
22622 0020 08000000 04080000 0044 .........D
22624 cat > conftest.big
<<EOF
22625 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22626 0010 00000001 00000012 00000018 00000000 ................
22627 0020 00000008 04000000 0844 .........D
22629 # If the assembler didn't choke, and we can objdump,
22630 # and we got the correct data, then succeed.
22631 # The text in the here-document typically retains its unix-style line
22632 # endings, while the output of objdump will use host line endings.
22633 # Therefore, use diff -b for the comparisons.
22634 if test x
$gcc_cv_objdump != x \
22635 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22636 |
tail -3 > conftest.got \
22637 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22638 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22640 gcc_cv_as_eh_frame
=yes
22641 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22643 (eval $ac_try) 2>&5
22645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22646 test $ac_status = 0; }; }; then
22647 gcc_cv_as_eh_frame
=buggy
22649 # Uh oh, what do we do now?
22650 gcc_cv_as_eh_frame
=no
22653 echo "configure: failed program was" >&5
22656 rm -f conftest.o conftest.s
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22660 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22663 if test $gcc_cv_as_eh_frame = buggy
; then
22665 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22670 $as_echo_n "checking assembler for section merging support... " >&6; }
22671 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22672 $as_echo_n "(cached) " >&6
22674 gcc_cv_as_shf_merge
=no
22675 if test $in_tree_gas = yes; then
22676 if test $in_tree_gas_is_elf = yes \
22677 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22678 then gcc_cv_as_shf_merge
=yes
22680 elif test x
$gcc_cv_as != x
; then
22681 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22684 (eval $ac_try) 2>&5
22686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22687 test $ac_status = 0; }; }
22689 gcc_cv_as_shf_merge
=yes
22691 echo "configure: failed program was" >&5
22694 rm -f conftest.o conftest.s
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22698 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22700 if test $gcc_cv_as_shf_merge = no
; then
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22702 $as_echo_n "checking assembler for section merging support... " >&6; }
22703 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22704 $as_echo_n "(cached) " >&6
22706 gcc_cv_as_shf_merge
=no
22707 if test $in_tree_gas = yes; then
22708 if test $in_tree_gas_is_elf = yes \
22709 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22710 then gcc_cv_as_shf_merge
=yes
22712 elif test x
$gcc_cv_as != x
; then
22713 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22714 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22716 (eval $ac_try) 2>&5
22718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22719 test $ac_status = 0; }; }
22721 gcc_cv_as_shf_merge
=yes
22723 echo "configure: failed program was" >&5
22726 rm -f conftest.o conftest.s
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22730 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22734 cat >>confdefs.h
<<_ACEOF
22735 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22740 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22741 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22742 $as_echo_n "(cached) " >&6
22744 gcc_cv_as_comdat_group
=no
22745 if test $in_tree_gas = yes; then
22746 if test $in_tree_gas_is_elf = yes \
22747 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22748 then gcc_cv_as_comdat_group
=yes
22750 elif test x
$gcc_cv_as != x
; then
22751 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22752 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22754 (eval $ac_try) 2>&5
22756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22757 test $ac_status = 0; }; }
22759 gcc_cv_as_comdat_group
=yes
22761 echo "configure: failed program was" >&5
22764 rm -f conftest.o conftest.s
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22768 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22770 if test $gcc_cv_as_comdat_group = yes; then
22771 gcc_cv_as_comdat_group_percent
=no
22772 gcc_cv_as_comdat_group_group
=no
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22775 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22776 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22777 $as_echo_n "(cached) " >&6
22779 gcc_cv_as_comdat_group_percent
=no
22780 if test $in_tree_gas = yes; then
22781 if test $in_tree_gas_is_elf = yes \
22782 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22783 then gcc_cv_as_comdat_group_percent
=yes
22785 elif test x
$gcc_cv_as != x
; then
22786 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22787 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22789 (eval $ac_try) 2>&5
22791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22792 test $ac_status = 0; }; }
22794 gcc_cv_as_comdat_group_percent
=yes
22796 echo "configure: failed program was" >&5
22799 rm -f conftest.o conftest.s
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22803 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22805 if test $gcc_cv_as_comdat_group_percent = yes; then
22806 gcc_cv_as_comdat_group_group
=no
22808 case "${target}" in
22809 # Sun as uses a completely different syntax.
22811 case "${target}" in
22812 sparc
*-*-solaris2*)
22814 .group foo,".text%foo",#comdat
22815 .section ".text%foo", #alloc,#execinstr,#progbits
22820 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22822 .group foo,.text%foo,#comdat
22823 .section .text%foo, "ax", @progbits
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22830 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22831 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22832 $as_echo_n "(cached) " >&6
22834 gcc_cv_as_comdat_group_group
=no
22835 if test x
$gcc_cv_as != x
; then
22836 $as_echo "$conftest_s" > conftest.s
22837 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22839 (eval $ac_try) 2>&5
22841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22842 test $ac_status = 0; }; }
22844 gcc_cv_as_comdat_group_group
=yes
22846 echo "configure: failed program was" >&5
22849 rm -f conftest.o conftest.s
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22853 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22859 if test x
"$ld_is_gold" = xyes
; then
22861 elif test $in_tree_ld = yes ; then
22863 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 \
22864 && test $in_tree_ld_is_elf = yes; then
22867 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22869 if test 0"$ld_date" -lt 20050308; then
22870 if test -n "$ld_date"; then
22871 # If there was date string, but was earlier than 2005-03-08, fail
22873 elif test "$ld_vers_major" -lt 2; then
22875 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22880 case "${target}" in
22881 *-*-solaris2.1
[1-9]*)
22883 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22884 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22887 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22888 # least ld version 1.2267.
22889 if test "$ld_vers_major" -gt 1; then
22891 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22893 elif test "$ld_vers_minor" -ge 2267; then
22898 # Assume linkers other than GNU ld don't support COMDAT group.
22903 # Allow overriding the automatic COMDAT group tests above.
22904 # Check whether --enable-comdat was given.
22905 if test "${enable_comdat+set}" = set; then :
22906 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22909 if test $comdat_group = no
; then
22910 gcc_cv_as_comdat_group
=no
22911 gcc_cv_as_comdat_group_percent
=no
22912 gcc_cv_as_comdat_group_group
=no
22915 cat >>confdefs.h
<<_ACEOF
22916 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22917 || test $gcc_cv_as_comdat_group_percent = yes \
22918 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22923 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22924 if test "${gcc_cv_as_discriminator+set}" = set; then :
22925 $as_echo_n "(cached) " >&6
22927 gcc_cv_as_discriminator
=no
22928 if test $in_tree_gas = yes; then
22929 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22930 then gcc_cv_as_discriminator
=yes
22932 elif test x
$gcc_cv_as != x
; then
22935 .loc 1 1 0 discriminator 1' > conftest.s
22936 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22938 (eval $ac_try) 2>&5
22940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22941 test $ac_status = 0; }; }
22943 gcc_cv_as_discriminator
=yes
22945 echo "configure: failed program was" >&5
22948 rm -f conftest.o conftest.s
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22952 $as_echo "$gcc_cv_as_discriminator" >&6; }
22953 if test $gcc_cv_as_discriminator = yes; then
22955 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22959 # Thread-local storage - the check is heavily parameterized.
22967 .section ".tdata","awT",@progbits
22970 ldq $27,__tls_get_addr($29) !literal!1
22971 lda $16,foo($29) !tlsgd!1
22972 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22973 ldq $27,__tls_get_addr($29) !literal!2
22974 lda $16,foo($29) !tlsldm!2
22975 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22976 ldq $1,foo($29) !gotdtprel
22977 ldah $2,foo($29) !dtprelhi
22978 lda $3,foo($2) !dtprello
22979 lda $4,foo($29) !dtprel
22980 ldq $1,foo($29) !gottprel
22981 ldah $2,foo($29) !tprelhi
22982 lda $3,foo($2) !tprello
22983 lda $4,foo($29) !tprel'
22986 tls_as_opt
=--fatal-warnings
22988 cris-
*-*|crisv32-
*-*)
22990 .section ".tdata","awT",@progbits
22997 tls_as_opt
=--fatal-warnings
23001 .section ".tdata","awT",@progbits
23004 call #gettlsoff(x)'
23013 .section ".tdata","awT",@progbits
23017 addil LT%foo-$tls_gdidx$,gp
23018 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23021 addil LT%foo-$tls_ldidx$,gp
23023 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23024 addil LR%foo-$tls_dtpoff$,%ret0
23025 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23027 addil LT%foo-$tls_ieoff$,gp
23028 ldw RT%foo-$tls_ieoff$(%r1),%t2
23031 addil LR%foo-$tls_leoff$,%t1
23032 ldo RR%foo-$tls_leoff$(%r1),%t2'
23035 tls_as_opt
=--fatal-warnings
23039 .section ".tdata","awT",%progbits
23042 .word foo(gottpoff)
23050 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23052 i
[34567]86-*-solaris2.
*)
23054 tga_func
=___tls_get_addr
23056 x86_64-
*-solaris2.1
[0-9]*)
23058 tga_func
=__tls_get_addr
23064 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23066 .section .tdata,"awt",@progbits'
23070 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23074 .section ".tdata","awT",@progbits'
23077 tls_as_opt
="--fatal-warnings"
23079 conftest_s
="$conftest_s
23083 leal foo@tlsgd(,%ebx,1), %eax
23084 leal foo@tlsldm(%ebx), %eax
23085 leal foo@dtpoff(%eax), %edx
23086 movl foo@gottpoff(%ebx), %eax
23087 subl foo@gottpoff(%ebx), %eax
23088 addl foo@gotntpoff(%ebx), %eax
23089 movl foo@indntpoff, %eax
23090 movl \$foo@tpoff, %eax
23091 subl \$foo@tpoff, %eax
23092 leal foo@ntpoff(%ecx), %eax"
23096 .section ".tdata","awT",@progbits
23100 leaq foo@TLSGD(%rip), %rdi
23101 leaq foo@TLSLD(%rip), %rdi
23102 leaq foo@DTPOFF(%rax), %rdx
23103 movq foo@GOTTPOFF(%rip), %rax
23104 movq $foo@TPOFF, %rax'
23107 tls_as_opt
=--fatal-warnings
23111 .section ".tdata","awT",@progbits
23114 addl r16 = @ltoff(@dtpmod(foo#)), gp
23115 addl r17 = @ltoff(@dtprel(foo#)), gp
23116 addl r18 = @ltoff(@tprel(foo#)), gp
23117 addl r19 = @dtprel(foo#), gp
23118 adds r21 = @dtprel(foo#), r13
23119 movl r23 = @dtprel(foo#)
23120 addl r20 = @tprel(foo#), gp
23121 adds r22 = @tprel(foo#), r13
23122 movl r24 = @tprel(foo#)'
23125 tls_as_opt
=--fatal-warnings
23129 .section .tdata,"awT",@progbits
23133 addiu $4, $28, %tlsgd(x)
23134 addiu $4, $28, %tlsldm(x)
23135 lui $4, %dtprel_hi(x)
23136 addiu $4, $4, %dtprel_lo(x)
23137 lw $4, %gottprel(x)($28)
23138 lui $4, %tprel_hi(x)
23139 addiu $4, $4, %tprel_lo(x)'
23142 tls_as_opt
='-32 --fatal-warnings'
23146 .section .tdata,"awT",@progbits
23151 move.l x@TLSGD(%a5),%a0
23152 move.l x@TLSLDM(%a5),%a0
23153 move.l x@TLSLDO(%a5),%a0
23154 move.l x@TLSIE(%a5),%a0
23155 move.l x@TLSLE(%a5),%a0'
23158 tls_as_opt
='--fatal-warnings'
23162 .section ".tdata","awT",@progbits
23170 addi 3,31,ld0@got@tlsgd
23172 addi 3,31,x1@got@tlsld
23175 addis 9,3,x2@dtprel@ha
23176 addi 9,9,x2@dtprel@l
23177 lwz 9,x3@got@tprel(31)
23180 addis 9,2,x2@tprel@ha
23181 addi 9,9,x2@tprel@l'
23184 tls_as_opt
="-a32 --fatal-warnings"
23188 .section ".tdata","awT",@progbits
23196 addi 3,2,ld0@got@tlsgd
23202 addi 3,2,x1@got@tlsld
23208 addis 9,3,x2@dtprel@ha
23209 addi 9,9,x2@dtprel@l
23212 ld 9,x3@got@dtprel(2)
23218 tls_as_opt
="-a64 --fatal-warnings"
23222 .section ".tdata","awT",@progbits
23229 .long foo@GOTNTPOFF
23230 .long foo@INDNTPOFF
23231 l %r1,foo@GOTNTPOFF(%r12)
23232 l %r1,0(%r1):tls_load:foo
23233 bas %r14,0(%r1,%r13):tls_gdcall:foo
23234 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23237 tls_as_opt
="-m31 --fatal-warnings"
23241 .section ".tdata","awT",@progbits
23248 .quad foo@GOTNTPOFF
23249 lg %r1,foo@GOTNTPOFF(%r12)
23250 larl %r1,foo@INDNTPOFF
23251 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23252 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23255 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23257 sh-
*-* | sh
[34]-*-*)
23259 .section ".tdata","awT",@progbits
23269 tls_as_opt
=--fatal-warnings
23273 sparc
*-sun-solaris2.
*)
23275 tga_func
=__tls_get_addr
23281 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23283 .section ".tdata",#alloc,#write,#tls'
23288 .section ".tdata","awT",@progbits'
23291 tls_as_opt
="-32 --fatal-warnings"
23293 conftest_s
="$conftest_s
23296 sethi %tgd_hi22(foo), %o0
23297 add %o0, %tgd_lo10(foo), %o1
23298 add %l7, %o1, %o0, %tgd_add(foo)
23299 call __tls_get_addr, %tgd_call(foo)
23300 sethi %tldm_hi22(foo), %l1
23301 add %l1, %tldm_lo10(foo), %l2
23302 add %l7, %l2, %o0, %tldm_add(foo)
23303 call __tls_get_addr, %tldm_call(foo)
23304 sethi %tldo_hix22(foo), %l3
23305 xor %l3, %tldo_lox10(foo), %l4
23306 add %o0, %l4, %l5, %tldo_add(foo)
23307 sethi %tie_hi22(foo), %o3
23308 add %o3, %tie_lo10(foo), %o3
23309 ld [%l7 + %o3], %o2, %tie_ld(foo)
23310 add %g7, %o2, %o4, %tie_add(foo)
23311 sethi %tle_hix22(foo), %l1
23312 xor %l1, %tle_lox10(foo), %o5
23313 ld [%g7 + %o5], %o1"
23317 .section ".tdata","awT",@progbits
23320 movi a8, foo@TLSFUNC
23321 movi a10, foo@TLSARG
23322 callx8.tls a8, foo@TLSCALL'
23328 if test "x$enable_tls" = xno
; then
23329 : # TLS explicitly disabled.
23330 elif test "x$enable_tls" = xyes
; then
23331 set_have_as_tls
=yes # TLS explicitly enabled.
23332 elif test -z "$tls_first_major"; then
23333 : # If we don't have a check, assume no support.
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23336 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23337 if test "${gcc_cv_as_tls+set}" = set; then :
23338 $as_echo_n "(cached) " >&6
23341 if test $in_tree_gas = yes; then
23342 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23343 then gcc_cv_as_tls
=yes
23345 elif test x
$gcc_cv_as != x
; then
23346 $as_echo "$conftest_s" > conftest.s
23347 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23349 (eval $ac_try) 2>&5
23351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23352 test $ac_status = 0; }; }
23356 echo "configure: failed program was" >&5
23359 rm -f conftest.o conftest.s
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23363 $as_echo "$gcc_cv_as_tls" >&6; }
23364 if test $gcc_cv_as_tls = yes; then
23365 set_have_as_tls
=yes
23370 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23371 # with TLS support are in use, native TLS cannot work.
23375 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23376 # gld with TLS support are in use, native TLS cannot work.
23379 # TLS was introduced in the Solaris 9 FCS release and backported to
23380 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23381 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23382 # ld and GCC don't support any longer.
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23385 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23387 # Check ld and ld.so.1 TLS support.
23388 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23389 # Assume all interesting versions of GNU ld have TLS support.
23390 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23394 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23396 min_tls_ld_vers_minor
=280
23398 # Solaris 8/SPARC ld has TLS support since version 1.272.
23399 sparc
*-*-solaris2.8
)
23400 min_tls_ld_vers_minor
=272
23402 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23404 min_tls_ld_vers_minor
=374
23406 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23407 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23408 min_tls_ld_vers_minor
=343
23411 if test "$ld_vers_major" -gt 1 || \
23412 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23419 $as_echo "$ld_tls_support" >&6; }
23422 save_LDFLAGS
="$LDFLAGS"
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23427 $as_echo_n "checking alternate thread library... " >&6; }
23429 # TLS support was backported to Solaris 8 patches, but only lives in
23430 # the alternate thread library which became the default in Solaris 9.
23431 # We want to always use that, irrespective of TLS support.
23433 # Take multilib subdir into account. There's no spec to handle
23434 # this. The 64 symlink exists since Solaris 8.
23435 lwp_dir
=/usr
/lib
/lwp
23436 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23437 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23444 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23446 cat >>confdefs.h
<<_ACEOF
23447 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23451 $as_echo "$lwp_dir" >&6; }
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23454 $as_echo_n "checking library containing $tga_func... " >&6; }
23455 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23456 # (32-bit x86) only lived in libthread, so check for that. Keep
23457 # set_have_as_tls if found, disable if not.
23458 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23460 $as_echo_n "checking for library containing $tga_func... " >&6; }
23461 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23462 $as_echo_n "(cached) " >&6
23464 ac_func_search_save_LIBS
=$LIBS
23465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23466 /* end confdefs.h. */
23468 /* Override any GCC internal prototype to avoid an error.
23469 Use char because int might match the return type of a GCC
23470 builtin and then its argument prototype would still apply. */
23478 return $tga_func ();
23483 for ac_lib
in '' thread
; do
23484 if test -z "$ac_lib"; then
23485 ac_res
="none required"
23488 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23490 if ac_fn_c_try_link
"$LINENO"; then :
23491 eval "$as_ac_Search=\$ac_res"
23493 rm -f core conftest.err conftest.
$ac_objext \
23495 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23499 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23502 eval "$as_ac_Search=no"
23504 rm conftest.
$ac_ext
23505 LIBS
=$ac_func_search_save_LIBS
23507 eval ac_res
=\$
$as_ac_Search
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23509 $as_echo "$ac_res" >&6; }
23510 eval ac_res
=\$
$as_ac_Search
23511 if test "$ac_res" != no
; then :
23512 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23518 # Clear LIBS if we cannot support TLS.
23519 if test $set_have_as_tls = no
; then
23522 # Always define LIB_TLS_SPEC, even without TLS support.
23524 cat >>confdefs.h
<<_ACEOF
23525 #define LIB_TLS_SPEC "$LIBS"
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23529 $as_echo "$LIBS" >&6; }
23532 LDFLAGS
="$save_LDFLAGS"
23535 if test $set_have_as_tls = yes ; then
23537 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23541 # Target-specific assembler checks.
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23544 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23545 gcc_cv_ld_static_dynamic
=no
23546 gcc_cv_ld_static_option
='-Bstatic'
23547 gcc_cv_ld_dynamic_option
='-Bdynamic'
23548 if test $in_tree_ld = yes ; then
23549 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
23550 gcc_cv_ld_static_dynamic
=yes
23552 elif test x
$gcc_cv_ld != x
; then
23553 # Check if linker supports -Bstatic/-Bdynamic option
23554 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23555 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23556 gcc_cv_ld_static_dynamic
=yes
23559 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23561 gcc_cv_ld_static_dynamic
=yes
23562 gcc_cv_ld_static_option
="-noso"
23563 gcc_cv_ld_dynamic_option
="-so_archive"
23565 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23567 gcc_cv_ld_static_dynamic
=yes
23569 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23571 gcc_cv_ld_static_dynamic
=yes
23576 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23578 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23581 cat >>confdefs.h
<<_ACEOF
23582 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23586 cat >>confdefs.h
<<_ACEOF
23587 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23592 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23594 if test x
"$demangler_in_ld" = xyes
; then
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23596 $as_echo_n "checking linker --demangle support... " >&6; }
23597 gcc_cv_ld_demangle
=no
23598 if test $in_tree_ld = yes; then
23599 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 \
23600 gcc_cv_ld_demangle
=yes
23602 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23603 # Check if the GNU linker supports --demangle option
23604 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23605 gcc_cv_ld_demangle
=yes
23608 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23610 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23614 $as_echo "$gcc_cv_ld_demangle" >&6; }
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23618 $as_echo_n "checking linker plugin support... " >&6; }
23619 gcc_cv_lto_plugin
=0
23620 if test -f liblto_plugin.la
; then
23621 save_ld_ver
="$ld_ver"
23622 save_ld_vers_major
="$ld_vers_major"
23623 save_ld_vers_minor
="$ld_vers_minor"
23624 save_ld_is_gold
="$ld_is_gold"
23628 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23630 # FIXME: ld_is_gold?
23631 ld_vers_major
="$gcc_cv_gld_major_version"
23632 ld_vers_minor
="$gcc_cv_gld_minor_version"
23634 # Determine plugin linker version.
23635 # FIXME: Partial duplicate from above, generalize.
23636 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23637 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23638 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23640 ld_vers
=`echo $ld_ver | sed -n \
23641 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23643 ld_vers
=`echo $ld_ver | sed -n \
23644 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23646 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23647 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23651 # Determine plugin support.
23652 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23653 # Require GNU ld or gold 2.21+ for plugin support by default.
23654 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23655 gcc_cv_lto_plugin
=2
23656 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23657 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23658 gcc_cv_lto_plugin
=1
23662 ld_ver
="$save_ld_ver"
23663 ld_vers_major
="$save_ld_vers_major"
23664 ld_vers_minor
="$save_ld_vers_minor"
23665 ld_is_gold
="$save_ld_is_gold"
23668 cat >>confdefs.h
<<_ACEOF
23669 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23673 $as_echo "$gcc_cv_lto_plugin" >&6; }
23676 # All TARGET_ABI_OSF targets.
23677 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23679 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23680 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23681 $as_echo_n "(cached) " >&6
23683 gcc_cv_as_alpha_explicit_relocs
=no
23684 if test $in_tree_gas = yes; then
23685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23686 then gcc_cv_as_alpha_explicit_relocs
=yes
23688 elif test x
$gcc_cv_as != x
; then
23689 $as_echo ' .set nomacro
23691 extbl $3, $2, $3 !lituse_bytoff!1
23692 ldq $2, a($29) !literal!1
23693 ldq $4, b($29) !literal!2
23694 ldq_u $3, 0($2) !lituse_base!1
23695 ldq $27, f($29) !literal!5
23696 jsr $26, ($27), f !lituse_jsr!5
23697 ldah $29, 0($26) !gpdisp!3
23698 lda $0, c($29) !gprel
23699 ldah $1, d($29) !gprelhigh
23700 lda $1, d($1) !gprellow
23701 lda $29, 0($29) !gpdisp!3' > conftest.s
23702 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23704 (eval $ac_try) 2>&5
23706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23707 test $ac_status = 0; }; }
23709 gcc_cv_as_alpha_explicit_relocs
=yes
23711 echo "configure: failed program was" >&5
23714 rm -f conftest.o conftest.s
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23718 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23719 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23721 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23725 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23726 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23727 $as_echo_n "(cached) " >&6
23729 gcc_cv_as_alpha_jsrdirect_relocs
=no
23730 if test $in_tree_gas = yes; then
23731 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23732 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23734 elif test x
$gcc_cv_as != x
; then
23735 $as_echo ' .set nomacro
23737 ldq $27, a($29) !literal!1
23738 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23739 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23741 (eval $ac_try) 2>&5
23743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23744 test $ac_status = 0; }; }
23746 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23748 echo "configure: failed program was" >&5
23751 rm -f conftest.o conftest.s
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23755 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23756 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23758 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23765 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23766 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23767 $as_echo_n "(cached) " >&6
23769 gcc_cv_as_cris_no_mul_bug
=no
23770 if test $in_tree_gas = yes; then
23771 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23772 then gcc_cv_as_cris_no_mul_bug
=yes
23774 elif test x
$gcc_cv_as != x
; then
23775 $as_echo '.text' > conftest.s
23776 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23778 (eval $ac_try) 2>&5
23780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23781 test $ac_status = 0; }; }
23783 gcc_cv_as_cris_no_mul_bug
=yes
23785 echo "configure: failed program was" >&5
23788 rm -f conftest.o conftest.s
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23792 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23793 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23795 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23802 $as_echo_n "checking assembler for .register... " >&6; }
23803 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23804 $as_echo_n "(cached) " >&6
23806 gcc_cv_as_sparc_register_op
=no
23807 if test x
$gcc_cv_as != x
; then
23808 $as_echo '.register %g2, #scratch' > conftest.s
23809 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23811 (eval $ac_try) 2>&5
23813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23814 test $ac_status = 0; }; }
23816 gcc_cv_as_sparc_register_op
=yes
23818 echo "configure: failed program was" >&5
23821 rm -f conftest.o conftest.s
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23825 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23826 if test $gcc_cv_as_sparc_register_op = yes; then
23828 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23833 $as_echo_n "checking assembler for -relax option... " >&6; }
23834 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23835 $as_echo_n "(cached) " >&6
23837 gcc_cv_as_sparc_relax
=no
23838 if test x
$gcc_cv_as != x
; then
23839 $as_echo '.text' > conftest.s
23840 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23842 (eval $ac_try) 2>&5
23844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23845 test $ac_status = 0; }; }
23847 gcc_cv_as_sparc_relax
=yes
23849 echo "configure: failed program was" >&5
23852 rm -f conftest.o conftest.s
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23856 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23857 if test $gcc_cv_as_sparc_relax = yes; then
23859 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23864 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23865 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23866 $as_echo_n "(cached) " >&6
23868 gcc_cv_as_sparc_gotdata_op
=no
23869 if test x
$gcc_cv_as != x
; then
23875 sethi %gdop_hix22(foo), %g1
23876 xor %g1, %gdop_lox10(foo), %g1
23877 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23878 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23880 (eval $ac_try) 2>&5
23882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23883 test $ac_status = 0; }; }
23885 if test x
$gcc_cv_ld != x \
23886 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23887 if test x
$gcc_cv_objdump != x
; then
23888 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23889 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23890 gcc_cv_as_sparc_gotdata_op
=no
23892 gcc_cv_as_sparc_gotdata_op
=yes
23898 echo "configure: failed program was" >&5
23901 rm -f conftest.o conftest.s
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23905 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23906 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23908 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23913 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23914 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23915 $as_echo_n "(cached) " >&6
23917 gcc_cv_as_sparc_ua_pcrel
=no
23918 if test x
$gcc_cv_as != x
; then
23925 .uaword %r_disp32(foo)' > conftest.s
23926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23928 (eval $ac_try) 2>&5
23930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23931 test $ac_status = 0; }; }
23933 if test x
$gcc_cv_ld != x \
23934 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23935 gcc_cv_as_sparc_ua_pcrel
=yes
23939 echo "configure: failed program was" >&5
23942 rm -f conftest.o conftest.s
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23946 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23947 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23949 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23953 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23954 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23955 $as_echo_n "(cached) " >&6
23957 gcc_cv_as_sparc_ua_pcrel_hidden
=no
23958 if test x
$gcc_cv_as != x
; then
23962 .uaword %r_disp32(foo)
23963 .byte 0x32, 0x33, 0x34
23967 .skip 4' > conftest.s
23968 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23970 (eval $ac_try) 2>&5
23972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973 test $ac_status = 0; }; }
23975 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
23976 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
23977 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
23978 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
23979 if $gcc_cv_objdump -R conftest
2> /dev
/null \
23980 |
grep 'DISP32' > /dev
/null
2>&1; then
23983 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
23988 echo "configure: failed program was" >&5
23991 rm -f conftest.o conftest.s
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23995 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23996 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23998 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24002 fi # unaligned pcrel relocs
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24005 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24006 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24007 $as_echo_n "(cached) " >&6
24009 gcc_cv_as_sparc_offsetable_lo10
=no
24010 if test x
$gcc_cv_as != x
; then
24012 or %g1, %lo(ab) + 12, %g1
24013 or %g1, %lo(ab + 12), %g1' > conftest.s
24014 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24016 (eval $ac_try) 2>&5
24018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24019 test $ac_status = 0; }; }
24021 if test x
$gcc_cv_objdump != x \
24022 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24023 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24024 gcc_cv_as_sparc_offsetable_lo10
=yes
24027 echo "configure: failed program was" >&5
24030 rm -f conftest.o conftest.s
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24034 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24035 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24037 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24042 i
[34567]86-*-* | x86_64-
*-*)
24045 # Full C++ conformance when using a shared libstdc++-v3 requires some
24046 # support from the Cygwin DLL, which in more recent versions exports
24047 # wrappers to aid in interposing and redirecting operators new, delete,
24048 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24049 # are configuring for a version of Cygwin that exports the wrappers.
24050 if test x
$host = x
$target; then
24051 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24052 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24053 gcc_ac_cygwin_dll_wrappers
=yes
24055 gcc_ac_cygwin_dll_wrappers
=no
24059 # Can't check presence of libc functions during cross-compile, so
24060 # we just have to assume we're building for an up-to-date target.
24061 gcc_ac_cygwin_dll_wrappers
=yes
24064 cat >>confdefs.h
<<_ACEOF
24065 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24070 cygwin
* | pe | mingw32
*)
24071 # Recent binutils allows the three-operand form of ".comm" on PE. This
24072 # definition is used unconditionally to initialise the default state of
24073 # the target option variable that governs usage of the feature.
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24075 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24076 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24079 gcc_cv_as_comm_has_align
=no
24080 if test $in_tree_gas = yes; then
24081 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24082 then gcc_cv_as_comm_has_align
=yes
24084 elif test x
$gcc_cv_as != x
; then
24085 $as_echo '.comm foo,1,32' > conftest.s
24086 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24088 (eval $ac_try) 2>&5
24090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24091 test $ac_status = 0; }; }
24093 gcc_cv_as_comm_has_align
=yes
24095 echo "configure: failed program was" >&5
24098 rm -f conftest.o conftest.s
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24102 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24105 cat >>confdefs.h
<<_ACEOF
24106 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24109 # Used for DWARF 2 in PE
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24111 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24112 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24113 $as_echo_n "(cached) " >&6
24115 gcc_cv_as_ix86_pe_secrel32
=no
24116 if test $in_tree_gas = yes; then
24117 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24118 then gcc_cv_as_ix86_pe_secrel32
=yes
24120 elif test x
$gcc_cv_as != x
; then
24124 .secrel32 foo' > conftest.s
24125 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24127 (eval $ac_try) 2>&5
24129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24130 test $ac_status = 0; }; }
24132 if test x
$gcc_cv_ld != x \
24133 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24134 gcc_cv_as_ix86_pe_secrel32
=yes
24138 echo "configure: failed program was" >&5
24141 rm -f conftest.o conftest.s
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24145 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24146 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24148 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24151 # Test if the assembler supports the extended form of the .section
24152 # directive that specifies section alignment. LTO support uses this,
24153 # but normally only after installation, so we warn but don't fail the
24154 # configure if LTO is enabled but the assembler does not support it.
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24156 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24157 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24158 $as_echo_n "(cached) " >&6
24160 gcc_cv_as_section_has_align
=no
24161 if test $in_tree_gas = yes; then
24162 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24163 then gcc_cv_as_section_has_align
=yes
24165 elif test x
$gcc_cv_as != x
; then
24166 $as_echo '.section lto_test,"dr0"' > conftest.s
24167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24169 (eval $ac_try) 2>&5
24171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24172 test $ac_status = 0; }; }
24174 gcc_cv_as_section_has_align
=yes
24176 echo "configure: failed program was" >&5
24179 rm -f conftest.o conftest.s
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24183 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24185 if test x
$gcc_cv_as_section_has_align != xyes
; then
24186 case ",$enable_languages," in
24188 { $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
24189 $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;}
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24197 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24198 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24199 $as_echo_n "(cached) " >&6
24201 gcc_cv_as_ix86_filds
=no
24202 if test x
$gcc_cv_as != x
; then
24203 $as_echo 'filds mem; fists mem' > conftest.s
24204 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24206 (eval $ac_try) 2>&5
24208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24209 test $ac_status = 0; }; }
24211 gcc_cv_as_ix86_filds
=yes
24213 echo "configure: failed program was" >&5
24216 rm -f conftest.o conftest.s
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24220 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24221 if test $gcc_cv_as_ix86_filds = yes; then
24223 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24228 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24229 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24230 $as_echo_n "(cached) " >&6
24232 gcc_cv_as_ix86_fildq
=no
24233 if test x
$gcc_cv_as != x
; then
24234 $as_echo 'fildq mem; fistpq mem' > conftest.s
24235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24237 (eval $ac_try) 2>&5
24239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24240 test $ac_status = 0; }; }
24242 gcc_cv_as_ix86_fildq
=yes
24244 echo "configure: failed program was" >&5
24247 rm -f conftest.o conftest.s
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24251 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24252 if test $gcc_cv_as_ix86_fildq = yes; then
24254 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24259 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24260 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24261 $as_echo_n "(cached) " >&6
24263 gcc_cv_as_ix86_cmov_sun_syntax
=no
24264 if test x
$gcc_cv_as != x
; then
24265 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24268 (eval $ac_try) 2>&5
24270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24271 test $ac_status = 0; }; }
24273 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24275 echo "configure: failed program was" >&5
24278 rm -f conftest.o conftest.s
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24282 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24283 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24285 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24290 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24291 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24292 $as_echo_n "(cached) " >&6
24294 gcc_cv_as_ix86_ffreep
=no
24295 if test x
$gcc_cv_as != x
; then
24296 $as_echo 'ffreep %st(1)' > conftest.s
24297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24299 (eval $ac_try) 2>&5
24301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24302 test $ac_status = 0; }; }
24304 gcc_cv_as_ix86_ffreep
=yes
24306 echo "configure: failed program was" >&5
24309 rm -f conftest.o conftest.s
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24313 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24314 if test $gcc_cv_as_ix86_ffreep = yes; then
24316 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24321 $as_echo_n "checking assembler for .quad directive... " >&6; }
24322 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24323 $as_echo_n "(cached) " >&6
24325 gcc_cv_as_ix86_quad
=no
24326 if test x
$gcc_cv_as != x
; then
24327 $as_echo '.quad 0' > conftest.s
24328 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24330 (eval $ac_try) 2>&5
24332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24333 test $ac_status = 0; }; }
24335 gcc_cv_as_ix86_quad
=yes
24337 echo "configure: failed program was" >&5
24340 rm -f conftest.o conftest.s
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24344 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24345 if test $gcc_cv_as_ix86_quad = yes; then
24347 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24352 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24353 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24354 $as_echo_n "(cached) " >&6
24356 gcc_cv_as_ix86_sahf
=no
24357 if test x
$gcc_cv_as != x
; then
24360 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24362 (eval $ac_try) 2>&5
24364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24365 test $ac_status = 0; }; }
24367 gcc_cv_as_ix86_sahf
=yes
24369 echo "configure: failed program was" >&5
24372 rm -f conftest.o conftest.s
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24376 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24377 if test $gcc_cv_as_ix86_sahf = yes; then
24379 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24384 $as_echo_n "checking assembler for swap suffix... " >&6; }
24385 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24386 $as_echo_n "(cached) " >&6
24388 gcc_cv_as_ix86_swap
=no
24389 if test x
$gcc_cv_as != x
; then
24390 $as_echo 'movl.s %esp, %ebp' > conftest.s
24391 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24393 (eval $ac_try) 2>&5
24395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24396 test $ac_status = 0; }; }
24398 gcc_cv_as_ix86_swap
=yes
24400 echo "configure: failed program was" >&5
24403 rm -f conftest.o conftest.s
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24407 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24408 if test $gcc_cv_as_ix86_swap = yes; then
24410 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24415 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24416 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24417 $as_echo_n "(cached) " >&6
24419 gcc_cv_as_ix86_diff_sect_delta
=no
24420 if test x
$gcc_cv_as != x
; then
24421 $as_echo '.section .rodata
24427 .L2: nop' > conftest.s
24428 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24430 (eval $ac_try) 2>&5
24432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24433 test $ac_status = 0; }; }
24435 gcc_cv_as_ix86_diff_sect_delta
=yes
24437 echo "configure: failed program was" >&5
24440 rm -f conftest.o conftest.s
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24444 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24445 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24447 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24451 # These two are used unconditionally by i386.[ch]; it is to be defined
24452 # to 1 if the feature is present, 0 otherwise.
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24454 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24455 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24456 $as_echo_n "(cached) " >&6
24458 gcc_cv_as_ix86_gotoff_in_data
=no
24459 if test $in_tree_gas = yes; then
24460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24461 then gcc_cv_as_ix86_gotoff_in_data
=yes
24463 elif test x
$gcc_cv_as != x
; then
24468 .long .L0@GOTOFF' > conftest.s
24469 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24471 (eval $ac_try) 2>&5
24473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24474 test $ac_status = 0; }; }
24476 gcc_cv_as_ix86_gotoff_in_data
=yes
24478 echo "configure: failed program was" >&5
24481 rm -f conftest.o conftest.s
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24485 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24488 cat >>confdefs.h
<<_ACEOF
24489 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24494 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24495 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24496 $as_echo_n "(cached) " >&6
24498 gcc_cv_as_ix86_rep_lock_prefix
=no
24499 if test x
$gcc_cv_as != x
; then
24500 $as_echo 'rep movsl
24501 lock addl %edi, (%eax,%esi)
24502 lock orl $0, (%esp)' > conftest.s
24503 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24505 (eval $ac_try) 2>&5
24507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508 test $ac_status = 0; }; }
24510 gcc_cv_as_ix86_rep_lock_prefix
=yes
24512 echo "configure: failed program was" >&5
24515 rm -f conftest.o conftest.s
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24519 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24520 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24522 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24527 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24528 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24531 gcc_cv_as_ix86_tlsgdplt
=no
24532 if test x
$gcc_cv_as != x
; then
24533 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24534 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24536 (eval $ac_try) 2>&5
24538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539 test $ac_status = 0; }; }
24541 gcc_cv_as_ix86_tlsgdplt
=yes
24543 echo "configure: failed program was" >&5
24546 rm -f conftest.o conftest.s
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24550 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24551 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24553 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24558 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24559 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24560 $as_echo_n "(cached) " >&6
24562 gcc_cv_as_ix86_tlsldmplt
=no
24563 if test x
$gcc_cv_as != x
; then
24564 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24572 gcc_cv_as_ix86_tlsldmplt
=yes
24574 echo "configure: failed program was" >&5
24577 rm -f conftest.o conftest.s
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24581 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24582 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24584 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24592 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24593 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24594 $as_echo_n "(cached) " >&6
24596 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24597 if test $in_tree_gas = yes; then
24598 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24599 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24601 elif test x
$gcc_cv_as != x
; then
24603 addl r15 = @ltoffx(x#), gp
24605 ld8.mov r16 = [r15], x#' > conftest.s
24606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24608 (eval $ac_try) 2>&5
24610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24611 test $ac_status = 0; }; }
24613 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24615 echo "configure: failed program was" >&5
24618 rm -f conftest.o conftest.s
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24622 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24623 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24625 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24633 *-*-aix*) conftest_s
=' .machine "pwr5"
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24638 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24639 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24640 $as_echo_n "(cached) " >&6
24642 gcc_cv_as_machine_directive
=no
24643 if test x
$gcc_cv_as != x
; then
24644 $as_echo ' .machine ppc7400' > conftest.s
24645 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647 (eval $ac_try) 2>&5
24649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650 test $ac_status = 0; }; }
24652 gcc_cv_as_machine_directive
=yes
24654 echo "configure: failed program was" >&5
24657 rm -f conftest.o conftest.s
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24661 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24663 if test x
$gcc_cv_as_machine_directive != xyes
; then
24664 echo "*** This target requires an assembler supporting \".machine\"" >&2
24665 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24666 test x
$build = x
$target && exit 1
24670 *) conftest_s
=' .machine power4
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24676 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24677 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24678 $as_echo_n "(cached) " >&6
24680 gcc_cv_as_powerpc_mfcrf
=no
24681 if test $in_tree_gas = yes; then
24682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24683 then gcc_cv_as_powerpc_mfcrf
=yes
24685 elif test x
$gcc_cv_as != x
; then
24686 $as_echo "$conftest_s" > conftest.s
24687 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24689 (eval $ac_try) 2>&5
24691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24692 test $ac_status = 0; }; }
24694 gcc_cv_as_powerpc_mfcrf
=yes
24696 echo "configure: failed program was" >&5
24699 rm -f conftest.o conftest.s
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24703 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24704 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24706 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24711 *-*-aix*) conftest_s
=' .machine "pwr5"
24714 *) conftest_s
=' .machine power5
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24720 $as_echo_n "checking assembler for popcntb support... " >&6; }
24721 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24722 $as_echo_n "(cached) " >&6
24724 gcc_cv_as_powerpc_popcntb
=no
24725 if test $in_tree_gas = yes; then
24726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24727 then gcc_cv_as_powerpc_popcntb
=yes
24729 elif test x
$gcc_cv_as != x
; then
24730 $as_echo "$conftest_s" > conftest.s
24731 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733 (eval $ac_try) 2>&5
24735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736 test $ac_status = 0; }; }
24738 gcc_cv_as_powerpc_popcntb
=yes
24740 echo "configure: failed program was" >&5
24743 rm -f conftest.o conftest.s
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24747 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24748 if test $gcc_cv_as_powerpc_popcntb = yes; then
24750 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24755 *-*-aix*) conftest_s
=' .machine "pwr5x"
24758 *) conftest_s
=' .machine power5
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24764 $as_echo_n "checking assembler for fp round support... " >&6; }
24765 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24766 $as_echo_n "(cached) " >&6
24768 gcc_cv_as_powerpc_fprnd
=no
24769 if test $in_tree_gas = yes; then
24770 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24771 then gcc_cv_as_powerpc_fprnd
=yes
24773 elif test x
$gcc_cv_as != x
; then
24774 $as_echo "$conftest_s" > conftest.s
24775 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24777 (eval $ac_try) 2>&5
24779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24780 test $ac_status = 0; }; }
24782 gcc_cv_as_powerpc_fprnd
=yes
24784 echo "configure: failed program was" >&5
24787 rm -f conftest.o conftest.s
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24791 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24792 if test $gcc_cv_as_powerpc_fprnd = yes; then
24794 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24799 *-*-aix*) conftest_s
=' .machine "pwr6"
24802 *) conftest_s
=' .machine power6
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24808 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24809 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24810 $as_echo_n "(cached) " >&6
24812 gcc_cv_as_powerpc_mfpgpr
=no
24813 if test $in_tree_gas = yes; then
24814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24815 then gcc_cv_as_powerpc_mfpgpr
=yes
24817 elif test x
$gcc_cv_as != x
; then
24818 $as_echo "$conftest_s" > conftest.s
24819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821 (eval $ac_try) 2>&5
24823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824 test $ac_status = 0; }; }
24826 gcc_cv_as_powerpc_mfpgpr
=yes
24828 echo "configure: failed program was" >&5
24831 rm -f conftest.o conftest.s
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24835 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24836 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24838 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24843 *-*-aix*) conftest_s
=' .csect .text[PR]
24845 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24849 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24850 *) conftest_s
=' .text
24852 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24856 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24857 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24858 $as_echo_n "(cached) " >&6
24860 gcc_cv_as_powerpc_rel16
=no
24861 if test $in_tree_gas = yes; then
24862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24863 then gcc_cv_as_powerpc_rel16
=yes
24865 elif test x
$gcc_cv_as != x
; then
24866 $as_echo "$conftest_s" > conftest.s
24867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24869 (eval $ac_try) 2>&5
24871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872 test $ac_status = 0; }; }
24874 gcc_cv_as_powerpc_rel16
=yes
24876 echo "configure: failed program was" >&5
24879 rm -f conftest.o conftest.s
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24883 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24884 if test $gcc_cv_as_powerpc_rel16 = yes; then
24886 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24891 *-*-aix*) conftest_s
=' .machine "pwr6"
24894 *) conftest_s
=' .machine power6
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24900 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24901 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24902 $as_echo_n "(cached) " >&6
24904 gcc_cv_as_powerpc_cmpb
=no
24905 if test $in_tree_gas = yes; then
24906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24907 then gcc_cv_as_powerpc_cmpb
=yes
24909 elif test x
$gcc_cv_as != x
; then
24910 $as_echo "$conftest_s" > conftest.s
24911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24918 gcc_cv_as_powerpc_cmpb
=yes
24920 echo "configure: failed program was" >&5
24923 rm -f conftest.o conftest.s
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24927 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24928 if test $gcc_cv_as_powerpc_cmpb = yes; then
24930 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24935 *-*-aix*) conftest_s
=' .machine "pwr6"
24938 *) conftest_s
=' .machine power6
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24944 $as_echo_n "checking assembler for decimal float support... " >&6; }
24945 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24946 $as_echo_n "(cached) " >&6
24948 gcc_cv_as_powerpc_dfp
=no
24949 if test $in_tree_gas = yes; then
24950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24951 then gcc_cv_as_powerpc_dfp
=yes
24953 elif test x
$gcc_cv_as != x
; then
24954 $as_echo "$conftest_s" > conftest.s
24955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24957 (eval $ac_try) 2>&5
24959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24960 test $ac_status = 0; }; }
24962 gcc_cv_as_powerpc_dfp
=yes
24964 echo "configure: failed program was" >&5
24967 rm -f conftest.o conftest.s
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24971 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24972 if test $gcc_cv_as_powerpc_dfp = yes; then
24974 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24979 *-*-aix*) conftest_s
=' .machine "pwr7"
24982 *) conftest_s
=' .machine power7
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24988 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24989 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24990 $as_echo_n "(cached) " >&6
24992 gcc_cv_as_powerpc_vsx
=no
24993 if test $in_tree_gas = yes; then
24994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24995 then gcc_cv_as_powerpc_vsx
=yes
24997 elif test x
$gcc_cv_as != x
; then
24998 $as_echo "$conftest_s" > conftest.s
24999 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25001 (eval $ac_try) 2>&5
25003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25004 test $ac_status = 0; }; }
25006 gcc_cv_as_powerpc_vsx
=yes
25008 echo "configure: failed program was" >&5
25011 rm -f conftest.o conftest.s
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25015 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25016 if test $gcc_cv_as_powerpc_vsx = yes; then
25018 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25023 *-*-aix*) conftest_s
=' .machine "pwr7"
25026 *) conftest_s
=' .machine power7
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25032 $as_echo_n "checking assembler for popcntd support... " >&6; }
25033 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25034 $as_echo_n "(cached) " >&6
25036 gcc_cv_as_powerpc_popcntd
=no
25037 if test $in_tree_gas = yes; then
25038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25039 then gcc_cv_as_powerpc_popcntd
=yes
25041 elif test x
$gcc_cv_as != x
; then
25042 $as_echo "$conftest_s" > conftest.s
25043 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25045 (eval $ac_try) 2>&5
25047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25048 test $ac_status = 0; }; }
25050 gcc_cv_as_powerpc_popcntd
=yes
25052 echo "configure: failed program was" >&5
25055 rm -f conftest.o conftest.s
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25059 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25060 if test $gcc_cv_as_powerpc_popcntd = yes; then
25062 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25067 *-*-aix*) conftest_s
=' .csect .text[PR]
25069 *) conftest_s
=' .text
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25074 $as_echo_n "checking assembler for lwsync support... " >&6; }
25075 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25076 $as_echo_n "(cached) " >&6
25078 gcc_cv_as_powerpc_lwsync
=no
25079 if test $in_tree_gas = yes; then
25080 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25081 then gcc_cv_as_powerpc_lwsync
=yes
25083 elif test x
$gcc_cv_as != x
; then
25084 $as_echo "$conftest_s" > conftest.s
25085 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25087 (eval $ac_try) 2>&5
25089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25090 test $ac_status = 0; }; }
25092 gcc_cv_as_powerpc_lwsync
=yes
25094 echo "configure: failed program was" >&5
25097 rm -f conftest.o conftest.s
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25101 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25102 if test $gcc_cv_as_powerpc_lwsync = yes; then
25104 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25109 *-*-aix*) conftest_s
=' .machine "476"
25112 *) conftest_s
=' .machine "476"
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25118 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25119 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25120 $as_echo_n "(cached) " >&6
25122 gcc_cv_as_powerpc_dci
=no
25123 if test $in_tree_gas = yes; then
25124 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25125 then gcc_cv_as_powerpc_dci
=yes
25127 elif test x
$gcc_cv_as != x
; then
25128 $as_echo "$conftest_s" > conftest.s
25129 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25131 (eval $ac_try) 2>&5
25133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25134 test $ac_status = 0; }; }
25136 gcc_cv_as_powerpc_dci
=yes
25138 echo "configure: failed program was" >&5
25141 rm -f conftest.o conftest.s
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25145 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25146 if test $gcc_cv_as_powerpc_dci = yes; then
25148 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25153 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25154 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25157 gcc_cv_as_powerpc_gnu_attribute
=no
25158 if test $in_tree_gas = yes; then
25159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25160 then gcc_cv_as_powerpc_gnu_attribute
=yes
25162 elif test x
$gcc_cv_as != x
; then
25163 $as_echo '.gnu_attribute 4,1' > conftest.s
25164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25166 (eval $ac_try) 2>&5
25168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25169 test $ac_status = 0; }; }
25171 gcc_cv_as_powerpc_gnu_attribute
=yes
25173 echo "configure: failed program was" >&5
25176 rm -f conftest.o conftest.s
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25180 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25181 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25183 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25188 $as_echo_n "checking assembler for tls marker support... " >&6; }
25189 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25190 $as_echo_n "(cached) " >&6
25192 gcc_cv_as_powerpc_tls_markers
=no
25193 if test $in_tree_gas = yes; then
25194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25195 then gcc_cv_as_powerpc_tls_markers
=yes
25197 elif test x
$gcc_cv_as != x
; then
25198 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25201 (eval $ac_try) 2>&5
25203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25204 test $ac_status = 0; }; }
25206 gcc_cv_as_powerpc_tls_markers
=yes
25208 echo "configure: failed program was" >&5
25211 rm -f conftest.o conftest.s
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25215 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25216 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25218 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25225 $as_echo_n "checking assembler for .ref support... " >&6; }
25226 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25227 $as_echo_n "(cached) " >&6
25229 gcc_cv_as_aix_ref
=no
25230 if test $in_tree_gas = yes; then
25231 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25234 elif test x
$gcc_cv_as != x
; then
25235 $as_echo ' .csect stuff[rw]
25241 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25243 (eval $ac_try) 2>&5
25245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25246 test $ac_status = 0; }; }
25248 gcc_cv_as_aix_ref
=yes
25250 echo "configure: failed program was" >&5
25253 rm -f conftest.o conftest.s
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25257 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25258 if test $gcc_cv_as_aix_ref = yes; then
25260 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25269 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25270 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25271 $as_echo_n "(cached) " >&6
25273 gcc_cv_as_mips_explicit_relocs
=no
25274 if test $in_tree_gas = yes; then
25275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25276 then gcc_cv_as_mips_explicit_relocs
=yes
25278 elif test x
$gcc_cv_as != x
; then
25279 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25280 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25282 (eval $ac_try) 2>&5
25284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285 test $ac_status = 0; }; }
25287 gcc_cv_as_mips_explicit_relocs
=yes
25289 echo "configure: failed program was" >&5
25292 rm -f conftest.o conftest.s
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25296 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25297 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25298 if test x
$target_cpu_default = x
25299 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25300 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25304 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25305 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25306 $as_echo_n "(cached) " >&6
25308 gcc_cv_as_mips_no_shared
=no
25309 if test $in_tree_gas = yes; then
25310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25311 then gcc_cv_as_mips_no_shared
=yes
25313 elif test x
$gcc_cv_as != x
; then
25314 $as_echo 'nop' > conftest.s
25315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25322 gcc_cv_as_mips_no_shared
=yes
25324 echo "configure: failed program was" >&5
25327 rm -f conftest.o conftest.s
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25331 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25332 if test $gcc_cv_as_mips_no_shared = yes; then
25334 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25339 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25340 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25343 gcc_cv_as_mips_gnu_attribute
=no
25344 if test $in_tree_gas = yes; then
25345 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25346 then gcc_cv_as_mips_gnu_attribute
=yes
25348 elif test x
$gcc_cv_as != x
; then
25349 $as_echo '.gnu_attribute 4,1' > conftest.s
25350 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25357 gcc_cv_as_mips_gnu_attribute
=yes
25359 echo "configure: failed program was" >&5
25362 rm -f conftest.o conftest.s
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25366 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25367 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25369 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25374 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25375 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25376 $as_echo_n "(cached) " >&6
25378 gcc_cv_as_mips_dtprelword
=no
25379 if test $in_tree_gas = yes; then
25380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25381 then gcc_cv_as_mips_dtprelword
=yes
25383 elif test x
$gcc_cv_as != x
; then
25384 $as_echo '.section .tdata,"awT",@progbits
25388 .dtprelword x+0x8000' > conftest.s
25389 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25391 (eval $ac_try) 2>&5
25393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25394 test $ac_status = 0; }; }
25396 gcc_cv_as_mips_dtprelword
=yes
25398 echo "configure: failed program was" >&5
25401 rm -f conftest.o conftest.s
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25405 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25406 if test $gcc_cv_as_mips_dtprelword = yes; then
25408 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25413 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25414 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25415 $as_echo_n "(cached) " >&6
25417 gcc_cv_as_mips_dspr1_mult
=no
25418 if test x
$gcc_cv_as != x
; then
25419 $as_echo ' .set mips32r2
25427 multu $ac3,$4,$5' > conftest.s
25428 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25430 (eval $ac_try) 2>&5
25432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25433 test $ac_status = 0; }; }
25435 gcc_cv_as_mips_dspr1_mult
=yes
25437 echo "configure: failed program was" >&5
25440 rm -f conftest.o conftest.s
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25444 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25445 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25447 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25452 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25453 gcc_cv_as_ld_jalr_reloc
=no
25454 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25455 if test $in_tree_ld = yes ; then
25456 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 \
25457 && test $in_tree_ld_is_elf = yes; then
25458 gcc_cv_as_ld_jalr_reloc
=yes
25460 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25461 echo ' .ent x' > conftest.s
25462 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25463 echo ' ld $25,%call16(y)($28)' >> conftest.s
25464 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25465 echo '1: jalr $25' >> conftest.s
25466 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25467 echo '1: jalr $25' >> conftest.s
25468 echo ' .end x' >> conftest.s
25469 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25470 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25471 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25472 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25473 gcc_cv_as_ld_jalr_reloc
=yes
25479 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25480 if test x
$target_cpu_default = x
; then
25481 target_cpu_default
=MASK_RELAX_PIC_CALLS
25483 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25487 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25490 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25491 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25492 $as_echo_n "(cached) " >&6
25494 gcc_cv_ld_mips_personality_relaxation
=no
25495 if test $in_tree_ld = yes ; then
25496 if test "$gcc_cv_gld_major_version" -eq 2 \
25497 -a "$gcc_cv_gld_minor_version" -ge 21 \
25498 -o "$gcc_cv_gld_major_version" -gt 2; then
25499 gcc_cv_ld_mips_personality_relaxation
=yes
25501 elif test x
$gcc_cv_as != x \
25502 -a x
$gcc_cv_ld != x \
25503 -a x
$gcc_cv_readelf != x
; then
25504 cat > conftest.s
<<EOF
25506 .cfi_personality 0x80,indirect_ptr
25513 .section .data,"aw",@progbits
25517 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25518 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25519 if $gcc_cv_readelf -d conftest
2>&1 \
25520 |
grep TEXTREL
> /dev
/null
2>&1; then
25522 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25523 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25526 gcc_cv_ld_mips_personality_relaxation
=yes
25530 rm -f conftest.s conftest.o conftest
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25533 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25534 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25536 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25542 # Mips and HP-UX need the GNU assembler.
25543 # Linux on IA64 might be able to use the Intel assembler.
25546 mips
*-*-* |
*-*-hpux* )
25547 if test x
$gas_flag = xyes \
25548 ||
test x
"$host" != x
"$build" \
25549 ||
test ! -x "$gcc_cv_as" \
25550 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25553 echo "*** This configuration requires the GNU assembler" >&2
25559 # ??? Not all targets support dwarf2 debug_line, even within a version
25560 # of gas. Moreover, we need to emit a valid instruction to trigger any
25561 # info to the output file. So, as supported targets are added to gas 2.11,
25562 # add some instruction here to (also) show we expect this might work.
25563 # ??? Once 2.11 is released, probably need to add first known working
25564 # version to the per-target configury.
25565 case "$cpu_type" in
25566 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25567 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25577 if test x
"$insn" != x
; then
25579 .file 1 \"conftest.s\"
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25583 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25584 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25585 $as_echo_n "(cached) " >&6
25587 gcc_cv_as_dwarf2_debug_line
=no
25588 if test $in_tree_gas = yes; then
25589 if test $in_tree_gas_is_elf = yes \
25590 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25591 then gcc_cv_as_dwarf2_debug_line
=yes
25593 elif test x
$gcc_cv_as != x
; then
25594 $as_echo "$conftest_s" > conftest.s
25595 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25597 (eval $ac_try) 2>&5
25599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25600 test $ac_status = 0; }; }
25602 if test x
$gcc_cv_objdump != x \
25603 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25604 |
grep debug_line
> /dev
/null
2>&1; then
25605 gcc_cv_as_dwarf2_debug_line
=yes
25608 echo "configure: failed program was" >&5
25611 rm -f conftest.o conftest.s
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25615 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25618 # The .debug_line file table must be in the exact order that
25619 # we specified the files, since these indices are also used
25620 # by DW_AT_decl_file. Approximate this test by testing if
25621 # the assembler bitches if the same index is assigned twice.
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25623 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25624 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25625 $as_echo_n "(cached) " >&6
25627 gcc_cv_as_dwarf2_file_buggy
=no
25628 if test x
$gcc_cv_as != x
; then
25629 $as_echo ' .file 1 "foo.s"
25630 .file 1 "bar.s"' > conftest.s
25631 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25633 (eval $ac_try) 2>&5
25635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25636 test $ac_status = 0; }; }
25638 gcc_cv_as_dwarf2_file_buggy
=yes
25640 echo "configure: failed program was" >&5
25643 rm -f conftest.o conftest.s
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25647 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25650 if test $gcc_cv_as_dwarf2_debug_line = yes \
25651 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25653 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25658 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25659 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25660 $as_echo_n "(cached) " >&6
25662 gcc_cv_as_gdwarf2_flag
=no
25663 if test $in_tree_gas = yes; then
25664 if test $in_tree_gas_is_elf = yes \
25665 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25666 then gcc_cv_as_gdwarf2_flag
=yes
25668 elif test x
$gcc_cv_as != x
; then
25669 $as_echo "$insn" > conftest.s
25670 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25672 (eval $ac_try) 2>&5
25674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25675 test $ac_status = 0; }; }
25677 gcc_cv_as_gdwarf2_flag
=yes
25679 echo "configure: failed program was" >&5
25682 rm -f conftest.o conftest.s
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25686 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25687 if test $gcc_cv_as_gdwarf2_flag = yes; then
25689 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25694 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25695 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25696 $as_echo_n "(cached) " >&6
25698 gcc_cv_as_gstabs_flag
=no
25699 if test $in_tree_gas = yes; then
25700 if test $in_tree_gas_is_elf = yes \
25701 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25702 then gcc_cv_as_gstabs_flag
=yes
25704 elif test x
$gcc_cv_as != x
; then
25705 $as_echo "$insn" > conftest.s
25706 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25708 (eval $ac_try) 2>&5
25710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25711 test $ac_status = 0; }; }
25713 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25714 # and warns about it, but still exits successfully. So check for
25716 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25718 (eval $ac_try) 2>&5
25720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25721 test $ac_status = 0; }; }
25723 else gcc_cv_as_gstabs_flag
=yes
25726 echo "configure: failed program was" >&5
25729 rm -f conftest.o conftest.s
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25733 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25734 if test $gcc_cv_as_gstabs_flag = yes; then
25736 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25741 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25742 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25743 $as_echo_n "(cached) " >&6
25745 gcc_cv_as_debug_prefix_map_flag
=no
25746 if test $in_tree_gas = yes; then
25747 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25748 then gcc_cv_as_debug_prefix_map_flag
=yes
25750 elif test x
$gcc_cv_as != x
; then
25751 $as_echo "$insn" > conftest.s
25752 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25754 (eval $ac_try) 2>&5
25756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757 test $ac_status = 0; }; }
25759 gcc_cv_as_debug_prefix_map_flag
=yes
25761 echo "configure: failed program was" >&5
25764 rm -f conftest.o conftest.s
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25768 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25769 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25771 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25777 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25778 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25779 $as_echo_n "(cached) " >&6
25781 gcc_cv_as_lcomm_with_alignment
=no
25782 if test x
$gcc_cv_as != x
; then
25783 $as_echo '.lcomm bar,4,16' > conftest.s
25784 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786 (eval $ac_try) 2>&5
25788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789 test $ac_status = 0; }; }
25791 gcc_cv_as_lcomm_with_alignment
=yes
25793 echo "configure: failed program was" >&5
25796 rm -f conftest.o conftest.s
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25800 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25801 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25803 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25807 # Check whether --enable-gnu-unique-object was given.
25808 if test "${enable_gnu_unique_object+set}" = set; then :
25809 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25811 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25812 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25816 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25817 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25818 $as_echo_n "(cached) " >&6
25820 gcc_cv_as_gnu_unique_object
=no
25821 if test $in_tree_gas = yes; then
25822 if test $in_tree_gas_is_elf = yes \
25823 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25824 then gcc_cv_as_gnu_unique_object
=yes
25826 elif test x
$gcc_cv_as != x
; then
25827 $as_echo '.type foo, @gnu_unique_object' > conftest.s
25828 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25830 (eval $ac_try) 2>&5
25832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25833 test $ac_status = 0; }; }
25835 gcc_cv_as_gnu_unique_object
=yes
25837 echo "configure: failed program was" >&5
25840 rm -f conftest.o conftest.s
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25844 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25845 if test $gcc_cv_as_gnu_unique_object = yes; then
25846 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25847 if test x
$host = x
$build -a x
$host = x
$target &&
25848 ldd
--version 2>/dev
/null
&&
25849 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25850 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
25851 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25852 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
25853 if test "$glibcnum" -ge 2011 ; then
25854 enable_gnu_unique_object
=yes
25860 if test x
$enable_gnu_unique_object = xyes
; then
25862 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25867 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25868 if test "${gcc_cv_as_line_zero+set}" = set; then :
25869 $as_echo_n "(cached) " >&6
25871 gcc_cv_as_line_zero
=no
25872 if test $in_tree_gas = yes; then
25873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25874 then gcc_cv_as_line_zero
=yes
25876 elif test "x$gcc_cv_as" != x
; then
25877 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25878 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25880 (eval $ac_try) 2>&5
25882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25883 test $ac_status = 0; }; } &&
25884 test "x`cat conftest.out`" = x
25886 gcc_cv_as_line_zero
=yes
25888 echo "configure: failed program was" >&5
25890 echo "configure: error output was" >&5
25891 cat conftest.out
>&5
25893 rm -f conftest.o conftest.s conftest.out
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25897 $as_echo "$gcc_cv_as_line_zero" >&6; }
25898 if test "x$gcc_cv_as_line_zero" = xyes
; then
25900 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25905 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25906 gcc_cv_ld_eh_frame_hdr
=no
25907 if test $in_tree_ld = yes ; then
25908 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 \
25909 && test $in_tree_ld_is_elf = yes; then
25910 gcc_cv_ld_eh_frame_hdr
=yes
25912 elif test x
$gcc_cv_ld != x
; then
25913 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25914 # Check if linker supports --eh-frame-hdr option
25915 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
25916 gcc_cv_ld_eh_frame_hdr
=yes
25921 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25922 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
25923 gcc_cv_ld_eh_frame_hdr
=yes
25930 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
25932 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25936 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25939 $as_echo_n "checking linker position independent executable support... " >&6; }
25941 if test $in_tree_ld = yes ; then
25942 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 \
25943 && test $in_tree_ld_is_elf = yes; then
25946 elif test x
$gcc_cv_ld != x
; then
25947 # Check if linker supports -pie option
25948 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
25952 if test x
"$gcc_cv_ld_pie" = xyes
; then
25954 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25958 $as_echo "$gcc_cv_ld_pie" >&6; }
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25961 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25962 gcc_cv_ld_eh_gc_sections
=no
25963 if test $in_tree_ld = yes ; then
25964 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 \
25965 && test $in_tree_ld_is_elf = yes; then
25966 gcc_cv_ld_eh_gc_sections
=yes
25968 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25969 cat > conftest.s
<<EOF
25972 .type _start, @function
25975 .size _start, .-_start
25976 .section .text.foo,"ax",@progbits
25977 .type foo, @function
25981 .section .gcc_except_table.foo,"a",@progbits
25984 .section .eh_frame,"a",@progbits
25987 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25988 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25989 |
grep "gc-sections option ignored" > /dev
/null
; then
25990 gcc_cv_ld_eh_gc_sections
=no
25991 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25992 |
grep gcc_except_table
> /dev
/null
; then
25993 gcc_cv_ld_eh_gc_sections
=yes
25994 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25995 if test x
$gcc_cv_as_comdat_group != xyes
; then
25996 gcc_cv_ld_eh_gc_sections
=no
25997 cat > conftest.s
<<EOF
26000 .type _start, @function
26003 .size _start, .-_start
26004 .section .gnu.linkonce.t.foo,"ax",@progbits
26005 .type foo, @function
26009 .section .gcc_except_table.foo,"a",@progbits
26012 .section .eh_frame,"a",@progbits
26015 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26016 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26017 |
grep "gc-sections option ignored" > /dev
/null
; then
26018 gcc_cv_ld_eh_gc_sections
=no
26019 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26020 |
grep gcc_except_table
> /dev
/null
; then
26021 gcc_cv_ld_eh_gc_sections
=yes
26027 rm -f conftest.s conftest.o conftest
26031 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26032 gcc_cv_ld_eh_gc_sections
=no
26035 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26037 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26041 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26044 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26045 gcc_cv_ld_eh_gc_sections_bug
=no
26046 if test $in_tree_ld = yes ; then
26047 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 \
26048 && test $in_tree_ld_is_elf = yes; then
26049 gcc_cv_ld_eh_gc_sections_bug
=yes
26051 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
26052 gcc_cv_ld_eh_gc_sections_bug
=yes
26053 cat > conftest.s
<<EOF
26056 .type _start, @function
26059 .size _start, .-_start
26060 .section .text.startup.foo,"ax",@progbits
26061 .type foo, @function
26065 .section .gcc_except_table.foo,"a",@progbits
26068 .section .eh_frame,"a",@progbits
26071 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26072 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26073 |
grep "gc-sections option ignored" > /dev
/null
; then
26075 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26076 |
grep gcc_except_table
> /dev
/null
; then
26077 gcc_cv_ld_eh_gc_sections_bug
=no
26080 rm -f conftest.s conftest.o conftest
26082 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26084 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26088 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26095 $as_echo_n "checking linker --as-needed support... " >&6; }
26096 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26097 $as_echo_n "(cached) " >&6
26099 gcc_cv_ld_as_needed
=no
26100 if test $in_tree_ld = yes ; then
26101 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 \
26102 && test $in_tree_ld_is_elf = yes; then
26103 gcc_cv_ld_as_needed
=yes
26105 elif test x
$gcc_cv_ld != x
; then
26106 # Check if linker supports --as-needed and --no-as-needed options
26107 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26108 gcc_cv_ld_as_needed
=yes
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26114 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26115 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26117 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26121 case "$target:$tm_file" in
26122 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26124 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26125 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26126 $as_echo_n "(cached) " >&6
26128 gcc_cv_ld_no_dot_syms
=no
26129 if test $in_tree_ld = yes ; then
26130 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
26131 gcc_cv_ld_no_dot_syms
=yes
26133 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26134 cat > conftest1.s
<<EOF
26138 cat > conftest2.s
<<EOF
26139 .section ".opd","aw"
26142 .type foo,@function
26144 .quad .LEfoo,.TOC.@tocbase,0
26150 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26151 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26152 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26153 gcc_cv_ld_no_dot_syms
=yes
26155 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26160 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26161 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26163 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26168 $as_echo_n "checking linker large toc support... " >&6; }
26169 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26170 $as_echo_n "(cached) " >&6
26172 gcc_cv_ld_large_toc
=no
26173 if test $in_tree_ld = yes ; then
26174 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
26175 gcc_cv_ld_large_toc
=yes
26177 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26178 cat > conftest.s
<<EOF
26179 .section ".tbss","awT",@nobits
26185 addis 9,13,ie0@got@tprel@ha
26186 ld 9,ie0@got@tprel@l(9)
26188 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26189 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26190 gcc_cv_ld_large_toc
=yes
26192 rm -f conftest conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26197 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26198 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26200 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26207 $as_echo_n "checking linker --build-id support... " >&6; }
26208 if test "${gcc_cv_ld_buildid+set}" = set; then :
26209 $as_echo_n "(cached) " >&6
26211 gcc_cv_ld_buildid
=no
26212 if test $in_tree_ld = yes ; then
26213 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26214 "$gcc_cv_gld_minor_version" -ge 18 -o \
26215 "$gcc_cv_gld_major_version" -gt 2 \
26216 && test $in_tree_ld_is_elf = yes; then
26217 gcc_cv_ld_buildid
=yes
26219 elif test x
$gcc_cv_ld != x
; then
26220 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26221 gcc_cv_ld_buildid
=yes
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26226 $as_echo "$gcc_cv_ld_buildid" >&6; }
26227 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26229 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26233 # Check whether --enable-linker-build-id was given.
26234 if test "${enable_linker_build_id+set}" = set; then :
26235 enableval
=$enable_linker_build_id;
26237 enable_linker_build_id
=no
26241 if test x
"$enable_linker_build_id" = xyes
; then
26242 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26244 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26248 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26252 # In binutils 2.21, GNU ld gained support for new emulations fully
26253 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26255 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26256 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26257 $as_echo_n "(cached) " >&6
26259 gcc_cv_ld_sol2_emulation
=no
26260 if test $in_tree_ld = yes ; then
26261 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26262 "$gcc_cv_gld_minor_version" -ge 21 -o \
26263 "$gcc_cv_gld_major_version" -gt 2 \
26264 && test $in_tree_ld_is_elf = yes; then
26265 gcc_cv_ld_sol2_emulation
=yes
26267 elif test x
$gcc_cv_ld != x
; then
26268 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26269 grep _sol2
> /dev
/null
; then
26270 gcc_cv_ld_sol2_emulation
=yes
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26275 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26276 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26278 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26283 $as_echo_n "checking linker --sysroot support... " >&6; }
26284 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26285 $as_echo_n "(cached) " >&6
26287 gcc_cv_ld_sysroot
=no
26288 if test $in_tree_ld = yes ; then
26289 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
26290 gcc_cv_ld_sysroot
=yes
26292 elif test x
$gcc_cv_ld != x
; then
26293 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26294 gcc_cv_ld_sysroot
=yes
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26299 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26300 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26302 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26306 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26307 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26308 && test "$prefix" != "NONE"; then
26310 cat >>confdefs.h
<<_ACEOF
26311 #define PREFIX_INCLUDE_DIR "$prefix/include"
26316 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26317 if test "x$with_headers" != x
; then
26318 target_header_dir
=$with_headers
26319 elif test "x$with_sysroot" = x
; then
26320 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26321 elif test "x$with_build_sysroot" != "x"; then
26322 target_header_dir
="${with_build_sysroot}/usr/include"
26323 elif test "x$with_sysroot" = xyes
; then
26324 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26326 target_header_dir
="${with_sysroot}/usr/include"
26329 target_header_dir
=/usr
/include
26332 # Test for stack protector support in target C library.
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26334 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26335 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26336 $as_echo_n "(cached) " >&6
26338 gcc_cv_libc_provides_ssp
=no
26340 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26341 # glibc 2.4 and later provides __stack_chk_fail and
26342 # either __stack_chk_guard, or TLS access to stack guard canary.
26343 if test -f $target_header_dir/features.h \
26344 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26345 $target_header_dir/features.h
> /dev
/null
; then
26346 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26347 $target_header_dir/features.h
> /dev
/null
; then
26348 gcc_cv_libc_provides_ssp
=yes
26349 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26350 $target_header_dir/features.h
> /dev
/null \
26351 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26352 $target_header_dir/features.h
> /dev
/null
; then
26353 gcc_cv_libc_provides_ssp
=yes
26354 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26355 $target_header_dir/features.h
> /dev
/null
&& \
26356 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26357 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26358 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26359 gcc_cv_libc_provides_ssp
=yes
26364 # Avoid complicated tests (see
26365 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26366 # simply assert that glibc does provide this, which is true for all
26367 # realistically usable GNU/Hurd configurations.
26368 gcc_cv_libc_provides_ssp
=yes;;
26369 *-*-darwin* |
*-*-freebsd*)
26370 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26371 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26372 gcc_cv_libc_provides_ssp
=yes
26374 echo "no __stack_chk_fail on this target"
26378 *) gcc_cv_libc_provides_ssp
=no
;;
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26382 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26384 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26386 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26390 # Test for <sys/sdt.h> on the target.
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26393 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26395 if test -f $target_header_dir/sys
/sdt.h
; then
26397 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26401 $as_echo "$have_sys_sdt_h" >&6; }
26403 # Check if TFmode long double should be used by default or not.
26404 # Some glibc targets used DFmode long double, but with glibc 2.4
26405 # and later they can use TFmode.
26407 powerpc
*-*-linux* | \
26408 sparc
*-*-linux* | \
26412 # Check whether --with-long-double-128 was given.
26413 if test "${with_long_double_128+set}" = set; then :
26414 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26416 gcc_cv_target_ldbl128
=no
26417 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26418 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26419 && gcc_cv_target_ldbl128
=yes
26425 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26427 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26432 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26433 gcc_cv_target_dl_iterate_phdr
=unknown
26436 # <link.h> needs both a dl_iterate_phdr declaration and support for
26437 # compilation with largefile support.
26438 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26439 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26440 gcc_cv_target_dl_iterate_phdr
=yes
26442 gcc_cv_target_dl_iterate_phdr
=no
26447 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26449 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26453 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26455 # Find out what GC implementation we want, or may, use.
26457 # Check whether --with-gc was given.
26458 if test "${with_gc+set}" = set; then :
26459 withval
=$with_gc; case "$withval" in
26466 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26470 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26478 echo "Using $GGC for garbage collection."
26480 # Libraries to use on the host. This will normally be set by the top
26481 # level Makefile. Here we simply capture the value for our Makefile.
26482 if test -z "${HOST_LIBS+set}"; then
26487 # Use the system's zlib library.
26489 zlibinc
="-I\$(srcdir)/../zlib"
26491 # Check whether --with-system-zlib was given.
26492 if test "${with_system_zlib+set}" = set; then :
26493 withval
=$with_system_zlib; zlibdir
=
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26503 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26504 # Check whether --enable-maintainer-mode was given.
26505 if test "${enable_maintainer_mode+set}" = set; then :
26506 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26513 $as_echo "$maintainer_mode" >&6; }
26515 if test "$maintainer_mode" = "yes"; then
26525 # Make empty files to contain the specs and options for each language.
26526 # Then add #include lines to for a compiler that has specs and/or options.
26532 # These (without "all_") are set in each config-lang.in.
26533 # `language' must be a single word so is spelled singularly.
26536 all_outputs
='Makefile'
26537 # List of language makefile fragments.
26538 all_lang_makefrags
=
26539 # Additional files for gengtype
26540 all_gtfiles
="$target_gtfiles"
26542 # These are the languages that are set in --enable-languages,
26543 # and are available in the GCC tree.
26544 all_selected_languages
=
26546 # Add the language fragments.
26547 # Languages are added via two mechanisms. Some information must be
26548 # recorded in makefile variables, these are defined in config-lang.in.
26549 # We accumulate them and plug them into the main Makefile.
26550 # The other mechanism is a set of hooks for each of the main targets
26551 # like `clean', `install', etc.
26553 language_hooks
="Make-hooks"
26555 for lang
in ${srcdir}/*/config-lang.
in
26557 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26559 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26560 if test "x$lang_alias" = x
26562 echo "$lang doesn't set \$language." 1>&2
26565 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26566 subdirs
="$subdirs $subdir"
26568 # $gcc_subdir is where the gcc integration files are to be found
26569 # for a language, both for internal compiler purposes (compiler
26570 # sources implementing front-end to GCC tree converters), and for
26571 # build infrastructure purposes (Make-lang.in, etc.)
26573 # This will be <subdir> (relative to $srcdir) if a line like
26574 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26575 # is found in <langdir>/config-lang.in, and will remain <langdir>
26578 # Except for the language alias (fetched above), the regular
26579 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26580 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26581 # only this and the language alias.
26583 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26584 if [ "$gcc_subdir" = "" ]; then
26585 gcc_subdir
="$subdir"
26588 case ",$enable_languages," in
26590 all_selected_languages
="$all_selected_languages $lang_alias"
26591 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26592 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26603 .
${srcdir}/$gcc_subdir/config-lang.
in
26604 if test "x$language" = x
26606 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26611 case ",$enable_languages," in
26612 *,$lang_alias,*) ;;
26614 for i
in $subdir_requires; do
26615 test -f "${srcdir}/$i/config-lang.in" && continue
26623 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26624 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26625 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26626 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26628 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26629 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26631 all_languages
="$all_languages $language"
26632 all_compilers
="$all_compilers $compilers"
26633 all_outputs
="$all_outputs $outputs"
26634 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26635 case ",$enable_languages," in
26638 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26647 # Pick up gtfiles for c
26649 .
${srcdir}/c-config-lang.
in
26650 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26653 for language
in $all_selected_languages
26655 check_languages
="$check_languages check-$language"
26658 # We link each language in with a set of hooks, reached indirectly via
26659 # lang.${target}. Only do so for selected languages.
26663 target_list
="all.cross start.encap rest.encap tags \
26664 install-common install-man install-info install-pdf install-html dvi \
26665 pdf html uninstall info man srcextra srcman srcinfo \
26666 mostlyclean clean distclean maintainer-clean install-plugin"
26668 for t
in $target_list
26671 for lang
in $all_selected_languages
26675 echo "lang.$t: $x" >> Make-hooks
26679 # Option include files
26682 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26683 option_includes
="option-includes.mk"
26692 echo "dir ." > .gdbinit
26693 echo "dir ${srcdir}" >> .gdbinit
26694 if test x
$gdb_needs_out_file_path = xyes
26696 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26698 if test "x$subdirs" != x
; then
26701 echo "dir ${srcdir}/$s" >> .gdbinit
26704 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26706 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26710 # Find a directory in which to install a shared libgcc.
26712 # Check whether --enable-version-specific-runtime-libs was given.
26713 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26714 enableval
=$enable_version_specific_runtime_libs;
26719 # Check whether --with-slibdir was given.
26720 if test "${with_slibdir+set}" = set; then :
26721 withval
=$with_slibdir; slibdir
="$with_slibdir"
26723 if test "${enable_version_specific_runtime_libs+set}" = set; then
26724 slibdir
='$(libsubdir)'
26725 elif test "$host" != "$target"; then
26726 slibdir
='$(build_tooldir)/lib'
26728 slibdir
='$(libdir)'
26734 # Substitute configuration variables
26802 if test x
${build} = x
${host} ; then
26803 if test x
${host} = x
${target} ; then
26804 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26806 echo "Links are now set up to build a cross-compiler" 1>&2
26807 echo " from ${host} to ${target}." 1>&2
26810 if test x
${host} = x
${target} ; then
26811 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26812 echo " for ${target}." 1>&2
26814 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26815 echo " from ${host} to ${target}." 1>&2
26827 if test "x${CLOOGLIBS}" != "x" ; then
26829 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26833 # Check for plugin support
26834 # Check whether --enable-plugin was given.
26835 if test "${enable_plugin+set}" = set; then :
26836 enableval
=$enable_plugin; enable_plugin
=$enableval
26838 enable_plugin
=yes; default_plugin
=yes
26846 if test x
$build = x
$host; then
26847 export_sym_check
="nm${exeext} -g"
26848 elif test x
$host = x
$target; then
26849 export_sym_check
="$gcc_cv_nm -g"
26855 if test x
$build = x
$host; then
26856 export_sym_check
="objdump${exeext} -T"
26857 elif test x
$host = x
$target; then
26858 export_sym_check
="$gcc_cv_objdump -T"
26865 if test x
"$enable_plugin" = x
"yes"; then
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26868 $as_echo_n "checking for exported symbols... " >&6; }
26869 if test "x$export_sym_check" != x
; then
26870 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26871 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
26872 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26873 : # No need to use a flag
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26875 $as_echo "yes" >&6; }
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26878 $as_echo "yes" >&6; }
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26880 $as_echo_n "checking for -rdynamic... " >&6; }
26881 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
26882 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26883 plugin_rdynamic
=yes
26884 pluginlibs
="-rdynamic"
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26890 $as_echo "$plugin_rdynamic" >&6; }
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26894 $as_echo "unable to check" >&6; }
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26900 $as_echo_n "checking for library containing dlopen... " >&6; }
26901 if test "${ac_cv_search_dlopen+set}" = set; then :
26902 $as_echo_n "(cached) " >&6
26904 ac_func_search_save_LIBS
=$LIBS
26905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26906 /* end confdefs.h. */
26908 /* Override any GCC internal prototype to avoid an error.
26909 Use char because int might match the return type of a GCC
26910 builtin and then its argument prototype would still apply. */
26923 for ac_lib
in '' dl
; do
26924 if test -z "$ac_lib"; then
26925 ac_res
="none required"
26928 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26930 if ac_fn_c_try_link
"$LINENO"; then :
26931 ac_cv_search_dlopen
=$ac_res
26933 rm -f core conftest.err conftest.
$ac_objext \
26935 if test "${ac_cv_search_dlopen+set}" = set; then :
26939 if test "${ac_cv_search_dlopen+set}" = set; then :
26942 ac_cv_search_dlopen
=no
26944 rm conftest.
$ac_ext
26945 LIBS
=$ac_func_search_save_LIBS
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26948 $as_echo "$ac_cv_search_dlopen" >&6; }
26949 ac_res
=$ac_cv_search_dlopen
26950 if test "$ac_res" != no
; then :
26951 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26955 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
26956 pluginlibs
="$pluginlibs -ldl"
26960 # Check that we can build shared objects with -fPIC -shared
26961 saved_LDFLAGS
="$LDFLAGS"
26962 saved_CFLAGS
="$CFLAGS"
26965 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26966 CFLAGS
="$CFLAGS -fPIC"
26967 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
26970 CFLAGS
="$CFLAGS -fPIC"
26971 LDFLAGS
="$LDFLAGS -fPIC -shared"
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26975 $as_echo_n "checking for -fPIC -shared... " >&6; }
26976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26977 /* end confdefs.h. */
26987 if ac_fn_c_try_link
"$LINENO"; then :
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26989 $as_echo "yes" >&6; }; have_pic_shared
=yes
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26992 $as_echo "no" >&6; }; have_pic_shared
=no
26994 rm -f core conftest.err conftest.
$ac_objext \
26995 conftest
$ac_exeext conftest.
$ac_ext
26996 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27000 LDFLAGS
="$saved_LDFLAGS"
27001 CFLAGS
="$saved_CFLAGS"
27003 # If plugin support had been requested but not available, fail.
27004 if test x
"$enable_plugin" = x
"no" ; then
27005 if test x
"$default_plugin" != x
"yes"; then
27007 Building GCC with plugin support requires a host that supports
27008 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27015 if test x
"$enable_plugin" = x
"yes"; then
27017 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27022 # Check whether --enable-libquadmath-support was given.
27023 if test "${enable_libquadmath_support+set}" = set; then :
27024 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27026 ENABLE_LIBQUADMATH_SUPPORT
=yes
27029 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27031 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27036 # Specify what hash style to use by default.
27038 # Check whether --with-linker-hash-style was given.
27039 if test "${with_linker_hash_style+set}" = set; then :
27040 withval
=$with_linker_hash_style; case x
"$withval" in
27042 LINKER_HASH_STYLE
=sysv
27045 LINKER_HASH_STYLE
=gnu
27048 LINKER_HASH_STYLE
=both
27051 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27055 LINKER_HASH_STYLE
=''
27058 if test x
"${LINKER_HASH_STYLE}" != x
; then
27060 cat >>confdefs.h
<<_ACEOF
27061 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27066 # Configure the subdirectories
27067 # AC_CONFIG_SUBDIRS($subdirs)
27069 # Create the Makefile
27070 # and configure language subdirectories
27071 ac_config_files
="$ac_config_files $all_outputs"
27074 ac_config_commands
="$ac_config_commands default"
27076 cat >confcache
<<\_ACEOF
27077 # This file is a shell script that caches the results of configure
27078 # tests run on this system so they can be shared between configure
27079 # scripts and configure runs, see configure's option --config-cache.
27080 # It is not useful on other systems. If it contains results you don't
27081 # want to keep, you may remove or edit it.
27083 # config.status only pays attention to the cache file if you give it
27084 # the --recheck option to rerun configure.
27086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27088 # following values.
27092 # The following way of writing the cache mishandles newlines in values,
27093 # but we know of no workaround that is simple, portable, and efficient.
27094 # So, we kill variables containing newlines.
27095 # Ultrix sh set writes to stderr and can't be redirected directly,
27096 # and sets the high bit in the cache file unless we assign to the vars.
27098 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27099 eval ac_val
=\$
$ac_var
27103 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27107 _ | IFS | as_nl
) ;; #(
27108 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27109 *) { eval $ac_var=; unset $ac_var;} ;;
27115 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27116 *${as_nl}ac_space
=\
*)
27117 # `set' does not quote correctly, so add quotes: double-quote
27118 # substitution turns \\\\ into \\, and sed turns \\ into \.
27121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27124 # `set' quotes correctly as required by POSIX, so do not add quotes.
27125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27138 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27139 if test -w "$cache_file"; then
27140 test "x$cache_file" != "x/dev/null" &&
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27142 $as_echo "$as_me: updating cache $cache_file" >&6;}
27143 cat confcache
>$cache_file
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27146 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27151 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27152 # Let make expand exec_prefix.
27153 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27155 DEFS
=-DHAVE_CONFIG_H
27159 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27160 # 1. Remove the extension, and $U if already installed.
27161 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27162 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27163 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27164 # will be set to the directory where LIBOBJS objects are built.
27165 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27166 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27168 LIBOBJS
=$ac_libobjs
27170 LTLIBOBJS
=$ac_ltlibobjs
27175 : ${CONFIG_STATUS=./config.status}
27177 ac_clean_files_save
=$ac_clean_files
27178 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27180 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27182 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27184 # Generated by $as_me.
27185 # Run this file to recreate the current configuration.
27186 # Compiler output produced by configure, useful for debugging
27187 # configure, is in config.log if it exists.
27190 ac_cs_recheck=false
27193 SHELL=\${CONFIG_SHELL-$SHELL}
27196 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27197 ## -------------------- ##
27198 ## M4sh Initialization. ##
27199 ## -------------------- ##
27201 # Be more Bourne compatible
27202 DUALCASE
=1; export DUALCASE
# for MKS sh
27203 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27206 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27207 # is contrary to our usage. Disable this feature.
27208 alias -g '${1+"$@"}'='"$@"'
27209 setopt NO_GLOB_SUBST
27211 case `(set -o) 2>/dev/null` in #(
27223 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27224 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27227 # Prefer a ksh shell builtin over an external printf program on Solaris,
27228 # but without wasting forks for bash or zsh.
27229 if test -z "$BASH_VERSION$ZSH_VERSION" \
27230 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27231 as_echo='print
-r --'
27232 as_echo_n='print
-rn --'
27233 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27234 as_echo='printf %s
\n'
27235 as_echo_n='printf %s
'
27237 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27238 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27239 as_echo_n='/usr
/ucb
/echo -n'
27241 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27242 as_echo_n_body='eval
27246 expr "X$arg" : "X\\(.*\\)$as_nl";
27247 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27249 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27251 export as_echo_n_body
27252 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27254 export as_echo_body
27255 as_echo='sh
-c $as_echo_body as_echo
'
27258 # The user is always right.
27259 if test "${PATH_SEPARATOR+set}" != set; then
27261 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27262 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27269 # We need space, tab and new line, in precisely that order. Quoting is
27270 # there to prevent editors from complaining about space-tab.
27271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27272 # splitting by setting IFS to empty value.)
27275 # Find who we are. Look in the path if we contain no directory separator.
27277 *[\\/]* ) as_myself=$0 ;;
27278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27279 for as_dir in $PATH
27282 test -z "$as_dir" && as_dir=.
27283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27289 # We did not find ourselves, most probably we were run as `sh COMMAND'
27290 # in which case we are not to be found in the path.
27291 if test "x$as_myself" = x
; then
27294 if test ! -f "$as_myself"; then
27295 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27299 # Unset variables that we do not need and which cause bugs (e.g. in
27300 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27301 # suppresses any "Segmentation fault" message there. '((' could
27302 # trigger a bug in pdksh 5.2.14.
27303 for as_var
in BASH_ENV ENV MAIL MAILPATH
27304 do eval test x\
${$as_var+set} = xset \
27305 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27318 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27321 # as_fn_error ERROR [LINENO LOG_FD]
27322 # ---------------------------------
27323 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27324 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27325 # script with status $?, using 1 if that was 0.
27328 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27330 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27331 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27333 $as_echo "$as_me: error: $1" >&2
27334 as_fn_exit
$as_status
27338 # as_fn_set_status STATUS
27339 # -----------------------
27340 # Set $? to STATUS, without forking.
27341 as_fn_set_status
()
27344 } # as_fn_set_status
27346 # as_fn_exit STATUS
27347 # -----------------
27348 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27352 as_fn_set_status
$1
27358 # Portably unset VAR.
27361 { eval $1=; unset $1;}
27363 as_unset
=as_fn_unset
27364 # as_fn_append VAR VALUE
27365 # ----------------------
27366 # Append the text in VALUE to the end of the definition contained in VAR. Take
27367 # advantage of any shell optimizations that allow amortized linear growth over
27368 # repeated appends, instead of the typical quadratic growth present in naive
27370 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27371 eval 'as_fn_append ()
27382 # as_fn_arith ARG...
27383 # ------------------
27384 # Perform arithmetic evaluation on the ARGs, and store the result in the
27385 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27386 # must be portable across $(()) and expr.
27387 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27388 eval 'as_fn_arith ()
27395 as_val
=`expr "$@" || test $? -eq 1`
27400 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27401 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27407 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27408 as_basename
=basename
27413 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27419 as_me
=`$as_basename -- "$0" ||
27420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27421 X"$0" : 'X\(//\)$' \| \
27422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27424 sed '/^.*\/\([^/][^/]*\)\/*$/{
27438 # Avoid depending upon Character Ranges.
27439 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27440 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27441 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27442 as_cr_digits
='0123456789'
27443 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27445 ECHO_C
= ECHO_N
= ECHO_T
=
27446 case `echo -n x` in #(((((
27448 case `echo 'xy\c'` in
27449 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27451 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27458 rm -f conf$$ conf$$.exe conf$$.
file
27459 if test -d conf$$.dir
; then
27460 rm -f conf$$.dir
/conf$$.
file
27463 mkdir conf$$.dir
2>/dev
/null
27465 if (echo >conf$$.
file) 2>/dev
/null
; then
27466 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27468 # ... but there are two gotchas:
27469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27471 # In both cases, we have to default to `cp -p'.
27472 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27474 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27482 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27483 rmdir conf$$.dir
2>/dev
/null
27488 # Create "$as_dir" as a directory, including parents if necessary.
27493 -*) as_dir
=.
/$as_dir;;
27495 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27499 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27500 *) as_qdir
=$as_dir;;
27502 as_dirs
="'$as_qdir' $as_dirs"
27503 as_dir
=`$as_dirname -- "$as_dir" ||
27504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27505 X"$as_dir" : 'X\(//\)[^/]' \| \
27506 X"$as_dir" : 'X\(//\)$' \| \
27507 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27508 $as_echo X"$as_dir" |
27509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27513 /^X\(\/\/\)[^/].*/{
27526 test -d "$as_dir" && break
27528 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27529 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27533 if mkdir
-p .
2>/dev
/null
; then
27534 as_mkdir_p
='mkdir -p "$as_dir"'
27536 test -d .
/-p && rmdir .
/-p
27540 if test -x / >/dev
/null
2>&1; then
27541 as_test_x
='test -x'
27543 if ls -dL / >/dev
/null
2>&1; then
27550 if test -d "$1"; then
27556 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27557 ???[sx]*):;;*)false;;esac;fi
27561 as_executable_p
=$as_test_x
27563 # Sed expression to map a string onto a valid CPP name.
27564 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27566 # Sed expression to map a string onto a valid variable name.
27567 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27571 ## ----------------------------------- ##
27572 ## Main body of $CONFIG_STATUS script. ##
27573 ## ----------------------------------- ##
27575 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27578 # Save the log message, to keep $0 and so on meaningful, and to
27579 # report actual input values of CONFIG_FILES etc. instead of their
27580 # values after options handling.
27582 This file was extended by $as_me, which was
27583 generated by GNU Autoconf 2.64. Invocation command line was
27585 CONFIG_FILES = $CONFIG_FILES
27586 CONFIG_HEADERS = $CONFIG_HEADERS
27587 CONFIG_LINKS = $CONFIG_LINKS
27588 CONFIG_COMMANDS = $CONFIG_COMMANDS
27591 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27596 case $ac_config_files in *"
27597 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27600 case $ac_config_headers in *"
27601 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27606 # Files that config.status was made for.
27607 config_files="$ac_config_files"
27608 config_headers="$ac_config_headers"
27609 config_commands="$ac_config_commands"
27613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27615 \`$as_me' instantiates files and other configuration actions
27616 from templates according to the current configuration. Unless the files
27617 and actions are specified as TAGs, all are instantiated by default.
27619 Usage: $0 [OPTION]... [TAG]...
27621 -h, --help print this help, then exit
27622 -V, --version print version number and configuration settings, then exit
27623 -q, --quiet, --silent
27624 do not print progress messages
27625 -d, --debug don't remove temporary files
27626 --recheck update $as_me by reconfiguring in the same conditions
27627 --file=FILE[:TEMPLATE]
27628 instantiate the configuration file FILE
27629 --header=FILE[:TEMPLATE]
27630 instantiate the configuration header FILE
27632 Configuration files:
27635 Configuration headers:
27638 Configuration commands:
27641 Report bugs to the package provider."
27644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27647 configured by $0, generated by GNU Autoconf 2.64,
27648 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27650 Copyright (C) 2009 Free Software Foundation, Inc.
27651 This config.status script is free software; the Free Software Foundation
27652 gives unlimited permission to copy, distribute and modify it."
27657 test -n "\$AWK" || AWK=awk
27660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27661 # The default lists apply if the user does not specify any file.
27667 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27668 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27679 # Handling of the options.
27680 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27682 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27683 $as_echo "$ac_cs_version"; exit ;;
27684 --debug |
--debu |
--deb |
--de |
--d |
-d )
27686 --file |
--fil |
--fi |
--f )
27689 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27691 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27692 ac_need_defaults
=false
;;
27693 --header |
--heade |
--head |
--hea )
27696 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27698 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27699 ac_need_defaults
=false
;;
27701 # Conflict between --help and --header
27702 as_fn_error
"ambiguous option: \`$1'
27703 Try \`$0 --help' for more information.";;
27704 --help |
--hel |
-h )
27705 $as_echo "$ac_cs_usage"; exit ;;
27706 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27707 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27710 # This is an error.
27711 -*) as_fn_error
"unrecognized option: \`$1'
27712 Try \`$0 --help' for more information." ;;
27714 *) as_fn_append ac_config_targets
" $1"
27715 ac_need_defaults
=false
;;
27721 ac_configure_extra_args
=
27723 if $ac_cs_silent; then
27725 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27730 if \$ac_cs_recheck; then
27731 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27733 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27734 CONFIG_SHELL='$SHELL'
27735 export CONFIG_SHELL
27740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27745 ## Running $as_me. ##
27751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27761 # Handling of arguments.
27762 for ac_config_target
in $ac_config_targets
27764 case $ac_config_target in
27765 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27766 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27767 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27768 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27769 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27770 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27772 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27777 # If the user did not use the arguments to specify the items to instantiate,
27778 # then the envvar interface is used. Set only those that are not.
27779 # We use the long form for the default assignment because of an extremely
27780 # bizarre bug on SunOS 4.1.3.
27781 if $ac_need_defaults; then
27782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27787 # Have a temporary directory for convenience. Make it in the build tree
27788 # simply because there is no reason against having it here, and in addition,
27789 # creating and moving files from /tmp can sometimes cause problems.
27790 # Hook for its removal unless debugging.
27791 # Note that there is a small window in which the directory will not be cleaned:
27792 # after its creation but before its name has been assigned to `$tmp'.
27796 trap 'exit_status=$?
27797 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27799 trap 'as_fn_exit 1' 1 2 13 15
27801 # Create a (secure) tmp directory for tmp files.
27804 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27805 test -n "$tmp" && test -d "$tmp"
27808 tmp
=.
/conf$$
-$RANDOM
27809 (umask 077 && mkdir
"$tmp")
27810 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27812 # Set up the scripts for CONFIG_FILES section.
27813 # No need to generate them if there are no CONFIG_FILES.
27814 # This happens for instance with `./config.status config.h'.
27815 if test -n "$CONFIG_FILES"; then
27817 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27818 ac_cs_awk_getline
=:
27819 ac_cs_awk_pipe_init
=
27820 ac_cs_awk_read_file
='
27821 while ((getline aline < (F[key])) > 0)
27824 ac_cs_awk_pipe_fini
=
27826 ac_cs_awk_getline
=false
27827 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27828 ac_cs_awk_read_file
='
27830 print "cat " F[key] " &&"
27831 '$ac_cs_awk_pipe_init
27832 # The final `:' finishes the AND list.
27833 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27835 ac_cr
=`echo X | tr X '\015'`
27836 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27837 # But we know of no other shell where ac_cr would be empty at this
27838 # point, so we can use a bashism as a fallback.
27839 if test "x$ac_cr" = x
; then
27840 eval ac_cr
=\$
\'\\r
\'
27842 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27843 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27846 ac_cs_awk_cr
=$ac_cr
27849 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27852 # Create commands to substitute file output variables.
27854 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27855 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27856 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27859 } >conf$
$files.sh
&&
27860 . .
/conf$
$files.sh ||
27861 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27862 rm -f conf$
$files.sh
27865 echo "cat >conf$$subs.awk <<_ACEOF" &&
27866 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27868 } >conf$$subs.sh ||
27869 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27870 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27872 for ac_last_try in false false false false false :; do
27873 . ./conf$$subs.sh ||
27874 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27876 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27877 if test $ac_delim_n = $ac_delim_num; then
27879 elif $ac_last_try; then
27880 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27882 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27885 rm -f conf$$subs.sh
27887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27888 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27892 s/^/S["/; s
/!.
*/"]=/
27902 s/\(.\{148\}\).*/\1/
27904 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27909 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27916 s/\(.\{148\}\).*/\1/
27918 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27922 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27927 ' <conf$$subs.awk | sed '
27932 ' >>$CONFIG_STATUS || ac_write_fail=1
27933 rm -f conf$$subs.awk
27934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27936 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27937 for (key in S) S_is_set[key] = 1
27939 \$ac_cs_awk_pipe_init
27943 nfields = split(line, field, "@
")
27945 len = length(field[1])
27946 for (i = 2; i < nfields; i++) {
27948 keylen = length(key)
27949 if (S_is_set[key]) {
27951 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27952 len += length(value) + length(field[++i])
27957 if (nfields == 3 && !substed) {
27959 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27960 \$ac_cs_awk_read_file
27966 \$ac_cs_awk_pipe_fini
27969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27970 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27971 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27974 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27975 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
27978 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27979 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27980 # trailing colons and then remove the whole line if VPATH becomes empty
27981 # (actually we leave an empty line to preserve line numbers).
27982 if test "x
$srcdir" = x.; then
27983 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27984 s/:*\$(srcdir):*/:/
27985 s/:*\${srcdir}:*/:/
27987 s/^\([^=]*=[ ]*\):*/\1/
27993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27994 fi # test -n "$CONFIG_FILES"
27996 # Set up the scripts for CONFIG_HEADERS section.
27997 # No need to generate them if there are no CONFIG_HEADERS.
27998 # This happens for instance with `./config.status Makefile'.
27999 if test -n "$CONFIG_HEADERS"; then
28000 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28004 # Transform confdefs.h into an awk script `defines.awk', embedded as
28005 # here-document in config.status, that substitutes the proper values into
28006 # config.h.in to produce config.h.
28008 # Create a delimiter string that does not exist in confdefs.h, to ease
28009 # handling of long lines.
28011 for ac_last_try in false false :; do
28012 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28013 if test -z "$ac_t"; then
28015 elif $ac_last_try; then
28016 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28018 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28022 # For the awk script, D is an array of macro values keyed by name,
28023 # likewise P contains macro parameters if any. Preserve backslash
28024 # newline sequences.
28026 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28028 s/.\{148\}/&'"$ac_delim"'/g
28031 s/^[ ]*#[ ]*define[ ][ ]*/ /
28038 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28040 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28045 D["\
1"]=" \
3\\\\\\n
"\\/p
28047 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28052 s/.\{148\}/&'"$ac_delim"'/g
28057 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28060 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28062 ' <confdefs.h | sed '
28063 s/'"$ac_delim"'/"\\\
28064 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28067 for (key in D) D_is_set[key] = 1
28070 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28072 split(line, arg, " ")
28073 if (arg[1] == "#") {
28077 defundef
= substr
(arg
[1], 2)
28080 split(mac1
, mac2
, "(") #)
28082 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28083 if (D_is_set
[macro
]) {
28084 # Preserve the white space surrounding the "#".
28085 print prefix
"define", macro P
[macro
] D
[macro
]
28088 # Replace #undef with comments. This is necessary, for example,
28089 # in the case of _POSIX_SOURCE, which is predefined and required
28090 # on some systems where configure will not decide to define it.
28091 if (defundef
== "undef") {
28092 print
"/*", prefix defundef
, macro
, "*/"
28100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28101 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28102 fi # test -n "$CONFIG_HEADERS"
28105 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28110 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28112 case $ac_mode$ac_tag in
28114 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28115 :[FH
]-) ac_tag
=-:-;;
28116 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28133 -) ac_f
="$tmp/stdin";;
28134 *) # Look for the file first in the build tree, then in the source tree
28135 # (if the path is not absolute). The absolute path cannot be DOS-style,
28136 # because $ac_f cannot contain `:'.
28140 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28142 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28144 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28145 as_fn_append ac_file_inputs
" '$ac_f'"
28148 # Let's still pretend it is `configure' which instantiates (i.e., don't
28149 # use $as_me), people would be surprised to read:
28150 # /* config.h. Generated by config.status. */
28151 configure_input
='Generated from '`
28152 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28154 if test x
"$ac_file" != x-
; then
28155 configure_input
="$ac_file. $configure_input"
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28157 $as_echo "$as_me: creating $ac_file" >&6;}
28159 # Neutralize special characters interpreted by sed in replacement strings.
28160 case $configure_input in #(
28161 *\
&* |
*\|
* |
*\\* )
28162 ac_sed_conf_input
=`$as_echo "$configure_input" |
28163 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28164 *) ac_sed_conf_input
=$configure_input;;
28168 *:-:* |
*:-) cat >"$tmp/stdin" \
28169 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28174 ac_dir
=`$as_dirname -- "$ac_file" ||
28175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28176 X"$ac_file" : 'X\(//\)[^/]' \| \
28177 X"$ac_file" : 'X\(//\)$' \| \
28178 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28179 $as_echo X"$ac_file" |
28180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28184 /^X\(\/\/\)[^/].*/{
28197 as_dir
="$ac_dir"; as_fn_mkdir_p
28201 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28203 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28204 # A ".." for each directory in $ac_dir_suffix.
28205 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28206 case $ac_top_builddir_sub in
28207 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28208 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28211 ac_abs_top_builddir
=$ac_pwd
28212 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28213 # for backward compatibility:
28214 ac_top_builddir
=$ac_top_build_prefix
28217 .
) # We are building in place.
28219 ac_top_srcdir
=$ac_top_builddir_sub
28220 ac_abs_top_srcdir
=$ac_pwd ;;
28221 [\\/]* | ?
:[\\/]* ) # Absolute name.
28222 ac_srcdir
=$srcdir$ac_dir_suffix;
28223 ac_top_srcdir
=$srcdir
28224 ac_abs_top_srcdir
=$srcdir ;;
28225 *) # Relative name.
28226 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28227 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28228 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28230 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28242 # If the template does not know about datarootdir, expand it.
28243 # FIXME: This hack should be removed a few years after 2.60.
28244 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28255 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28256 *datarootdir
*) ac_datarootdir_seen
=yes;;
28257 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28259 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28262 ac_datarootdir_hack='
28263 s&@datadir@&$datadir&g
28264 s&@docdir@&$docdir&g
28265 s&@infodir@&$infodir&g
28266 s&@localedir@&$localedir&g
28267 s&@mandir@&$mandir&g
28268 s&\\\${datarootdir}&$datarootdir&g' ;;
28272 # Neutralize VPATH when `$srcdir' = `.'.
28273 # Shell code in configure.ac might set extrasub.
28274 # FIXME: do we really want to maintain this feature?
28275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28276 ac_sed_extra="$ac_vpsub
28279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28281 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28282 s|@configure_input@|
$ac_sed_conf_input|
;t t
28283 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28284 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28285 s
&@srcdir@
&$ac_srcdir&;t t
28286 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28287 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28288 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28289 s
&@builddir@
&$ac_builddir&;t t
28290 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28291 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28292 $ac_datarootdir_hack
28294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28295 if $ac_cs_awk_getline; then
28296 $AWK -f "$tmp/subs.
awk"
28298 $AWK -f "$tmp/subs.
awk" | $SHELL
28300 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28302 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28303 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28304 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28306 which seems to be undefined. Please make sure it is defined." >&5
28307 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28308 which seems to be undefined. Please make sure it is defined." >&2;}
28312 -) cat "$tmp/out" && rm -f "$tmp/out";;
28313 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28315 || as_fn_error "could not create $ac_file" "$LINENO" 5
28321 if test x"$ac_file" != x-; then
28323 $as_echo "/* $configure_input */" \
28324 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28325 } >"$tmp/config.h" \
28326 || as_fn_error "could not create $ac_file" "$LINENO" 5
28327 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28329 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28332 mv "$tmp/config.h" "$ac_file" \
28333 || as_fn_error "could not create $ac_file" "$LINENO" 5
28336 $as_echo "/* $configure_input */" \
28337 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28338 || as_fn_error "could not create -" "$LINENO" 5
28342 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28343 $as_echo "$as_me: executing $ac_file commands" >&6;}
28348 case $ac_file$ac_mode in
28349 "as":F) chmod +x as ;;
28350 "collect-ld":F) chmod +x collect-ld ;;
28351 "nm":F) chmod +x nm ;;
28353 case ${CONFIG_HEADERS} in
28354 *auto-host.h:config.in*)
28357 # Make sure all the subdirs exist.
28358 for d in $subdirs doc build common c-family
28360 test -d $d || mkdir $d
28370 ac_clean_files=$ac_clean_files_save
28372 test $ac_write_fail = 0 ||
28373 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28376 # configure is writing to config.log, and then calls config.status.
28377 # config.status does its own redirection, appending to config.log.
28378 # Unfortunately, on DOS this fails, as config.log is still kept open
28379 # by configure, so config.status won't be able to
write to it
; its
28380 # output is simply discarded. So we exec the FD to /dev/null,
28381 # effectively closing config.log, so it can be properly (re)opened and
28382 # appended to by config.status. When coming back to configure, we
28383 # need to make the FD available again.
28384 if test "$no_create" != yes; then
28386 ac_config_status_args
=
28387 test "$silent" = yes &&
28388 ac_config_status_args
="$ac_config_status_args --quiet"
28390 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28392 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28393 # would make configure fail if this is the last instruction.
28394 $ac_cs_success || as_fn_exit $?
28396 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28398 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}