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 *))))
10896 if ac_fn_c_try_run
"$LINENO"; then :
10897 gcc_cv_initfini_array
=yes
10899 gcc_cv_initfini_array
=no
10901 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10902 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10907 $as_echo_n "checking cross compile... guessing... " >&6; }
10908 gcc_cv_initfini_array
=no
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10912 $as_echo "$gcc_cv_initfini_array" >&6; }
10913 enable_initfini_array
=$gcc_cv_initfini_array
10917 if test $enable_initfini_array = yes; then
10919 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10923 # mkdir takes a single argument on some systems.
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10925 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10926 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10932 #include <sys/types.h>
10933 #ifdef HAVE_SYS_STAT_H
10934 # include <sys/stat.h>
10936 #ifdef HAVE_UNISTD_H
10937 # include <unistd.h>
10939 #ifdef HAVE_DIRECT_H
10940 # include <direct.h>
10950 if ac_fn_c_try_compile
"$LINENO"; then :
10951 gcc_cv_mkdir_takes_one_arg
=no
10953 gcc_cv_mkdir_takes_one_arg
=yes
10955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10958 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10959 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10961 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10972 # With Setjmp/Longjmp based exception handling.
10973 # Check whether --enable-sjlj-exceptions was given.
10974 if test "${enable_sjlj_exceptions+set}" = set; then :
10975 enableval
=$enable_sjlj_exceptions; case $target in
10977 if test $enableval != yes; then
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10979 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10984 force_sjlj_exceptions
=yes
10988 force_sjlj_exceptions
=yes
10992 force_sjlj_exceptions
=no
10997 if test $force_sjlj_exceptions = yes; then
10998 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11000 cat >>confdefs.h
<<_ACEOF
11001 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11006 # --------------------------------------------------------
11007 # Build, host, and target specific configuration fragments
11008 # --------------------------------------------------------
11010 # Collect build-machine-specific information.
11011 .
${srcdir}/config.build
11013 # Collect host-machine-specific information.
11014 .
${srcdir}/config.
host
11018 # Collect target-machine-specific information.
11019 .
${srcdir}/config.gcc
11021 extra_objs
="${host_extra_objs} ${extra_objs}"
11022 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11024 # Default the target-machine variables that were not explicitly set.
11025 if test x
"$tm_file" = x
11026 then tm_file
=$cpu_type/$cpu_type.h
; fi
11028 if test x
"$extra_headers" = x
11029 then extra_headers
=; fi
11031 if test x
$md_file = x
11032 then md_file
=$cpu_type/$cpu_type.md
; fi
11034 if test x
$out_file = x
11035 then out_file
=$cpu_type/$cpu_type.c
; fi
11037 if test x
"$tmake_file" = x
11038 then tmake_file
=$cpu_type/t-
$cpu_type
11041 if test x
"$dwarf2" = xyes
11042 then tm_file
="$tm_file tm-dwarf2.h"
11045 # Say what files are being used for the output code and MD file.
11046 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11047 echo "Using \`$srcdir/config/$md_file' as machine description file."
11049 # If any of the xm_file variables contain nonexistent files, warn
11050 # about them and drop them.
11053 for x
in $build_xm_file; do
11054 if test -f $srcdir/config
/$x
11056 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11057 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11060 build_xm_file
="$bx"
11063 for x
in $host_xm_file; do
11064 if test -f $srcdir/config
/$x
11066 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11067 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11073 for x
in $xm_file; do
11074 if test -f $srcdir/config
/$x
11076 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11077 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11083 for f
in $tm_file; do
11086 if test $count = ax
; then
11087 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11089 echo "Using the following target machine macro files:"
11090 for f
in $tm_file; do
11091 echo " $srcdir/config/$f"
11095 if test x
$need_64bit_hwint = xyes
; then
11097 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11101 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11103 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11108 for f
in $host_xm_file; do
11111 if test $count = a
; then
11113 elif test $count = ax
; then
11114 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11116 echo "Using the following host machine macro files:"
11117 for f
in $host_xm_file; do
11118 echo " $srcdir/config/$f"
11121 echo "Using ${out_host_hook_obj} for host machine hooks."
11123 if test "$host_xm_file" != "$build_xm_file"; then
11125 for f
in $build_xm_file; do
11128 if test $count = a
; then
11130 elif test $count = ax
; then
11131 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11133 echo "Using the following build machine macro files:"
11134 for f
in $build_xm_file; do
11135 echo " $srcdir/config/$f"
11141 powerpc
*-*-darwin*)
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11143 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11144 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
11147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11150 #include <sys/cdefs.h>
11151 #include <sys/signal.h>
11152 #include <ucontext.h>
11153 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11156 if ac_fn_c_try_compile
"$LINENO"; then :
11157 gcc_cv_mcontext_underscores
=no
11159 gcc_cv_mcontext_underscores
=yes
11161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11164 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11165 if test $gcc_cv_mcontext_underscores = yes; then
11167 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11177 # Check if a valid thread package
11178 case ${enable_threads} in
11181 target_thread_file
='single'
11185 target_thread_file
='single'
11187 aix | dce | lynx | mipssde | posix | rtems | \
11188 single | tpf | vxworks | win32
)
11189 target_thread_file
=${enable_threads}
11192 echo "${enable_threads} is an unknown thread package" 1>&2
11197 if test x
${thread_file} = x
; then
11198 # No thread file set by target-specific clauses in config.gcc,
11199 # so use file chosen by default logic above
11200 thread_file
=${target_thread_file}
11203 # Make gthr-default.h if we have a thread file.
11205 if test $thread_file != single
; then
11206 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11207 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
11208 rm -f gthr-default.h-t
11210 mv -f gthr-default.h-t gthr-default.h
11212 gthread_flags
=-DHAVE_GTHR_DEFAULT
11221 if test x
$enable___cxa_atexit = xyes || \
11222 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11223 if test x
$host = x
$target; then
11225 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11226 # keyed to flag_use_cxa_atexit
11231 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11232 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11235 echo "__cxa_atexit can't be enabled on this target"
11241 # We can't check for __cxa_atexit when building a cross, so assume
11245 if test x
$use_cxa_atexit = xyes
; then
11247 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11252 # Look for a file containing extra machine modes.
11253 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11254 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11257 cat >>confdefs.h
<<_ACEOF
11258 #define EXTRA_MODES_FILE "config/$extra_modes"
11263 # Convert extra_options into a form suitable for Makefile use.
11266 for f
in $extra_options; do
11267 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11268 all_opt_files
="$all_opt_files $srcdir/config/$f"
11272 # auto-host.h is the file containing items generated by autoconf and is
11273 # the first file included by config.h.
11274 # If host=build, it is correct to have bconfig include auto-host.h
11275 # as well. If host!=build, we are in error and need to do more
11276 # work to find out the build config parameters.
11277 if test x
$host = x
$build
11279 build_auto
=auto-host.h
11281 # We create a subdir, then run autoconf in the subdir.
11282 # To prevent recursion we set host and build for the new
11283 # invocation of configure to the build for this invocation
11290 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11291 *) realsrcdir
=..
/${srcdir};;
11293 saved_CFLAGS
="${CFLAGS}"
11294 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11295 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11296 ${realsrcdir}/configure \
11297 --enable-languages=${enable_languages-all} \
11298 --target=$target_alias --host=$build_alias --build=$build_alias
11299 CFLAGS
="${saved_CFLAGS}"
11301 # We just finished tests for the build machine, so rename
11302 # the file auto-build.h in the gcc directory.
11303 mv auto-host.h ..
/auto-build.h
11306 build_auto
=auto-build.h
11310 tm_file
="${tm_file} defaults.h"
11311 tm_p_file
="${tm_p_file} tm-preds.h"
11312 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11313 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11314 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11315 # put this back in temporarily.
11316 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11322 # Compile in configure arguments.
11323 if test -f configargs.h
; then
11324 # Being re-configured.
11325 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11326 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11328 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11331 # Double all backslashes and backslash all quotes to turn
11332 # gcc_config_arguments into a C string.
11333 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11334 $gcc_config_arguments
11336 gcc_config_arguments_str
=`cat conftest.out`
11339 cat > configargs.h
<<EOF
11340 /* Generated automatically. */
11341 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11342 static const char thread_model[] = "$thread_file";
11344 static const struct {
11345 const char *name, *value;
11346 } configure_default_options[] = $configure_default_options;
11349 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11350 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11351 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11352 if test -f $srcdir/REVISION
; then
11353 gcc_REVISION
=`cat $srcdir/REVISION`
11357 cat > plugin-version.h
<<EOF
11358 #include "configargs.h"
11360 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11361 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11362 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11363 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11365 static char basever[] = "$gcc_BASEVER";
11366 static char datestamp[] = "$gcc_DATESTAMP";
11367 static char devphase[] = "$gcc_DEVPHASE";
11368 static char revision[] = "$gcc_REVISION";
11370 /* FIXME plugins: We should make the version information more precise.
11371 One way to do is to add a checksum. */
11373 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11374 devphase, revision,
11375 configuration_arguments};
11378 # Internationalization
11379 # If we haven't got the data from the intl directory,
11380 # assume NLS is disabled.
11389 if test -f ..
/intl
/config.intl
; then
11390 . ..
/intl
/config.intl
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11393 $as_echo_n "checking whether NLS is requested... " >&6; }
11394 if test x
"$USE_NLS" != xyes
; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11399 $as_echo "yes" >&6; }
11401 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11405 $as_echo_n "checking for catalogs to be installed... " >&6; }
11406 # Look for .po and .gmo files in the source directory.
11409 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11410 # If there aren't any .gmo files the shell will give us the
11411 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11413 case "$cat" in *\
**)
11416 # The quadruple backslash is collapsed to a double backslash
11417 # by the backticks, then collapsed again by the double quotes,
11418 # leaving us with one backslash in the sed expression (right
11419 # before the dot that mustn't act as a wildcard).
11420 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11421 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11422 # The user is allowed to set LINGUAS to a list of languages to
11423 # install catalogs for. If it's empty that means "all of them."
11424 if test "x$LINGUAS" = x
; then
11425 CATALOGS
="$CATALOGS $cat"
11426 XLINGUAS
="$XLINGUAS $lang"
11428 case "$LINGUAS" in *$lang*)
11429 CATALOGS
="$CATALOGS $cat"
11430 XLINGUAS
="$XLINGUAS $lang"
11435 LINGUAS
="$XLINGUAS"
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11437 $as_echo "$LINGUAS" >&6; }
11450 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11451 # -liconv on the link line twice.
11452 case "$LIBINTL" in *$LIBICONV*)
11456 # Check whether --enable-secureplt was given.
11457 if test "${enable_secureplt+set}" = set; then :
11458 enableval
=$enable_secureplt;
11462 # Check whether --enable-leading-mingw64-underscores was given.
11463 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11464 enableval
=$enable_leading_mingw64_underscores;
11467 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11469 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11473 # Check whether --enable-cld was given.
11474 if test "${enable_cld+set}" = set; then :
11475 enableval
=$enable_cld;
11481 # Check whether --enable-frame-pointer was given.
11482 if test "${enable_frame_pointer+set}" = set; then :
11483 enableval
=$enable_frame_pointer;
11487 linux
* | darwin
[8912]*)
11488 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11490 enable_frame_pointer
=no
11493 enable_frame_pointer
=yes
11500 # Windows32 Registry support for specifying GCC installation paths.
11501 # Check whether --enable-win32-registry was given.
11502 if test "${enable_win32_registry+set}" = set; then :
11503 enableval
=$enable_win32_registry;
11508 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11509 if test "x$enable_win32_registry" != xno
; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11511 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11512 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11515 ac_func_search_save_LIBS
=$LIBS
11516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11525 char RegOpenKeyExA ();
11529 return RegOpenKeyExA ();
11534 for ac_lib
in '' advapi32
; do
11535 if test -z "$ac_lib"; then
11536 ac_res
="none required"
11539 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11541 if ac_fn_c_try_link
"$LINENO"; then :
11542 ac_cv_search_RegOpenKeyExA
=$ac_res
11544 rm -f core conftest.err conftest.
$ac_objext \
11546 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11550 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11553 ac_cv_search_RegOpenKeyExA
=no
11555 rm conftest.
$ac_ext
11556 LIBS
=$ac_func_search_save_LIBS
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11559 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11560 ac_res
=$ac_cv_search_RegOpenKeyExA
11561 if test "$ac_res" != no
; then :
11562 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11565 enable_win32_registry
=no
11570 if test "x$enable_win32_registry" != xno
; then
11572 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11575 if test "x$enable_win32_registry" != xyes \
11576 && test "x$enable_win32_registry" != x
; then
11578 cat >>confdefs.h
<<_ACEOF
11579 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11587 # Get an absolute path to the GCC top-level source directory
11588 holddir
=`${PWDCMD-pwd}`
11590 topdir
=`${PWDCMD-pwd}`
11593 # Conditionalize the makefile for this host machine.
11595 for f
in ${host_xmake_file}
11597 if test -f ${srcdir}/config
/$f
11599 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11603 # Conditionalize the makefile for this target machine.
11605 for f
in ${tmake_file}
11607 if test -f ${srcdir}/config
/$f
11609 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11612 tmake_file
="${tmake_file_}"
11614 out_object_file
=`basename $out_file .c`.o
11615 common_out_object_file
=`basename $common_out_file .c`.o
11617 tm_file_list
="options.h"
11618 tm_include_list
="options.h insn-constants.h"
11619 for f
in $tm_file; do
11622 f
=`echo $f | sed 's/^..//'`
11623 tm_file_list
="${tm_file_list} $f"
11624 tm_include_list
="${tm_include_list} $f"
11627 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11628 tm_include_list
="${tm_include_list} $f"
11631 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11632 tm_include_list
="${tm_include_list} config/$f"
11637 libgcc_tm_file_list
=
11638 libgcc_tm_include_list
=
11639 for f
in $libgcc_tm_file; do
11640 libgcc_tm_file_list
="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11641 libgcc_tm_include_list
="${libgcc_tm_include_list} ../libgcc/config/$f"
11646 for f
in $tm_p_file; do
11649 tm_p_file_list
="${tm_p_file_list} $f"
11650 tm_p_include_list
="${tm_p_include_list} $f"
11653 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11654 tm_p_include_list
="${tm_p_include_list} config/$f"
11660 for f
in $xm_file; do
11663 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11664 xm_include_list
="${xm_include_list} $f"
11667 xm_file_list
="${xm_file_list} $f"
11668 xm_include_list
="${xm_include_list} $f"
11671 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11672 xm_include_list
="${xm_include_list} config/$f"
11678 host_xm_include_list
=
11679 for f
in $host_xm_file; do
11682 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11683 host_xm_include_list
="${host_xm_include_list} $f"
11686 host_xm_file_list
="${host_xm_file_list} $f"
11687 host_xm_include_list
="${host_xm_include_list} $f"
11690 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11691 host_xm_include_list
="${host_xm_include_list} config/$f"
11696 build_xm_file_list
=
11697 for f
in $build_xm_file; do
11700 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11701 build_xm_include_list
="${build_xm_include_list} $f"
11703 auto-build.h | auto-host.h
)
11704 build_xm_file_list
="${build_xm_file_list} $f"
11705 build_xm_include_list
="${build_xm_include_list} $f"
11708 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11709 build_xm_include_list
="${build_xm_include_list} config/$f"
11714 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11715 # cross-compiler which does not use the native headers and libraries.
11716 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11719 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11721 if test "x$with_build_sysroot" != x
; then
11722 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11724 # This value is used, even on a native system, because
11725 # CROSS_SYSTEM_HEADER_DIR is just
11726 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11727 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11730 if test x
$host != x
$target
11732 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11734 SYSTEM_HEADER_DIR
=$build_system_header_dir
11735 case "$host","$target" in
11736 # Darwin crosses can use the host system's libraries and headers,
11737 # because of the fat library support. Of course, it must be the
11738 # same version of Darwin on both sides. Allow the user to
11739 # just say --target=foo-darwin without a version number to mean
11740 # "the version on this system".
11741 *-*-darwin*,*-*-darwin*)
11742 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11743 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11744 if test $hostos = $targetos -o $targetos = darwin
; then
11746 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11751 i?
86-*-*,x86_64-
*-* \
11752 | powerpc
*-*-*,powerpc64
*-*-*)
11753 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11758 if test "x$with_headers" = x
; then
11765 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11766 SYSTEM_HEADER_DIR
=$build_system_header_dir
11769 # If this is a cross-compiler that does not
11770 # have its own set of headers then define
11773 # If this is using newlib, without having the headers available now,
11774 # then define inhibit_libc in LIBGCC2_CFLAGS.
11775 # This prevents libgcc2 from containing any code which requires libc
11777 : ${inhibit_libc=false}
11778 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11779 test x
$with_newlib = xyes
; } &&
11780 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11785 # When building gcc with a cross-compiler, we need to adjust things so
11786 # that the generator programs are still built with the native compiler.
11787 # Also, we cannot run fixincludes.
11789 # These are the normal (build=host) settings:
11790 CC_FOR_BUILD
='$(CC)'
11791 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11792 BUILD_LDFLAGS
='$(LDFLAGS)'
11793 STMP_FIXINC
=stmp-fixinc
11795 # And these apply if build != host, or we are generating coverage data
11796 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11798 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11799 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11802 # Expand extra_headers to include complete path.
11803 # This substitutes for lots of t-* files.
11804 extra_headers_list
=
11805 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11806 for file in ${extra_headers} ; do
11807 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11810 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11811 if test x
"$use_gcc_tgmath" = xyes
11812 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11815 # Define collect2 in Makefile.
11816 case $host_can_use_collect2 in
11818 *) collect2
='collect2$(exeext)' ;;
11822 # Add a definition of USE_COLLECT2 if system wants one.
11823 case $use_collect2 in
11824 no
) use_collect2
= ;;
11827 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11828 xm_defines
="${xm_defines} USE_COLLECT2"
11829 case $host_can_use_collect2 in
11831 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11838 cat >>confdefs.h
<<_ACEOF
11839 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11843 # ---------------------------
11844 # Assembler & linker features
11845 # ---------------------------
11847 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11848 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11849 # However when ld-new is first executed from the build tree, libtool will
11850 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11851 # to the build tree. While doing this we need to use the previous-stage
11852 # linker, or we have an infinite loop. The presence of a shell script as
11853 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11854 # the gcc/collect-ld script. So we need to know how libtool works, or
11855 # exec-tool will fail.
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11861 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11866 macro_version
='2.2.7a'
11867 macro_revision
='1.3134'
11881 ltmain
="$ac_aux_dir/ltmain.sh"
11883 # Backslashify metacharacters that are still active within
11884 # double-quoted strings.
11885 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11887 # Same as above, but do not quote variable references.
11888 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11890 # Sed substitution to delay expansion of an escaped shell variable in a
11891 # double_quote_subst'ed string.
11892 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11894 # Sed substitution to delay expansion of an escaped single quote.
11895 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11897 # Sed substitution to avoid accidental globbing in evaled expressions
11898 no_glob_subst
='s/\*/\\\*/g'
11900 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11901 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11902 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11905 $as_echo_n "checking how to print strings... " >&6; }
11906 # Test print first, because it will be a builtin if present.
11907 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11908 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11910 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11913 # Use this function as a fallback that always works.
11914 func_fallback_echo ()
11916 eval 'cat <<_LTECHO_EOF
11920 ECHO='func_fallback_echo
'
11923 # func_echo_all arg...
11924 # Invoke $ECHO with all args, space-separated.
11931 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11932 $as_echo "printf" >&6; } ;;
11933 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11934 $as_echo "print -r" >&6; } ;;
11935 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11936 $as_echo "cat" >&6; } ;;
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11953 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11954 if test "${ac_cv_path_SED+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11957 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11958 for ac_i in 1 2 3 4 5 6 7; do
11959 ac_script="$ac_script$as_nl$ac_script"
11961 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11962 { ac_script=; unset ac_script;}
11963 if test -z "$SED"; then
11964 ac_path_SED_found=false
11965 # Loop through the user's path and
test for each of PROGNAME-LIST
11966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11967 for as_dir
in $PATH
11970 test -z "$as_dir" && as_dir
=.
11971 for ac_prog
in sed gsed
; do
11972 for ac_exec_ext
in '' $ac_executable_extensions; do
11973 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11974 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11975 # Check for GNU ac_path_SED and select it if it is found.
11976 # Check for GNU $ac_path_SED
11977 case `"$ac_path_SED" --version 2>&1` in
11979 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11982 $as_echo_n 0123456789 >"conftest.in"
11985 cat "conftest.in" "conftest.in" >"conftest.tmp"
11986 mv "conftest.tmp" "conftest.in"
11987 cp "conftest.in" "conftest.nl"
11988 $as_echo '' >> "conftest.nl"
11989 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11990 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11991 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11992 if test $ac_count -gt ${ac_path_SED_max-0}; then
11993 # Best one so far, save it but keep looking for a better one
11994 ac_cv_path_SED
="$ac_path_SED"
11995 ac_path_SED_max
=$ac_count
11997 # 10*(2^10) chars as input seems more than enough
11998 test $ac_count -gt 10 && break
12000 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12003 $ac_path_SED_found && break 3
12008 if test -z "$ac_cv_path_SED"; then
12009 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12012 ac_cv_path_SED
=$SED
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12017 $as_echo "$ac_cv_path_SED" >&6; }
12018 SED
="$ac_cv_path_SED"
12021 test -z "$SED" && SED
=sed
12022 Xsed
="$SED -e 1s/^X//"
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12035 $as_echo_n "checking for fgrep... " >&6; }
12036 if test "${ac_cv_path_FGREP+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12039 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12040 then ac_cv_path_FGREP
="$GREP -F"
12042 if test -z "$FGREP"; then
12043 ac_path_FGREP_found
=false
12044 # Loop through the user's path and test for each of PROGNAME-LIST
12045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12046 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12049 test -z "$as_dir" && as_dir
=.
12050 for ac_prog
in fgrep
; do
12051 for ac_exec_ext
in '' $ac_executable_extensions; do
12052 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12053 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12054 # Check for GNU ac_path_FGREP and select it if it is found.
12055 # Check for GNU $ac_path_FGREP
12056 case `"$ac_path_FGREP" --version 2>&1` in
12058 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12061 $as_echo_n 0123456789 >"conftest.in"
12064 cat "conftest.in" "conftest.in" >"conftest.tmp"
12065 mv "conftest.tmp" "conftest.in"
12066 cp "conftest.in" "conftest.nl"
12067 $as_echo 'FGREP' >> "conftest.nl"
12068 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12069 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12070 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12071 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12072 # Best one so far, save it but keep looking for a better one
12073 ac_cv_path_FGREP
="$ac_path_FGREP"
12074 ac_path_FGREP_max
=$ac_count
12076 # 10*(2^10) chars as input seems more than enough
12077 test $ac_count -gt 10 && break
12079 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12082 $ac_path_FGREP_found && break 3
12087 if test -z "$ac_cv_path_FGREP"; then
12088 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12091 ac_cv_path_FGREP
=$FGREP
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12097 $as_echo "$ac_cv_path_FGREP" >&6; }
12098 FGREP
="$ac_cv_path_FGREP"
12101 test -z "$GREP" && GREP
=grep
12121 # Check whether --with-gnu-ld was given.
12122 if test "${with_gnu_ld+set}" = set; then :
12123 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12129 if test "$GCC" = yes; then
12130 # Check if gcc -print-prog-name=ld gives a path.
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12132 $as_echo_n "checking for ld used by $CC... " >&6; }
12135 # gcc leaves a trailing carriage return which upsets mingw
12136 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12138 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12141 # Accept absolute paths.
12143 re_direlt
='/[^/][^/]*/\.\./'
12144 # Canonicalize the pathname of ld
12145 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12146 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12147 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12149 test -z "$LD" && LD
="$ac_prog"
12152 # If it fails, then pretend we aren't using GCC.
12156 # If it is relative, then search for the first ld in PATH.
12157 with_gnu_ld
=unknown
12160 elif test "$with_gnu_ld" = yes; then
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12162 $as_echo_n "checking for GNU ld... " >&6; }
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12165 $as_echo_n "checking for non-GNU ld... " >&6; }
12167 if test "${lt_cv_path_LD+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12170 if test -z "$LD"; then
12171 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12172 for ac_dir
in $PATH; do
12174 test -z "$ac_dir" && ac_dir
=.
12175 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12176 lt_cv_path_LD
="$ac_dir/$ac_prog"
12177 # Check to see if the program is GNU ld. I'd rather use --version,
12178 # but apparently some variants of GNU ld only accept -v.
12179 # Break only if it was the GNU/non-GNU ld that we prefer.
12180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12181 *GNU
* |
*'with BFD'*)
12182 test "$with_gnu_ld" != no
&& break
12185 test "$with_gnu_ld" != yes && break
12192 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12196 LD
="$lt_cv_path_LD"
12197 if test -n "$LD"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12199 $as_echo "$LD" >&6; }
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12204 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12207 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12211 case `$LD -v 2>&1 </dev/null` in
12212 *GNU
* |
*'with BFD'*)
12213 lt_cv_prog_gnu_ld
=yes
12216 lt_cv_prog_gnu_ld
=no
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12221 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12222 with_gnu_ld
=$lt_cv_prog_gnu_ld
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12233 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12234 if test "${lt_cv_path_NM+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12237 if test -n "$NM"; then
12238 # Let the user override the test.
12239 lt_cv_path_NM
="$NM"
12241 lt_nm_to_check
="${ac_tool_prefix}nm"
12242 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12243 lt_nm_to_check
="$lt_nm_to_check nm"
12245 for lt_tmp_nm
in $lt_nm_to_check; do
12246 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12247 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12249 test -z "$ac_dir" && ac_dir
=.
12250 tmp_nm
="$ac_dir/$lt_tmp_nm"
12251 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12252 # Check to see if the nm accepts a BSD-compat flag.
12253 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12254 # nm: unknown option "B" ignored
12255 # Tru64's nm complains that /dev/null is an invalid object file
12256 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12257 */dev
/null
* |
*'Invalid file or object type'*)
12258 lt_cv_path_NM
="$tmp_nm -B"
12262 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12264 lt_cv_path_NM
="$tmp_nm -p"
12268 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12269 continue # so that we can try to find one that supports BSD flags
12278 : ${lt_cv_path_NM=no}
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12282 $as_echo "$lt_cv_path_NM" >&6; }
12283 if test "$lt_cv_path_NM" != "no"; then
12284 NM
="$lt_cv_path_NM"
12286 # Didn't find any BSD compatible name lister, look for dumpbin.
12287 if test -n "$DUMPBIN"; then :
12288 # Let the user override the test.
12290 if test -n "$ac_tool_prefix"; then
12291 for ac_prog
in dumpbin
"link -dump"
12293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12294 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12300 if test -n "$DUMPBIN"; then
12301 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12304 for as_dir
in $PATH
12307 test -z "$as_dir" && as_dir
=.
12308 for ac_exec_ext
in '' $ac_executable_extensions; do
12309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12310 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320 DUMPBIN
=$ac_cv_prog_DUMPBIN
12321 if test -n "$DUMPBIN"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12323 $as_echo "$DUMPBIN" >&6; }
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12330 test -n "$DUMPBIN" && break
12333 if test -z "$DUMPBIN"; then
12334 ac_ct_DUMPBIN
=$DUMPBIN
12335 for ac_prog
in dumpbin
"link -dump"
12337 # Extract the first word of "$ac_prog", so it can be a program name with args.
12338 set dummy
$ac_prog; ac_word
=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12344 if test -n "$ac_ct_DUMPBIN"; then
12345 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12348 for as_dir
in $PATH
12351 test -z "$as_dir" && as_dir
=.
12352 for ac_exec_ext
in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12365 if test -n "$ac_ct_DUMPBIN"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12367 $as_echo "$ac_ct_DUMPBIN" >&6; }
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12374 test -n "$ac_ct_DUMPBIN" && break
12377 if test "x$ac_ct_DUMPBIN" = x
; then
12380 case $cross_compiling:$ac_tool_warned in
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12384 ac_tool_warned
=yes ;;
12386 DUMPBIN
=$ac_ct_DUMPBIN
12390 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12392 DUMPBIN
="$DUMPBIN -symbols"
12400 if test "$DUMPBIN" != ":"; then
12404 test -z "$NM" && NM
=nm
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12412 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12413 if test "${lt_cv_nm_interface+set}" = set; then :
12414 $as_echo_n "(cached) " >&6
12416 lt_cv_nm_interface
="BSD nm"
12417 echo "int some_variable = 0;" > conftest.
$ac_ext
12418 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12419 (eval "$ac_compile" 2>conftest.err
)
12420 cat conftest.err
>&5
12421 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12422 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12423 cat conftest.err
>&5
12424 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12425 cat conftest.out
>&5
12426 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12427 lt_cv_nm_interface
="MS dumpbin"
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12432 $as_echo "$lt_cv_nm_interface" >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12435 $as_echo_n "checking whether ln -s works... " >&6; }
12437 if test "$LN_S" = "ln -s"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439 $as_echo "yes" >&6; }
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12442 $as_echo "no, using $LN_S" >&6; }
12445 # find the maximum length of command line arguments
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12447 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12448 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12456 # On DJGPP, this test can blow up pretty badly due to problems in libc
12457 # (any single argument exceeding 2000 bytes causes a buffer overrun
12458 # during glob expansion). Even if it were fixed, the result of this
12459 # check would be larger than it should be.
12460 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12464 # Under GNU Hurd, this test is not required because there is
12465 # no limit to the length of command line arguments.
12466 # Libtool will interpret -1 as no limit whatsoever
12467 lt_cv_sys_max_cmd_len
=-1;
12470 cygwin
* | mingw
* | cegcc
*)
12471 # On Win9x/ME, this test blows up -- it succeeds, but takes
12472 # about 5 minutes as the teststring grows exponentially.
12473 # Worse, since 9x/ME are not pre-emptively multitasking,
12474 # you end up with a "frozen" computer, even though with patience
12475 # the test eventually succeeds (with a max line length of 256k).
12476 # Instead, let's just punt: use the minimum linelength reported by
12477 # all of the supported platforms: 8192 (on NT/2K/XP).
12478 lt_cv_sys_max_cmd_len
=8192;
12482 # On MiNT this can take a long time and run out of memory.
12483 lt_cv_sys_max_cmd_len
=8192;
12487 # On AmigaOS with pdksh, this test takes hours, literally.
12488 # So we just punt and use a minimum line length of 8192.
12489 lt_cv_sys_max_cmd_len
=8192;
12492 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12493 # This has been around since 386BSD, at least. Likely further.
12494 if test -x /sbin
/sysctl
; then
12495 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12496 elif test -x /usr
/sbin
/sysctl
; then
12497 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12499 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12501 # And add a safety zone
12502 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12503 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12507 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12508 lt_cv_sys_max_cmd_len
=196608
12512 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12513 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12514 # nice to cause kernel panics so lets avoid the loop below.
12515 # First set a reasonable default.
12516 lt_cv_sys_max_cmd_len
=16384
12518 if test -x /sbin
/sysconfig
; then
12519 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12520 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12525 lt_cv_sys_max_cmd_len
=102400
12527 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12528 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12529 if test -n "$kargmax"; then
12530 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12532 lt_cv_sys_max_cmd_len
=32768
12536 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12537 if test -n "$lt_cv_sys_max_cmd_len"; then
12538 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12539 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12541 # Make teststring a little bigger before we do anything with it.
12542 # a 1K string should be a reasonable start.
12543 for i
in 1 2 3 4 5 6 7 8 ; do
12544 teststring
=$teststring$teststring
12546 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12547 # If test is not a shell built-in, we'll probably end up computing a
12548 # maximum length that is only half of the actual maximum length, but
12550 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12551 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12552 test $i != 17 # 1/2 MB should be enough
12555 teststring
=$teststring$teststring
12557 # Only check the string length outside the loop.
12558 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12560 # Add a significant safety factor because C++ compilers can tack on
12561 # massive amounts of additional arguments before passing them to the
12562 # linker. It appears as though 1/2 is a usable value.
12563 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12570 if test -n $lt_cv_sys_max_cmd_len ; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12572 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12575 $as_echo "none" >&6; }
12577 max_cmd_len
=$lt_cv_sys_max_cmd_len
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12589 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12590 # Try some XSI features
12592 ( _lt_dummy
="a/b/c"
12593 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12595 && eval 'test $(( 1 + 1 )) -eq 2 \
12596 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12599 $as_echo "$xsi_shell" >&6; }
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12603 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12605 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12607 && lt_shell_append=yes
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12609 $as_echo "$lt_shell_append" >&6; }
12612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12622 # test EBCDIC or ASCII
12623 case `echo X|tr X '\101'` in
12624 A) # ASCII based system
12625 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12626 lt_SP2NL='tr \040 \012'
12627 lt_NL2SP='tr \015\012 \040\040'
12629 *) # EBCDIC based system
12630 lt_SP2NL='tr \100 \n'
12631 lt_NL2SP='tr \r\n \100\100'
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12644 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12645 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12646 $as_echo_n "(cached
) " >&6
12648 lt_cv_ld_reload_flag='-r'
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12651 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12652 reload_flag=$lt_cv_ld_reload_flag
12653 case $reload_flag in
12655 *) reload_flag=" $reload_flag" ;;
12657 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12660 if test "$GCC" = yes; then
12661 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12663 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12676 if test -n "$ac_tool_prefix"; then
12677 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12678 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12680 $as_echo_n "checking
for $ac_word...
" >&6; }
12681 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12682 $as_echo_n "(cached
) " >&6
12684 if test -n "$OBJDUMP"; then
12685 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12688 for as_dir in $PATH
12691 test -z "$as_dir" && as_dir=.
12692 for ac_exec_ext in '' $ac_executable_extensions; do
12693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12694 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12695 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12704 OBJDUMP=$ac_cv_prog_OBJDUMP
12705 if test -n "$OBJDUMP"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12707 $as_echo "$OBJDUMP" >&6; }
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12710 $as_echo "no
" >&6; }
12715 if test -z "$ac_cv_prog_OBJDUMP"; then
12716 ac_ct_OBJDUMP=$OBJDUMP
12717 # Extract the first word of "objdump
", so it can be a program name with args.
12718 set dummy objdump; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12720 $as_echo_n "checking
for $ac_word...
" >&6; }
12721 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12722 $as_echo_n "(cached
) " >&6
12724 if test -n "$ac_ct_OBJDUMP"; then
12725 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12731 test -z "$as_dir" && as_dir=.
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12734 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12735 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12744 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12745 if test -n "$ac_ct_OBJDUMP"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12747 $as_echo "$ac_ct_OBJDUMP" >&6; }
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12750 $as_echo "no
" >&6; }
12753 if test "x
$ac_ct_OBJDUMP" = x; then
12756 case $cross_compiling:$ac_tool_warned in
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12759 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12760 ac_tool_warned=yes ;;
12762 OBJDUMP=$ac_ct_OBJDUMP
12765 OBJDUMP="$ac_cv_prog_OBJDUMP"
12768 test -z "$OBJDUMP" && OBJDUMP=objdump
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12779 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12780 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12781 $as_echo_n "(cached
) " >&6
12783 lt_cv_file_magic_cmd='$MAGIC_CMD'
12784 lt_cv_file_magic_test_file=
12785 lt_cv_deplibs_check_method='unknown'
12786 # Need to set the preceding variable on all platforms that support
12787 # interlibrary dependencies.
12788 # 'none' -- dependencies not supported.
12789 # `unknown' -- same as none, but documents that we really don't know.
12790 # 'pass_all' -- all dependencies passed with no checks.
12791 # 'test_compile' -- check by making test program.
12792 # 'file_magic [[regex]]' -- check by looking for files in library path
12793 # which responds to the $file_magic_cmd with a given extended regex.
12794 # If you have `file' or equivalent on your system and you're not sure
12795 # whether `pass_all' will *always* work, you probably want this one.
12799 lt_cv_deplibs_check_method=pass_all
12803 lt_cv_deplibs_check_method=pass_all
12807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12808 lt_cv_file_magic_cmd='/usr/bin/file -L'
12809 lt_cv_file_magic_test_file=/shlib/libc.so
12813 # func_win32_libid is a shell function defined in ltmain.sh
12814 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12815 lt_cv_file_magic_cmd='func_win32_libid'
12819 # Base MSYS/MinGW do not provide the 'file' command needed by
12820 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12821 # unless we find 'file', for example because we are cross-compiling.
12822 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12823 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12825 lt_cv_file_magic_cmd='func_win32_libid'
12827 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12828 lt_cv_file_magic_cmd='$OBJDUMP -f'
12833 # use the weaker test based on 'objdump'. See mingw*.
12834 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12835 lt_cv_file_magic_cmd='$OBJDUMP -f'
12838 darwin* | rhapsody*)
12839 lt_cv_deplibs_check_method=pass_all
12842 freebsd* | dragonfly*)
12843 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12846 # Not sure whether the presence of OpenBSD here was a mistake.
12847 # Let's accept both of them until this is cleared up.
12848 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12849 lt_cv_file_magic_cmd=/usr/bin/file
12850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12854 lt_cv_deplibs_check_method=pass_all
12859 lt_cv_deplibs_check_method=pass_all
12863 lt_cv_deplibs_check_method=pass_all
12866 hpux10.20* | hpux11*)
12867 lt_cv_file_magic_cmd=/usr/bin/file
12870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12871 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12874 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]'
12875 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12879 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12885 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12889 irix5* | irix6* | nonstopux*)
12891 *-32|*"-32 ") libmagic=32-bit;;
12892 *-n32|*"-n32 ") libmagic=N32;;
12893 *-64|*"-64 ") libmagic=64-bit;;
12894 *) libmagic=never-match;;
12896 lt_cv_deplibs_check_method=pass_all
12899 # This must be Linux ELF.
12900 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12901 lt_cv_deplibs_check_method=pass_all
12905 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12914 lt_cv_file_magic_cmd=/usr/bin/file
12915 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12919 lt_cv_deplibs_check_method=pass_all
12923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12930 osf3* | osf4* | osf5*)
12931 lt_cv_deplibs_check_method=pass_all
12935 lt_cv_deplibs_check_method=pass_all
12939 lt_cv_deplibs_check_method=pass_all
12942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12943 lt_cv_deplibs_check_method=pass_all
12947 case $host_vendor in
12949 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]'
12950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12953 lt_cv_deplibs_check_method=pass_all
12956 lt_cv_file_magic_cmd='/bin/file'
12957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12960 lt_cv_file_magic_cmd='/bin/file'
12961 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12962 lt_cv_file_magic_test_file=/lib/libc.so
12965 lt_cv_deplibs_check_method=pass_all
12968 lt_cv_deplibs_check_method=pass_all
12974 lt_cv_deplibs_check_method=pass_all
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12980 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12981 file_magic_cmd=$lt_cv_file_magic_cmd
12982 deplibs_check_method=$lt_cv_deplibs_check_method
12983 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12996 if test -n "$ac_tool_prefix"; then
12997 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12998 set dummy ${ac_tool_prefix}ar; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13000 $as_echo_n "checking
for $ac_word...
" >&6; }
13001 if test "${ac_cv_prog_AR+set}" = set; then :
13002 $as_echo_n "(cached
) " >&6
13004 if test -n "$AR"; then
13005 ac_cv_prog_AR="$AR" # Let the user override the test.
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13014 ac_cv_prog_AR="${ac_tool_prefix}ar"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13025 if test -n "$AR"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13027 $as_echo "$AR" >&6; }
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13030 $as_echo "no
" >&6; }
13035 if test -z "$ac_cv_prog_AR"; then
13037 # Extract the first word of "ar", so it can be a program name with args.
13038 set dummy ar; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13040 $as_echo_n "checking
for $ac_word...
" >&6; }
13041 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13042 $as_echo_n "(cached
) " >&6
13044 if test -n "$ac_ct_AR"; then
13045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054 ac_cv_prog_ac_ct_AR="ar"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13064 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13065 if test -n "$ac_ct_AR"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13067 $as_echo "$ac_ct_AR" >&6; }
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13070 $as_echo "no
" >&6; }
13073 if test "x
$ac_ct_AR" = x; then
13076 case $cross_compiling:$ac_tool_warned in
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13079 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13080 ac_tool_warned=yes ;;
13085 AR="$ac_cv_prog_AR"
13088 test -z "$AR" && AR=ar
13089 test -z "$AR_FLAGS" && AR_FLAGS=cru
13101 if test -n "$ac_tool_prefix"; then
13102 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13103 set dummy ${ac_tool_prefix}strip; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13105 $as_echo_n "checking
for $ac_word...
" >&6; }
13106 if test "${ac_cv_prog_STRIP+set}" = set; then :
13107 $as_echo_n "(cached
) " >&6
13109 if test -n "$STRIP"; then
13110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13116 test -z "$as_dir" && as_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13119 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13120 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13129 STRIP=$ac_cv_prog_STRIP
13130 if test -n "$STRIP"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13132 $as_echo "$STRIP" >&6; }
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13135 $as_echo "no
" >&6; }
13140 if test -z "$ac_cv_prog_STRIP"; then
13142 # Extract the first word of "strip
", so it can be a program name with args.
13143 set dummy strip; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13145 $as_echo_n "checking
for $ac_word...
" >&6; }
13146 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13147 $as_echo_n "(cached
) " >&6
13149 if test -n "$ac_ct_STRIP"; then
13150 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159 ac_cv_prog_ac_ct_STRIP="strip
"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13169 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13170 if test -n "$ac_ct_STRIP"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13172 $as_echo "$ac_ct_STRIP" >&6; }
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13175 $as_echo "no
" >&6; }
13178 if test "x
$ac_ct_STRIP" = x; then
13181 case $cross_compiling:$ac_tool_warned in
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13184 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13185 ac_tool_warned=yes ;;
13190 STRIP="$ac_cv_prog_STRIP"
13193 test -z "$STRIP" && STRIP=:
13200 if test -n "$ac_tool_prefix"; then
13201 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13202 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13204 $as_echo_n "checking
for $ac_word...
" >&6; }
13205 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13206 $as_echo_n "(cached
) " >&6
13208 if test -n "$RANLIB"; then
13209 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13215 test -z "$as_dir" && as_dir=.
13216 for ac_exec_ext in '' $ac_executable_extensions; do
13217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13218 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13219 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13228 RANLIB=$ac_cv_prog_RANLIB
13229 if test -n "$RANLIB"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13231 $as_echo "$RANLIB" >&6; }
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13234 $as_echo "no
" >&6; }
13239 if test -z "$ac_cv_prog_RANLIB"; then
13240 ac_ct_RANLIB=$RANLIB
13241 # Extract the first word of "ranlib
", so it can be a program name with args.
13242 set dummy ranlib; ac_word=$2
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13244 $as_echo_n "checking
for $ac_word...
" >&6; }
13245 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13246 $as_echo_n "(cached
) " >&6
13248 if test -n "$ac_ct_RANLIB"; then
13249 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13255 test -z "$as_dir" && as_dir=.
13256 for ac_exec_ext in '' $ac_executable_extensions; do
13257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13258 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13259 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13269 if test -n "$ac_ct_RANLIB"; then
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13271 $as_echo "$ac_ct_RANLIB" >&6; }
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13274 $as_echo "no
" >&6; }
13277 if test "x
$ac_ct_RANLIB" = x; then
13280 case $cross_compiling:$ac_tool_warned in
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13283 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13284 ac_tool_warned=yes ;;
13286 RANLIB=$ac_ct_RANLIB
13289 RANLIB="$ac_cv_prog_RANLIB"
13292 test -z "$RANLIB" && RANLIB=:
13299 # Determine commands to create old-style static archives.
13300 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13301 old_postinstall_cmds='chmod 644 $oldlib'
13302 old_postuninstall_cmds=
13304 if test -n "$RANLIB"; then
13307 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13310 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13313 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13318 lock_old_archive_extraction=yes ;;
13320 lock_old_archive_extraction=no ;;
13361 # If no C compiler was specified, use CC.
13364 # If no C compiler flags were specified, use CFLAGS.
13365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13367 # Allow CC to be a program name with arguments.
13371 # Check for command to grab the raw symbol name followed by C symbol from nm.
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13373 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13374 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13375 $as_echo_n "(cached
) " >&6
13378 # These are sane defaults that work on at least a few old systems.
13379 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13381 # Character class describing NM global symbol codes.
13382 symcode='[BCDEGRST]'
13384 # Regexp to match symbols that can be accessed directly from C.
13385 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13387 # Define system-specific variables.
13392 cygwin* | mingw* | pw32* | cegcc*)
13393 symcode='[ABCDGISTW]'
13396 if test "$host_cpu" = ia64; then
13397 symcode='[ABCDEGRST]'
13400 irix* | nonstopux*)
13401 symcode='[BCDEGRST]'
13404 symcode='[BCDEGQRST]'
13415 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13423 # If we're using GNU nm, then use its standard symbol codes.
13424 case `$NM -V 2>&1` in
13425 *GNU* | *'with BFD'*)
13426 symcode='[ABCDGIRSTW]' ;;
13429 # Transform an extracted symbol line into a proper C declaration.
13430 # Some systems (esp. on ia64) link data and code symbols differently,
13431 # so use this general approach.
13432 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13434 # Transform an extracted symbol line into symbol name and symbol address
13435 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13436 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'"
13438 # Handle CRLF in mingw tool chain
13442 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13446 # Try without a prefix underscore, then with it.
13447 for ac_symprfx in "" "_
"; do
13449 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13450 symxfrm="\\1 $ac_symprfx\\2 \\2"
13452 # Write the raw and C identifiers.
13453 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13454 # Fake it for dumpbin and say T for any non-static function
13455 # and D for any global variable.
13456 # Also find C++ and __fastcall symbols from MSVC++,
13457 # which start with @ or ?.
13458 lt_cv_sys_global_symbol_pipe="$AWK '"\
13459 " {last_section=section; section=\$ 3};"\
13460 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13461 " \$ 0!~/External *\|/{next};"\
13462 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13463 " {if(hide[section]) next};"\
13464 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13465 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13466 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13467 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13468 " ' prfx
=^
$ac_symprfx"
13470 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13473 # Check to see that the pipe works correctly.
13477 cat > conftest.$ac_ext <<_LT_EOF
13482 void nm_test_func(void);
13483 void nm_test_func(void){}
13487 int main(){nm_test_var='a';nm_test_func();return(0);}
13490 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13491 (eval $ac_compile) 2>&5
13493 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13494 test $ac_status = 0; }; then
13495 # Now try to grab the symbols.
13497 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13498 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13500 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13501 test $ac_status = 0; } && test -s "$nlist"; then
13502 # Try sorting and uniquifying the output.
13503 if sort "$nlist" | uniq > "$nlist"T; then
13504 mv -f "$nlist"T "$nlist"
13509 # Make sure that we snagged all the symbols we need.
13510 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13511 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13512 cat <<_LT_EOF > conftest.$ac_ext
13518 # Now generate the symbol file.
13519 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13521 cat <<_LT_EOF >> conftest.$ac_ext
13523 /* The mapping between symbol names and symbols. */
13528 lt__PROGRAM__LTX_preloaded_symbols[] =
13530 { "@PROGRAM@
", (void *) 0 },
13532 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13533 cat <<\_LT_EOF >> conftest.$ac_ext
13537 /* This works around a problem in FreeBSD linker */
13538 #ifdef FREEBSD_WORKAROUND
13539 static const void *lt_preloaded_setup() {
13540 return lt__PROGRAM__LTX_preloaded_symbols;
13548 # Now try linking the two files.
13549 mv conftest.$ac_objext conftstm.$ac_objext
13550 lt_save_LIBS="$LIBS"
13551 lt_save_CFLAGS="$CFLAGS"
13552 LIBS="conftstm.
$ac_objext"
13553 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13554 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13555 (eval $ac_link) 2>&5
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13558 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13561 LIBS="$lt_save_LIBS"
13562 CFLAGS="$lt_save_CFLAGS"
13564 echo "cannot
find nm_test_func
in $nlist" >&5
13567 echo "cannot
find nm_test_var
in $nlist" >&5
13570 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13573 echo "$progname: failed program was
:" >&5
13574 cat conftest.$ac_ext >&5
13576 rm -rf conftest* conftst*
13578 # Do not use the global_symbol_pipe unless it works.
13579 if test "$pipe_works" = yes; then
13582 lt_cv_sys_global_symbol_pipe=
13588 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13589 lt_cv_sys_global_symbol_to_cdecl=
13591 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13593 $as_echo "failed
" >&6; }
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13596 $as_echo "ok
" >&6; }
13620 # Check whether --enable-libtool-lock was given.
13621 if test "${enable_libtool_lock+set}" = set; then :
13622 enableval=$enable_libtool_lock;
13625 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13627 # Some flags need to be propagated to the compiler or linker for good
13631 # Find out which ABI we are using.
13632 echo 'int i;' > conftest.$ac_ext
13633 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13634 (eval $ac_compile) 2>&5
13636 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13637 test $ac_status = 0; }; then
13638 case `/usr/bin/file conftest.$ac_objext` in
13640 HPUX_IA64_MODE="32"
13643 HPUX_IA64_MODE="64"
13650 # Find out which ABI we are using.
13651 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13652 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13653 (eval $ac_compile) 2>&5
13655 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13656 test $ac_status = 0; }; then
13657 if test "$lt_cv_prog_gnu_ld" = yes; then
13658 case `/usr/bin/file conftest.$ac_objext` in
13660 LD="${LD-ld} -melf32bsmip"
13663 LD="${LD-ld} -melf32bmipn32"
13666 LD="${LD-ld} -melf64bmip"
13670 case `/usr/bin/file conftest.$ac_objext` in
13686 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13687 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13688 # Find out which ABI we are using.
13689 echo 'int i;' > conftest.$ac_ext
13690 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13691 (eval $ac_compile) 2>&5
13693 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13694 test $ac_status = 0; }; then
13695 case `/usr/bin/file conftest.o` in
13698 x86_64-*kfreebsd*-gnu)
13699 LD="${LD-ld} -m elf_i386_fbsd
"
13702 LD="${LD-ld} -m elf_i386
"
13704 ppc64-*linux*|powerpc64-*linux*)
13705 LD="${LD-ld} -m elf32ppclinux
"
13708 LD="${LD-ld} -m elf_s390
"
13711 LD="${LD-ld} -m elf32_sparc
"
13717 x86_64-*kfreebsd*-gnu)
13718 LD="${LD-ld} -m elf_x86_64_fbsd
"
13721 LD="${LD-ld} -m elf_x86_64
"
13723 ppc*-*linux*|powerpc*-*linux*)
13724 LD="${LD-ld} -m elf64ppc
"
13726 s390*-*linux*|s390*-*tpf*)
13727 LD="${LD-ld} -m elf64_s390
"
13730 LD="${LD-ld} -m elf64_sparc
"
13740 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13741 SAVE_CFLAGS="$CFLAGS"
13742 CFLAGS="$CFLAGS -belf"
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13744 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13745 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13746 $as_echo_n "(cached
) " >&6
13749 ac_cpp='$CPP $CPPFLAGS'
13750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13765 if ac_fn_c_try_link "$LINENO"; then :
13766 lt_cv_cc_needs_belf=yes
13768 lt_cv_cc_needs_belf=no
13770 rm -f core conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13773 ac_cpp='$CPP $CPPFLAGS'
13774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13780 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13781 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13782 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13783 CFLAGS="$SAVE_CFLAGS"
13787 # Find out which ABI we are using.
13788 echo 'int i;' > conftest.$ac_ext
13789 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13790 (eval $ac_compile) 2>&5
13792 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13793 test $ac_status = 0; }; then
13794 case `/usr/bin/file conftest.o` in
13796 case $lt_cv_prog_gnu_ld in
13797 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13799 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13811 need_locks="$enable_libtool_lock"
13815 rhapsody* | darwin*)
13816 if test -n "$ac_tool_prefix"; then
13817 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13818 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13820 $as_echo_n "checking
for $ac_word...
" >&6; }
13821 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13822 $as_echo_n "(cached
) " >&6
13824 if test -n "$DSYMUTIL"; then
13825 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in $PATH
13831 test -z "$as_dir" && as_dir=.
13832 for ac_exec_ext in '' $ac_executable_extensions; do
13833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13834 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13835 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13844 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13845 if test -n "$DSYMUTIL"; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13847 $as_echo "$DSYMUTIL" >&6; }
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13850 $as_echo "no
" >&6; }
13855 if test -z "$ac_cv_prog_DSYMUTIL"; then
13856 ac_ct_DSYMUTIL=$DSYMUTIL
13857 # Extract the first word of "dsymutil
", so it can be a program name with args.
13858 set dummy dsymutil; ac_word=$2
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13860 $as_echo_n "checking
for $ac_word...
" >&6; }
13861 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13862 $as_echo_n "(cached
) " >&6
13864 if test -n "$ac_ct_DSYMUTIL"; then
13865 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 for as_dir in $PATH
13871 test -z "$as_dir" && as_dir=.
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13874 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13875 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13884 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13885 if test -n "$ac_ct_DSYMUTIL"; then
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13887 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13890 $as_echo "no
" >&6; }
13893 if test "x
$ac_ct_DSYMUTIL" = x; then
13896 case $cross_compiling:$ac_tool_warned in
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13899 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13900 ac_tool_warned=yes ;;
13902 DSYMUTIL=$ac_ct_DSYMUTIL
13905 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13908 if test -n "$ac_tool_prefix"; then
13909 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13910 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13912 $as_echo_n "checking
for $ac_word...
" >&6; }
13913 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13914 $as_echo_n "(cached
) " >&6
13916 if test -n "$NMEDIT"; then
13917 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13926 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13927 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13936 NMEDIT=$ac_cv_prog_NMEDIT
13937 if test -n "$NMEDIT"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13939 $as_echo "$NMEDIT" >&6; }
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13942 $as_echo "no
" >&6; }
13947 if test -z "$ac_cv_prog_NMEDIT"; then
13948 ac_ct_NMEDIT=$NMEDIT
13949 # Extract the first word of "nmedit
", so it can be a program name with args.
13950 set dummy nmedit; ac_word=$2
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13952 $as_echo_n "checking
for $ac_word...
" >&6; }
13953 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13954 $as_echo_n "(cached
) " >&6
13956 if test -n "$ac_ct_NMEDIT"; then
13957 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13966 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13967 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13976 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13977 if test -n "$ac_ct_NMEDIT"; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13979 $as_echo "$ac_ct_NMEDIT" >&6; }
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13982 $as_echo "no
" >&6; }
13985 if test "x
$ac_ct_NMEDIT" = x; then
13988 case $cross_compiling:$ac_tool_warned in
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13991 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13992 ac_tool_warned=yes ;;
13994 NMEDIT=$ac_ct_NMEDIT
13997 NMEDIT="$ac_cv_prog_NMEDIT"
14000 if test -n "$ac_tool_prefix"; then
14001 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14002 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14004 $as_echo_n "checking
for $ac_word...
" >&6; }
14005 if test "${ac_cv_prog_LIPO+set}" = set; then :
14006 $as_echo_n "(cached
) " >&6
14008 if test -n "$LIPO"; then
14009 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14018 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14019 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14028 LIPO=$ac_cv_prog_LIPO
14029 if test -n "$LIPO"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14031 $as_echo "$LIPO" >&6; }
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14034 $as_echo "no
" >&6; }
14039 if test -z "$ac_cv_prog_LIPO"; then
14041 # Extract the first word of "lipo
", so it can be a program name with args.
14042 set dummy lipo; ac_word=$2
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14044 $as_echo_n "checking
for $ac_word...
" >&6; }
14045 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14046 $as_echo_n "(cached
) " >&6
14048 if test -n "$ac_ct_LIPO"; then
14049 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052 for as_dir in $PATH
14055 test -z "$as_dir" && as_dir=.
14056 for ac_exec_ext in '' $ac_executable_extensions; do
14057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14058 ac_cv_prog_ac_ct_LIPO="lipo
"
14059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14068 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14069 if test -n "$ac_ct_LIPO"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14071 $as_echo "$ac_ct_LIPO" >&6; }
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14074 $as_echo "no
" >&6; }
14077 if test "x
$ac_ct_LIPO" = x; then
14080 case $cross_compiling:$ac_tool_warned in
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14083 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14084 ac_tool_warned=yes ;;
14089 LIPO="$ac_cv_prog_LIPO"
14092 if test -n "$ac_tool_prefix"; then
14093 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14094 set dummy ${ac_tool_prefix}otool; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14096 $as_echo_n "checking
for $ac_word...
" >&6; }
14097 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14098 $as_echo_n "(cached
) " >&6
14100 if test -n "$OTOOL"; then
14101 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14110 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14120 OTOOL=$ac_cv_prog_OTOOL
14121 if test -n "$OTOOL"; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14123 $as_echo "$OTOOL" >&6; }
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14126 $as_echo "no
" >&6; }
14131 if test -z "$ac_cv_prog_OTOOL"; then
14133 # Extract the first word of "otool
", so it can be a program name with args.
14134 set dummy otool; ac_word=$2
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14136 $as_echo_n "checking
for $ac_word...
" >&6; }
14137 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14138 $as_echo_n "(cached
) " >&6
14140 if test -n "$ac_ct_OTOOL"; then
14141 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14150 ac_cv_prog_ac_ct_OTOOL="otool
"
14151 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14160 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14161 if test -n "$ac_ct_OTOOL"; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14163 $as_echo "$ac_ct_OTOOL" >&6; }
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14166 $as_echo "no
" >&6; }
14169 if test "x
$ac_ct_OTOOL" = x; then
14172 case $cross_compiling:$ac_tool_warned in
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14175 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14176 ac_tool_warned=yes ;;
14181 OTOOL="$ac_cv_prog_OTOOL"
14184 if test -n "$ac_tool_prefix"; then
14185 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14186 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14188 $as_echo_n "checking
for $ac_word...
" >&6; }
14189 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14190 $as_echo_n "(cached
) " >&6
14192 if test -n "$OTOOL64"; then
14193 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196 for as_dir in $PATH
14199 test -z "$as_dir" && as_dir=.
14200 for ac_exec_ext in '' $ac_executable_extensions; do
14201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14202 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14203 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14212 OTOOL64=$ac_cv_prog_OTOOL64
14213 if test -n "$OTOOL64"; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14215 $as_echo "$OTOOL64" >&6; }
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14218 $as_echo "no
" >&6; }
14223 if test -z "$ac_cv_prog_OTOOL64"; then
14224 ac_ct_OTOOL64=$OTOOL64
14225 # Extract the first word of "otool64
", so it can be a program name with args.
14226 set dummy otool64; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14228 $as_echo_n "checking
for $ac_word...
" >&6; }
14229 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14230 $as_echo_n "(cached
) " >&6
14232 if test -n "$ac_ct_OTOOL64"; then
14233 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14242 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14252 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14253 if test -n "$ac_ct_OTOOL64"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14255 $as_echo "$ac_ct_OTOOL64" >&6; }
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14258 $as_echo "no
" >&6; }
14261 if test "x
$ac_ct_OTOOL64" = x; then
14264 case $cross_compiling:$ac_tool_warned in
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14267 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14268 ac_tool_warned=yes ;;
14270 OTOOL64=$ac_ct_OTOOL64
14273 OTOOL64="$ac_cv_prog_OTOOL64"
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14303 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14304 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14305 $as_echo_n "(cached
) " >&6
14307 lt_cv_apple_cc_single_mod=no
14308 if test -z "${LT_MULTI_MODULE}"; then
14309 # By default we will add the -single_module flag. You can override
14310 # by either setting the environment variable LT_MULTI_MODULE
14311 # non-empty at configure time, or by adding -multi_module to the
14313 rm -rf libconftest.dylib*
14314 echo "int foo
(void
){return 1;}" > conftest.c
14315 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14316 -dynamiclib -Wl,-single_module conftest.c
" >&5
14317 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14318 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14320 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14321 lt_cv_apple_cc_single_mod=yes
14323 cat conftest.err >&5
14325 rm -rf libconftest.dylib*
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14330 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14332 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14333 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14334 $as_echo_n "(cached
) " >&6
14336 lt_cv_ld_exported_symbols_list=no
14337 save_LDFLAGS=$LDFLAGS
14338 echo "_main
" > conftest.sym
14339 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14351 if ac_fn_c_try_link "$LINENO"; then :
14352 lt_cv_ld_exported_symbols_list=yes
14354 lt_cv_ld_exported_symbols_list=no
14356 rm -f core conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext conftest.$ac_ext
14358 LDFLAGS="$save_LDFLAGS"
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14362 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14364 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14365 if test "${lt_cv_ld_force_load+set}" = set; then :
14366 $as_echo_n "(cached
) " >&6
14368 lt_cv_ld_force_load=no
14369 cat > conftest.c << _LT_EOF
14370 int forced_loaded() { return 2;}
14372 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14373 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14374 echo "$AR cru libconftest.a conftest.o
" >&5
14375 $AR cru libconftest.a conftest.o 2>&5
14376 cat > conftest.c << _LT_EOF
14377 int main() { return 0;}
14379 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14380 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14382 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14383 lt_cv_ld_force_load=yes
14385 cat conftest.err >&5
14387 rm -f conftest.err libconftest.a conftest conftest.c
14388 rm -rf conftest.dSYM
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14392 $as_echo "$lt_cv_ld_force_load" >&6; }
14394 rhapsody* | darwin1.[012])
14395 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14397 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14398 darwin*) # darwin 5.x on
14399 # if running on 10.5 or later, the deployment target defaults
14400 # to the OS version, if on x86, and 10.4, the deployment
14401 # target defaults to 10.4. Don't you love it?
14402 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14403 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14404 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14406 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14408 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14412 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14413 _lt_dar_single_mod='$single_module'
14415 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14416 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14418 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14420 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14421 _lt_dsymutil='~$DSYMUTIL $lib || :'
14428 for ac_header in dlfcn.h
14430 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14431 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14432 cat >>confdefs.h <<_ACEOF
14433 #define HAVE_DLFCN_H 1
14450 enable_win32_dll=no
14453 # Check whether --enable-shared was given.
14454 if test "${enable_shared+set}" = set; then :
14455 enableval=$enable_shared; p=${PACKAGE-default}
14457 yes) enable_shared=yes ;;
14458 no) enable_shared=no ;;
14461 # Look at the argument we got. We use all the common list separators.
14462 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14463 for pkg in $enableval; do
14465 if test "X
$pkg" = "X
$p"; then
14484 # Check whether --enable-static was given.
14485 if test "${enable_static+set}" = set; then :
14486 enableval=$enable_static; p=${PACKAGE-default}
14488 yes) enable_static=yes ;;
14489 no) enable_static=no ;;
14492 # Look at the argument we got. We use all the common list separators.
14493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14494 for pkg in $enableval; do
14496 if test "X
$pkg" = "X
$p"; then
14516 # Check whether --with-pic was given.
14517 if test "${with_pic+set}" = set; then :
14518 withval=$with_pic; pic_mode="$withval"
14524 test -z "$pic_mode" && pic_mode=default
14532 # Check whether --enable-fast-install was given.
14533 if test "${enable_fast_install+set}" = set; then :
14534 enableval=$enable_fast_install; p=${PACKAGE-default}
14536 yes) enable_fast_install=yes ;;
14537 no) enable_fast_install=no ;;
14539 enable_fast_install=no
14540 # Look at the argument we got. We use all the common list separators.
14541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14542 for pkg in $enableval; do
14544 if test "X
$pkg" = "X
$p"; then
14545 enable_fast_install=yes
14552 enable_fast_install=yes
14565 # This can be used to rebuild libtool when needed
14566 LIBTOOL_DEPS="$ltmain"
14568 # Always use our own libtool.
14569 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14596 test -z "$LN_S" && LN_S="ln -s"
14611 if test -n "${ZSH_VERSION+set}" ; then
14612 setopt NO_GLOB_SUBST
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14616 $as_echo_n "checking
for objdir...
" >&6; }
14617 if test "${lt_cv_objdir+set}" = set; then :
14618 $as_echo_n "(cached
) " >&6
14620 rm -f .libs 2>/dev/null
14621 mkdir .libs 2>/dev/null
14622 if test -d .libs; then
14625 # MS-DOS does not allow filenames that begin with a dot.
14628 rmdir .libs 2>/dev/null
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14631 $as_echo "$lt_cv_objdir" >&6; }
14632 objdir=$lt_cv_objdir
14638 cat >>confdefs.h <<_ACEOF
14639 #define LT_OBJDIR "$lt_cv_objdir/"
14647 # AIX sometimes has problems with the GCC collect2 program. For some
14648 # reason, if we set the COLLECT_NAMES environment variable, the problems
14649 # vanish in a puff of smoke.
14650 if test "X
${COLLECT_NAMES+set}" != Xset; then
14652 export COLLECT_NAMES
14657 # Global variables:
14659 can_build_shared=yes
14661 # All known linkers require a `.a' archive for static linking (except MSVC,
14662 # which needs '.lib').
14665 with_gnu_ld="$lt_cv_prog_gnu_ld"
14668 old_CFLAGS="$CFLAGS"
14670 # Set sane defaults for various variables
14671 test -z "$CC" && CC=cc
14672 test -z "$LTCC" && LTCC=$CC
14673 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14674 test -z "$LD" && LD=ld
14675 test -z "$ac_objext" && ac_objext=o
14677 for cc_temp in $compiler""; do
14679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14685 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14688 # Only perform the check for file, if the check method requires it
14689 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14690 case $deplibs_check_method in
14692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14694 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14696 $as_echo_n "(cached
) " >&6
14700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14703 lt_save_MAGIC_CMD="$MAGIC_CMD"
14704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14705 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14706 for ac_dir in $ac_dummy; do
14708 test -z "$ac_dir" && ac_dir=.
14709 if test -f $ac_dir/${ac_tool_prefix}file; then
14710 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14711 if test -n "$file_magic_test_file"; then
14712 case $deplibs_check_method in
14714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14717 $EGREP "$file_magic_regex" > /dev/null; then
14722 *** Warning: the command libtool uses to detect shared libraries,
14723 *** $file_magic_cmd, produces output that libtool cannot recognize.
14724 *** The result is that libtool may fail to recognize shared libraries
14725 *** as such. This will affect the creation of libtool libraries that
14726 *** depend on shared libraries, but programs linked with such libtool
14727 *** libraries will work regardless of this problem. Nevertheless, you
14728 *** may want to report the problem to your system manager and/or to
14729 *** bug-libtool@gnu.org
14739 MAGIC_CMD="$lt_save_MAGIC_CMD"
14744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14745 if test -n "$MAGIC_CMD"; then
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14747 $as_echo "$MAGIC_CMD" >&6; }
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14750 $as_echo "no
" >&6; }
14757 if test -z "$lt_cv_path_MAGIC_CMD"; then
14758 if test -n "$ac_tool_prefix"; then
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14760 $as_echo_n "checking
for file...
" >&6; }
14761 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14762 $as_echo_n "(cached
) " >&6
14766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14769 lt_save_MAGIC_CMD="$MAGIC_CMD"
14770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14771 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14772 for ac_dir in $ac_dummy; do
14774 test -z "$ac_dir" && ac_dir=.
14775 if test -f $ac_dir/file; then
14776 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14777 if test -n "$file_magic_test_file"; then
14778 case $deplibs_check_method in
14780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14783 $EGREP "$file_magic_regex" > /dev/null; then
14788 *** Warning: the command libtool uses to detect shared libraries,
14789 *** $file_magic_cmd, produces output that libtool cannot recognize.
14790 *** The result is that libtool may fail to recognize shared libraries
14791 *** as such. This will affect the creation of libtool libraries that
14792 *** depend on shared libraries, but programs linked with such libtool
14793 *** libraries will work regardless of this problem. Nevertheless, you
14794 *** may want to report the problem to your system manager and/or to
14795 *** bug-libtool@gnu.org
14805 MAGIC_CMD="$lt_save_MAGIC_CMD"
14810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14811 if test -n "$MAGIC_CMD"; then
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14813 $as_echo "$MAGIC_CMD" >&6; }
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14816 $as_echo "no
" >&6; }
14829 # Use C for the default configuration in the libtool script
14833 ac_cpp='$CPP $CPPFLAGS'
14834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14839 # Source file extension for C test sources.
14842 # Object file extension for compiled C test sources.
14846 # Code to be used in simple compile tests
14847 lt_simple_compile_test_code="int some_variable
= 0;"
14849 # Code to be used in simple link tests
14850 lt_simple_link_test_code='int main(){return(0);}'
14858 # If no C compiler was specified, use CC.
14861 # If no C compiler flags were specified, use CFLAGS.
14862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14864 # Allow CC to be a program name with arguments.
14867 # Save the default compiler, since it gets overwritten when the other
14868 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14869 compiler_DEFAULT=$CC
14871 # save warnings/boilerplate of simple test code
14872 ac_outfile=conftest.$ac_objext
14873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14875 _lt_compiler_boilerplate=`cat conftest.err`
14878 ac_outfile=conftest.$ac_objext
14879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14881 _lt_linker_boilerplate=`cat conftest.err`
14886 ## There is no encapsulation within the following macros, do not change
14887 ## the running order or otherwise move them around unless you know exactly
14888 ## what you are doing...
14889 if test -n "$compiler"; then
14891 lt_prog_compiler_no_builtin_flag=
14893 if test "$GCC" = yes; then
14894 case $cc_basename in
14896 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14898 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14902 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14903 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14904 $as_echo_n "(cached
) " >&6
14906 lt_cv_prog_compiler_rtti_exceptions=no
14907 ac_outfile=conftest.$ac_objext
14908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14909 lt_compiler_flag="-fno-rtti -fno-exceptions"
14910 # Insert the option either (1) after the last *FLAGS variable, or
14911 # (2) before a word containing "conftest.
", or (3) at the end.
14912 # Note that $ac_compile itself does not contain backslashes and begins
14913 # with a dollar sign (not a hyphen), so the echo should work correctly.
14914 # The option is referenced via a variable to avoid confusing sed.
14915 lt_compile=`echo "$ac_compile" | $SED \
14916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14918 -e 's:$: $lt_compiler_flag:'`
14919 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14920 (eval "$lt_compile" 2>conftest.err)
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14924 if (exit $ac_status) && test -s "$ac_outfile"; then
14925 # The compiler can only warn and ignore the option if not recognized
14926 # So say no if there are warnings other than the usual output.
14927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14930 lt_cv_prog_compiler_rtti_exceptions=yes
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14937 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14939 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14940 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14952 lt_prog_compiler_wl=
14953 lt_prog_compiler_pic=
14954 lt_prog_compiler_static=
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14957 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14959 if test "$GCC" = yes; then
14960 lt_prog_compiler_wl='-Wl,'
14961 lt_prog_compiler_static='-static'
14965 # All AIX code is PIC.
14966 if test "$host_cpu" = ia64; then
14967 # AIX 5 now supports IA64 processor
14968 lt_prog_compiler_static='-Bstatic'
14975 # see comment about AmigaOS4 .so support
14976 lt_prog_compiler_pic='-fPIC'
14979 # FIXME: we need at least 68020 code to build shared libraries, but
14980 # adding the `-m68020' flag to GCC prevents building anything better,
14982 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14988 # PIC is the default for these OSes.
14991 mingw* | cygwin* | pw32* | os2* | cegcc*)
14992 # This hack is so that the source file can tell whether it is being
14993 # built for inclusion in a dll (and should export symbols for example).
14994 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14995 # (--disable-auto-import) libraries
14996 lt_prog_compiler_pic='-DDLL_EXPORT'
14999 darwin* | rhapsody*)
15000 # PIC is the default on this platform
15001 # Common symbols not allowed in MH_DYLIB files
15002 lt_prog_compiler_pic='-fno-common'
15006 # PIC is the default for Haiku.
15007 # The "-static" flag exists, but is broken.
15008 lt_prog_compiler_static=
15012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15014 # sets the default TLS model and affects inlining.
15020 lt_prog_compiler_pic='-fPIC'
15026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15027 # Instead, we relocate shared libraries at runtime.
15031 # Just because we use GCC doesn't mean we suddenly get shared libraries
15032 # on systems that don't support them.
15033 lt_prog_compiler_can_build_shared=no
15038 # QNX uses GNU C++, but need to define -shared option too, otherwise
15039 # it will coredump.
15040 lt_prog_compiler_pic='-fPIC -shared'
15044 if test -d /usr/nec; then
15045 lt_prog_compiler_pic=-Kconform_pic
15050 lt_prog_compiler_pic='-fPIC'
15054 case $cc_basename in
15055 nvcc*) # Cuda Compiler Driver 2.2
15056 lt_prog_compiler_wl='-Xlinker '
15057 lt_prog_compiler_pic='-Xcompiler -fPIC'
15061 # PORTME Check for flag to pass linker flags through the system compiler.
15064 lt_prog_compiler_wl='-Wl,'
15065 if test "$host_cpu" = ia64; then
15066 # AIX 5 now supports IA64 processor
15067 lt_prog_compiler_static='-Bstatic'
15069 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15073 mingw* | cygwin* | pw32* | os2* | cegcc*)
15074 # This hack is so that the source file can tell whether it is being
15075 # built for inclusion in a dll (and should export symbols for example).
15076 lt_prog_compiler_pic='-DDLL_EXPORT'
15079 hpux9* | hpux10* | hpux11*)
15080 lt_prog_compiler_wl='-Wl,'
15081 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15082 # not for PA HP-UX.
15088 lt_prog_compiler_pic='+Z'
15091 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15092 lt_prog_compiler_static='${wl}-a ${wl}archive'
15095 irix5* | irix6* | nonstopux*)
15096 lt_prog_compiler_wl='-Wl,'
15097 # PIC (with -KPIC) is the default.
15098 lt_prog_compiler_static='-non_shared'
15101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15102 case $cc_basename in
15103 # old Intel for x86_64 which still supported -KPIC.
15105 lt_prog_compiler_wl='-Wl,'
15106 lt_prog_compiler_pic='-KPIC'
15107 lt_prog_compiler_static='-static'
15109 # icc used to be incompatible with GCC.
15110 # ICC 10 doesn't accept -KPIC any more.
15112 lt_prog_compiler_wl='-Wl,'
15113 lt_prog_compiler_pic='-fPIC'
15114 lt_prog_compiler_static='-static'
15116 # Lahey Fortran 8.1.
15118 lt_prog_compiler_wl='-Wl,'
15119 lt_prog_compiler_pic='--shared'
15120 lt_prog_compiler_static='--static'
15122 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15123 # Portland Group compilers (*not* the Pentium gcc compiler,
15124 # which looks to be a dead project)
15125 lt_prog_compiler_wl='-Wl,'
15126 lt_prog_compiler_pic='-fpic'
15127 lt_prog_compiler_static='-Bstatic'
15130 lt_prog_compiler_wl='-Wl,'
15131 # All Alpha code is PIC.
15132 lt_prog_compiler_static='-non_shared'
15134 xl* | bgxl* | bgf* | mpixl*)
15135 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15136 lt_prog_compiler_wl='-Wl,'
15137 lt_prog_compiler_pic='-qpic'
15138 lt_prog_compiler_static='-qstaticlink'
15141 case `$CC -V 2>&1 | sed 5q` in
15142 *Sun\ F* | *Sun*Fortran*)
15143 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15144 lt_prog_compiler_pic='-KPIC'
15145 lt_prog_compiler_static='-Bstatic'
15146 lt_prog_compiler_wl=''
15150 lt_prog_compiler_pic='-KPIC'
15151 lt_prog_compiler_static='-Bstatic'
15152 lt_prog_compiler_wl='-Wl,'
15160 lt_prog_compiler_pic='-KPIC'
15161 lt_prog_compiler_static='-Bstatic'
15165 # QNX uses GNU C++, but need to define -shared option too, otherwise
15166 # it will coredump.
15167 lt_prog_compiler_pic='-fPIC -shared'
15170 osf3* | osf4* | osf5*)
15171 lt_prog_compiler_wl='-Wl,'
15172 # All OSF/1 code is PIC.
15173 lt_prog_compiler_static='-non_shared'
15177 lt_prog_compiler_static='-non_shared'
15181 lt_prog_compiler_pic='-KPIC'
15182 lt_prog_compiler_static='-Bstatic'
15183 case $cc_basename in
15184 f77* | f90* | f95*)
15185 lt_prog_compiler_wl='-Qoption ld ';;
15187 lt_prog_compiler_wl='-Wl,';;
15192 lt_prog_compiler_wl='-Qoption ld '
15193 lt_prog_compiler_pic='-PIC'
15194 lt_prog_compiler_static='-Bstatic'
15197 sysv4 | sysv4.2uw2* | sysv4.3*)
15198 lt_prog_compiler_wl='-Wl,'
15199 lt_prog_compiler_pic='-KPIC'
15200 lt_prog_compiler_static='-Bstatic'
15204 if test -d /usr/nec ;then
15205 lt_prog_compiler_pic='-Kconform_pic'
15206 lt_prog_compiler_static='-Bstatic'
15210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15211 lt_prog_compiler_wl='-Wl,'
15212 lt_prog_compiler_pic='-KPIC'
15213 lt_prog_compiler_static='-Bstatic'
15217 lt_prog_compiler_wl='-Wl,'
15218 lt_prog_compiler_can_build_shared=no
15222 lt_prog_compiler_pic='-pic'
15223 lt_prog_compiler_static='-Bstatic'
15227 lt_prog_compiler_can_build_shared=no
15233 # For platforms which do not support PIC, -DPIC is meaningless:
15235 lt_prog_compiler_pic=
15238 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15242 $as_echo "$lt_prog_compiler_pic" >&6; }
15250 # Check to make sure the PIC flag actually works.
15252 if test -n "$lt_prog_compiler_pic"; then
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15254 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15255 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15256 $as_echo_n "(cached
) " >&6
15258 lt_cv_prog_compiler_pic_works=no
15259 ac_outfile=conftest.$ac_objext
15260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15261 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15262 # Insert the option either (1) after the last *FLAGS variable, or
15263 # (2) before a word containing "conftest.
", or (3) at the end.
15264 # Note that $ac_compile itself does not contain backslashes and begins
15265 # with a dollar sign (not a hyphen), so the echo should work correctly.
15266 # The option is referenced via a variable to avoid confusing sed.
15267 lt_compile=`echo "$ac_compile" | $SED \
15268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15270 -e 's:$: $lt_compiler_flag:'`
15271 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15272 (eval "$lt_compile" 2>conftest.err)
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15276 if (exit $ac_status) && test -s "$ac_outfile"; then
15277 # The compiler can only warn and ignore the option if not recognized
15278 # So say no if there are warnings other than the usual output.
15279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15282 lt_cv_prog_compiler_pic_works=yes
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15289 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15291 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15292 case $lt_prog_compiler_pic in
15294 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15297 lt_prog_compiler_pic=
15298 lt_prog_compiler_can_build_shared=no
15309 # Check to make sure the static flag actually works.
15311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15313 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15314 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15315 $as_echo_n "(cached
) " >&6
15317 lt_cv_prog_compiler_static_works=no
15318 save_LDFLAGS="$LDFLAGS"
15319 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15320 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15322 # The linker can only warn and ignore the option if not recognized
15323 # So say no if there are warnings
15324 if test -s conftest.err; then
15325 # Append any errors to the config.log.
15326 cat conftest.err 1>&5
15327 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15329 if diff conftest.exp conftest.er2 >/dev/null; then
15330 lt_cv_prog_compiler_static_works=yes
15333 lt_cv_prog_compiler_static_works=yes
15337 LDFLAGS="$save_LDFLAGS"
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15341 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15343 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15346 lt_prog_compiler_static=
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15356 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15357 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15358 $as_echo_n "(cached
) " >&6
15360 lt_cv_prog_compiler_c_o=no
15361 $RM -r conftest 2>/dev/null
15365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15367 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15368 # Insert the option either (1) after the last *FLAGS variable, or
15369 # (2) before a word containing "conftest.
", or (3) at the end.
15370 # Note that $ac_compile itself does not contain backslashes and begins
15371 # with a dollar sign (not a hyphen), so the echo should work correctly.
15372 lt_compile=`echo "$ac_compile" | $SED \
15373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15375 -e 's:$: $lt_compiler_flag:'`
15376 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15377 (eval "$lt_compile" 2>out/conftest.err)
15379 cat out/conftest.err >&5
15380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15383 # The compiler can only warn and ignore the option if not recognized
15384 # So say no if there are warnings
15385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15388 lt_cv_prog_compiler_c_o=yes
15393 # SGI C++ compiler will create directory out/ii_files/ for
15394 # template instantiation
15395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15396 $RM out/* && rmdir out
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15411 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15412 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15413 $as_echo_n "(cached
) " >&6
15415 lt_cv_prog_compiler_c_o=no
15416 $RM -r conftest 2>/dev/null
15420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15422 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15423 # Insert the option either (1) after the last *FLAGS variable, or
15424 # (2) before a word containing "conftest.
", or (3) at the end.
15425 # Note that $ac_compile itself does not contain backslashes and begins
15426 # with a dollar sign (not a hyphen), so the echo should work correctly.
15427 lt_compile=`echo "$ac_compile" | $SED \
15428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15430 -e 's:$: $lt_compiler_flag:'`
15431 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15432 (eval "$lt_compile" 2>out/conftest.err)
15434 cat out/conftest.err >&5
15435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15438 # The compiler can only warn and ignore the option if not recognized
15439 # So say no if there are warnings
15440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15443 lt_cv_prog_compiler_c_o=yes
15448 # SGI C++ compiler will create directory out/ii_files/ for
15449 # template instantiation
15450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15451 $RM out/* && rmdir out
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15463 hard_links="nottested
"
15464 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15465 # do not overwrite the value of need_locks provided by the user
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15467 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15472 ln conftest.a conftest.b 2>&5 || hard_links=no
15473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15475 $as_echo "$hard_links" >&6; }
15476 if test "$hard_links" = no; then
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15478 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15491 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15494 allow_undefined_flag=
15495 always_export_symbols=no
15497 archive_expsym_cmds=
15498 compiler_needs_object=no
15499 enable_shared_with_static_runtimes=no
15500 export_dynamic_flag_spec=
15501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15502 hardcode_automatic=no
15504 hardcode_direct_absolute=no
15505 hardcode_libdir_flag_spec=
15506 hardcode_libdir_flag_spec_ld=
15507 hardcode_libdir_separator=
15508 hardcode_minus_L=no
15509 hardcode_shlibpath_var=unsupported
15511 link_all_deplibs=unknown
15513 module_expsym_cmds=
15514 old_archive_from_new_cmds=
15515 old_archive_from_expsyms_cmds=
15516 thread_safe_flag_spec=
15517 whole_archive_flag_spec=
15518 # include_expsyms should be a list of space-separated symbols to be *always*
15519 # included in the symbol list
15521 # exclude_expsyms can be an extended regexp of symbols to exclude
15522 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15523 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15524 # as well as any symbol that contains `d'.
15525 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15526 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15527 # platforms (ab)use it in PIC code, but their linkers get confused if
15528 # the symbol is explicitly referenced. Since portable code cannot
15529 # rely on this symbol name, it's probably fine to never include it in
15530 # preloaded symbol tables.
15531 # Exclude shared library initialization/finalization symbols.
15532 extract_expsyms_cmds=
15535 cygwin* | mingw* | pw32* | cegcc*)
15536 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15537 # When not using gcc, we currently assume that we are using
15538 # Microsoft Visual C++.
15539 if test "$GCC" != yes; then
15544 # we just hope/assume this is gcc and not c89 (= MSVC++)
15554 # On some targets, GNU ld is compatible enough with the native linker
15555 # that we're better off using the native interface for both.
15556 lt_use_gnu_ld_interface=no
15557 if test "$with_gnu_ld" = yes; then
15560 # The AIX port of GNU ld has always aspired to compatibility
15561 # with the native linker. However, as the warning in the GNU ld
15562 # block says, versions before 2.19.5* couldn't really create working
15563 # shared libraries, regardless of the interface used.
15564 case `$LD -v 2>&1` in
15565 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15566 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15567 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15569 lt_use_gnu_ld_interface=yes
15574 lt_use_gnu_ld_interface=yes
15579 if test "$lt_use_gnu_ld_interface" = yes; then
15580 # If archive_cmds runs LD, not CC, wlarc should be empty
15583 # Set some defaults for GNU ld with shared library support. These
15584 # are reset later if shared libraries are not supported. Putting them
15585 # here allows them to be overridden if necessary.
15586 runpath_var=LD_RUN_PATH
15587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15588 export_dynamic_flag_spec='${wl}--export-dynamic'
15589 # ancient GNU ld didn't support --whole-archive et. al.
15590 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15591 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15593 whole_archive_flag_spec=
15595 supports_anon_versioning=no
15596 case `$LD -v 2>&1` in
15597 *GNU\ gold*) supports_anon_versioning=yes ;;
15598 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15599 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15600 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15601 *\ 2.11.*) ;; # other 2.11 versions
15602 *) supports_anon_versioning=yes ;;
15605 # See if GNU ld supports shared libraries.
15608 # On AIX/PPC, the GNU linker is very broken
15609 if test "$host_cpu" != ia64; then
15613 *** Warning: the GNU linker, at least up to release 2.19, is reported
15614 *** to be unable to reliably create shared libraries on AIX.
15615 *** Therefore, libtool is disabling shared libraries support. If you
15616 *** really care for shared libraries, you may want to install binutils
15617 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15618 *** You will then need to restart the configuration process.
15627 # see comment about AmigaOS4 .so support
15628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 archive_expsym_cmds=''
15632 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)'
15633 hardcode_libdir_flag_spec
='-L$libdir'
15634 hardcode_minus_L
=yes
15640 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15641 allow_undefined_flag
=unsupported
15642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15643 # support --undefined. This deserves some investigation. FIXME
15644 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15650 cygwin
* | mingw
* | pw32
* | cegcc
*)
15651 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15652 # as there is no search path for DLLs.
15653 hardcode_libdir_flag_spec
='-L$libdir'
15654 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15655 allow_undefined_flag
=unsupported
15656 always_export_symbols
=no
15657 enable_shared_with_static_runtimes
=yes
15658 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15660 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15661 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15662 # If the export-symbols file already is a .def file (1st line
15663 # is EXPORTS), use it as is; otherwise, prepend...
15664 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15665 cp $export_symbols $output_objdir/$soname.def;
15667 echo EXPORTS > $output_objdir/$soname.def;
15668 cat $export_symbols >> $output_objdir/$soname.def;
15670 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15677 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15678 link_all_deplibs
=yes
15683 hardcode_shlibpath_var
=no
15684 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15685 export_dynamic_flag_spec
='${wl}-E'
15686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15687 # Instead, shared libraries are loaded at an image base (0x10000000 by
15688 # default) and relocated if they conflict, which is a slow very memory
15689 # consuming and fragmenting process. To avoid this, we pick a random,
15690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15691 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15692 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15693 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'
15696 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15698 if test "$host_os" = linux-dietlibc
; then
15699 case $cc_basename in
15700 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15703 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15704 && test "$tmp_diet" = no
15707 tmp_sharedflag
='-shared'
15708 case $cc_basename,$host_cpu in
15709 pgcc
*) # Portland Group C compiler
15710 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'
15711 tmp_addflag
=' $pic_flag'
15713 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15714 # Portland Group f77 and f90 compilers
15715 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'
15716 tmp_addflag
=' $pic_flag -Mnomain' ;;
15717 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15718 tmp_addflag
=' -i_dynamic' ;;
15719 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15720 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15721 ifc
* | ifort
*) # Intel Fortran compiler
15722 tmp_addflag
=' -nofor_main' ;;
15723 lf95
*) # Lahey Fortran 8.1
15724 whole_archive_flag_spec
=
15725 tmp_sharedflag
='--shared' ;;
15726 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15727 tmp_sharedflag
='-qmkshrobj'
15729 nvcc
*) # Cuda Compiler Driver 2.2
15730 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'
15731 compiler_needs_object
=yes
15734 case `$CC -V 2>&1 | sed 5q` in
15735 *Sun\ C
*) # Sun C 5.9
15736 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'
15737 compiler_needs_object
=yes
15738 tmp_sharedflag
='-G' ;;
15739 *Sun\ F
*) # Sun Fortran 8.3
15740 tmp_sharedflag
='-G' ;;
15742 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15744 if test "x$supports_anon_versioning" = xyes
; then
15745 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15747 echo "local: *; };" >> $output_objdir/$libname.ver~
15748 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15751 case $cc_basename in
15752 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15753 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15754 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15755 hardcode_libdir_flag_spec
=
15756 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15757 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15758 if test "x$supports_anon_versioning" = xyes
; then
15759 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15761 echo "local: *; };" >> $output_objdir/$libname.ver~
15762 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15772 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15773 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15776 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15782 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15787 *** create shared libraries on Solaris systems. Therefore, libtool
15788 *** is disabling shared libraries support. We urge you to upgrade GNU
15789 *** binutils to release 2.9.1 or newer. Another option is to modify
15790 *** your PATH or compiler configuration so that the native linker is
15791 *** used, and then restart.
15794 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15795 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15802 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15803 case `$LD -v 2>&1` in
15804 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15808 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15809 *** reliably create shared libraries on SCO systems. Therefore, libtool
15810 *** is disabling shared libraries support. We urge you to upgrade GNU
15811 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15812 *** your PATH or compiler configuration so that the native linker is
15813 *** used, and then restart.
15818 # For security reasons, it is highly recommended that you always
15819 # use absolute paths for naming shared libraries, and exclude the
15820 # DT_RUNPATH tag from executables and libraries. But doing so
15821 # requires that you compile everything twice, which is a pain.
15822 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15823 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15824 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15825 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15834 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15836 hardcode_direct
=yes
15837 hardcode_shlibpath_var
=no
15841 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15842 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15843 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15850 if test "$ld_shlibs" = no
; then
15852 hardcode_libdir_flag_spec
=
15853 export_dynamic_flag_spec
=
15854 whole_archive_flag_spec
=
15857 # PORTME fill in a description of your system's linker (not GNU ld)
15860 allow_undefined_flag
=unsupported
15861 always_export_symbols
=yes
15862 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'
15863 # Note: this linker hardcodes the directories in LIBPATH if there
15864 # are no directories specified by -L.
15865 hardcode_minus_L
=yes
15866 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15867 # Neither direct hardcoding nor static linking is supported with a
15869 hardcode_direct
=unsupported
15874 if test "$host_cpu" = ia64
; then
15875 # On IA64, the linker does run time linking by default, so we don't
15876 # have to do anything special.
15877 aix_use_runtimelinking
=no
15878 exp_sym_flag
='-Bexport'
15881 # If we're using GNU nm, then we don't want the "-C" option.
15882 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15883 # Also, AIX nm treats weak defined symbols like other global
15884 # defined symbols, whereas GNU nm marks them as "W".
15885 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15886 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'
15888 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'
15890 aix_use_runtimelinking
=no
15892 # Test if we are trying to use run time linking or normal
15893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15894 # need to do runtime linking.
15895 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15896 for ld_flag
in $LDFLAGS; do
15897 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15898 aix_use_runtimelinking
=yes
15905 exp_sym_flag
='-bexport'
15906 no_entry_flag
='-bnoentry'
15909 # When large executables or shared objects are built, AIX ld can
15910 # have problems creating the table of contents. If linking a library
15911 # or program results in "error TOC overflow" add -mminimal-toc to
15912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15916 hardcode_direct
=yes
15917 hardcode_direct_absolute
=yes
15918 hardcode_libdir_separator
=':'
15919 link_all_deplibs
=yes
15920 file_list_spec
='${wl}-f,'
15922 if test "$GCC" = yes; then
15923 case $host_os in aix4.
[012]|aix4.
[012].
*)
15924 # We only want to do this on AIX 4.2 and lower, the check
15925 # below for broken collect2 doesn't work under 4.3+
15926 collect2name
=`${CC} -print-prog-name=collect2`
15927 if test -f "$collect2name" &&
15928 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15930 # We have reworked collect2
15933 # We have old collect2
15934 hardcode_direct
=unsupported
15935 # It fails to find uninstalled libraries when the uninstalled
15936 # path is not listed in the libpath. Setting hardcode_minus_L
15937 # to unsupported forces relinking
15938 hardcode_minus_L
=yes
15939 hardcode_libdir_flag_spec
='-L$libdir'
15940 hardcode_libdir_separator
=
15944 shared_flag
='-shared'
15945 if test "$aix_use_runtimelinking" = yes; then
15946 shared_flag
="$shared_flag "'${wl}-G'
15950 if test "$host_cpu" = ia64
; then
15951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15952 # chokes on -Wl,-G. The following line is correct:
15955 if test "$aix_use_runtimelinking" = yes; then
15956 shared_flag
='${wl}-G'
15958 shared_flag
='${wl}-bM:SRE'
15963 export_dynamic_flag_spec
='${wl}-bexpall'
15964 # It seems that -bexpall does not export symbols beginning with
15965 # underscore (_), so it is better to generate a list of symbols to export.
15966 always_export_symbols
=yes
15967 if test "$aix_use_runtimelinking" = yes; then
15968 # Warning - without using the other runtime loading flags (-brtl),
15969 # -berok will link without error, but may produce a broken library.
15970 allow_undefined_flag
='-berok'
15971 # Determine the default libpath from the value encoded in an
15972 # empty executable.
15973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15984 if ac_fn_c_try_link
"$LINENO"; then :
15986 lt_aix_libpath_sed
='
15987 /Import File Strings/,/^$/ {
15993 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15994 # Check for a 64-bit object if we didn't find anything.
15995 if test -z "$aix_libpath"; then
15996 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15999 rm -f core conftest.err conftest.
$ac_objext \
16000 conftest
$ac_exeext conftest.
$ac_ext
16001 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16003 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16004 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"
16006 if test "$host_cpu" = ia64
; then
16007 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16008 allow_undefined_flag
="-z nodefs"
16009 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"
16011 # Determine the default libpath from the value encoded in an
16012 # empty executable.
16013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16024 if ac_fn_c_try_link
"$LINENO"; then :
16026 lt_aix_libpath_sed
='
16027 /Import File Strings/,/^$/ {
16033 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16034 # Check for a 64-bit object if we didn't find anything.
16035 if test -z "$aix_libpath"; then
16036 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16039 rm -f core conftest.err conftest.
$ac_objext \
16040 conftest
$ac_exeext conftest.
$ac_ext
16041 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16043 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16044 # Warning - without using the other run time loading flags,
16045 # -berok will link without error, but may produce a broken library.
16046 no_undefined_flag
=' ${wl}-bernotok'
16047 allow_undefined_flag
=' ${wl}-berok'
16048 if test "$with_gnu_ld" = yes; then
16049 # We only use this code for GNU lds that support --whole-archive.
16050 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16052 # Exported symbols can be pulled into shared objects from archives
16053 whole_archive_flag_spec
='$convenience'
16055 archive_cmds_need_lc
=yes
16056 # This is similar to how AIX traditionally builds its shared libraries.
16057 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'
16065 # see comment about AmigaOS4 .so support
16066 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds
=''
16070 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)'
16071 hardcode_libdir_flag_spec
='-L$libdir'
16072 hardcode_minus_L
=yes
16078 export_dynamic_flag_spec
=-rdynamic
16081 cygwin
* | mingw
* | pw32
* | cegcc
*)
16082 # When not using gcc, we currently assume that we are using
16083 # Microsoft Visual C++.
16084 # hardcode_libdir_flag_spec is actually meaningless, as there is
16085 # no search path for DLLs.
16086 hardcode_libdir_flag_spec
=' '
16087 allow_undefined_flag
=unsupported
16088 # Tell ltmain to make .lib files, not .a files.
16090 # Tell ltmain to make .dll files, not .so files.
16092 # FIXME: Setting linknames here is a bad hack.
16093 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16094 # The linker will automatically build a .lib file if we build a DLL.
16095 old_archive_from_new_cmds
='true'
16096 # FIXME: Should let the user specify the lib program.
16097 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16098 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16099 enable_shared_with_static_runtimes
=yes
16102 darwin
* | rhapsody
*)
16105 archive_cmds_need_lc
=no
16107 hardcode_automatic
=yes
16108 hardcode_shlibpath_var
=unsupported
16109 if test "$lt_cv_ld_force_load" = "yes"; then
16110 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\"`'
16112 whole_archive_flag_spec
=''
16114 link_all_deplibs
=yes
16115 allow_undefined_flag
="$_lt_dar_allow_undefined"
16116 case $cc_basename in
16117 ifort
*) _lt_dar_can_shared
=yes ;;
16118 *) _lt_dar_can_shared
=$GCC ;;
16120 if test "$_lt_dar_can_shared" = "yes"; then
16121 output_verbose_link_cmd
=func_echo_all
16122 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16123 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16124 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}"
16125 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}"
16134 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_libdir_flag_spec
='-L$libdir'
16136 hardcode_shlibpath_var
=no
16139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16140 # support. Future versions do this automatically, but an explicit c++rt0.o
16141 # does not break anything, and helps significantly (at the cost of a little
16144 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16145 hardcode_libdir_flag_spec
='-R$libdir'
16146 hardcode_direct
=yes
16147 hardcode_shlibpath_var
=no
16150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16152 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16153 hardcode_direct
=yes
16154 hardcode_minus_L
=yes
16155 hardcode_shlibpath_var
=no
16158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16159 freebsd
* | dragonfly
*)
16160 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16161 hardcode_libdir_flag_spec
='-R$libdir'
16162 hardcode_direct
=yes
16163 hardcode_shlibpath_var
=no
16167 if test "$GCC" = yes; then
16168 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'
16170 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'
16172 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16173 hardcode_libdir_separator
=:
16174 hardcode_direct
=yes
16176 # hardcode_minus_L: Not really in the search PATH,
16177 # but as the default location of the library.
16178 hardcode_minus_L
=yes
16179 export_dynamic_flag_spec
='${wl}-E'
16183 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16184 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16186 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16188 if test "$with_gnu_ld" = no
; then
16189 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16190 hardcode_libdir_flag_spec_ld
='+b $libdir'
16191 hardcode_libdir_separator
=:
16192 hardcode_direct
=yes
16193 hardcode_direct_absolute
=yes
16194 export_dynamic_flag_spec
='${wl}-E'
16195 # hardcode_minus_L: Not really in the search PATH,
16196 # but as the default location of the library.
16197 hardcode_minus_L
=yes
16202 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16205 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16208 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16211 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16217 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16220 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16224 # Older versions of the 11.00 compiler do not understand -b yet
16225 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16227 $as_echo_n "checking if $CC understands -b... " >&6; }
16228 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16229 $as_echo_n "(cached) " >&6
16231 lt_cv_prog_compiler__b
=no
16232 save_LDFLAGS
="$LDFLAGS"
16233 LDFLAGS
="$LDFLAGS -b"
16234 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16235 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16236 # The linker can only warn and ignore the option if not recognized
16237 # So say no if there are warnings
16238 if test -s conftest.err
; then
16239 # Append any errors to the config.log.
16240 cat conftest.err
1>&5
16241 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16242 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16243 if diff conftest.exp conftest.er2
>/dev
/null
; then
16244 lt_cv_prog_compiler__b
=yes
16247 lt_cv_prog_compiler__b
=yes
16251 LDFLAGS
="$save_LDFLAGS"
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16255 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16257 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16258 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16260 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16266 if test "$with_gnu_ld" = no
; then
16267 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16268 hardcode_libdir_separator
=:
16273 hardcode_shlibpath_var
=no
16276 hardcode_direct
=yes
16277 hardcode_direct_absolute
=yes
16278 export_dynamic_flag_spec
='${wl}-E'
16280 # hardcode_minus_L: Not really in the search PATH,
16281 # but as the default location of the library.
16282 hardcode_minus_L
=yes
16288 irix5
* | irix6
* | nonstopux
*)
16289 if test "$GCC" = yes; then
16290 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'
16291 # Try to use the -exported_symbol ld option, if it does not
16292 # work, assume that -exports_file does not work either and
16293 # implicitly export all symbols.
16294 save_LDFLAGS
="$LDFLAGS"
16295 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16300 if ac_fn_c_try_link
"$LINENO"; then :
16301 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'
16304 rm -f core conftest.err conftest.
$ac_objext \
16305 conftest
$ac_exeext conftest.
$ac_ext
16306 LDFLAGS
="$save_LDFLAGS"
16308 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'
16309 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'
16311 archive_cmds_need_lc
='no'
16312 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16313 hardcode_libdir_separator
=:
16315 link_all_deplibs
=yes
16319 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16320 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16322 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16324 hardcode_libdir_flag_spec
='-R$libdir'
16325 hardcode_direct
=yes
16326 hardcode_shlibpath_var
=no
16330 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16331 hardcode_direct
=yes
16332 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16333 hardcode_libdir_separator
=:
16334 hardcode_shlibpath_var
=no
16341 if test -f /usr
/libexec
/ld.so
; then
16342 hardcode_direct
=yes
16343 hardcode_shlibpath_var
=no
16344 hardcode_direct_absolute
=yes
16345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16346 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16347 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16348 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16349 export_dynamic_flag_spec
='${wl}-E'
16352 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16353 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16354 hardcode_libdir_flag_spec
='-R$libdir'
16357 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16358 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16368 hardcode_libdir_flag_spec
='-L$libdir'
16369 hardcode_minus_L
=yes
16370 allow_undefined_flag
=unsupported
16371 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'
16372 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16376 if test "$GCC" = yes; then
16377 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16378 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'
16380 allow_undefined_flag
=' -expect_unresolved \*'
16381 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'
16383 archive_cmds_need_lc
='no'
16384 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16385 hardcode_libdir_separator
=:
16388 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16389 if test "$GCC" = yes; then
16390 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16391 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'
16392 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16394 allow_undefined_flag
=' -expect_unresolved \*'
16395 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'
16396 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~
16397 $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'
16399 # Both c and cxx compiler support -rpath directly
16400 hardcode_libdir_flag_spec
='-rpath $libdir'
16402 archive_cmds_need_lc
='no'
16403 hardcode_libdir_separator
=:
16407 no_undefined_flag
=' -z defs'
16408 if test "$GCC" = yes; then
16410 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16411 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16412 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16414 case `$CC -V 2>&1` in
16417 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16418 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16423 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16424 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16425 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16429 hardcode_libdir_flag_spec
='-R$libdir'
16430 hardcode_shlibpath_var
=no
16432 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16434 # The compiler driver will combine and reorder linker options,
16435 # but understands `-z linker_flag'. GCC discards it without `$wl',
16436 # but is careful enough not to reorder.
16437 # Supported since Solaris 2.6 (maybe 2.5.1?)
16438 if test "$GCC" = yes; then
16439 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16441 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16445 link_all_deplibs
=yes
16449 if test "x$host_vendor" = xsequent
; then
16450 # Use $CC to link under sequent, because it throws in some extra .o
16451 # files that make .init and .fini sections work.
16452 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16454 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16456 hardcode_libdir_flag_spec
='-L$libdir'
16457 hardcode_direct
=yes
16458 hardcode_minus_L
=yes
16459 hardcode_shlibpath_var
=no
16463 case $host_vendor in
16465 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16466 hardcode_direct
=yes # is this really true???
16469 ## LD is ld it makes a PLAMLIB
16470 ## CC just makes a GrossModule.
16471 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16472 reload_cmds
='$CC -r -o $output$reload_objs'
16476 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16480 runpath_var
='LD_RUN_PATH'
16481 hardcode_shlibpath_var
=no
16485 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_shlibpath_var
=no
16487 export_dynamic_flag_spec
='-Bexport'
16491 if test -d /usr
/nec
; then
16492 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493 hardcode_shlibpath_var
=no
16494 runpath_var
=LD_RUN_PATH
16495 hardcode_runpath_var
=yes
16500 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16501 no_undefined_flag
='${wl}-z,text'
16502 archive_cmds_need_lc
=no
16503 hardcode_shlibpath_var
=no
16504 runpath_var
='LD_RUN_PATH'
16506 if test "$GCC" = yes; then
16507 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16508 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16510 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16515 sysv5
* | sco3.2v5
* | sco5v6
*)
16516 # Note: We can NOT use -z defs as we might desire, because we do not
16517 # link with -lc, and that would cause any symbols used from libc to
16518 # always be unresolved, which means just about no library would
16519 # ever link correctly. If we're not using GNU ld we use -z text
16520 # though, which does catch some bad symbols but isn't as heavy-handed
16522 no_undefined_flag
='${wl}-z,text'
16523 allow_undefined_flag
='${wl}-z,nodefs'
16524 archive_cmds_need_lc
=no
16525 hardcode_shlibpath_var
=no
16526 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16527 hardcode_libdir_separator
=':'
16528 link_all_deplibs
=yes
16529 export_dynamic_flag_spec
='${wl}-Bexport'
16530 runpath_var
='LD_RUN_PATH'
16532 if test "$GCC" = yes; then
16533 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16534 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543 hardcode_libdir_flag_spec
='-L$libdir'
16544 hardcode_shlibpath_var
=no
16552 if test x
$host_vendor = xsni
; then
16554 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16555 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16562 $as_echo "$ld_shlibs" >&6; }
16563 test "$ld_shlibs" = no
&& can_build_shared
=no
16565 with_gnu_ld
=$with_gnu_ld
16582 # Do we need to explicitly link libc?
16584 case "x$archive_cmds_need_lc" in
16586 # Assume -lc should be added
16587 archive_cmds_need_lc
=yes
16589 if test "$enable_shared" = yes && test "$GCC" = yes; then
16590 case $archive_cmds in
16592 # FIXME: we may have to deal with multi-command sequences.
16595 # Test whether the compiler implicitly links with -lc since on some
16596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16597 # to ld, don't add -lc before -lgcc.
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16600 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16601 $as_echo_n "(cached) " >&6
16604 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16607 (eval $ac_compile) 2>&5
16609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610 test $ac_status = 0; } 2>conftest.err
; then
16613 libobjs
=conftest.
$ac_objext
16615 wl
=$lt_prog_compiler_wl
16616 pic_flag
=$lt_prog_compiler_pic
16622 lt_save_allow_undefined_flag
=$allow_undefined_flag
16623 allow_undefined_flag
=
16624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16625 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16628 test $ac_status = 0; }
16630 lt_cv_archive_cmds_need_lc
=no
16632 lt_cv_archive_cmds_need_lc
=yes
16634 allow_undefined_flag
=$lt_save_allow_undefined_flag
16636 cat conftest.err
1>&5
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16642 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16643 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16807 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16809 if test "$GCC" = yes; then
16811 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16812 *) lt_awk_arg
="/^libraries:/" ;;
16815 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16816 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16818 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16819 case $lt_search_path_spec in
16821 # if the path contains ";" then we assume it to be the separator
16822 # otherwise default to the standard path separator (i.e. ":") - it is
16823 # assumed that no part of a normal pathname contains ";" but that should
16824 # okay in the real world where ";" in dirpaths is itself problematic.
16825 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16828 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16831 # Ok, now we have the path, separated by spaces, we can step through it
16832 # and add multilib dir if necessary.
16833 lt_tmp_lt_search_path_spec
=
16834 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16835 for lt_sys_path
in $lt_search_path_spec; do
16836 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16837 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16839 test -d "$lt_sys_path" && \
16840 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16843 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16844 BEGIN {RS=" "; FS="/|\n";} {
16847 for (lt_i = NF; lt_i > 0; lt_i--) {
16848 if ($lt_i != "" && $lt_i != ".") {
16849 if ($lt_i == "..") {
16852 if (lt_count == 0) {
16853 lt_foo="/" $lt_i lt_foo;
16860 if (lt_foo != "") { lt_freq[lt_foo]++; }
16861 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16863 # AWK program above erroneously prepends '/' to C:/dos/paths
16866 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16867 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16869 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16871 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16873 library_names_spec
=
16874 libname_spec
='lib$name'
16878 postuninstall_cmds
=
16882 shlibpath_overrides_runpath
=unknown
16884 dynamic_linker
="$host_os ld.so"
16885 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16886 need_lib_prefix
=unknown
16887 hardcode_into_libs
=no
16889 # when you set need_version to no, make sure it does not cause -set_version
16890 # flags to be left without arguments
16891 need_version
=unknown
16896 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16897 shlibpath_var
=LIBPATH
16899 # AIX 3 has no versioning support, so we append a major version to the name.
16900 soname_spec
='${libname}${release}${shared_ext}$major'
16907 hardcode_into_libs
=yes
16908 if test "$host_cpu" = ia64
; then
16909 # AIX 5 supports IA64
16910 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16911 shlibpath_var
=LD_LIBRARY_PATH
16913 # With GCC up to 2.95.x, collect2 would create an import file
16914 # for dependence libraries. The import file would start with
16915 # the line `#! .'. This would cause the generated library to
16916 # depend on `.', always an invalid library. This was fixed in
16917 # development snapshots of GCC prior to 3.0.
16919 aix4 | aix4.
[01] | aix4.
[01].
*)
16920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16922 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16925 can_build_shared
=no
16929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16930 # soname into executable. Probably we can add versioning support to
16931 # collect2, so additional links can be useful in future.
16932 if test "$aix_use_runtimelinking" = yes; then
16933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16934 # instead of lib<name>.a to let people know that these are not
16935 # typical AIX shared libraries.
16936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938 # We preserve .a as extension for shared libraries through AIX4.2
16939 # and later when we are not doing run time linking.
16940 library_names_spec
='${libname}${release}.a $libname.a'
16941 soname_spec
='${libname}${release}${shared_ext}$major'
16943 shlibpath_var
=LIBPATH
16950 # Since July 2007 AmigaOS4 officially supports .so libraries.
16951 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16955 library_names_spec
='$libname.ixlibrary $libname.a'
16956 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16957 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'
16963 library_names_spec
='${libname}${shared_ext}'
16964 dynamic_linker
="$host_os ld.so"
16965 shlibpath_var
=LIBRARY_PATH
16971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16972 soname_spec
='${libname}${release}${shared_ext}$major'
16973 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16974 shlibpath_var
=LD_LIBRARY_PATH
16975 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16976 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16977 # the default ld.so.conf also contains /usr/contrib/lib and
16978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16979 # libtool to hard-code these into programs
16982 cygwin
* | mingw
* | pw32
* | cegcc
*)
16983 version_type
=windows
16988 case $GCC,$host_os in
16989 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16990 library_names_spec
='$libname.dll.a'
16991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16992 postinstall_cmds
='base_file=`basename \${file}`~
16993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16994 dldir=$destdir/`dirname \$dlpath`~
16995 test -d \$dldir || mkdir -p \$dldir~
16996 $install_prog $dir/$dlname \$dldir/$dlname~
16997 chmod a+x \$dldir/$dlname~
16998 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16999 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17001 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17002 dlpath=$dir/\$dldll~
17004 shlibpath_overrides_runpath
=yes
17008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17009 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17011 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17014 # MinGW DLLs use traditional 'lib' prefix
17015 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17018 # pw32 DLLs use 'pw' prefix rather than 'lib'
17019 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17025 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17028 dynamic_linker
='Win32 ld.exe'
17029 # FIXME: first we should search . and the directory the executable is in
17033 darwin
* | rhapsody
*)
17034 dynamic_linker
="$host_os dyld"
17035 version_type
=darwin
17038 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039 soname_spec
='${libname}${release}${major}$shared_ext'
17040 shlibpath_overrides_runpath
=yes
17041 shlibpath_var
=DYLD_LIBRARY_PATH
17042 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17044 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17045 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17053 soname_spec
='${libname}${release}${shared_ext}$major'
17054 shlibpath_var
=LD_LIBRARY_PATH
17057 freebsd
* | dragonfly
*)
17058 # DragonFly does not have aout. When/if they implement a new
17059 # versioning mechanism, adjust this.
17060 if test -x /usr
/bin
/objformat
; then
17061 objformat
=`/usr/bin/objformat`
17064 freebsd
[123]*) objformat
=aout
;;
17065 *) objformat
=elf
;;
17068 version_type
=freebsd-
$objformat
17069 case $version_type in
17071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17076 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17080 shlibpath_var
=LD_LIBRARY_PATH
17083 shlibpath_overrides_runpath
=yes
17085 freebsd3.
[01]* | freebsdelf3.
[01]*)
17086 shlibpath_overrides_runpath
=yes
17087 hardcode_into_libs
=yes
17089 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17090 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17091 shlibpath_overrides_runpath
=no
17092 hardcode_into_libs
=yes
17094 *) # from 4.6 on, and DragonFly
17095 shlibpath_overrides_runpath
=yes
17096 hardcode_into_libs
=yes
17105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17106 soname_spec
='${libname}${release}${shared_ext}$major'
17107 shlibpath_var
=LD_LIBRARY_PATH
17108 hardcode_into_libs
=yes
17115 dynamic_linker
="$host_os runtime_loader"
17116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17117 soname_spec
='${libname}${release}${shared_ext}$major'
17118 shlibpath_var
=LIBRARY_PATH
17119 shlibpath_overrides_runpath
=yes
17120 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17121 hardcode_into_libs
=yes
17124 hpux9
* | hpux10
* | hpux11
*)
17125 # Give a soname corresponding to the major version so that dld.sl refuses to
17126 # link against other versions.
17133 hardcode_into_libs
=yes
17134 dynamic_linker
="$host_os dld.so"
17135 shlibpath_var
=LD_LIBRARY_PATH
17136 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138 soname_spec
='${libname}${release}${shared_ext}$major'
17139 if test "X$HPUX_IA64_MODE" = X32
; then
17140 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17142 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17144 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17148 hardcode_into_libs
=yes
17149 dynamic_linker
="$host_os dld.sl"
17150 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17151 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17152 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec
='${libname}${release}${shared_ext}$major'
17154 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17155 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17159 dynamic_linker
="$host_os dld.sl"
17160 shlibpath_var
=SHLIB_PATH
17161 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163 soname_spec
='${libname}${release}${shared_ext}$major'
17166 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17167 postinstall_cmds
='chmod 555 $lib'
17168 # or fails outright, so override atomically:
17169 install_override_mode
=555
17176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17177 soname_spec
='${libname}${release}${shared_ext}$major'
17178 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17179 shlibpath_var
=LD_LIBRARY_PATH
17180 shlibpath_overrides_runpath
=no
17181 hardcode_into_libs
=yes
17184 irix5
* | irix6
* | nonstopux
*)
17186 nonstopux
*) version_type
=nonstopux
;;
17188 if test "$lt_cv_prog_gnu_ld" = yes; then
17196 soname_spec
='${libname}${release}${shared_ext}$major'
17197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17199 irix5
* | nonstopux
*)
17200 libsuff
= shlibsuff
=
17203 case $LD in # libtool.m4 will add one of these switches to LD
17204 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17205 libsuff
= shlibsuff
= libmagic
=32-bit;;
17206 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17207 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17208 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17209 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17210 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17214 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17215 shlibpath_overrides_runpath
=no
17216 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17217 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17218 hardcode_into_libs
=yes
17221 # No shared lib support for Linux oldld, aout, or coff.
17222 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17226 # This must be Linux ELF.
17227 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec
='${libname}${release}${shared_ext}$major'
17233 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17234 shlibpath_var
=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath
=no
17237 # Some binutils ld are patched to set DT_RUNPATH
17238 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17239 $as_echo_n "(cached) " >&6
17241 lt_cv_shlibpath_overrides_runpath
=no
17242 save_LDFLAGS
=$LDFLAGS
17243 save_libdir
=$libdir
17244 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17245 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17257 if ac_fn_c_try_link
"$LINENO"; then :
17258 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17259 lt_cv_shlibpath_overrides_runpath
=yes
17262 rm -f core conftest.err conftest.
$ac_objext \
17263 conftest
$ac_exeext conftest.
$ac_ext
17264 LDFLAGS
=$save_LDFLAGS
17265 libdir
=$save_libdir
17269 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17271 # This implies no fast_install, which is unacceptable.
17272 # Some rework will be needed to allow for fast_install
17273 # before this can be enabled.
17274 hardcode_into_libs
=yes
17276 # Append ld.so.conf contents to the search path
17277 if test -f /etc
/ld.so.conf
; then
17278 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' ' '`
17279 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17282 # We used to test for /lib/ld.so.1 and disable shared libraries on
17283 # powerpc, because MkLinux only supported shared libraries with the
17284 # GNU dynamic linker. Since this was broken with cross compilers,
17285 # most powerpc-linux boxes support dynamic linking these days and
17286 # people can always --disable-shared, the test was removed, and we
17287 # assume the GNU/Linux dynamic linker is in use.
17288 dynamic_linker
='GNU/Linux ld.so'
17295 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17297 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17298 dynamic_linker
='NetBSD (a.out) ld.so'
17300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17301 soname_spec
='${libname}${release}${shared_ext}$major'
17302 dynamic_linker
='NetBSD ld.elf_so'
17304 shlibpath_var
=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath
=yes
17306 hardcode_into_libs
=yes
17311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 shlibpath_var
=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath
=yes
17320 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321 soname_spec
='${libname}${release}${shared_ext}$major'
17322 shlibpath_var
=LD_LIBRARY_PATH
17323 shlibpath_overrides_runpath
=no
17324 hardcode_into_libs
=yes
17325 dynamic_linker
='ldqnx.so'
17330 sys_lib_dlsearch_path_spec
="/usr/lib"
17332 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17334 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17335 *) need_version
=no
;;
17337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17338 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17339 shlibpath_var
=LD_LIBRARY_PATH
17340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17342 openbsd2.
[89] | openbsd2.
[89].
*)
17343 shlibpath_overrides_runpath
=no
17346 shlibpath_overrides_runpath
=yes
17350 shlibpath_overrides_runpath
=yes
17355 libname_spec
='$name'
17358 library_names_spec
='$libname${shared_ext} $libname.a'
17359 dynamic_linker
='OS/2 ld.exe'
17360 shlibpath_var
=LIBPATH
17363 osf3
* | osf4
* | osf5
*)
17367 soname_spec
='${libname}${release}${shared_ext}$major'
17368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 shlibpath_var
=LD_LIBRARY_PATH
17370 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17371 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17382 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383 soname_spec
='${libname}${release}${shared_ext}$major'
17384 shlibpath_var
=LD_LIBRARY_PATH
17385 shlibpath_overrides_runpath
=yes
17386 hardcode_into_libs
=yes
17387 # ldd complains unless libraries are executable
17388 postinstall_cmds
='chmod +x $lib'
17393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17394 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17395 shlibpath_var
=LD_LIBRARY_PATH
17396 shlibpath_overrides_runpath
=yes
17397 if test "$with_gnu_ld" = yes; then
17405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 soname_spec
='${libname}${release}${shared_ext}$major'
17407 shlibpath_var
=LD_LIBRARY_PATH
17408 case $host_vendor in
17410 shlibpath_overrides_runpath
=no
17412 runpath_var
=LD_RUN_PATH
17420 shlibpath_overrides_runpath
=no
17421 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17427 if test -d /usr
/nec
;then
17429 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17430 soname_spec
='$libname${shared_ext}.$major'
17431 shlibpath_var
=LD_LIBRARY_PATH
17435 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17436 version_type
=freebsd-elf
17439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17440 soname_spec
='${libname}${release}${shared_ext}$major'
17441 shlibpath_var
=LD_LIBRARY_PATH
17442 shlibpath_overrides_runpath
=yes
17443 hardcode_into_libs
=yes
17444 if test "$with_gnu_ld" = yes; then
17445 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17447 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17450 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17454 sys_lib_dlsearch_path_spec
='/usr/lib'
17458 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17462 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17463 shlibpath_var
=LD_LIBRARY_PATH
17464 shlibpath_overrides_runpath
=no
17465 hardcode_into_libs
=yes
17470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 soname_spec
='${libname}${release}${shared_ext}$major'
17472 shlibpath_var
=LD_LIBRARY_PATH
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17480 $as_echo "$dynamic_linker" >&6; }
17481 test "$dynamic_linker" = no
&& can_build_shared
=no
17483 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17484 if test "$GCC" = yes; then
17485 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17488 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17489 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17491 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17492 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17587 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17589 if test -n "$hardcode_libdir_flag_spec" ||
17590 test -n "$runpath_var" ||
17591 test "X$hardcode_automatic" = "Xyes" ; then
17593 # We can hardcode non-existent directories.
17594 if test "$hardcode_direct" != no
&&
17595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17596 # have to relink, otherwise we might link with an installed library
17597 # when we should be linking with a yet-to-be-installed one
17598 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17599 test "$hardcode_minus_L" != no
; then
17600 # Linking always hardcodes the temporary library directory.
17601 hardcode_action
=relink
17603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17604 hardcode_action
=immediate
17607 # We cannot hardcode anything, or else we can only hardcode existing
17609 hardcode_action
=unsupported
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17612 $as_echo "$hardcode_action" >&6; }
17614 if test "$hardcode_action" = relink ||
17615 test "$inherit_rpath" = yes; then
17616 # Fast installation is not supported
17617 enable_fast_install
=no
17618 elif test "$shlibpath_overrides_runpath" = yes ||
17619 test "$enable_shared" = no
; then
17620 # Fast installation is not necessary
17621 enable_fast_install
=needless
17629 if test "x$enable_dlopen" != xyes
; then
17630 enable_dlopen
=unknown
17631 enable_dlopen_self
=unknown
17632 enable_dlopen_self_static
=unknown
17639 lt_cv_dlopen
="load_add_on"
17641 lt_cv_dlopen_self
=yes
17644 mingw
* | pw32
* | cegcc
*)
17645 lt_cv_dlopen
="LoadLibrary"
17650 lt_cv_dlopen
="dlopen"
17655 # if libdl is installed we need to link against it
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17658 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17659 $as_echo_n "(cached) " >&6
17661 ac_check_lib_save_LIBS
=$LIBS
17663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h. */
17666 /* Override any GCC internal prototype to avoid an error.
17667 Use char because int might match the return type of a GCC
17668 builtin and then its argument prototype would still apply. */
17681 if ac_fn_c_try_link
"$LINENO"; then :
17682 ac_cv_lib_dl_dlopen
=yes
17684 ac_cv_lib_dl_dlopen
=no
17686 rm -f core conftest.err conftest.
$ac_objext \
17687 conftest
$ac_exeext conftest.
$ac_ext
17688 LIBS
=$ac_check_lib_save_LIBS
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17692 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17693 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17696 lt_cv_dlopen
="dyld"
17698 lt_cv_dlopen_self
=yes
17705 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17706 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17707 lt_cv_dlopen
="shl_load"
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17710 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17711 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17712 $as_echo_n "(cached) " >&6
17714 ac_check_lib_save_LIBS
=$LIBS
17716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17719 /* Override any GCC internal prototype to avoid an error.
17720 Use char because int might match the return type of a GCC
17721 builtin and then its argument prototype would still apply. */
17729 return shl_load ();
17734 if ac_fn_c_try_link
"$LINENO"; then :
17735 ac_cv_lib_dld_shl_load
=yes
17737 ac_cv_lib_dld_shl_load
=no
17739 rm -f core conftest.err conftest.
$ac_objext \
17740 conftest
$ac_exeext conftest.
$ac_ext
17741 LIBS
=$ac_check_lib_save_LIBS
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17744 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17745 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17746 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17748 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17749 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17750 lt_cv_dlopen
="dlopen"
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17753 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17754 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17755 $as_echo_n "(cached) " >&6
17757 ac_check_lib_save_LIBS
=$LIBS
17759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17762 /* Override any GCC internal prototype to avoid an error.
17763 Use char because int might match the return type of a GCC
17764 builtin and then its argument prototype would still apply. */
17777 if ac_fn_c_try_link
"$LINENO"; then :
17778 ac_cv_lib_dl_dlopen
=yes
17780 ac_cv_lib_dl_dlopen
=no
17782 rm -f core conftest.err conftest.
$ac_objext \
17783 conftest
$ac_exeext conftest.
$ac_ext
17784 LIBS
=$ac_check_lib_save_LIBS
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17787 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17788 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17789 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17792 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17793 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17794 $as_echo_n "(cached) " >&6
17796 ac_check_lib_save_LIBS
=$LIBS
17797 LIBS
="-lsvld $LIBS"
17798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17801 /* Override any GCC internal prototype to avoid an error.
17802 Use char because int might match the return type of a GCC
17803 builtin and then its argument prototype would still apply. */
17816 if ac_fn_c_try_link
"$LINENO"; then :
17817 ac_cv_lib_svld_dlopen
=yes
17819 ac_cv_lib_svld_dlopen
=no
17821 rm -f core conftest.err conftest.
$ac_objext \
17822 conftest
$ac_exeext conftest.
$ac_ext
17823 LIBS
=$ac_check_lib_save_LIBS
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17826 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17827 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17828 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17831 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17832 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17833 $as_echo_n "(cached) " >&6
17835 ac_check_lib_save_LIBS
=$LIBS
17837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17840 /* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17850 return dld_link ();
17855 if ac_fn_c_try_link
"$LINENO"; then :
17856 ac_cv_lib_dld_dld_link
=yes
17858 ac_cv_lib_dld_dld_link
=no
17860 rm -f core conftest.err conftest.
$ac_objext \
17861 conftest
$ac_exeext conftest.
$ac_ext
17862 LIBS
=$ac_check_lib_save_LIBS
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17865 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17866 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17867 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17888 if test "x$lt_cv_dlopen" != xno
; then
17894 case $lt_cv_dlopen in
17896 save_CPPFLAGS
="$CPPFLAGS"
17897 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17899 save_LDFLAGS
="$LDFLAGS"
17900 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17903 LIBS
="$lt_cv_dlopen_libs $LIBS"
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17906 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17907 if test "${lt_cv_dlopen_self+set}" = set; then :
17908 $as_echo_n "(cached) " >&6
17910 if test "$cross_compiling" = yes; then :
17911 lt_cv_dlopen_self
=cross
17913 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17914 lt_status
=$lt_dlunknown
17915 cat > conftest.
$ac_ext <<_LT_EOF
17916 #line 17916 "configure"
17917 #include "confdefs.h"
17926 # define LT_DLGLOBAL RTLD_GLOBAL
17929 # define LT_DLGLOBAL DL_GLOBAL
17931 # define LT_DLGLOBAL 0
17935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17936 find out it does not work in some platform. */
17937 #ifndef LT_DLLAZY_OR_NOW
17939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17942 # define LT_DLLAZY_OR_NOW DL_LAZY
17945 # define LT_DLLAZY_OR_NOW RTLD_NOW
17948 # define LT_DLLAZY_OR_NOW DL_NOW
17950 # define LT_DLLAZY_OR_NOW 0
17957 /* When -fvisbility=hidden is used, assume the code has been annotated
17958 correspondingly for the symbols needed. */
17959 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17960 void fnord () __attribute__((visibility("default")));
17963 void fnord () { int i=42; }
17966 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17967 int status = $lt_dlunknown;
17971 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17974 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17975 else puts (dlerror ());
17977 /* dlclose (self); */
17985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17986 (eval $ac_link) 2>&5
17988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17989 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17990 (.
/conftest
; exit; ) >&5 2>/dev
/null
17992 case x
$lt_status in
17993 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17994 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17995 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17998 # compilation failed
17999 lt_cv_dlopen_self
=no
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18007 $as_echo "$lt_cv_dlopen_self" >&6; }
18009 if test "x$lt_cv_dlopen_self" = xyes
; then
18010 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18012 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18013 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18014 $as_echo_n "(cached) " >&6
18016 if test "$cross_compiling" = yes; then :
18017 lt_cv_dlopen_self_static
=cross
18019 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18020 lt_status
=$lt_dlunknown
18021 cat > conftest.
$ac_ext <<_LT_EOF
18022 #line 18022 "configure"
18023 #include "confdefs.h"
18032 # define LT_DLGLOBAL RTLD_GLOBAL
18035 # define LT_DLGLOBAL DL_GLOBAL
18037 # define LT_DLGLOBAL 0
18041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18042 find out it does not work in some platform. */
18043 #ifndef LT_DLLAZY_OR_NOW
18045 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18048 # define LT_DLLAZY_OR_NOW DL_LAZY
18051 # define LT_DLLAZY_OR_NOW RTLD_NOW
18054 # define LT_DLLAZY_OR_NOW DL_NOW
18056 # define LT_DLLAZY_OR_NOW 0
18063 /* When -fvisbility=hidden is used, assume the code has been annotated
18064 correspondingly for the symbols needed. */
18065 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18066 void fnord () __attribute__((visibility("default")));
18069 void fnord () { int i=42; }
18072 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18073 int status = $lt_dlunknown;
18077 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18080 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18081 else puts (dlerror ());
18083 /* dlclose (self); */
18091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18092 (eval $ac_link) 2>&5
18094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18095 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18096 (.
/conftest
; exit; ) >&5 2>/dev
/null
18098 case x
$lt_status in
18099 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18100 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18101 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18104 # compilation failed
18105 lt_cv_dlopen_self_static
=no
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18113 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18116 CPPFLAGS
="$save_CPPFLAGS"
18117 LDFLAGS
="$save_LDFLAGS"
18122 case $lt_cv_dlopen_self in
18123 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18124 *) enable_dlopen_self
=unknown
;;
18127 case $lt_cv_dlopen_self_static in
18128 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18129 *) enable_dlopen_self_static
=unknown
;;
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18152 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18153 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18154 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18155 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18157 $as_echo "yes" >&6; }
18159 # FIXME - insert some real tests, host_os isn't really good enough
18162 if test -n "$STRIP" ; then
18163 striplib
="$STRIP -x"
18164 old_striplib
="$STRIP -S"
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18166 $as_echo "yes" >&6; }
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18169 $as_echo "no" >&6; }
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174 $as_echo "no" >&6; }
18190 # Report which library types will actually be built
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18192 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18194 $as_echo "$can_build_shared" >&6; }
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18197 $as_echo_n "checking whether to build shared libraries... " >&6; }
18198 test "$can_build_shared" = "no" && enable_shared
=no
18200 # On AIX, shared libraries and static libraries use the same namespace, and
18201 # are all built from PIC.
18204 test "$enable_shared" = yes && enable_static
=no
18205 if test -n "$RANLIB"; then
18206 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18207 postinstall_cmds
='$RANLIB $lib'
18212 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18213 test "$enable_shared" = yes && enable_static
=no
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18218 $as_echo "$enable_shared" >&6; }
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18221 $as_echo_n "checking whether to build static libraries... " >&6; }
18222 # Make sure either enable_shared or enable_static is yes.
18223 test "$enable_shared" = yes || enable_static
=yes
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18225 $as_echo "$enable_static" >&6; }
18232 ac_cpp
='$CPP $CPPFLAGS'
18233 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18234 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18235 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18239 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18240 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18241 (test "X$CXX" != "Xg++"))) ; then
18243 ac_cpp
='$CXXCPP $CPPFLAGS'
18244 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18245 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18246 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18248 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18249 if test -z "$CXXCPP"; then
18250 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18251 $as_echo_n "(cached) " >&6
18253 # Double quotes because CXXCPP needs to be expanded
18254 for CXXCPP
in "$CXX -E" "/lib/cpp"
18256 ac_preproc_ok
=false
18257 for ac_cxx_preproc_warn_flag
in '' yes
18259 # Use a header file that comes with gcc, so configuring glibc
18260 # with a fresh cross-compiler works.
18261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18262 # <limits.h> exists even on freestanding compilers.
18263 # On the NeXT, cc -E runs the code through the compiler's parser,
18264 # not just through cpp. "Syntax error" is here to catch this case.
18265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18268 # include <limits.h>
18270 # include <assert.h>
18274 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18277 # Broken: fails on valid input.
18280 rm -f conftest.err conftest.
$ac_ext
18282 # OK, works on sane cases. Now check whether nonexistent headers
18283 # can be detected and how.
18284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18285 /* end confdefs.h. */
18286 #include <ac_nonexistent.h>
18288 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18289 # Broken: success on invalid input.
18292 # Passes both tests.
18296 rm -f conftest.err conftest.
$ac_ext
18299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18300 rm -f conftest.err conftest.
$ac_ext
18301 if $ac_preproc_ok; then :
18306 ac_cv_prog_CXXCPP
=$CXXCPP
18309 CXXCPP
=$ac_cv_prog_CXXCPP
18311 ac_cv_prog_CXXCPP
=$CXXCPP
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18314 $as_echo "$CXXCPP" >&6; }
18315 ac_preproc_ok
=false
18316 for ac_cxx_preproc_warn_flag
in '' yes
18318 # Use a header file that comes with gcc, so configuring glibc
18319 # with a fresh cross-compiler works.
18320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18321 # <limits.h> exists even on freestanding compilers.
18322 # On the NeXT, cc -E runs the code through the compiler's parser,
18323 # not just through cpp. "Syntax error" is here to catch this case.
18324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18327 # include <limits.h>
18329 # include <assert.h>
18333 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18336 # Broken: fails on valid input.
18339 rm -f conftest.err conftest.
$ac_ext
18341 # OK, works on sane cases. Now check whether nonexistent headers
18342 # can be detected and how.
18343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345 #include <ac_nonexistent.h>
18347 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18348 # Broken: success on invalid input.
18351 # Passes both tests.
18355 rm -f conftest.err conftest.
$ac_ext
18358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18359 rm -f conftest.err conftest.
$ac_ext
18360 if $ac_preproc_ok; then :
18363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18365 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18366 See \`config.log' for more details." "$LINENO" 5; }
18370 ac_cpp
='$CPP $CPPFLAGS'
18371 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18376 _lt_caught_CXX_error
=yes
18380 ac_cpp
='$CXXCPP $CPPFLAGS'
18381 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18385 archive_cmds_need_lc_CXX
=no
18386 allow_undefined_flag_CXX
=
18387 always_export_symbols_CXX
=no
18388 archive_expsym_cmds_CXX
=
18389 compiler_needs_object_CXX
=no
18390 export_dynamic_flag_spec_CXX
=
18391 hardcode_direct_CXX
=no
18392 hardcode_direct_absolute_CXX
=no
18393 hardcode_libdir_flag_spec_CXX
=
18394 hardcode_libdir_flag_spec_ld_CXX
=
18395 hardcode_libdir_separator_CXX
=
18396 hardcode_minus_L_CXX
=no
18397 hardcode_shlibpath_var_CXX
=unsupported
18398 hardcode_automatic_CXX
=no
18399 inherit_rpath_CXX
=no
18401 module_expsym_cmds_CXX
=
18402 link_all_deplibs_CXX
=unknown
18403 old_archive_cmds_CXX
=$old_archive_cmds
18404 reload_flag_CXX
=$reload_flag
18405 reload_cmds_CXX
=$reload_cmds
18406 no_undefined_flag_CXX
=
18407 whole_archive_flag_spec_CXX
=
18408 enable_shared_with_static_runtimes_CXX
=no
18410 # Source file extension for C++ test sources.
18413 # Object file extension for compiled C++ test sources.
18417 # No sense in running all these tests if we already determined that
18418 # the CXX compiler isn't working. Some variables (like enable_shared)
18419 # are currently assumed to apply to all compilers on this platform,
18420 # and will be corrupted by setting them based on a non-working compiler.
18421 if test "$_lt_caught_CXX_error" != yes; then
18422 # Code to be used in simple compile tests
18423 lt_simple_compile_test_code
="int some_variable = 0;"
18425 # Code to be used in simple link tests
18426 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18428 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18435 # If no C compiler was specified, use CC.
18438 # If no C compiler flags were specified, use CFLAGS.
18439 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18441 # Allow CC to be a program name with arguments.
18445 # save warnings/boilerplate of simple test code
18446 ac_outfile
=conftest.
$ac_objext
18447 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18448 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18449 _lt_compiler_boilerplate
=`cat conftest.err`
18452 ac_outfile
=conftest.
$ac_objext
18453 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18454 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18455 _lt_linker_boilerplate
=`cat conftest.err`
18459 # Allow CC to be a program name with arguments.
18464 lt_save_with_gnu_ld
=$with_gnu_ld
18465 lt_save_path_LD
=$lt_cv_path_LD
18466 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18467 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18469 $as_unset lt_cv_prog_gnu_ld
18471 if test -n "${lt_cv_path_LDCXX+set}"; then
18472 lt_cv_path_LD
=$lt_cv_path_LDCXX
18474 $as_unset lt_cv_path_LD
18476 test -z "${LDCXX+set}" || LD
=$LDCXX
18480 for cc_temp
in $compiler""; do
18482 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18483 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18488 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18491 if test -n "$compiler"; then
18492 # We don't want -fno-exception when compiling C++ code, so set the
18493 # no_builtin_flag separately
18494 if test "$GXX" = yes; then
18495 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18497 lt_prog_compiler_no_builtin_flag_CXX
=
18500 if test "$GXX" = yes; then
18501 # Set up default GNU C++ configuration
18505 # Check whether --with-gnu-ld was given.
18506 if test "${with_gnu_ld+set}" = set; then :
18507 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18513 if test "$GCC" = yes; then
18514 # Check if gcc -print-prog-name=ld gives a path.
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18516 $as_echo_n "checking for ld used by $CC... " >&6; }
18519 # gcc leaves a trailing carriage return which upsets mingw
18520 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18522 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18525 # Accept absolute paths.
18527 re_direlt
='/[^/][^/]*/\.\./'
18528 # Canonicalize the pathname of ld
18529 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18530 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18531 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18533 test -z "$LD" && LD
="$ac_prog"
18536 # If it fails, then pretend we aren't using GCC.
18540 # If it is relative, then search for the first ld in PATH.
18541 with_gnu_ld
=unknown
18544 elif test "$with_gnu_ld" = yes; then
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18546 $as_echo_n "checking for GNU ld... " >&6; }
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18549 $as_echo_n "checking for non-GNU ld... " >&6; }
18551 if test "${lt_cv_path_LD+set}" = set; then :
18552 $as_echo_n "(cached) " >&6
18554 if test -z "$LD"; then
18555 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18556 for ac_dir
in $PATH; do
18558 test -z "$ac_dir" && ac_dir
=.
18559 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18560 lt_cv_path_LD
="$ac_dir/$ac_prog"
18561 # Check to see if the program is GNU ld. I'd rather use --version,
18562 # but apparently some variants of GNU ld only accept -v.
18563 # Break only if it was the GNU/non-GNU ld that we prefer.
18564 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18565 *GNU
* |
*'with BFD'*)
18566 test "$with_gnu_ld" != no
&& break
18569 test "$with_gnu_ld" != yes && break
18576 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18580 LD
="$lt_cv_path_LD"
18581 if test -n "$LD"; then
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18583 $as_echo "$LD" >&6; }
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18586 $as_echo "no" >&6; }
18588 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18590 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18591 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18592 $as_echo_n "(cached) " >&6
18594 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18595 case `$LD -v 2>&1 </dev/null` in
18596 *GNU
* |
*'with BFD'*)
18597 lt_cv_prog_gnu_ld
=yes
18600 lt_cv_prog_gnu_ld
=no
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18605 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18606 with_gnu_ld
=$lt_cv_prog_gnu_ld
18614 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18615 # archiving commands below assume that GNU ld is being used.
18616 if test "$with_gnu_ld" = yes; then
18617 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618 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'
18620 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18621 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18623 # If archive_cmds runs LD, not CC, wlarc should be empty
18624 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18625 # investigate it a little bit more. (MM)
18628 # ancient GNU ld didn't support --whole-archive et. al.
18629 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18630 $GREP 'no-whole-archive' > /dev
/null
; then
18631 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18633 whole_archive_flag_spec_CXX
=
18639 # A generic and very simple default shared library creation
18640 # command for GNU C++ for the case where it uses the native
18641 # linker, instead of GNU ld. If possible, this setting should
18642 # overridden to take advantage of the native linker features on
18643 # the platform it is being used on.
18644 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18647 # Commands to make compiler produce verbose output that lists
18648 # what "hidden" libraries, object files and flags are used when
18649 # linking a shared library.
18650 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18658 # PORTME: fill in a description of your system's C++ link characteristics
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18660 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18664 # FIXME: insert proper C++ library support
18668 if test "$host_cpu" = ia64
; then
18669 # On IA64, the linker does run time linking by default, so we don't
18670 # have to do anything special.
18671 aix_use_runtimelinking
=no
18672 exp_sym_flag
='-Bexport'
18675 aix_use_runtimelinking
=no
18677 # Test if we are trying to use run time linking or normal
18678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18679 # need to do runtime linking.
18680 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18681 for ld_flag
in $LDFLAGS; do
18684 aix_use_runtimelinking
=yes
18692 exp_sym_flag
='-bexport'
18693 no_entry_flag
='-bnoentry'
18696 # When large executables or shared objects are built, AIX ld can
18697 # have problems creating the table of contents. If linking a library
18698 # or program results in "error TOC overflow" add -mminimal-toc to
18699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18702 archive_cmds_CXX
=''
18703 hardcode_direct_CXX
=yes
18704 hardcode_direct_absolute_CXX
=yes
18705 hardcode_libdir_separator_CXX
=':'
18706 link_all_deplibs_CXX
=yes
18707 file_list_spec_CXX
='${wl}-f,'
18709 if test "$GXX" = yes; then
18710 case $host_os in aix4.
[012]|aix4.
[012].
*)
18711 # We only want to do this on AIX 4.2 and lower, the check
18712 # below for broken collect2 doesn't work under 4.3+
18713 collect2name
=`${CC} -print-prog-name=collect2`
18714 if test -f "$collect2name" &&
18715 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18717 # We have reworked collect2
18720 # We have old collect2
18721 hardcode_direct_CXX
=unsupported
18722 # It fails to find uninstalled libraries when the uninstalled
18723 # path is not listed in the libpath. Setting hardcode_minus_L
18724 # to unsupported forces relinking
18725 hardcode_minus_L_CXX
=yes
18726 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18727 hardcode_libdir_separator_CXX
=
18730 shared_flag
='-shared'
18731 if test "$aix_use_runtimelinking" = yes; then
18732 shared_flag
="$shared_flag "'${wl}-G'
18736 if test "$host_cpu" = ia64
; then
18737 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18738 # chokes on -Wl,-G. The following line is correct:
18741 if test "$aix_use_runtimelinking" = yes; then
18742 shared_flag
='${wl}-G'
18744 shared_flag
='${wl}-bM:SRE'
18749 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18750 # It seems that -bexpall does not export symbols beginning with
18751 # underscore (_), so it is better to generate a list of symbols to
18753 always_export_symbols_CXX
=yes
18754 if test "$aix_use_runtimelinking" = yes; then
18755 # Warning - without using the other runtime loading flags (-brtl),
18756 # -berok will link without error, but may produce a broken library.
18757 allow_undefined_flag_CXX
='-berok'
18758 # Determine the default libpath from the value encoded in an empty
18760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18771 if ac_fn_cxx_try_link
"$LINENO"; then :
18773 lt_aix_libpath_sed
='
18774 /Import File Strings/,/^$/ {
18780 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18781 # Check for a 64-bit object if we didn't find anything.
18782 if test -z "$aix_libpath"; then
18783 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18786 rm -f core conftest.err conftest.
$ac_objext \
18787 conftest
$ac_exeext conftest.
$ac_ext
18788 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18790 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18792 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"
18794 if test "$host_cpu" = ia64
; then
18795 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18796 allow_undefined_flag_CXX
="-z nodefs"
18797 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"
18799 # Determine the default libpath from the value encoded in an
18800 # empty executable.
18801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h. */
18812 if ac_fn_cxx_try_link
"$LINENO"; then :
18814 lt_aix_libpath_sed
='
18815 /Import File Strings/,/^$/ {
18821 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18822 # Check for a 64-bit object if we didn't find anything.
18823 if test -z "$aix_libpath"; then
18824 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18827 rm -f core conftest.err conftest.
$ac_objext \
18828 conftest
$ac_exeext conftest.
$ac_ext
18829 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18831 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18832 # Warning - without using the other run time loading flags,
18833 # -berok will link without error, but may produce a broken library.
18834 no_undefined_flag_CXX
=' ${wl}-bernotok'
18835 allow_undefined_flag_CXX
=' ${wl}-berok'
18836 if test "$with_gnu_ld" = yes; then
18837 # We only use this code for GNU lds that support --whole-archive.
18838 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18840 # Exported symbols can be pulled into shared objects from archives
18841 whole_archive_flag_spec_CXX
='$convenience'
18843 archive_cmds_need_lc_CXX
=yes
18844 # This is similar to how AIX traditionally builds its shared
18846 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'
18852 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18853 allow_undefined_flag_CXX
=unsupported
18854 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18855 # support --undefined. This deserves some investigation. FIXME
18856 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18863 case $cc_basename in
18865 # FIXME: insert proper C++ library support
18871 cygwin
* | mingw
* | pw32
* | cegcc
*)
18872 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18873 # as there is no search path for DLLs.
18874 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18875 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18876 allow_undefined_flag_CXX
=unsupported
18877 always_export_symbols_CXX
=no
18878 enable_shared_with_static_runtimes_CXX
=yes
18880 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18881 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'
18882 # If the export-symbols file already is a .def file (1st line
18883 # is EXPORTS), use it as is; otherwise, prepend...
18884 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18885 cp $export_symbols $output_objdir/$soname.def;
18887 echo EXPORTS > $output_objdir/$soname.def;
18888 cat $export_symbols >> $output_objdir/$soname.def;
18890 $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'
18895 darwin
* | rhapsody
*)
18898 archive_cmds_need_lc_CXX
=no
18899 hardcode_direct_CXX
=no
18900 hardcode_automatic_CXX
=yes
18901 hardcode_shlibpath_var_CXX
=unsupported
18902 if test "$lt_cv_ld_force_load" = "yes"; then
18903 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\"`'
18905 whole_archive_flag_spec_CXX
=''
18907 link_all_deplibs_CXX
=yes
18908 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18909 case $cc_basename in
18910 ifort
*) _lt_dar_can_shared
=yes ;;
18911 *) _lt_dar_can_shared
=$GCC ;;
18913 if test "$_lt_dar_can_shared" = "yes"; then
18914 output_verbose_link_cmd
=func_echo_all
18915 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}"
18916 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18917 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}"
18918 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}"
18919 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18920 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}"
18921 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}"
18931 case $cc_basename in
18933 # FIXME: insert proper C++ library support
18937 # Green Hills C++ Compiler
18938 # FIXME: insert proper C++ library support
18942 # FIXME: insert proper C++ library support
18949 # C++ shared libraries reported to be fairly broken before
18955 archive_cmds_need_lc_CXX
=no
18958 freebsd
* | dragonfly
*)
18959 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18968 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18969 link_all_deplibs_CXX
=yes
18973 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18974 hardcode_libdir_separator_CXX
=:
18975 export_dynamic_flag_spec_CXX
='${wl}-E'
18976 hardcode_direct_CXX
=yes
18977 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18978 # but as the default
18979 # location of the library.
18981 case $cc_basename in
18983 # FIXME: insert proper C++ library support
18987 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'
18988 # Commands to make compiler produce verbose output that lists
18989 # what "hidden" libraries, object files and flags are used when
18990 # linking a shared library.
18992 # There doesn't appear to be a way to prevent this compiler from
18993 # explicitly linking system object files so we need to strip them
18994 # from the output so that they don't get included in the library
18996 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"'
18999 if test "$GXX" = yes; then
19000 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'
19002 # FIXME: insert proper C++ library support
19010 if test $with_gnu_ld = no
; then
19011 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19012 hardcode_libdir_separator_CXX
=:
19018 export_dynamic_flag_spec_CXX
='${wl}-E'
19024 hardcode_direct_CXX
=no
19025 hardcode_shlibpath_var_CXX
=no
19028 hardcode_direct_CXX
=yes
19029 hardcode_direct_absolute_CXX
=yes
19030 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19031 # but as the default
19032 # location of the library.
19036 case $cc_basename in
19038 # FIXME: insert proper C++ library support
19044 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19047 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19050 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19053 # Commands to make compiler produce verbose output that lists
19054 # what "hidden" libraries, object files and flags are used when
19055 # linking a shared library.
19057 # There doesn't appear to be a way to prevent this compiler from
19058 # explicitly linking system object files so we need to strip them
19059 # from the output so that they don't get included in the library
19061 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"'
19064 if test "$GXX" = yes; then
19065 if test $with_gnu_ld = no
; then
19068 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19071 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074 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'
19079 # FIXME: insert proper C++ library support
19087 hardcode_direct_CXX
=no
19088 hardcode_shlibpath_var_CXX
=no
19089 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19090 export_dynamic_flag_spec_CXX
='${wl}-E'
19091 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19092 # Instead, shared libraries are loaded at an image base (0x10000000 by
19093 # default) and relocated if they conflict, which is a slow very memory
19094 # consuming and fragmenting process. To avoid this, we pick a random,
19095 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19096 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19097 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'
19098 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'
19101 case $cc_basename in
19104 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'
19106 # Archives containing C++ object files must be created using
19107 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19108 # necessary to make sure instantiated templates are included
19110 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19113 if test "$GXX" = yes; then
19114 if test "$with_gnu_ld" = no
; then
19115 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'
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"` -o $lib'
19120 link_all_deplibs_CXX
=yes
19123 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19124 hardcode_libdir_separator_CXX
=:
19125 inherit_rpath_CXX
=yes
19128 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19129 case $cc_basename in
19131 # Kuck and Associates, Inc. (KAI) C++ Compiler
19133 # KCC will only create a shared library if the output file
19134 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19135 # to its proper name (with version) after linking.
19136 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'
19137 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'
19138 # Commands to make compiler produce verbose output that lists
19139 # what "hidden" libraries, object files and flags are used when
19140 # linking a shared library.
19142 # There doesn't appear to be a way to prevent this compiler from
19143 # explicitly linking system object files so we need to strip them
19144 # from the output so that they don't get included in the library
19146 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"'
19148 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19149 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19151 # Archives containing C++ object files must be created using
19152 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19153 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19158 # version 8.0 and above of icpc choke on multiply defined symbols
19159 # if we add $predep_objects and $postdep_objects, however 7.1 and
19160 # earlier do not add the objects themselves.
19161 case `$CC -V 2>&1` in
19163 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164 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'
19166 *) # Version 8.0 or newer
19169 ia64
*) tmp_idyn
=' -i_dynamic';;
19171 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172 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'
19175 archive_cmds_need_lc_CXX
=no
19176 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19177 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19178 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19181 # Portland Group C++ compiler
19183 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19184 prelink_cmds_CXX
='tpldir=Template.dir~
19186 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19187 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19188 old_archive_cmds_CXX
='tpldir=Template.dir~
19190 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19191 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19193 archive_cmds_CXX
='tpldir=Template.dir~
19195 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19196 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19197 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19199 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19200 $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'
19202 *) # Version 6 and above use weak symbols
19203 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19204 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'
19208 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19209 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19210 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'
19214 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19215 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'
19217 runpath_var
=LD_RUN_PATH
19218 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19219 hardcode_libdir_separator_CXX
=:
19221 # Commands to make compiler produce verbose output that lists
19222 # what "hidden" libraries, object files and flags are used when
19223 # linking a shared library.
19225 # There doesn't appear to be a way to prevent this compiler from
19226 # explicitly linking system object files so we need to strip them
19227 # from the output so that they don't get included in the library
19229 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'
19231 xl
* | mpixl
* | bgxl
*)
19232 # IBM XL 8.0 on PPC, with GNU ld
19233 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19234 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19235 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236 if test "x$supports_anon_versioning" = xyes
; then
19237 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19239 echo "local: *; };" >> $output_objdir/$libname.ver~
19240 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19244 case `$CC -V 2>&1 | sed 5q` in
19247 no_undefined_flag_CXX
=' -zdefs'
19248 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19249 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'
19250 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19251 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'
19252 compiler_needs_object_CXX
=yes
19254 # Not sure whether something based on
19255 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19257 output_verbose_link_cmd
='func_echo_all'
19259 # Archives containing C++ object files must be created using
19260 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19261 # necessary to make sure instantiated templates are included
19263 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19271 # FIXME: insert proper C++ library support
19276 # FIXME: insert proper C++ library support
19281 case $cc_basename in
19283 # FIXME: insert proper C++ library support
19287 # FIXME: insert proper C++ library support
19294 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19295 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19297 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19298 hardcode_direct_CXX
=yes
19299 hardcode_shlibpath_var_CXX
=no
19301 # Workaround some broken pre-1.5 toolchains
19302 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19310 # C++ shared libraries are fairly broken
19315 if test -f /usr
/libexec
/ld.so
; then
19316 hardcode_direct_CXX
=yes
19317 hardcode_shlibpath_var_CXX
=no
19318 hardcode_direct_absolute_CXX
=yes
19319 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19320 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19322 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19323 export_dynamic_flag_spec_CXX
='${wl}-E'
19324 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19326 output_verbose_link_cmd
=func_echo_all
19332 osf3
* | osf4
* | osf5
*)
19333 case $cc_basename in
19335 # Kuck and Associates, Inc. (KAI) C++ Compiler
19337 # KCC will only create a shared library if the output file
19338 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19339 # to its proper name (with version) after linking.
19340 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'
19342 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19343 hardcode_libdir_separator_CXX
=:
19345 # Archives containing C++ object files must be created using
19346 # the KAI C++ compiler.
19348 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19349 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19353 # Rational C++ 2.4.1
19354 # FIXME: insert proper C++ library support
19360 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19361 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'
19362 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19365 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19366 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'
19367 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19368 echo "-hidden">> $lib.exp~
19369 $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~
19371 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19375 hardcode_libdir_separator_CXX
=:
19377 # Commands to make compiler produce verbose output that lists
19378 # what "hidden" libraries, object files and flags are used when
19379 # linking a shared library.
19381 # There doesn't appear to be a way to prevent this compiler from
19382 # explicitly linking system object files so we need to strip them
19383 # from the output so that they don't get included in the library
19385 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"'
19388 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19389 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19392 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'
19395 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'
19399 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19400 hardcode_libdir_separator_CXX
=:
19402 # Commands to make compiler produce verbose output that lists
19403 # what "hidden" libraries, object files and flags are used when
19404 # linking a shared library.
19405 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19408 # FIXME: insert proper C++ library support
19416 # FIXME: insert proper C++ library support
19421 case $cc_basename in
19424 # FIXME: insert proper C++ library support
19429 # FIXME: insert proper C++ library support
19433 # FIXME: insert proper C++ library support
19440 case $cc_basename in
19442 # Sun C++ 4.2, 5.x and Centerline C++
19443 archive_cmds_need_lc_CXX
=yes
19444 no_undefined_flag_CXX
=' -zdefs'
19445 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19446 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19447 $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'
19449 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19450 hardcode_shlibpath_var_CXX
=no
19452 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19454 # The compiler driver will combine and reorder linker options,
19455 # but understands `-z linker_flag'.
19456 # Supported since Solaris 2.6 (maybe 2.5.1?)
19457 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19460 link_all_deplibs_CXX
=yes
19462 output_verbose_link_cmd
='func_echo_all'
19464 # Archives containing C++ object files must be created using
19465 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19466 # necessary to make sure instantiated templates are included
19468 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19471 # Green Hills C++ Compiler
19472 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19474 # The C++ compiler must be used to create the archive.
19475 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19478 # GNU C++ compiler with Solaris linker
19479 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19480 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19481 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19482 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19483 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19484 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19486 # Commands to make compiler produce verbose output that lists
19487 # what "hidden" libraries, object files and flags are used when
19488 # linking a shared library.
19489 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19491 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19493 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19494 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19495 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19497 # Commands to make compiler produce verbose output that lists
19498 # what "hidden" libraries, object files and flags are used when
19499 # linking a shared library.
19500 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19503 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19505 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19507 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19515 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19516 no_undefined_flag_CXX
='${wl}-z,text'
19517 archive_cmds_need_lc_CXX
=no
19518 hardcode_shlibpath_var_CXX
=no
19519 runpath_var
='LD_RUN_PATH'
19521 case $cc_basename in
19523 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19524 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19527 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19528 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19533 sysv5
* | sco3.2v5
* | sco5v6
*)
19534 # Note: We can NOT use -z defs as we might desire, because we do not
19535 # link with -lc, and that would cause any symbols used from libc to
19536 # always be unresolved, which means just about no library would
19537 # ever link correctly. If we're not using GNU ld we use -z text
19538 # though, which does catch some bad symbols but isn't as heavy-handed
19540 no_undefined_flag_CXX
='${wl}-z,text'
19541 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19542 archive_cmds_need_lc_CXX
=no
19543 hardcode_shlibpath_var_CXX
=no
19544 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19545 hardcode_libdir_separator_CXX
=':'
19546 link_all_deplibs_CXX
=yes
19547 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19548 runpath_var
='LD_RUN_PATH'
19550 case $cc_basename in
19552 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19553 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19554 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19555 '"$old_archive_cmds_CXX"
19556 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19557 '"$reload_cmds_CXX"
19560 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19567 case $cc_basename in
19569 # NonStop-UX NCC 3.20
19570 # FIXME: insert proper C++ library support
19574 # FIXME: insert proper C++ library support
19581 # FIXME: insert proper C++ library support
19586 # FIXME: insert proper C++ library support
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19592 $as_echo "$ld_shlibs_CXX" >&6; }
19593 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19599 ## There is no encapsulation within the following macros, do not change
19600 ## the running order or otherwise move them around unless you know exactly
19601 ## what you are doing...
19602 # Dependencies to place before and after the object being linked:
19603 predep_objects_CXX
=
19604 postdep_objects_CXX
=
19607 compiler_lib_search_path_CXX
=
19609 cat > conftest.
$ac_ext <<_LT_EOF
19613 Foo (void) { a = 0; }
19619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19620 (eval $ac_compile) 2>&5
19622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19623 test $ac_status = 0; }; then
19624 # Parse the compiler output and extract the necessary
19625 # objects, libraries and library flags.
19627 # Sentinel used to keep track of whether or not we are before
19628 # the conftest object file.
19629 pre_test_object_deps_done
=no
19631 for p
in `eval "$output_verbose_link_cmd"`; do
19635 # Some compilers place space between "-{L,R}" and the path.
19636 # Remove the space.
19637 if test $p = "-L" ||
19638 test $p = "-R"; then
19645 if test "$pre_test_object_deps_done" = no
; then
19648 # Internal compiler library paths should come after those
19649 # provided the user. The postdeps already come after the
19650 # user supplied libs so there is no need to process them.
19651 if test -z "$compiler_lib_search_path_CXX"; then
19652 compiler_lib_search_path_CXX
="${prev}${p}"
19654 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19657 # The "-l" case would never come before the object being
19658 # linked, so don't bother handling this case.
19661 if test -z "$postdeps_CXX"; then
19662 postdeps_CXX
="${prev}${p}"
19664 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19670 # This assumes that the test object file only shows up
19671 # once in the compiler output.
19672 if test "$p" = "conftest.$objext"; then
19673 pre_test_object_deps_done
=yes
19677 if test "$pre_test_object_deps_done" = no
; then
19678 if test -z "$predep_objects_CXX"; then
19679 predep_objects_CXX
="$p"
19681 predep_objects_CXX
="$predep_objects_CXX $p"
19684 if test -z "$postdep_objects_CXX"; then
19685 postdep_objects_CXX
="$p"
19687 postdep_objects_CXX
="$postdep_objects_CXX $p"
19692 *) ;; # Ignore the rest.
19700 echo "libtool.m4: error: problem compiling CXX test program"
19703 $RM -f confest.
$objext
19705 # PORTME: override above test on systems where it is broken
19708 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19709 # hack all around it, let's just trust "g++" to DTRT.
19710 predep_objects_CXX
=
19711 postdep_objects_CXX
=
19716 case `$CC -V 2>&1 | sed 5q` in
19720 # The more standards-conforming stlport4 library is
19721 # incompatible with the Cstd library. Avoid specifying
19722 # it if it's in CXXFLAGS. Ignore libCrun as
19723 # -library=stlport4 depends on it.
19724 case " $CXX $CXXFLAGS " in
19725 *" -library=stlport4 "*)
19726 solaris_use_stlport4
=yes
19730 if test "$solaris_use_stlport4" != yes; then
19731 postdeps_CXX
='-library=Cstd -library=Crun'
19738 case $cc_basename in
19740 # The more standards-conforming stlport4 library is
19741 # incompatible with the Cstd library. Avoid specifying
19742 # it if it's in CXXFLAGS. Ignore libCrun as
19743 # -library=stlport4 depends on it.
19744 case " $CXX $CXXFLAGS " in
19745 *" -library=stlport4 "*)
19746 solaris_use_stlport4
=yes
19750 # Adding this requires a known-good setup of shared libraries for
19751 # Sun compiler versions before 5.6, else PIC objects from an old
19752 # archive will be linked into the output, leading to subtle bugs.
19753 if test "$solaris_use_stlport4" != yes; then
19754 postdeps_CXX
='-library=Cstd -library=Crun'
19762 case " $postdeps_CXX " in
19763 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19765 compiler_lib_search_dirs_CXX
=
19766 if test -n "${compiler_lib_search_path_CXX}"; then
19767 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19800 lt_prog_compiler_wl_CXX
=
19801 lt_prog_compiler_pic_CXX
=
19802 lt_prog_compiler_static_CXX
=
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19805 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19807 # C++ specific cases for pic, static, wl, etc.
19808 if test "$GXX" = yes; then
19809 lt_prog_compiler_wl_CXX
='-Wl,'
19810 lt_prog_compiler_static_CXX
='-static'
19814 # All AIX code is PIC.
19815 if test "$host_cpu" = ia64
; then
19816 # AIX 5 now supports IA64 processor
19817 lt_prog_compiler_static_CXX
='-Bstatic'
19824 # see comment about AmigaOS4 .so support
19825 lt_prog_compiler_pic_CXX
='-fPIC'
19828 # FIXME: we need at least 68020 code to build shared libraries, but
19829 # adding the `-m68020' flag to GCC prevents building anything better,
19831 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19836 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19837 # PIC is the default for these OSes.
19839 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19840 # This hack is so that the source file can tell whether it is being
19841 # built for inclusion in a dll (and should export symbols for example).
19842 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19843 # (--disable-auto-import) libraries
19844 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19846 darwin
* | rhapsody
*)
19847 # PIC is the default on this platform
19848 # Common symbols not allowed in MH_DYLIB files
19849 lt_prog_compiler_pic_CXX
='-fno-common'
19852 # DJGPP does not support shared libraries at all
19853 lt_prog_compiler_pic_CXX
=
19856 # PIC is the default for Haiku.
19857 # The "-static" flag exists, but is broken.
19858 lt_prog_compiler_static_CXX
=
19861 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19862 # Instead, we relocate shared libraries at runtime.
19865 if test -d /usr
/nec
; then
19866 lt_prog_compiler_pic_CXX
=-Kconform_pic
19870 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19871 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19872 # sets the default TLS model and affects inlining.
19877 lt_prog_compiler_pic_CXX
='-fPIC'
19882 # QNX uses GNU C++, but need to define -shared option too, otherwise
19883 # it will coredump.
19884 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19887 lt_prog_compiler_pic_CXX
='-fPIC'
19893 # All AIX code is PIC.
19894 if test "$host_cpu" = ia64
; then
19895 # AIX 5 now supports IA64 processor
19896 lt_prog_compiler_static_CXX
='-Bstatic'
19898 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19902 case $cc_basename in
19904 # Green Hills C++ Compiler
19905 # _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"
19910 case $cc_basename in
19912 lt_prog_compiler_pic_CXX
='-KPIC'
19915 # Green Hills C++ Compiler
19916 lt_prog_compiler_pic_CXX
='-pic'
19922 freebsd
* | dragonfly
*)
19923 # FreeBSD uses GNU C++
19925 hpux9
* | hpux10
* | hpux11
*)
19926 case $cc_basename in
19928 lt_prog_compiler_wl_CXX
='-Wl,'
19929 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19930 if test "$host_cpu" != ia64
; then
19931 lt_prog_compiler_pic_CXX
='+Z'
19935 lt_prog_compiler_wl_CXX
='-Wl,'
19936 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19942 lt_prog_compiler_pic_CXX
='+Z'
19951 # This is c89, which is MS Visual C++ (no shared libs)
19952 # Anyone wants to do a port?
19954 irix5
* | irix6
* | nonstopux
*)
19955 case $cc_basename in
19957 lt_prog_compiler_wl_CXX
='-Wl,'
19958 lt_prog_compiler_static_CXX
='-non_shared'
19959 # CC pic flag -KPIC is the default.
19965 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19966 case $cc_basename in
19969 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19970 lt_prog_compiler_pic_CXX
='-fPIC'
19973 # old Intel C++ for x86_64 which still supported -KPIC.
19974 lt_prog_compiler_wl_CXX
='-Wl,'
19975 lt_prog_compiler_pic_CXX
='-KPIC'
19976 lt_prog_compiler_static_CXX
='-static'
19979 # Intel C++, used to be incompatible with GCC.
19980 # ICC 10 doesn't accept -KPIC any more.
19981 lt_prog_compiler_wl_CXX
='-Wl,'
19982 lt_prog_compiler_pic_CXX
='-fPIC'
19983 lt_prog_compiler_static_CXX
='-static'
19986 # Portland Group C++ compiler
19987 lt_prog_compiler_wl_CXX
='-Wl,'
19988 lt_prog_compiler_pic_CXX
='-fpic'
19989 lt_prog_compiler_static_CXX
='-Bstatic'
19993 # Make sure the PIC flag is empty. It appears that all Alpha
19994 # Linux and Compaq Tru64 Unix objects are PIC.
19995 lt_prog_compiler_pic_CXX
=
19996 lt_prog_compiler_static_CXX
='-non_shared'
19998 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19999 # IBM XL 8.0, 9.0 on PPC and BlueGene
20000 lt_prog_compiler_wl_CXX
='-Wl,'
20001 lt_prog_compiler_pic_CXX
='-qpic'
20002 lt_prog_compiler_static_CXX
='-qstaticlink'
20005 case `$CC -V 2>&1 | sed 5q` in
20008 lt_prog_compiler_pic_CXX
='-KPIC'
20009 lt_prog_compiler_static_CXX
='-Bstatic'
20010 lt_prog_compiler_wl_CXX
='-Qoption ld '
20021 case $cc_basename in
20023 lt_prog_compiler_pic_CXX
='-W c,exportall'
20032 # QNX uses GNU C++, but need to define -shared option too, otherwise
20033 # it will coredump.
20034 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20036 osf3
* | osf4
* | osf5
*)
20037 case $cc_basename in
20039 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20042 # Rational C++ 2.4.1
20043 lt_prog_compiler_pic_CXX
='-pic'
20046 # Digital/Compaq C++
20047 lt_prog_compiler_wl_CXX
='-Wl,'
20048 # Make sure the PIC flag is empty. It appears that all Alpha
20049 # Linux and Compaq Tru64 Unix objects are PIC.
20050 lt_prog_compiler_pic_CXX
=
20051 lt_prog_compiler_static_CXX
='-non_shared'
20060 case $cc_basename in
20062 # Sun C++ 4.2, 5.x and Centerline C++
20063 lt_prog_compiler_pic_CXX
='-KPIC'
20064 lt_prog_compiler_static_CXX
='-Bstatic'
20065 lt_prog_compiler_wl_CXX
='-Qoption ld '
20068 # Green Hills C++ Compiler
20069 lt_prog_compiler_pic_CXX
='-PIC'
20076 case $cc_basename in
20079 lt_prog_compiler_pic_CXX
='-pic'
20080 lt_prog_compiler_static_CXX
='-Bstatic'
20084 lt_prog_compiler_pic_CXX
='-pic'
20090 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20091 case $cc_basename in
20093 lt_prog_compiler_wl_CXX
='-Wl,'
20094 lt_prog_compiler_pic_CXX
='-KPIC'
20095 lt_prog_compiler_static_CXX
='-Bstatic'
20100 case $cc_basename in
20102 # NonStop-UX NCC 3.20
20103 lt_prog_compiler_pic_CXX
='-KPIC'
20112 lt_prog_compiler_can_build_shared_CXX
=no
20118 # For platforms which do not support PIC, -DPIC is meaningless:
20120 lt_prog_compiler_pic_CXX
=
20123 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20127 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20132 # Check to make sure the PIC flag actually works.
20134 if test -n "$lt_prog_compiler_pic_CXX"; then
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20136 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20137 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20138 $as_echo_n "(cached) " >&6
20140 lt_cv_prog_compiler_pic_works_CXX
=no
20141 ac_outfile
=conftest.
$ac_objext
20142 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20143 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20144 # Insert the option either (1) after the last *FLAGS variable, or
20145 # (2) before a word containing "conftest.", or (3) at the end.
20146 # Note that $ac_compile itself does not contain backslashes and begins
20147 # with a dollar sign (not a hyphen), so the echo should work correctly.
20148 # The option is referenced via a variable to avoid confusing sed.
20149 lt_compile
=`echo "$ac_compile" | $SED \
20150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20152 -e 's:$: $lt_compiler_flag:'`
20153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20154 (eval "$lt_compile" 2>conftest.err
)
20156 cat conftest.err
>&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 if (exit $ac_status) && test -s "$ac_outfile"; then
20159 # The compiler can only warn and ignore the option if not recognized
20160 # So say no if there are warnings other than the usual output.
20161 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20162 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20163 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20164 lt_cv_prog_compiler_pic_works_CXX
=yes
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20171 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20173 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20174 case $lt_prog_compiler_pic_CXX in
20176 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20179 lt_prog_compiler_pic_CXX
=
20180 lt_prog_compiler_can_build_shared_CXX
=no
20188 # Check to make sure the static flag actually works.
20190 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20192 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20193 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20194 $as_echo_n "(cached) " >&6
20196 lt_cv_prog_compiler_static_works_CXX
=no
20197 save_LDFLAGS
="$LDFLAGS"
20198 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20199 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20200 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20201 # The linker can only warn and ignore the option if not recognized
20202 # So say no if there are warnings
20203 if test -s conftest.err
; then
20204 # Append any errors to the config.log.
20205 cat conftest.err
1>&5
20206 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20207 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20208 if diff conftest.exp conftest.er2
>/dev
/null
; then
20209 lt_cv_prog_compiler_static_works_CXX
=yes
20212 lt_cv_prog_compiler_static_works_CXX
=yes
20216 LDFLAGS
="$save_LDFLAGS"
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20220 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20222 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20225 lt_prog_compiler_static_CXX
=
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20232 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20233 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20234 $as_echo_n "(cached) " >&6
20236 lt_cv_prog_compiler_c_o_CXX
=no
20237 $RM -r conftest
2>/dev
/null
20241 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20243 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20244 # Insert the option either (1) after the last *FLAGS variable, or
20245 # (2) before a word containing "conftest.", or (3) at the end.
20246 # Note that $ac_compile itself does not contain backslashes and begins
20247 # with a dollar sign (not a hyphen), so the echo should work correctly.
20248 lt_compile
=`echo "$ac_compile" | $SED \
20249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20251 -e 's:$: $lt_compiler_flag:'`
20252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20253 (eval "$lt_compile" 2>out
/conftest.err
)
20255 cat out
/conftest.err
>&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20259 # The compiler can only warn and ignore the option if not recognized
20260 # So say no if there are warnings
20261 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20262 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20263 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20264 lt_cv_prog_compiler_c_o_CXX
=yes
20269 # SGI C++ compiler will create directory out/ii_files/ for
20270 # template instantiation
20271 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20272 $RM out
/* && rmdir out
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20279 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20285 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20286 $as_echo_n "(cached) " >&6
20288 lt_cv_prog_compiler_c_o_CXX
=no
20289 $RM -r conftest
2>/dev
/null
20293 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20295 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20296 # Insert the option either (1) after the last *FLAGS variable, or
20297 # (2) before a word containing "conftest.", or (3) at the end.
20298 # Note that $ac_compile itself does not contain backslashes and begins
20299 # with a dollar sign (not a hyphen), so the echo should work correctly.
20300 lt_compile
=`echo "$ac_compile" | $SED \
20301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20303 -e 's:$: $lt_compiler_flag:'`
20304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20305 (eval "$lt_compile" 2>out
/conftest.err
)
20307 cat out
/conftest.err
>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20311 # The compiler can only warn and ignore the option if not recognized
20312 # So say no if there are warnings
20313 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20314 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20315 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20316 lt_cv_prog_compiler_c_o_CXX
=yes
20321 # SGI C++ compiler will create directory out/ii_files/ for
20322 # template instantiation
20323 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20324 $RM out
/* && rmdir out
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20331 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20336 hard_links
="nottested"
20337 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20338 # do not overwrite the value of need_locks provided by the user
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20340 $as_echo_n "checking if we can lock with hard links... " >&6; }
20343 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20345 ln conftest.a conftest.b
2>&5 || hard_links
=no
20346 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20348 $as_echo "$hard_links" >&6; }
20349 if test "$hard_links" = no
; then
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20351 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20361 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20363 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20366 # If we're using GNU nm, then we don't want the "-C" option.
20367 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20368 # Also, AIX nm treats weak defined symbols like other global defined
20369 # symbols, whereas GNU nm marks them as "W".
20370 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20371 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'
20373 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'
20377 export_symbols_cmds_CXX
="$ltdll_cmds"
20379 cygwin
* | mingw
* | cegcc
*)
20380 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'
20383 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20386 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20389 $as_echo "$ld_shlibs_CXX" >&6; }
20390 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20392 with_gnu_ld_CXX
=$with_gnu_ld
20400 # Do we need to explicitly link libc?
20402 case "x$archive_cmds_need_lc_CXX" in
20404 # Assume -lc should be added
20405 archive_cmds_need_lc_CXX
=yes
20407 if test "$enable_shared" = yes && test "$GCC" = yes; then
20408 case $archive_cmds_CXX in
20410 # FIXME: we may have to deal with multi-command sequences.
20413 # Test whether the compiler implicitly links with -lc since on some
20414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20415 # to ld, don't add -lc before -lgcc.
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20417 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20418 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20419 $as_echo_n "(cached) " >&6
20422 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20425 (eval $ac_compile) 2>&5
20427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20428 test $ac_status = 0; } 2>conftest.err
; then
20431 libobjs
=conftest.
$ac_objext
20433 wl
=$lt_prog_compiler_wl_CXX
20434 pic_flag
=$lt_prog_compiler_pic_CXX
20440 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20441 allow_undefined_flag_CXX
=
20442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20443 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20446 test $ac_status = 0; }
20448 lt_cv_archive_cmds_need_lc_CXX
=no
20450 lt_cv_archive_cmds_need_lc_CXX
=yes
20452 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20454 cat conftest.err
1>&5
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20460 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20461 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20532 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20534 library_names_spec
=
20535 libname_spec
='lib$name'
20539 postuninstall_cmds
=
20543 shlibpath_overrides_runpath
=unknown
20545 dynamic_linker
="$host_os ld.so"
20546 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20547 need_lib_prefix
=unknown
20548 hardcode_into_libs
=no
20550 # when you set need_version to no, make sure it does not cause -set_version
20551 # flags to be left without arguments
20552 need_version
=unknown
20557 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20558 shlibpath_var
=LIBPATH
20560 # AIX 3 has no versioning support, so we append a major version to the name.
20561 soname_spec
='${libname}${release}${shared_ext}$major'
20568 hardcode_into_libs
=yes
20569 if test "$host_cpu" = ia64
; then
20570 # AIX 5 supports IA64
20571 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20572 shlibpath_var
=LD_LIBRARY_PATH
20574 # With GCC up to 2.95.x, collect2 would create an import file
20575 # for dependence libraries. The import file would start with
20576 # the line `#! .'. This would cause the generated library to
20577 # depend on `.', always an invalid library. This was fixed in
20578 # development snapshots of GCC prior to 3.0.
20580 aix4 | aix4.
[01] | aix4.
[01].
*)
20581 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20583 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20586 can_build_shared
=no
20590 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20591 # soname into executable. Probably we can add versioning support to
20592 # collect2, so additional links can be useful in future.
20593 if test "$aix_use_runtimelinking" = yes; then
20594 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20595 # instead of lib<name>.a to let people know that these are not
20596 # typical AIX shared libraries.
20597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20599 # We preserve .a as extension for shared libraries through AIX4.2
20600 # and later when we are not doing run time linking.
20601 library_names_spec
='${libname}${release}.a $libname.a'
20602 soname_spec
='${libname}${release}${shared_ext}$major'
20604 shlibpath_var
=LIBPATH
20611 # Since July 2007 AmigaOS4 officially supports .so libraries.
20612 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 library_names_spec
='$libname.ixlibrary $libname.a'
20617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20618 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'
20624 library_names_spec
='${libname}${shared_ext}'
20625 dynamic_linker
="$host_os ld.so"
20626 shlibpath_var
=LIBRARY_PATH
20632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20633 soname_spec
='${libname}${release}${shared_ext}$major'
20634 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20635 shlibpath_var
=LD_LIBRARY_PATH
20636 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20637 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20638 # the default ld.so.conf also contains /usr/contrib/lib and
20639 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20640 # libtool to hard-code these into programs
20643 cygwin
* | mingw
* | pw32
* | cegcc
*)
20644 version_type
=windows
20649 case $GCC,$host_os in
20650 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20651 library_names_spec
='$libname.dll.a'
20652 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20653 postinstall_cmds
='base_file=`basename \${file}`~
20654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20655 dldir=$destdir/`dirname \$dlpath`~
20656 test -d \$dldir || mkdir -p \$dldir~
20657 $install_prog $dir/$dlname \$dldir/$dlname~
20658 chmod a+x \$dldir/$dlname~
20659 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20660 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20662 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20663 dlpath=$dir/\$dldll~
20665 shlibpath_overrides_runpath
=yes
20669 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20670 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20674 # MinGW DLLs use traditional 'lib' prefix
20675 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20678 # pw32 DLLs use 'pw' prefix rather than 'lib'
20679 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20685 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20688 dynamic_linker
='Win32 ld.exe'
20689 # FIXME: first we should search . and the directory the executable is in
20693 darwin
* | rhapsody
*)
20694 dynamic_linker
="$host_os dyld"
20695 version_type
=darwin
20698 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20699 soname_spec
='${libname}${release}${major}$shared_ext'
20700 shlibpath_overrides_runpath
=yes
20701 shlibpath_var
=DYLD_LIBRARY_PATH
20702 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20704 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20711 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20712 soname_spec
='${libname}${release}${shared_ext}$major'
20713 shlibpath_var
=LD_LIBRARY_PATH
20716 freebsd
* | dragonfly
*)
20717 # DragonFly does not have aout. When/if they implement a new
20718 # versioning mechanism, adjust this.
20719 if test -x /usr
/bin
/objformat
; then
20720 objformat
=`/usr/bin/objformat`
20723 freebsd
[123]*) objformat
=aout
;;
20724 *) objformat
=elf
;;
20727 version_type
=freebsd-
$objformat
20728 case $version_type in
20730 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20735 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20739 shlibpath_var
=LD_LIBRARY_PATH
20742 shlibpath_overrides_runpath
=yes
20744 freebsd3.
[01]* | freebsdelf3.
[01]*)
20745 shlibpath_overrides_runpath
=yes
20746 hardcode_into_libs
=yes
20748 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20749 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20750 shlibpath_overrides_runpath
=no
20751 hardcode_into_libs
=yes
20753 *) # from 4.6 on, and DragonFly
20754 shlibpath_overrides_runpath
=yes
20755 hardcode_into_libs
=yes
20764 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20765 soname_spec
='${libname}${release}${shared_ext}$major'
20766 shlibpath_var
=LD_LIBRARY_PATH
20767 hardcode_into_libs
=yes
20774 dynamic_linker
="$host_os runtime_loader"
20775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20776 soname_spec
='${libname}${release}${shared_ext}$major'
20777 shlibpath_var
=LIBRARY_PATH
20778 shlibpath_overrides_runpath
=yes
20779 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20780 hardcode_into_libs
=yes
20783 hpux9
* | hpux10
* | hpux11
*)
20784 # Give a soname corresponding to the major version so that dld.sl refuses to
20785 # link against other versions.
20792 hardcode_into_libs
=yes
20793 dynamic_linker
="$host_os dld.so"
20794 shlibpath_var
=LD_LIBRARY_PATH
20795 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20796 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20797 soname_spec
='${libname}${release}${shared_ext}$major'
20798 if test "X$HPUX_IA64_MODE" = X32
; then
20799 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20801 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20803 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20807 hardcode_into_libs
=yes
20808 dynamic_linker
="$host_os dld.sl"
20809 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20810 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812 soname_spec
='${libname}${release}${shared_ext}$major'
20813 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20814 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20818 dynamic_linker
="$host_os dld.sl"
20819 shlibpath_var
=SHLIB_PATH
20820 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20822 soname_spec
='${libname}${release}${shared_ext}$major'
20825 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20826 postinstall_cmds
='chmod 555 $lib'
20827 # or fails outright, so override atomically:
20828 install_override_mode
=555
20835 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20836 soname_spec
='${libname}${release}${shared_ext}$major'
20837 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20838 shlibpath_var
=LD_LIBRARY_PATH
20839 shlibpath_overrides_runpath
=no
20840 hardcode_into_libs
=yes
20843 irix5
* | irix6
* | nonstopux
*)
20845 nonstopux
*) version_type
=nonstopux
;;
20847 if test "$lt_cv_prog_gnu_ld" = yes; then
20855 soname_spec
='${libname}${release}${shared_ext}$major'
20856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20858 irix5
* | nonstopux
*)
20859 libsuff
= shlibsuff
=
20862 case $LD in # libtool.m4 will add one of these switches to LD
20863 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20864 libsuff
= shlibsuff
= libmagic
=32-bit;;
20865 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20866 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20867 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20868 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20869 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20873 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20874 shlibpath_overrides_runpath
=no
20875 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20876 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20877 hardcode_into_libs
=yes
20880 # No shared lib support for Linux oldld, aout, or coff.
20881 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20885 # This must be Linux ELF.
20886 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20891 soname_spec
='${libname}${release}${shared_ext}$major'
20892 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20893 shlibpath_var
=LD_LIBRARY_PATH
20894 shlibpath_overrides_runpath
=no
20896 # Some binutils ld are patched to set DT_RUNPATH
20897 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20898 $as_echo_n "(cached) " >&6
20900 lt_cv_shlibpath_overrides_runpath
=no
20901 save_LDFLAGS
=$LDFLAGS
20902 save_libdir
=$libdir
20903 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20904 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20906 /* end confdefs.h. */
20916 if ac_fn_cxx_try_link
"$LINENO"; then :
20917 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20918 lt_cv_shlibpath_overrides_runpath
=yes
20921 rm -f core conftest.err conftest.
$ac_objext \
20922 conftest
$ac_exeext conftest.
$ac_ext
20923 LDFLAGS
=$save_LDFLAGS
20924 libdir
=$save_libdir
20928 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20930 # This implies no fast_install, which is unacceptable.
20931 # Some rework will be needed to allow for fast_install
20932 # before this can be enabled.
20933 hardcode_into_libs
=yes
20935 # Append ld.so.conf contents to the search path
20936 if test -f /etc
/ld.so.conf
; then
20937 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' ' '`
20938 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20941 # We used to test for /lib/ld.so.1 and disable shared libraries on
20942 # powerpc, because MkLinux only supported shared libraries with the
20943 # GNU dynamic linker. Since this was broken with cross compilers,
20944 # most powerpc-linux boxes support dynamic linking these days and
20945 # people can always --disable-shared, the test was removed, and we
20946 # assume the GNU/Linux dynamic linker is in use.
20947 dynamic_linker
='GNU/Linux ld.so'
20954 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20956 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20957 dynamic_linker
='NetBSD (a.out) ld.so'
20959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20960 soname_spec
='${libname}${release}${shared_ext}$major'
20961 dynamic_linker
='NetBSD ld.elf_so'
20963 shlibpath_var
=LD_LIBRARY_PATH
20964 shlibpath_overrides_runpath
=yes
20965 hardcode_into_libs
=yes
20970 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20971 shlibpath_var
=LD_LIBRARY_PATH
20972 shlibpath_overrides_runpath
=yes
20979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20980 soname_spec
='${libname}${release}${shared_ext}$major'
20981 shlibpath_var
=LD_LIBRARY_PATH
20982 shlibpath_overrides_runpath
=no
20983 hardcode_into_libs
=yes
20984 dynamic_linker
='ldqnx.so'
20989 sys_lib_dlsearch_path_spec
="/usr/lib"
20991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20993 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20994 *) need_version
=no
;;
20996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20997 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20998 shlibpath_var
=LD_LIBRARY_PATH
20999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21001 openbsd2.
[89] | openbsd2.
[89].
*)
21002 shlibpath_overrides_runpath
=no
21005 shlibpath_overrides_runpath
=yes
21009 shlibpath_overrides_runpath
=yes
21014 libname_spec
='$name'
21017 library_names_spec
='$libname${shared_ext} $libname.a'
21018 dynamic_linker
='OS/2 ld.exe'
21019 shlibpath_var
=LIBPATH
21022 osf3
* | osf4
* | osf5
*)
21026 soname_spec
='${libname}${release}${shared_ext}$major'
21027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21028 shlibpath_var
=LD_LIBRARY_PATH
21029 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21030 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21042 soname_spec
='${libname}${release}${shared_ext}$major'
21043 shlibpath_var
=LD_LIBRARY_PATH
21044 shlibpath_overrides_runpath
=yes
21045 hardcode_into_libs
=yes
21046 # ldd complains unless libraries are executable
21047 postinstall_cmds
='chmod +x $lib'
21052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21053 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21054 shlibpath_var
=LD_LIBRARY_PATH
21055 shlibpath_overrides_runpath
=yes
21056 if test "$with_gnu_ld" = yes; then
21064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21065 soname_spec
='${libname}${release}${shared_ext}$major'
21066 shlibpath_var
=LD_LIBRARY_PATH
21067 case $host_vendor in
21069 shlibpath_overrides_runpath
=no
21071 runpath_var
=LD_RUN_PATH
21079 shlibpath_overrides_runpath
=no
21080 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21086 if test -d /usr
/nec
;then
21088 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21089 soname_spec
='$libname${shared_ext}.$major'
21090 shlibpath_var
=LD_LIBRARY_PATH
21094 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21095 version_type
=freebsd-elf
21098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21099 soname_spec
='${libname}${release}${shared_ext}$major'
21100 shlibpath_var
=LD_LIBRARY_PATH
21101 shlibpath_overrides_runpath
=yes
21102 hardcode_into_libs
=yes
21103 if test "$with_gnu_ld" = yes; then
21104 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21106 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21109 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21113 sys_lib_dlsearch_path_spec
='/usr/lib'
21117 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21121 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21122 shlibpath_var
=LD_LIBRARY_PATH
21123 shlibpath_overrides_runpath
=no
21124 hardcode_into_libs
=yes
21129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21130 soname_spec
='${libname}${release}${shared_ext}$major'
21131 shlibpath_var
=LD_LIBRARY_PATH
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21139 $as_echo "$dynamic_linker" >&6; }
21140 test "$dynamic_linker" = no
&& can_build_shared
=no
21142 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21143 if test "$GCC" = yes; then
21144 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21147 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21148 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21150 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21151 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21192 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21193 hardcode_action_CXX
=
21194 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21195 test -n "$runpath_var_CXX" ||
21196 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21198 # We can hardcode non-existent directories.
21199 if test "$hardcode_direct_CXX" != no
&&
21200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21201 # have to relink, otherwise we might link with an installed library
21202 # when we should be linking with a yet-to-be-installed one
21203 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21204 test "$hardcode_minus_L_CXX" != no
; then
21205 # Linking always hardcodes the temporary library directory.
21206 hardcode_action_CXX
=relink
21208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21209 hardcode_action_CXX
=immediate
21212 # We cannot hardcode anything, or else we can only hardcode existing
21214 hardcode_action_CXX
=unsupported
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21217 $as_echo "$hardcode_action_CXX" >&6; }
21219 if test "$hardcode_action_CXX" = relink ||
21220 test "$inherit_rpath_CXX" = yes; then
21221 # Fast installation is not supported
21222 enable_fast_install
=no
21223 elif test "$shlibpath_overrides_runpath" = yes ||
21224 test "$enable_shared" = no
; then
21225 # Fast installation is not necessary
21226 enable_fast_install
=needless
21235 fi # test -n "$compiler"
21241 with_gnu_ld
=$lt_save_with_gnu_ld
21242 lt_cv_path_LDCXX
=$lt_cv_path_LD
21243 lt_cv_path_LD
=$lt_save_path_LD
21244 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21245 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21246 fi # test "$_lt_caught_CXX_error" != yes
21249 ac_cpp
='$CPP $CPPFLAGS'
21250 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21251 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21252 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21269 # Only expand once:
21275 # Identify the assembler which will work hand-in-glove with the newly
21276 # built GCC, so that we can examine its features. This is the assembler
21277 # which will be driven by the driver program.
21279 # If build != host, and we aren't building gas in-tree, we identify a
21280 # build->target assembler and hope that it will have the same features
21281 # as the host->target assembler we'll be using.
21282 gcc_cv_gas_major_version
=
21283 gcc_cv_gas_minor_version
=
21284 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21286 if test "${gcc_cv_as+set}" = set; then :
21290 if test -x "$DEFAULT_ASSEMBLER"; then
21291 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21292 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21293 && test -f ..
/gas
/Makefile \
21294 && test x
$build = x
$host; then
21295 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21296 elif test -x as
$build_exeext; then
21297 # Build using assembler in the current directory.
21298 gcc_cv_as
=.
/as
$build_exeext
21299 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21300 gcc_cv_as
="$AS_FOR_TARGET"
21302 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21303 set dummy
$AS_FOR_TARGET; ac_word
=$2
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21305 $as_echo_n "checking for $ac_word... " >&6; }
21306 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21307 $as_echo_n "(cached) " >&6
21311 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21315 for as_dir
in $PATH
21318 test -z "$as_dir" && as_dir
=.
21319 for ac_exec_ext
in '' $ac_executable_extensions; do
21320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21321 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21332 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21333 if test -n "$gcc_cv_as"; then
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21335 $as_echo "$gcc_cv_as" >&6; }
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21338 $as_echo "no" >&6; }
21345 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21347 case "$ORIGINAL_AS_FOR_TARGET" in
21348 .
/as | .
/as
$build_exeext) ;;
21349 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21354 $as_echo_n "checking what assembler to use... " >&6; }
21355 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21356 # Single tree build which includes gas. We want to prefer it
21357 # over whatever linker top-level may have detected, since
21358 # we'll use what we're building after installation anyway.
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21360 $as_echo "newly built gas" >&6; }
21362 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21363 for f
in $gcc_cv_as_bfd_srcdir/configure \
21364 $gcc_cv_as_gas_srcdir/configure \
21365 $gcc_cv_as_gas_srcdir/configure.
in \
21366 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21367 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21368 if test x
$gcc_cv_gas_version != x
; then
21372 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21373 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21374 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21375 case $gcc_cv_gas_patch_version in
21376 "") gcc_cv_gas_patch_version
="0" ;;
21378 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21379 + $gcc_cv_gas_minor_version \) \* 1000 \
21380 + $gcc_cv_gas_patch_version`
21382 in_tree_gas_is_elf
=no
21383 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21384 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21385 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21387 in_tree_gas_is_elf
=yes
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21391 $as_echo "$gcc_cv_as" >&6; }
21395 # Identify the linker which will work hand-in-glove with the newly
21396 # built GCC, so that we can examine its features. This is the linker
21397 # which will be driven by the driver program.
21399 # If build != host, and we aren't building gas in-tree, we identify a
21400 # build->target linker and hope that it will have the same features
21401 # as the host->target linker we'll be using.
21402 gcc_cv_gld_major_version
=
21403 gcc_cv_gld_minor_version
=
21404 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21405 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21407 if test "${gcc_cv_ld+set}" = set; then :
21411 if test -x "$DEFAULT_LINKER"; then
21412 gcc_cv_ld
="$DEFAULT_LINKER"
21413 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21414 && test -f ..
/ld
/Makefile \
21415 && test x
$build = x
$host; then
21416 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21417 elif test -x collect-ld
$build_exeext; then
21418 # Build using linker in the current directory.
21419 gcc_cv_ld
=.
/collect-ld
$build_exeext
21420 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21421 gcc_cv_ld
="$LD_FOR_TARGET"
21423 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21424 set dummy
$LD_FOR_TARGET; ac_word
=$2
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21426 $as_echo_n "checking for $ac_word... " >&6; }
21427 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21428 $as_echo_n "(cached) " >&6
21432 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21436 for as_dir
in $PATH
21439 test -z "$as_dir" && as_dir
=.
21440 for ac_exec_ext
in '' $ac_executable_extensions; do
21441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21442 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21453 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21454 if test -n "$gcc_cv_ld"; then
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21456 $as_echo "$gcc_cv_ld" >&6; }
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21459 $as_echo "no" >&6; }
21466 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21467 PLUGIN_LD
=`basename $gcc_cv_ld`
21469 # Check whether --with-plugin-ld was given.
21470 if test "${with_plugin_ld+set}" = set; then :
21471 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21472 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21473 PLUGIN_LD
="$withval"
21479 cat >>confdefs.h
<<_ACEOF
21480 #define PLUGIN_LD "$PLUGIN_LD"
21484 # Check to see if we are using gold instead of ld
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21486 $as_echo_n "checking whether we are using gold... " >&6; }
21488 if test x
$gcc_cv_ld != x
; then
21489 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21490 |
grep "GNU gold" > /dev
/null
; then
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21495 $as_echo "$ld_is_gold" >&6; }
21497 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21499 case "$ORIGINAL_LD_FOR_TARGET" in
21500 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21501 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21506 $as_echo_n "checking what linker to use... " >&6; }
21507 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21508 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21509 # Single tree build which includes ld. We want to prefer it
21510 # over whatever linker top-level may have detected, since
21511 # we'll use what we're building after installation anyway.
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21513 $as_echo "newly built ld" >&6; }
21515 in_tree_ld_is_elf
=no
21516 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21517 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21518 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21519 in_tree_ld_is_elf
=yes
21520 elif test "$ld_is_gold" = yes; then
21521 in_tree_ld_is_elf
=yes
21523 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
21525 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21526 if test x
$gcc_cv_gld_version != x
; then
21530 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21531 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21534 $as_echo "$gcc_cv_ld" >&6; }
21538 # Figure out what nm we will be using.
21539 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21540 if test "${gcc_cv_nm+set}" = set; then :
21544 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21545 && test -f ..
/binutils
/Makefile \
21546 && test x
$build = x
$host; then
21547 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21548 elif test -x nm
$build_exeext; then
21549 gcc_cv_nm
=.
/nm
$build_exeext
21550 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21551 gcc_cv_nm
="$NM_FOR_TARGET"
21553 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21554 set dummy
$NM_FOR_TARGET; ac_word
=$2
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21556 $as_echo_n "checking for $ac_word... " >&6; }
21557 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21558 $as_echo_n "(cached) " >&6
21562 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21566 for as_dir
in $PATH
21569 test -z "$as_dir" && as_dir
=.
21570 for ac_exec_ext
in '' $ac_executable_extensions; do
21571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21572 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21583 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21584 if test -n "$gcc_cv_nm"; then
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21586 $as_echo "$gcc_cv_nm" >&6; }
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21589 $as_echo "no" >&6; }
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21597 $as_echo_n "checking what nm to use... " >&6; }
21598 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21599 # Single tree build which includes binutils.
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21601 $as_echo "newly built nm" >&6; }
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21605 $as_echo "$gcc_cv_nm" >&6; }
21609 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21611 case "$ORIGINAL_NM_FOR_TARGET" in
21612 .
/nm | .
/nm
$build_exeext) ;;
21613 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21618 # Figure out what objdump we will be using.
21619 if test "${gcc_cv_objdump+set}" = set; then :
21623 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21624 && test -f ..
/binutils
/Makefile \
21625 && test x
$build = x
$host; then
21626 # Single tree build which includes binutils.
21627 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21628 elif test -x objdump
$build_exeext; then
21629 gcc_cv_objdump
=.
/objdump
$build_exeext
21630 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21631 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21633 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21634 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21636 $as_echo_n "checking for $ac_word... " >&6; }
21637 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21638 $as_echo_n "(cached) " >&6
21640 case $gcc_cv_objdump in
21642 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21646 for as_dir
in $PATH
21649 test -z "$as_dir" && as_dir
=.
21650 for ac_exec_ext
in '' $ac_executable_extensions; do
21651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21652 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21663 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21664 if test -n "$gcc_cv_objdump"; then
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21666 $as_echo "$gcc_cv_objdump" >&6; }
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21669 $as_echo "no" >&6; }
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21677 $as_echo_n "checking what objdump to use... " >&6; }
21678 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21679 # Single tree build which includes binutils.
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21681 $as_echo "newly built objdump" >&6; }
21682 elif test x
$gcc_cv_objdump = x
; then
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21684 $as_echo "not found" >&6; }
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21687 $as_echo "$gcc_cv_objdump" >&6; }
21690 # Figure out what readelf we will be using.
21691 if test "${gcc_cv_readelf+set}" = set; then :
21695 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21696 && test -f ..
/binutils
/Makefile \
21697 && test x
$build = x
$host; then
21698 # Single tree build which includes binutils.
21699 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21700 elif test -x readelf
$build_exeext; then
21701 gcc_cv_readelf
=.
/readelf
$build_exeext
21703 # Extract the first word of "readelf", so it can be a program name with args.
21704 set dummy readelf
; ac_word
=$2
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21706 $as_echo_n "checking for $ac_word... " >&6; }
21707 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21708 $as_echo_n "(cached) " >&6
21710 case $gcc_cv_readelf in
21712 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21716 for as_dir
in $PATH
21719 test -z "$as_dir" && as_dir
=.
21720 for ac_exec_ext
in '' $ac_executable_extensions; do
21721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21722 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21733 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21734 if test -n "$gcc_cv_readelf"; then
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21736 $as_echo "$gcc_cv_readelf" >&6; }
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21739 $as_echo "no" >&6; }
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21747 $as_echo_n "checking what readelf to use... " >&6; }
21748 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21749 # Single tree build which includes binutils.
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21751 $as_echo "newly built readelf" >&6; }
21752 elif test x
$gcc_cv_readelf = x
; then
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21754 $as_echo "not found" >&6; }
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21757 $as_echo "$gcc_cv_readelf" >&6; }
21760 # Figure out what assembler alignment features are present.
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21762 $as_echo_n "checking assembler flags... " >&6; }
21763 if test "${gcc_cv_as_flags+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21767 i
[34567]86-*-linux*)
21768 gcc_cv_as_flags
="--32"
21770 powerpc
*-*-darwin*)
21771 gcc_cv_as_flags
="-arch ppc"
21774 gcc_cv_as_flags
=" "
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21779 $as_echo "$gcc_cv_as_flags" >&6; }
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21782 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21783 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21784 $as_echo_n "(cached) " >&6
21786 gcc_cv_as_balign_and_p2align
=no
21787 if test $in_tree_gas = yes; then
21788 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21789 then gcc_cv_as_balign_and_p2align
=yes
21791 elif test x
$gcc_cv_as != x
; then
21792 $as_echo '.balign 4
21793 .p2align 2' > conftest.s
21794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21796 (eval $ac_try) 2>&5
21798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21799 test $ac_status = 0; }; }
21801 gcc_cv_as_balign_and_p2align
=yes
21803 echo "configure: failed program was" >&5
21806 rm -f conftest.o conftest.s
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21810 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21811 if test $gcc_cv_as_balign_and_p2align = yes; then
21813 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21818 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21819 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21820 $as_echo_n "(cached) " >&6
21822 gcc_cv_as_max_skip_p2align
=no
21823 if test $in_tree_gas = yes; then
21824 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21825 then gcc_cv_as_max_skip_p2align
=yes
21827 elif test x
$gcc_cv_as != x
; then
21828 $as_echo '.p2align 4,,7' > conftest.s
21829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21831 (eval $ac_try) 2>&5
21833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21834 test $ac_status = 0; }; }
21836 gcc_cv_as_max_skip_p2align
=yes
21838 echo "configure: failed program was" >&5
21841 rm -f conftest.o conftest.s
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21845 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21846 if test $gcc_cv_as_max_skip_p2align = yes; then
21848 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21853 $as_echo_n "checking assembler for .literal16... " >&6; }
21854 if test "${gcc_cv_as_literal16+set}" = set; then :
21855 $as_echo_n "(cached) " >&6
21857 gcc_cv_as_literal16
=no
21858 if test $in_tree_gas = yes; then
21859 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21860 then gcc_cv_as_literal16
=yes
21862 elif test x
$gcc_cv_as != x
; then
21863 $as_echo '.literal16' > conftest.s
21864 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21866 (eval $ac_try) 2>&5
21868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21869 test $ac_status = 0; }; }
21871 gcc_cv_as_literal16
=yes
21873 echo "configure: failed program was" >&5
21876 rm -f conftest.o conftest.s
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21880 $as_echo "$gcc_cv_as_literal16" >&6; }
21881 if test $gcc_cv_as_literal16 = yes; then
21883 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21888 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21889 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21890 $as_echo_n "(cached) " >&6
21892 gcc_cv_as_subsection_m1
=no
21893 if test $in_tree_gas = yes; then
21894 if test $in_tree_gas_is_elf = yes \
21895 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21896 then gcc_cv_as_subsection_m1
=yes
21898 elif test x
$gcc_cv_as != x
; then
21899 $as_echo 'conftest_label1: .word 0
21901 conftest_label2: .word 0
21902 .previous' > conftest.s
21903 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21905 (eval $ac_try) 2>&5
21907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21908 test $ac_status = 0; }; }
21910 if test x
$gcc_cv_nm != x
; then
21911 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21912 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21913 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21915 else gcc_cv_as_subsection_m1
=yes
21917 rm -f conftest.nm1 conftest.nm2
21920 echo "configure: failed program was" >&5
21923 rm -f conftest.o conftest.s
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21927 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21928 if test $gcc_cv_as_subsection_m1 = yes; then
21930 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21935 $as_echo_n "checking assembler for .weak... " >&6; }
21936 if test "${gcc_cv_as_weak+set}" = set; then :
21937 $as_echo_n "(cached) " >&6
21940 if test $in_tree_gas = yes; then
21941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21942 then gcc_cv_as_weak
=yes
21944 elif test x
$gcc_cv_as != x
; then
21945 $as_echo ' .weak foobar' > conftest.s
21946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21948 (eval $ac_try) 2>&5
21950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21951 test $ac_status = 0; }; }
21955 echo "configure: failed program was" >&5
21958 rm -f conftest.o conftest.s
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21962 $as_echo "$gcc_cv_as_weak" >&6; }
21963 if test $gcc_cv_as_weak = yes; then
21965 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21970 $as_echo_n "checking assembler for .weakref... " >&6; }
21971 if test "${gcc_cv_as_weakref+set}" = set; then :
21972 $as_echo_n "(cached) " >&6
21974 gcc_cv_as_weakref
=no
21975 if test $in_tree_gas = yes; then
21976 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21977 then gcc_cv_as_weakref
=yes
21979 elif test x
$gcc_cv_as != x
; then
21980 $as_echo ' .weakref foobar, barfnot' > conftest.s
21981 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21983 (eval $ac_try) 2>&5
21985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21986 test $ac_status = 0; }; }
21988 gcc_cv_as_weakref
=yes
21990 echo "configure: failed program was" >&5
21993 rm -f conftest.o conftest.s
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21997 $as_echo "$gcc_cv_as_weakref" >&6; }
21998 if test $gcc_cv_as_weakref = yes; then
22000 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22005 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22006 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22007 $as_echo_n "(cached) " >&6
22009 gcc_cv_as_nsubspa_comdat
=no
22010 if test $in_tree_gas = yes; then
22011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22012 then gcc_cv_as_nsubspa_comdat
=yes
22014 elif test x
$gcc_cv_as != x
; then
22015 $as_echo ' .SPACE $TEXT$
22016 .NSUBSPA $CODE$,COMDAT' > conftest.s
22017 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22019 (eval $ac_try) 2>&5
22021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22022 test $ac_status = 0; }; }
22024 gcc_cv_as_nsubspa_comdat
=yes
22026 echo "configure: failed program was" >&5
22029 rm -f conftest.o conftest.s
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22033 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22034 if test $gcc_cv_as_nsubspa_comdat = yes; then
22036 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22040 # .hidden needs to be supported in both the assembler and the linker,
22041 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22042 # This is irritatingly difficult to feature test for; we have to check the
22043 # date string after the version number. If we've got an in-tree
22044 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22046 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22048 $as_echo_n "checking assembler for .hidden... " >&6; }
22049 if test "${gcc_cv_as_hidden+set}" = set; then :
22050 $as_echo_n "(cached) " >&6
22052 gcc_cv_as_hidden
=no
22053 if test $in_tree_gas = yes; then
22054 if test $in_tree_gas_is_elf = yes \
22055 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22056 then gcc_cv_as_hidden
=yes
22058 elif test x
$gcc_cv_as != x
; then
22059 $as_echo ' .hidden foobar
22060 foobar:' > conftest.s
22061 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22063 (eval $ac_try) 2>&5
22065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22066 test $ac_status = 0; }; }
22069 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22070 # STV_HIDDEN, so disable .hidden support if so.
22071 case "${target}" in
22072 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22073 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22074 cat > conftest.s
<<EOF
22079 .set default,hidden
22081 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22082 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22083 grep '\.hidden default' > /dev
/null
; then
22084 gcc_cv_as_hidden
=no
22086 gcc_cv_as_hidden
=yes
22089 # Assume bug is present if objdump is missing.
22090 gcc_cv_as_hidden
=no
22094 gcc_cv_as_hidden
=yes
22098 echo "configure: failed program was" >&5
22101 rm -f conftest.o conftest.s
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22105 $as_echo "$gcc_cv_as_hidden" >&6; }
22107 case "${target}" in
22109 # Darwin as has some visibility support, though with a different syntax.
22110 gcc_cv_as_hidden
=yes
22114 # gnu_indirect_function type is an extension proposed at
22115 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22116 # selection of function implementation
22117 # Check whether --enable-gnu-indirect-function was given.
22118 if test "${enable_gnu_indirect_function+set}" = set; then :
22119 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22121 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22122 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22125 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22128 if test x
$enable_gnu_indirect_function = xyes
; then
22130 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22134 if test $in_tree_ld != yes ; then
22135 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22136 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22137 if test x
"$ld_is_gold" = xyes
; then
22138 # GNU gold --version looks like this:
22140 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22142 # We extract the binutils version which is more familiar and specific
22143 # than the gold version.
22144 ld_vers
=`echo $ld_ver | sed -n \
22145 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22147 # GNU ld --version looks like this:
22149 # GNU ld (GNU Binutils) 2.21.51.20110225
22150 ld_vers
=`echo $ld_ver | sed -n \
22151 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22153 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'`
22154 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22155 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22156 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22158 case "${target}" in
22161 # Solaris 2 ld -V output looks like this for a regular version:
22163 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22165 # but test versions add stuff at the end:
22167 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22169 ld_ver
=`$gcc_cv_ld -V 2>&1`
22170 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22171 ld_vers
=`echo $ld_ver | sed -n \
22172 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22173 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22174 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22182 $as_echo_n "checking linker for .hidden support... " >&6; }
22183 if test "${gcc_cv_ld_hidden+set}" = set; then :
22184 $as_echo_n "(cached) " >&6
22186 if test $in_tree_ld = yes ; then
22187 gcc_cv_ld_hidden
=no
22188 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 \
22189 && test $in_tree_ld_is_elf = yes; then
22190 gcc_cv_ld_hidden
=yes
22193 gcc_cv_ld_hidden
=yes
22194 if test x
"$ld_is_gold" = xyes
; then
22196 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22197 if test 0"$ld_date" -lt 20020404; then
22198 if test -n "$ld_date"; then
22199 # If there was date string, but was earlier than 2002-04-04, fail
22200 gcc_cv_ld_hidden
=no
22201 elif test -z "$ld_vers"; then
22202 # If there was no date string nor ld version number, something is wrong
22203 gcc_cv_ld_hidden
=no
22205 test -z "$ld_vers_patch" && ld_vers_patch
=0
22206 if test "$ld_vers_major" -lt 2; then
22207 gcc_cv_ld_hidden
=no
22208 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22209 gcc_cv_ld_hidden
="no"
22210 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22211 gcc_cv_ld_hidden
=no
22216 case "${target}" in
22218 # Darwin ld has some visibility support.
22219 gcc_cv_ld_hidden
=yes
22221 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22222 gcc_cv_ld_hidden
=yes
22225 # .hidden support was backported to Solaris 8, starting with ld
22227 if test "$ld_vers_minor" -ge 276; then
22228 gcc_cv_ld_hidden
=yes
22230 gcc_cv_ld_hidden
=no
22233 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22234 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22235 # .symbolic was only added in Solaris 9 12/02.
22236 gcc_cv_ld_hidden
=yes
22239 gcc_cv_ld_hidden
=no
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22246 $as_echo "$gcc_cv_ld_hidden" >&6; }
22247 libgcc_visibility
=no
22250 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22251 libgcc_visibility
=yes
22253 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22258 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22259 gcc_cv_ld_ro_rw_mix
=unknown
22260 if test $in_tree_ld = yes ; then
22261 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 \
22262 && test $in_tree_ld_is_elf = yes; then
22263 gcc_cv_ld_ro_rw_mix
=read-write
22265 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22266 echo '.section myfoosect, "a"' > conftest1.s
22267 echo '.section myfoosect, "aw"' > conftest2.s
22268 echo '.byte 1' >> conftest2.s
22269 echo '.section myfoosect, "a"' > conftest3.s
22270 echo '.byte 0' >> conftest3.s
22271 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22272 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22273 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22274 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22275 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22276 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22277 | sed -e '/myfoosect/!d' -e N`
22278 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22279 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22280 gcc_cv_ld_ro_rw_mix
=read-only
22282 gcc_cv_ld_ro_rw_mix
=read-write
22286 rm -f conftest.
* conftest
[123].
*
22288 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22290 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22294 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22296 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22298 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22299 if test "${gcc_cv_as_leb128+set}" = set; then :
22300 $as_echo_n "(cached) " >&6
22302 gcc_cv_as_leb128
=no
22303 if test $in_tree_gas = yes; then
22304 if test $in_tree_gas_is_elf = yes \
22305 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22306 then gcc_cv_as_leb128
=yes
22308 elif test x
$gcc_cv_as != x
; then
22315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22317 (eval $ac_try) 2>&5
22319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22320 test $ac_status = 0; }; }
22322 # GAS versions before 2.11 do not support uleb128,
22323 # despite appearing to.
22324 # ??? There exists an elf-specific test that will crash
22325 # the assembler. Perhaps it's better to figure out whether
22326 # arbitrary sections are supported and try the test.
22327 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22328 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22329 as_vers
=`echo $as_ver | sed -n \
22330 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22331 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22332 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22333 if test $as_major -eq 2 && test $as_minor -lt 11
22335 else gcc_cv_as_leb128
=yes
22339 echo "configure: failed program was" >&5
22342 rm -f conftest.o conftest.s
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22346 $as_echo "$gcc_cv_as_leb128" >&6; }
22347 if test $gcc_cv_as_leb128 = yes; then
22349 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22353 # Check if we have assembler support for unwind directives.
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22355 $as_echo_n "checking assembler for cfi directives... " >&6; }
22356 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22357 $as_echo_n "(cached) " >&6
22359 gcc_cv_as_cfi_directive
=no
22360 if test x
$gcc_cv_as != x
; then
22366 .cfi_escape 1, 2, 3, 4, 5
22367 .cfi_endproc' > conftest.s
22368 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22370 (eval $ac_try) 2>&5
22372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22373 test $ac_status = 0; }; }
22377 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22378 # read-only and read-write sections, we need to make sure that the
22379 # assembler used emits read-write .eh_frame sections.
22380 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22381 if test "x$gcc_cv_objdump" != x
; then
22382 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22383 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22384 gcc_cv_as_cfi_directive
=no
22387 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22388 # On Solaris/x86, make sure that GCC and gas agree on using
22389 # read-only .eh_frame sections for 64-bit.
22390 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22391 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22392 sed -e /.eh_frame
/!d
-e N | \
22393 grep READONLY
> /dev
/null
; then
22394 gcc_cv_as_cfi_directive
=yes
22396 gcc_cv_as_cfi_directive
=no
22400 gcc_cv_as_cfi_directive
=yes
22405 # no objdump, err on the side of caution
22406 gcc_cv_as_cfi_directive
=no
22409 gcc_cv_as_cfi_directive
=yes
22413 gcc_cv_as_cfi_directive
=yes
22417 echo "configure: failed program was" >&5
22420 rm -f conftest.o conftest.s
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22424 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22426 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22428 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22429 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22430 $as_echo_n "(cached) " >&6
22432 gcc_cv_as_cfi_advance_working
=no
22433 if test x
$gcc_cv_as != x
; then
22436 .cfi_adjust_cfa_offset 64
22438 .cfi_adjust_cfa_offset 128
22439 .cfi_endproc' > conftest.s
22440 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22442 (eval $ac_try) 2>&5
22444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22445 test $ac_status = 0; }; }
22448 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22449 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22450 gcc_cv_as_cfi_advance_working
=yes
22454 echo "configure: failed program was" >&5
22457 rm -f conftest.o conftest.s
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22461 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22464 # no objdump, err on the side of caution
22465 gcc_cv_as_cfi_advance_working
=no
22469 cat >>confdefs.h
<<_ACEOF
22470 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22471 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22477 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22478 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22479 $as_echo_n "(cached) " >&6
22481 gcc_cv_as_cfi_personality_directive
=no
22482 if test x
$gcc_cv_as != x
; then
22485 .cfi_personality 0, symbol
22486 .cfi_endproc' > conftest.s
22487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22489 (eval $ac_try) 2>&5
22491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22492 test $ac_status = 0; }; }
22494 gcc_cv_as_cfi_personality_directive
=yes
22496 echo "configure: failed program was" >&5
22499 rm -f conftest.o conftest.s
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22503 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22506 cat >>confdefs.h
<<_ACEOF
22507 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22508 then echo 1; else echo 0; fi`
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22513 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22514 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22517 gcc_cv_as_cfi_sections_directive
=no
22518 if test x
$gcc_cv_as != x
; then
22520 .cfi_sections .debug_frame, .eh_frame
22522 .cfi_endproc' > conftest.s
22523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22525 (eval $ac_try) 2>&5
22527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22528 test $ac_status = 0; }; }
22531 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22532 # Need to check that we generated the correct relocation for the
22533 # .debug_frame section. This was fixed for binutils 2.21.
22534 gcc_cv_as_cfi_sections_directive
=no
22535 if test "x$gcc_cv_objdump" != x
; then
22536 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22537 grep secrel
> /dev
/null
; then
22538 gcc_cv_as_cfi_sections_directive
=yes
22543 gcc_cv_as_cfi_sections_directive
=yes
22547 echo "configure: failed program was" >&5
22550 rm -f conftest.o conftest.s
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22554 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22558 cat >>confdefs.h
<<_ACEOF
22559 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22560 then echo 1; else echo 0; fi`
22564 # GAS versions up to and including 2.11.0 may mis-optimize
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22567 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22568 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22569 $as_echo_n "(cached) " >&6
22571 gcc_cv_as_eh_frame
=no
22572 if test $in_tree_gas = yes; then
22573 if test $in_tree_gas_is_elf = yes \
22574 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22575 then gcc_cv_as_eh_frame
=yes
22577 elif test x
$gcc_cv_as != x
; then
22584 .section .eh_frame,"aw",@progbits
22586 .4byte .LECIE1-.LSCIE1
22600 .4byte .LEFDE1-.LASFDE1
22602 .4byte .LASFDE1-__FRAME_BEGIN__
22609 .LEFDE1:' > conftest.s
22610 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22612 (eval $ac_try) 2>&5
22614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22615 test $ac_status = 0; }; }
22617 cat > conftest.lit
<<EOF
22618 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22619 0010 01000000 12000000 18000000 00000000 ................
22620 0020 08000000 04080000 0044 .........D
22622 cat > conftest.big
<<EOF
22623 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22624 0010 00000001 00000012 00000018 00000000 ................
22625 0020 00000008 04000000 0844 .........D
22627 # If the assembler didn't choke, and we can objdump,
22628 # and we got the correct data, then succeed.
22629 # The text in the here-document typically retains its unix-style line
22630 # endings, while the output of objdump will use host line endings.
22631 # Therefore, use diff -b for the comparisons.
22632 if test x
$gcc_cv_objdump != x \
22633 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22634 |
tail -3 > conftest.got \
22635 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22636 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22638 gcc_cv_as_eh_frame
=yes
22639 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22641 (eval $ac_try) 2>&5
22643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22644 test $ac_status = 0; }; }; then
22645 gcc_cv_as_eh_frame
=buggy
22647 # Uh oh, what do we do now?
22648 gcc_cv_as_eh_frame
=no
22651 echo "configure: failed program was" >&5
22654 rm -f conftest.o conftest.s
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22658 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22661 if test $gcc_cv_as_eh_frame = buggy
; then
22663 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22668 $as_echo_n "checking assembler for section merging support... " >&6; }
22669 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22670 $as_echo_n "(cached) " >&6
22672 gcc_cv_as_shf_merge
=no
22673 if test $in_tree_gas = yes; then
22674 if test $in_tree_gas_is_elf = yes \
22675 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22676 then gcc_cv_as_shf_merge
=yes
22678 elif test x
$gcc_cv_as != x
; then
22679 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22680 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22682 (eval $ac_try) 2>&5
22684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22685 test $ac_status = 0; }; }
22687 gcc_cv_as_shf_merge
=yes
22689 echo "configure: failed program was" >&5
22692 rm -f conftest.o conftest.s
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22696 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22698 if test $gcc_cv_as_shf_merge = no
; then
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22700 $as_echo_n "checking assembler for section merging support... " >&6; }
22701 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22702 $as_echo_n "(cached) " >&6
22704 gcc_cv_as_shf_merge
=no
22705 if test $in_tree_gas = yes; then
22706 if test $in_tree_gas_is_elf = yes \
22707 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22708 then gcc_cv_as_shf_merge
=yes
22710 elif test x
$gcc_cv_as != x
; then
22711 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22712 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22714 (eval $ac_try) 2>&5
22716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22717 test $ac_status = 0; }; }
22719 gcc_cv_as_shf_merge
=yes
22721 echo "configure: failed program was" >&5
22724 rm -f conftest.o conftest.s
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22728 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22732 cat >>confdefs.h
<<_ACEOF
22733 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22738 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22739 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22740 $as_echo_n "(cached) " >&6
22742 gcc_cv_as_comdat_group
=no
22743 if test $in_tree_gas = yes; then
22744 if test $in_tree_gas_is_elf = yes \
22745 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22746 then gcc_cv_as_comdat_group
=yes
22748 elif test x
$gcc_cv_as != x
; then
22749 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22750 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22752 (eval $ac_try) 2>&5
22754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22755 test $ac_status = 0; }; }
22757 gcc_cv_as_comdat_group
=yes
22759 echo "configure: failed program was" >&5
22762 rm -f conftest.o conftest.s
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22766 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22768 if test $gcc_cv_as_comdat_group = yes; then
22769 gcc_cv_as_comdat_group_percent
=no
22770 gcc_cv_as_comdat_group_group
=no
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22773 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22774 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22775 $as_echo_n "(cached) " >&6
22777 gcc_cv_as_comdat_group_percent
=no
22778 if test $in_tree_gas = yes; then
22779 if test $in_tree_gas_is_elf = yes \
22780 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22781 then gcc_cv_as_comdat_group_percent
=yes
22783 elif test x
$gcc_cv_as != x
; then
22784 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22785 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22787 (eval $ac_try) 2>&5
22789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22790 test $ac_status = 0; }; }
22792 gcc_cv_as_comdat_group_percent
=yes
22794 echo "configure: failed program was" >&5
22797 rm -f conftest.o conftest.s
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22801 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22803 if test $gcc_cv_as_comdat_group_percent = yes; then
22804 gcc_cv_as_comdat_group_group
=no
22806 case "${target}" in
22807 # Sun as uses a completely different syntax.
22809 case "${target}" in
22810 sparc
*-*-solaris2*)
22812 .group foo,".text%foo",#comdat
22813 .section ".text%foo", #alloc,#execinstr,#progbits
22818 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22820 .group foo,.text%foo,#comdat
22821 .section .text%foo, "ax", @progbits
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22828 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22829 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22830 $as_echo_n "(cached) " >&6
22832 gcc_cv_as_comdat_group_group
=no
22833 if test x
$gcc_cv_as != x
; then
22834 $as_echo "$conftest_s" > conftest.s
22835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22842 gcc_cv_as_comdat_group_group
=yes
22844 echo "configure: failed program was" >&5
22847 rm -f conftest.o conftest.s
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22851 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22857 if test x
"$ld_is_gold" = xyes
; then
22859 elif test $in_tree_ld = yes ; then
22861 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 \
22862 && test $in_tree_ld_is_elf = yes; then
22865 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22867 if test 0"$ld_date" -lt 20050308; then
22868 if test -n "$ld_date"; then
22869 # If there was date string, but was earlier than 2005-03-08, fail
22871 elif test "$ld_vers_major" -lt 2; then
22873 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22878 case "${target}" in
22879 *-*-solaris2.1
[1-9]*)
22881 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22882 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22885 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22886 # least ld version 1.2267.
22887 if test "$ld_vers_major" -gt 1; then
22889 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22891 elif test "$ld_vers_minor" -ge 2267; then
22896 # Assume linkers other than GNU ld don't support COMDAT group.
22901 # Allow overriding the automatic COMDAT group tests above.
22902 # Check whether --enable-comdat was given.
22903 if test "${enable_comdat+set}" = set; then :
22904 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22907 if test $comdat_group = no
; then
22908 gcc_cv_as_comdat_group
=no
22909 gcc_cv_as_comdat_group_percent
=no
22910 gcc_cv_as_comdat_group_group
=no
22913 cat >>confdefs.h
<<_ACEOF
22914 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22915 || test $gcc_cv_as_comdat_group_percent = yes \
22916 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22921 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22922 if test "${gcc_cv_as_discriminator+set}" = set; then :
22923 $as_echo_n "(cached) " >&6
22925 gcc_cv_as_discriminator
=no
22926 if test $in_tree_gas = yes; then
22927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22928 then gcc_cv_as_discriminator
=yes
22930 elif test x
$gcc_cv_as != x
; then
22933 .loc 1 1 0 discriminator 1' > conftest.s
22934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22936 (eval $ac_try) 2>&5
22938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939 test $ac_status = 0; }; }
22941 gcc_cv_as_discriminator
=yes
22943 echo "configure: failed program was" >&5
22946 rm -f conftest.o conftest.s
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22950 $as_echo "$gcc_cv_as_discriminator" >&6; }
22951 if test $gcc_cv_as_discriminator = yes; then
22953 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22957 # Thread-local storage - the check is heavily parameterized.
22965 .section ".tdata","awT",@progbits
22968 ldq $27,__tls_get_addr($29) !literal!1
22969 lda $16,foo($29) !tlsgd!1
22970 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22971 ldq $27,__tls_get_addr($29) !literal!2
22972 lda $16,foo($29) !tlsldm!2
22973 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22974 ldq $1,foo($29) !gotdtprel
22975 ldah $2,foo($29) !dtprelhi
22976 lda $3,foo($2) !dtprello
22977 lda $4,foo($29) !dtprel
22978 ldq $1,foo($29) !gottprel
22979 ldah $2,foo($29) !tprelhi
22980 lda $3,foo($2) !tprello
22981 lda $4,foo($29) !tprel'
22984 tls_as_opt
=--fatal-warnings
22986 cris-
*-*|crisv32-
*-*)
22988 .section ".tdata","awT",@progbits
22995 tls_as_opt
=--fatal-warnings
22999 .section ".tdata","awT",@progbits
23002 call #gettlsoff(x)'
23011 .section ".tdata","awT",@progbits
23015 addil LT%foo-$tls_gdidx$,gp
23016 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23019 addil LT%foo-$tls_ldidx$,gp
23021 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23022 addil LR%foo-$tls_dtpoff$,%ret0
23023 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23025 addil LT%foo-$tls_ieoff$,gp
23026 ldw RT%foo-$tls_ieoff$(%r1),%t2
23029 addil LR%foo-$tls_leoff$,%t1
23030 ldo RR%foo-$tls_leoff$(%r1),%t2'
23033 tls_as_opt
=--fatal-warnings
23037 .section ".tdata","awT",%progbits
23040 .word foo(gottpoff)
23048 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23050 i
[34567]86-*-solaris2.
*)
23052 tga_func
=___tls_get_addr
23054 x86_64-
*-solaris2.1
[0-9]*)
23056 tga_func
=__tls_get_addr
23062 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23064 .section .tdata,"awt",@progbits'
23068 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23072 .section ".tdata","awT",@progbits'
23075 tls_as_opt
="--fatal-warnings"
23077 conftest_s
="$conftest_s
23081 leal foo@tlsgd(,%ebx,1), %eax
23082 leal foo@tlsldm(%ebx), %eax
23083 leal foo@dtpoff(%eax), %edx
23084 movl foo@gottpoff(%ebx), %eax
23085 subl foo@gottpoff(%ebx), %eax
23086 addl foo@gotntpoff(%ebx), %eax
23087 movl foo@indntpoff, %eax
23088 movl \$foo@tpoff, %eax
23089 subl \$foo@tpoff, %eax
23090 leal foo@ntpoff(%ecx), %eax"
23094 .section ".tdata","awT",@progbits
23098 leaq foo@TLSGD(%rip), %rdi
23099 leaq foo@TLSLD(%rip), %rdi
23100 leaq foo@DTPOFF(%rax), %rdx
23101 movq foo@GOTTPOFF(%rip), %rax
23102 movq $foo@TPOFF, %rax'
23105 tls_as_opt
=--fatal-warnings
23109 .section ".tdata","awT",@progbits
23112 addl r16 = @ltoff(@dtpmod(foo#)), gp
23113 addl r17 = @ltoff(@dtprel(foo#)), gp
23114 addl r18 = @ltoff(@tprel(foo#)), gp
23115 addl r19 = @dtprel(foo#), gp
23116 adds r21 = @dtprel(foo#), r13
23117 movl r23 = @dtprel(foo#)
23118 addl r20 = @tprel(foo#), gp
23119 adds r22 = @tprel(foo#), r13
23120 movl r24 = @tprel(foo#)'
23123 tls_as_opt
=--fatal-warnings
23127 .section .tdata,"awT",@progbits
23131 addiu $4, $28, %tlsgd(x)
23132 addiu $4, $28, %tlsldm(x)
23133 lui $4, %dtprel_hi(x)
23134 addiu $4, $4, %dtprel_lo(x)
23135 lw $4, %gottprel(x)($28)
23136 lui $4, %tprel_hi(x)
23137 addiu $4, $4, %tprel_lo(x)'
23140 tls_as_opt
='-32 --fatal-warnings'
23144 .section .tdata,"awT",@progbits
23149 move.l x@TLSGD(%a5),%a0
23150 move.l x@TLSLDM(%a5),%a0
23151 move.l x@TLSLDO(%a5),%a0
23152 move.l x@TLSIE(%a5),%a0
23153 move.l x@TLSLE(%a5),%a0'
23156 tls_as_opt
='--fatal-warnings'
23160 .section ".tdata","awT",@progbits
23168 addi 3,31,ld0@got@tlsgd
23170 addi 3,31,x1@got@tlsld
23173 addis 9,3,x2@dtprel@ha
23174 addi 9,9,x2@dtprel@l
23175 lwz 9,x3@got@tprel(31)
23178 addis 9,2,x2@tprel@ha
23179 addi 9,9,x2@tprel@l'
23182 tls_as_opt
="-a32 --fatal-warnings"
23186 .section ".tdata","awT",@progbits
23194 addi 3,2,ld0@got@tlsgd
23200 addi 3,2,x1@got@tlsld
23206 addis 9,3,x2@dtprel@ha
23207 addi 9,9,x2@dtprel@l
23210 ld 9,x3@got@dtprel(2)
23216 tls_as_opt
="-a64 --fatal-warnings"
23220 .section ".tdata","awT",@progbits
23227 .long foo@GOTNTPOFF
23228 .long foo@INDNTPOFF
23229 l %r1,foo@GOTNTPOFF(%r12)
23230 l %r1,0(%r1):tls_load:foo
23231 bas %r14,0(%r1,%r13):tls_gdcall:foo
23232 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23235 tls_as_opt
="-m31 --fatal-warnings"
23239 .section ".tdata","awT",@progbits
23246 .quad foo@GOTNTPOFF
23247 lg %r1,foo@GOTNTPOFF(%r12)
23248 larl %r1,foo@INDNTPOFF
23249 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23250 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23253 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23255 sh-
*-* | sh
[34]-*-*)
23257 .section ".tdata","awT",@progbits
23267 tls_as_opt
=--fatal-warnings
23271 sparc
*-sun-solaris2.
*)
23273 tga_func
=__tls_get_addr
23279 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23281 .section ".tdata",#alloc,#write,#tls'
23286 .section ".tdata","awT",@progbits'
23289 tls_as_opt
="-32 --fatal-warnings"
23291 conftest_s
="$conftest_s
23294 sethi %tgd_hi22(foo), %o0
23295 add %o0, %tgd_lo10(foo), %o1
23296 add %l7, %o1, %o0, %tgd_add(foo)
23297 call __tls_get_addr, %tgd_call(foo)
23298 sethi %tldm_hi22(foo), %l1
23299 add %l1, %tldm_lo10(foo), %l2
23300 add %l7, %l2, %o0, %tldm_add(foo)
23301 call __tls_get_addr, %tldm_call(foo)
23302 sethi %tldo_hix22(foo), %l3
23303 xor %l3, %tldo_lox10(foo), %l4
23304 add %o0, %l4, %l5, %tldo_add(foo)
23305 sethi %tie_hi22(foo), %o3
23306 add %o3, %tie_lo10(foo), %o3
23307 ld [%l7 + %o3], %o2, %tie_ld(foo)
23308 add %g7, %o2, %o4, %tie_add(foo)
23309 sethi %tle_hix22(foo), %l1
23310 xor %l1, %tle_lox10(foo), %o5
23311 ld [%g7 + %o5], %o1"
23315 .section ".tdata","awT",@progbits
23318 movi a8, foo@TLSFUNC
23319 movi a10, foo@TLSARG
23320 callx8.tls a8, foo@TLSCALL'
23326 if test "x$enable_tls" = xno
; then
23327 : # TLS explicitly disabled.
23328 elif test "x$enable_tls" = xyes
; then
23329 set_have_as_tls
=yes # TLS explicitly enabled.
23330 elif test -z "$tls_first_major"; then
23331 : # If we don't have a check, assume no support.
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23334 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23335 if test "${gcc_cv_as_tls+set}" = set; then :
23336 $as_echo_n "(cached) " >&6
23339 if test $in_tree_gas = yes; then
23340 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23341 then gcc_cv_as_tls
=yes
23343 elif test x
$gcc_cv_as != x
; then
23344 $as_echo "$conftest_s" > conftest.s
23345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23347 (eval $ac_try) 2>&5
23349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23350 test $ac_status = 0; }; }
23354 echo "configure: failed program was" >&5
23357 rm -f conftest.o conftest.s
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23361 $as_echo "$gcc_cv_as_tls" >&6; }
23362 if test $gcc_cv_as_tls = yes; then
23363 set_have_as_tls
=yes
23368 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23369 # with TLS support are in use, native TLS cannot work.
23373 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23374 # gld with TLS support are in use, native TLS cannot work.
23377 # TLS was introduced in the Solaris 9 FCS release and backported to
23378 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23379 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23380 # ld and GCC don't support any longer.
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23383 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23385 # Check ld and ld.so.1 TLS support.
23386 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23387 # Assume all interesting versions of GNU ld have TLS support.
23388 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23392 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23394 min_tls_ld_vers_minor
=280
23396 # Solaris 8/SPARC ld has TLS support since version 1.272.
23397 sparc
*-*-solaris2.8
)
23398 min_tls_ld_vers_minor
=272
23400 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23402 min_tls_ld_vers_minor
=374
23404 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23405 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23406 min_tls_ld_vers_minor
=343
23409 if test "$ld_vers_major" -gt 1 || \
23410 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23417 $as_echo "$ld_tls_support" >&6; }
23420 save_LDFLAGS
="$LDFLAGS"
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23425 $as_echo_n "checking alternate thread library... " >&6; }
23427 # TLS support was backported to Solaris 8 patches, but only lives in
23428 # the alternate thread library which became the default in Solaris 9.
23429 # We want to always use that, irrespective of TLS support.
23431 # Take multilib subdir into account. There's no spec to handle
23432 # this. The 64 symlink exists since Solaris 8.
23433 lwp_dir
=/usr
/lib
/lwp
23434 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23435 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23442 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23444 cat >>confdefs.h
<<_ACEOF
23445 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23449 $as_echo "$lwp_dir" >&6; }
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23452 $as_echo_n "checking library containing $tga_func... " >&6; }
23453 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23454 # (32-bit x86) only lived in libthread, so check for that. Keep
23455 # set_have_as_tls if found, disable if not.
23456 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23458 $as_echo_n "checking for library containing $tga_func... " >&6; }
23459 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23460 $as_echo_n "(cached) " >&6
23462 ac_func_search_save_LIBS
=$LIBS
23463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23464 /* end confdefs.h. */
23466 /* Override any GCC internal prototype to avoid an error.
23467 Use char because int might match the return type of a GCC
23468 builtin and then its argument prototype would still apply. */
23476 return $tga_func ();
23481 for ac_lib
in '' thread
; do
23482 if test -z "$ac_lib"; then
23483 ac_res
="none required"
23486 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23488 if ac_fn_c_try_link
"$LINENO"; then :
23489 eval "$as_ac_Search=\$ac_res"
23491 rm -f core conftest.err conftest.
$ac_objext \
23493 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23497 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23500 eval "$as_ac_Search=no"
23502 rm conftest.
$ac_ext
23503 LIBS
=$ac_func_search_save_LIBS
23505 eval ac_res
=\$
$as_ac_Search
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23507 $as_echo "$ac_res" >&6; }
23508 eval ac_res
=\$
$as_ac_Search
23509 if test "$ac_res" != no
; then :
23510 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23516 # Clear LIBS if we cannot support TLS.
23517 if test $set_have_as_tls = no
; then
23520 # Always define LIB_TLS_SPEC, even without TLS support.
23522 cat >>confdefs.h
<<_ACEOF
23523 #define LIB_TLS_SPEC "$LIBS"
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23527 $as_echo "$LIBS" >&6; }
23530 LDFLAGS
="$save_LDFLAGS"
23533 if test $set_have_as_tls = yes ; then
23535 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23539 # Target-specific assembler checks.
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23542 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23543 gcc_cv_ld_static_dynamic
=no
23544 gcc_cv_ld_static_option
='-Bstatic'
23545 gcc_cv_ld_dynamic_option
='-Bdynamic'
23546 if test $in_tree_ld = yes ; then
23547 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
23548 gcc_cv_ld_static_dynamic
=yes
23550 elif test x
$gcc_cv_ld != x
; then
23551 # Check if linker supports -Bstatic/-Bdynamic option
23552 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23553 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23554 gcc_cv_ld_static_dynamic
=yes
23557 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23559 gcc_cv_ld_static_dynamic
=yes
23560 gcc_cv_ld_static_option
="-noso"
23561 gcc_cv_ld_dynamic_option
="-so_archive"
23563 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23565 gcc_cv_ld_static_dynamic
=yes
23567 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23569 gcc_cv_ld_static_dynamic
=yes
23574 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23576 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23579 cat >>confdefs.h
<<_ACEOF
23580 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23584 cat >>confdefs.h
<<_ACEOF
23585 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23590 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23592 if test x
"$demangler_in_ld" = xyes
; then
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23594 $as_echo_n "checking linker --demangle support... " >&6; }
23595 gcc_cv_ld_demangle
=no
23596 if test $in_tree_ld = yes; then
23597 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 \
23598 gcc_cv_ld_demangle
=yes
23600 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23601 # Check if the GNU linker supports --demangle option
23602 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23603 gcc_cv_ld_demangle
=yes
23606 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23608 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23612 $as_echo "$gcc_cv_ld_demangle" >&6; }
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23616 $as_echo_n "checking linker plugin support... " >&6; }
23617 gcc_cv_lto_plugin
=0
23618 if test -f liblto_plugin.la
; then
23619 save_ld_ver
="$ld_ver"
23620 save_ld_vers_major
="$ld_vers_major"
23621 save_ld_vers_minor
="$ld_vers_minor"
23622 save_ld_is_gold
="$ld_is_gold"
23626 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23628 # FIXME: ld_is_gold?
23629 ld_vers_major
="$gcc_cv_gld_major_version"
23630 ld_vers_minor
="$gcc_cv_gld_minor_version"
23632 # Determine plugin linker version.
23633 # FIXME: Partial duplicate from above, generalize.
23634 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23635 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23636 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23638 ld_vers
=`echo $ld_ver | sed -n \
23639 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23641 ld_vers
=`echo $ld_ver | sed -n \
23642 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23644 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23645 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23649 # Determine plugin support.
23650 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23651 # Require GNU ld or gold 2.21+ for plugin support by default.
23652 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23653 gcc_cv_lto_plugin
=2
23654 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23655 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23656 gcc_cv_lto_plugin
=1
23660 ld_ver
="$save_ld_ver"
23661 ld_vers_major
="$save_ld_vers_major"
23662 ld_vers_minor
="$save_ld_vers_minor"
23663 ld_is_gold
="$save_ld_is_gold"
23666 cat >>confdefs.h
<<_ACEOF
23667 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23671 $as_echo "$gcc_cv_lto_plugin" >&6; }
23674 # All TARGET_ABI_OSF targets.
23675 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23677 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23678 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23679 $as_echo_n "(cached) " >&6
23681 gcc_cv_as_alpha_explicit_relocs
=no
23682 if test $in_tree_gas = yes; then
23683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23684 then gcc_cv_as_alpha_explicit_relocs
=yes
23686 elif test x
$gcc_cv_as != x
; then
23687 $as_echo ' .set nomacro
23689 extbl $3, $2, $3 !lituse_bytoff!1
23690 ldq $2, a($29) !literal!1
23691 ldq $4, b($29) !literal!2
23692 ldq_u $3, 0($2) !lituse_base!1
23693 ldq $27, f($29) !literal!5
23694 jsr $26, ($27), f !lituse_jsr!5
23695 ldah $29, 0($26) !gpdisp!3
23696 lda $0, c($29) !gprel
23697 ldah $1, d($29) !gprelhigh
23698 lda $1, d($1) !gprellow
23699 lda $29, 0($29) !gpdisp!3' > conftest.s
23700 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23702 (eval $ac_try) 2>&5
23704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23705 test $ac_status = 0; }; }
23707 gcc_cv_as_alpha_explicit_relocs
=yes
23709 echo "configure: failed program was" >&5
23712 rm -f conftest.o conftest.s
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23716 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23717 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23719 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23723 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23724 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23725 $as_echo_n "(cached) " >&6
23727 gcc_cv_as_alpha_jsrdirect_relocs
=no
23728 if test $in_tree_gas = yes; then
23729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23730 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23732 elif test x
$gcc_cv_as != x
; then
23733 $as_echo ' .set nomacro
23735 ldq $27, a($29) !literal!1
23736 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23737 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23739 (eval $ac_try) 2>&5
23741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23742 test $ac_status = 0; }; }
23744 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23746 echo "configure: failed program was" >&5
23749 rm -f conftest.o conftest.s
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23753 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23754 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23756 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23763 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23764 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23765 $as_echo_n "(cached) " >&6
23767 gcc_cv_as_cris_no_mul_bug
=no
23768 if test $in_tree_gas = yes; then
23769 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23770 then gcc_cv_as_cris_no_mul_bug
=yes
23772 elif test x
$gcc_cv_as != x
; then
23773 $as_echo '.text' > conftest.s
23774 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23776 (eval $ac_try) 2>&5
23778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23779 test $ac_status = 0; }; }
23781 gcc_cv_as_cris_no_mul_bug
=yes
23783 echo "configure: failed program was" >&5
23786 rm -f conftest.o conftest.s
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23790 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23791 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23793 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23800 $as_echo_n "checking assembler for .register... " >&6; }
23801 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23802 $as_echo_n "(cached) " >&6
23804 gcc_cv_as_sparc_register_op
=no
23805 if test x
$gcc_cv_as != x
; then
23806 $as_echo '.register %g2, #scratch' > conftest.s
23807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23814 gcc_cv_as_sparc_register_op
=yes
23816 echo "configure: failed program was" >&5
23819 rm -f conftest.o conftest.s
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23823 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23824 if test $gcc_cv_as_sparc_register_op = yes; then
23826 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23831 $as_echo_n "checking assembler for -relax option... " >&6; }
23832 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23833 $as_echo_n "(cached) " >&6
23835 gcc_cv_as_sparc_relax
=no
23836 if test x
$gcc_cv_as != x
; then
23837 $as_echo '.text' > conftest.s
23838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23840 (eval $ac_try) 2>&5
23842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23843 test $ac_status = 0; }; }
23845 gcc_cv_as_sparc_relax
=yes
23847 echo "configure: failed program was" >&5
23850 rm -f conftest.o conftest.s
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23854 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23855 if test $gcc_cv_as_sparc_relax = yes; then
23857 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23862 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23863 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23864 $as_echo_n "(cached) " >&6
23866 gcc_cv_as_sparc_gotdata_op
=no
23867 if test x
$gcc_cv_as != x
; then
23873 sethi %gdop_hix22(foo), %g1
23874 xor %g1, %gdop_lox10(foo), %g1
23875 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23878 (eval $ac_try) 2>&5
23880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23881 test $ac_status = 0; }; }
23883 if test x
$gcc_cv_ld != x \
23884 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23885 if test x
$gcc_cv_objdump != x
; then
23886 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23887 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23888 gcc_cv_as_sparc_gotdata_op
=no
23890 gcc_cv_as_sparc_gotdata_op
=yes
23896 echo "configure: failed program was" >&5
23899 rm -f conftest.o conftest.s
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23903 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23904 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23906 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23911 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23912 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23913 $as_echo_n "(cached) " >&6
23915 gcc_cv_as_sparc_ua_pcrel
=no
23916 if test x
$gcc_cv_as != x
; then
23923 .uaword %r_disp32(foo)' > conftest.s
23924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23926 (eval $ac_try) 2>&5
23928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23929 test $ac_status = 0; }; }
23931 if test x
$gcc_cv_ld != x \
23932 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23933 gcc_cv_as_sparc_ua_pcrel
=yes
23937 echo "configure: failed program was" >&5
23940 rm -f conftest.o conftest.s
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23944 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23945 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23947 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23951 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23952 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23953 $as_echo_n "(cached) " >&6
23955 gcc_cv_as_sparc_ua_pcrel_hidden
=no
23956 if test x
$gcc_cv_as != x
; then
23960 .uaword %r_disp32(foo)
23961 .byte 0x32, 0x33, 0x34
23965 .skip 4' > conftest.s
23966 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23968 (eval $ac_try) 2>&5
23970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23971 test $ac_status = 0; }; }
23973 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
23974 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
23975 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
23976 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
23977 if $gcc_cv_objdump -R conftest
2> /dev
/null \
23978 |
grep 'DISP32' > /dev
/null
2>&1; then
23981 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
23986 echo "configure: failed program was" >&5
23989 rm -f conftest.o conftest.s
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23993 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23994 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23996 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24000 fi # unaligned pcrel relocs
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24003 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24004 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24005 $as_echo_n "(cached) " >&6
24007 gcc_cv_as_sparc_offsetable_lo10
=no
24008 if test x
$gcc_cv_as != x
; then
24010 or %g1, %lo(ab) + 12, %g1
24011 or %g1, %lo(ab + 12), %g1' > conftest.s
24012 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }
24019 if test x
$gcc_cv_objdump != x \
24020 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24021 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24022 gcc_cv_as_sparc_offsetable_lo10
=yes
24025 echo "configure: failed program was" >&5
24028 rm -f conftest.o conftest.s
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24032 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24033 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24035 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24040 i
[34567]86-*-* | x86_64-
*-*)
24043 # Full C++ conformance when using a shared libstdc++-v3 requires some
24044 # support from the Cygwin DLL, which in more recent versions exports
24045 # wrappers to aid in interposing and redirecting operators new, delete,
24046 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24047 # are configuring for a version of Cygwin that exports the wrappers.
24048 if test x
$host = x
$target; then
24049 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24050 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24051 gcc_ac_cygwin_dll_wrappers
=yes
24053 gcc_ac_cygwin_dll_wrappers
=no
24057 # Can't check presence of libc functions during cross-compile, so
24058 # we just have to assume we're building for an up-to-date target.
24059 gcc_ac_cygwin_dll_wrappers
=yes
24062 cat >>confdefs.h
<<_ACEOF
24063 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24068 cygwin
* | pe | mingw32
*)
24069 # Recent binutils allows the three-operand form of ".comm" on PE. This
24070 # definition is used unconditionally to initialise the default state of
24071 # the target option variable that governs usage of the feature.
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24073 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24074 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24075 $as_echo_n "(cached) " >&6
24077 gcc_cv_as_comm_has_align
=no
24078 if test $in_tree_gas = yes; then
24079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24080 then gcc_cv_as_comm_has_align
=yes
24082 elif test x
$gcc_cv_as != x
; then
24083 $as_echo '.comm foo,1,32' > conftest.s
24084 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24086 (eval $ac_try) 2>&5
24088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24089 test $ac_status = 0; }; }
24091 gcc_cv_as_comm_has_align
=yes
24093 echo "configure: failed program was" >&5
24096 rm -f conftest.o conftest.s
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24100 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24103 cat >>confdefs.h
<<_ACEOF
24104 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24107 # Used for DWARF 2 in PE
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24109 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24110 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24111 $as_echo_n "(cached) " >&6
24113 gcc_cv_as_ix86_pe_secrel32
=no
24114 if test $in_tree_gas = yes; then
24115 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24116 then gcc_cv_as_ix86_pe_secrel32
=yes
24118 elif test x
$gcc_cv_as != x
; then
24122 .secrel32 foo' > conftest.s
24123 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24125 (eval $ac_try) 2>&5
24127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24128 test $ac_status = 0; }; }
24130 if test x
$gcc_cv_ld != x \
24131 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24132 gcc_cv_as_ix86_pe_secrel32
=yes
24136 echo "configure: failed program was" >&5
24139 rm -f conftest.o conftest.s
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24143 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24144 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24146 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24149 # Test if the assembler supports the extended form of the .section
24150 # directive that specifies section alignment. LTO support uses this,
24151 # but normally only after installation, so we warn but don't fail the
24152 # configure if LTO is enabled but the assembler does not support it.
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24154 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24155 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24156 $as_echo_n "(cached) " >&6
24158 gcc_cv_as_section_has_align
=no
24159 if test $in_tree_gas = yes; then
24160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24161 then gcc_cv_as_section_has_align
=yes
24163 elif test x
$gcc_cv_as != x
; then
24164 $as_echo '.section lto_test,"dr0"' > conftest.s
24165 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167 (eval $ac_try) 2>&5
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; }; }
24172 gcc_cv_as_section_has_align
=yes
24174 echo "configure: failed program was" >&5
24177 rm -f conftest.o conftest.s
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24181 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24183 if test x
$gcc_cv_as_section_has_align != xyes
; then
24184 case ",$enable_languages," in
24186 { $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
24187 $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;}
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24195 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24196 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24197 $as_echo_n "(cached) " >&6
24199 gcc_cv_as_ix86_filds
=no
24200 if test x
$gcc_cv_as != x
; then
24201 $as_echo 'filds mem; fists mem' > conftest.s
24202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24204 (eval $ac_try) 2>&5
24206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24207 test $ac_status = 0; }; }
24209 gcc_cv_as_ix86_filds
=yes
24211 echo "configure: failed program was" >&5
24214 rm -f conftest.o conftest.s
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24218 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24219 if test $gcc_cv_as_ix86_filds = yes; then
24221 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24226 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24227 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24230 gcc_cv_as_ix86_fildq
=no
24231 if test x
$gcc_cv_as != x
; then
24232 $as_echo 'fildq mem; fistpq mem' > conftest.s
24233 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24235 (eval $ac_try) 2>&5
24237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24238 test $ac_status = 0; }; }
24240 gcc_cv_as_ix86_fildq
=yes
24242 echo "configure: failed program was" >&5
24245 rm -f conftest.o conftest.s
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24249 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24250 if test $gcc_cv_as_ix86_fildq = yes; then
24252 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24257 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24258 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24259 $as_echo_n "(cached) " >&6
24261 gcc_cv_as_ix86_cmov_sun_syntax
=no
24262 if test x
$gcc_cv_as != x
; then
24263 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24264 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24266 (eval $ac_try) 2>&5
24268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24269 test $ac_status = 0; }; }
24271 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24273 echo "configure: failed program was" >&5
24276 rm -f conftest.o conftest.s
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24280 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24281 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24283 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24288 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24289 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24290 $as_echo_n "(cached) " >&6
24292 gcc_cv_as_ix86_ffreep
=no
24293 if test x
$gcc_cv_as != x
; then
24294 $as_echo 'ffreep %st(1)' > conftest.s
24295 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24297 (eval $ac_try) 2>&5
24299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24300 test $ac_status = 0; }; }
24302 gcc_cv_as_ix86_ffreep
=yes
24304 echo "configure: failed program was" >&5
24307 rm -f conftest.o conftest.s
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24311 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24312 if test $gcc_cv_as_ix86_ffreep = yes; then
24314 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24319 $as_echo_n "checking assembler for .quad directive... " >&6; }
24320 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24321 $as_echo_n "(cached) " >&6
24323 gcc_cv_as_ix86_quad
=no
24324 if test x
$gcc_cv_as != x
; then
24325 $as_echo '.quad 0' > conftest.s
24326 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24328 (eval $ac_try) 2>&5
24330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331 test $ac_status = 0; }; }
24333 gcc_cv_as_ix86_quad
=yes
24335 echo "configure: failed program was" >&5
24338 rm -f conftest.o conftest.s
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24342 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24343 if test $gcc_cv_as_ix86_quad = yes; then
24345 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24350 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24351 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24352 $as_echo_n "(cached) " >&6
24354 gcc_cv_as_ix86_sahf
=no
24355 if test x
$gcc_cv_as != x
; then
24358 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360 (eval $ac_try) 2>&5
24362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363 test $ac_status = 0; }; }
24365 gcc_cv_as_ix86_sahf
=yes
24367 echo "configure: failed program was" >&5
24370 rm -f conftest.o conftest.s
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24374 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24375 if test $gcc_cv_as_ix86_sahf = yes; then
24377 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24382 $as_echo_n "checking assembler for swap suffix... " >&6; }
24383 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24384 $as_echo_n "(cached) " >&6
24386 gcc_cv_as_ix86_swap
=no
24387 if test x
$gcc_cv_as != x
; then
24388 $as_echo 'movl.s %esp, %ebp' > conftest.s
24389 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24391 (eval $ac_try) 2>&5
24393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24394 test $ac_status = 0; }; }
24396 gcc_cv_as_ix86_swap
=yes
24398 echo "configure: failed program was" >&5
24401 rm -f conftest.o conftest.s
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24405 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24406 if test $gcc_cv_as_ix86_swap = yes; then
24408 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24413 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24414 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24415 $as_echo_n "(cached) " >&6
24417 gcc_cv_as_ix86_diff_sect_delta
=no
24418 if test x
$gcc_cv_as != x
; then
24419 $as_echo '.section .rodata
24425 .L2: nop' > conftest.s
24426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24428 (eval $ac_try) 2>&5
24430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24431 test $ac_status = 0; }; }
24433 gcc_cv_as_ix86_diff_sect_delta
=yes
24435 echo "configure: failed program was" >&5
24438 rm -f conftest.o conftest.s
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24442 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24443 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24445 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24449 # These two are used unconditionally by i386.[ch]; it is to be defined
24450 # to 1 if the feature is present, 0 otherwise.
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24452 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24453 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24454 $as_echo_n "(cached) " >&6
24456 gcc_cv_as_ix86_gotoff_in_data
=no
24457 if test $in_tree_gas = yes; then
24458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24459 then gcc_cv_as_ix86_gotoff_in_data
=yes
24461 elif test x
$gcc_cv_as != x
; then
24466 .long .L0@GOTOFF' > conftest.s
24467 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24469 (eval $ac_try) 2>&5
24471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24472 test $ac_status = 0; }; }
24474 gcc_cv_as_ix86_gotoff_in_data
=yes
24476 echo "configure: failed program was" >&5
24479 rm -f conftest.o conftest.s
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24483 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24486 cat >>confdefs.h
<<_ACEOF
24487 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24492 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24493 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24494 $as_echo_n "(cached) " >&6
24496 gcc_cv_as_ix86_rep_lock_prefix
=no
24497 if test x
$gcc_cv_as != x
; then
24498 $as_echo 'rep movsl
24499 lock addl %edi, (%eax,%esi)
24500 lock orl $0, (%esp)' > conftest.s
24501 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24503 (eval $ac_try) 2>&5
24505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506 test $ac_status = 0; }; }
24508 gcc_cv_as_ix86_rep_lock_prefix
=yes
24510 echo "configure: failed program was" >&5
24513 rm -f conftest.o conftest.s
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24517 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24518 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24520 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24525 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24526 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24527 $as_echo_n "(cached) " >&6
24529 gcc_cv_as_ix86_tlsgdplt
=no
24530 if test x
$gcc_cv_as != x
; then
24531 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; }
24539 gcc_cv_as_ix86_tlsgdplt
=yes
24541 echo "configure: failed program was" >&5
24544 rm -f conftest.o conftest.s
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24548 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24549 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24551 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24556 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24557 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24558 $as_echo_n "(cached) " >&6
24560 gcc_cv_as_ix86_tlsldmplt
=no
24561 if test x
$gcc_cv_as != x
; then
24562 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24563 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24565 (eval $ac_try) 2>&5
24567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24568 test $ac_status = 0; }; }
24570 gcc_cv_as_ix86_tlsldmplt
=yes
24572 echo "configure: failed program was" >&5
24575 rm -f conftest.o conftest.s
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24579 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24580 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24582 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24590 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24591 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24592 $as_echo_n "(cached) " >&6
24594 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24595 if test $in_tree_gas = yes; then
24596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24597 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24599 elif test x
$gcc_cv_as != x
; then
24601 addl r15 = @ltoffx(x#), gp
24603 ld8.mov r16 = [r15], x#' > conftest.s
24604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24606 (eval $ac_try) 2>&5
24608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24609 test $ac_status = 0; }; }
24611 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24613 echo "configure: failed program was" >&5
24616 rm -f conftest.o conftest.s
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24620 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24621 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24623 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24631 *-*-aix*) conftest_s
=' .machine "pwr5"
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24636 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24637 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24638 $as_echo_n "(cached) " >&6
24640 gcc_cv_as_machine_directive
=no
24641 if test x
$gcc_cv_as != x
; then
24642 $as_echo ' .machine ppc7400' > conftest.s
24643 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24645 (eval $ac_try) 2>&5
24647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24648 test $ac_status = 0; }; }
24650 gcc_cv_as_machine_directive
=yes
24652 echo "configure: failed program was" >&5
24655 rm -f conftest.o conftest.s
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24659 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24661 if test x
$gcc_cv_as_machine_directive != xyes
; then
24662 echo "*** This target requires an assembler supporting \".machine\"" >&2
24663 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24664 test x
$build = x
$target && exit 1
24668 *) conftest_s
=' .machine power4
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24674 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24675 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24676 $as_echo_n "(cached) " >&6
24678 gcc_cv_as_powerpc_mfcrf
=no
24679 if test $in_tree_gas = yes; then
24680 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24681 then gcc_cv_as_powerpc_mfcrf
=yes
24683 elif test x
$gcc_cv_as != x
; then
24684 $as_echo "$conftest_s" > conftest.s
24685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24687 (eval $ac_try) 2>&5
24689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24690 test $ac_status = 0; }; }
24692 gcc_cv_as_powerpc_mfcrf
=yes
24694 echo "configure: failed program was" >&5
24697 rm -f conftest.o conftest.s
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24701 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24702 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24704 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24709 *-*-aix*) conftest_s
=' .machine "pwr5"
24712 *) conftest_s
=' .machine power5
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24718 $as_echo_n "checking assembler for popcntb support... " >&6; }
24719 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24720 $as_echo_n "(cached) " >&6
24722 gcc_cv_as_powerpc_popcntb
=no
24723 if test $in_tree_gas = yes; then
24724 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24725 then gcc_cv_as_powerpc_popcntb
=yes
24727 elif test x
$gcc_cv_as != x
; then
24728 $as_echo "$conftest_s" > conftest.s
24729 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24731 (eval $ac_try) 2>&5
24733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24734 test $ac_status = 0; }; }
24736 gcc_cv_as_powerpc_popcntb
=yes
24738 echo "configure: failed program was" >&5
24741 rm -f conftest.o conftest.s
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24745 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24746 if test $gcc_cv_as_powerpc_popcntb = yes; then
24748 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24753 *-*-aix*) conftest_s
=' .machine "pwr5x"
24756 *) conftest_s
=' .machine power5
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24762 $as_echo_n "checking assembler for fp round support... " >&6; }
24763 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24764 $as_echo_n "(cached) " >&6
24766 gcc_cv_as_powerpc_fprnd
=no
24767 if test $in_tree_gas = yes; then
24768 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24769 then gcc_cv_as_powerpc_fprnd
=yes
24771 elif test x
$gcc_cv_as != x
; then
24772 $as_echo "$conftest_s" > conftest.s
24773 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24775 (eval $ac_try) 2>&5
24777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24778 test $ac_status = 0; }; }
24780 gcc_cv_as_powerpc_fprnd
=yes
24782 echo "configure: failed program was" >&5
24785 rm -f conftest.o conftest.s
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24789 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24790 if test $gcc_cv_as_powerpc_fprnd = yes; then
24792 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24797 *-*-aix*) conftest_s
=' .machine "pwr6"
24800 *) conftest_s
=' .machine power6
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24806 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24807 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24808 $as_echo_n "(cached) " >&6
24810 gcc_cv_as_powerpc_mfpgpr
=no
24811 if test $in_tree_gas = yes; then
24812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24813 then gcc_cv_as_powerpc_mfpgpr
=yes
24815 elif test x
$gcc_cv_as != x
; then
24816 $as_echo "$conftest_s" > conftest.s
24817 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24819 (eval $ac_try) 2>&5
24821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24822 test $ac_status = 0; }; }
24824 gcc_cv_as_powerpc_mfpgpr
=yes
24826 echo "configure: failed program was" >&5
24829 rm -f conftest.o conftest.s
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24833 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24834 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24836 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24841 *-*-aix*) conftest_s
=' .csect .text[PR]
24843 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24847 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24848 *) conftest_s
=' .text
24850 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24854 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24855 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24856 $as_echo_n "(cached) " >&6
24858 gcc_cv_as_powerpc_rel16
=no
24859 if test $in_tree_gas = yes; then
24860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24861 then gcc_cv_as_powerpc_rel16
=yes
24863 elif test x
$gcc_cv_as != x
; then
24864 $as_echo "$conftest_s" > conftest.s
24865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24867 (eval $ac_try) 2>&5
24869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24870 test $ac_status = 0; }; }
24872 gcc_cv_as_powerpc_rel16
=yes
24874 echo "configure: failed program was" >&5
24877 rm -f conftest.o conftest.s
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24881 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24882 if test $gcc_cv_as_powerpc_rel16 = yes; then
24884 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24889 *-*-aix*) conftest_s
=' .machine "pwr6"
24892 *) conftest_s
=' .machine power6
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24898 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24899 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24900 $as_echo_n "(cached) " >&6
24902 gcc_cv_as_powerpc_cmpb
=no
24903 if test $in_tree_gas = yes; then
24904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24905 then gcc_cv_as_powerpc_cmpb
=yes
24907 elif test x
$gcc_cv_as != x
; then
24908 $as_echo "$conftest_s" > conftest.s
24909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24911 (eval $ac_try) 2>&5
24913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24914 test $ac_status = 0; }; }
24916 gcc_cv_as_powerpc_cmpb
=yes
24918 echo "configure: failed program was" >&5
24921 rm -f conftest.o conftest.s
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24925 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24926 if test $gcc_cv_as_powerpc_cmpb = yes; then
24928 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24933 *-*-aix*) conftest_s
=' .machine "pwr6"
24936 *) conftest_s
=' .machine power6
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24942 $as_echo_n "checking assembler for decimal float support... " >&6; }
24943 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24944 $as_echo_n "(cached) " >&6
24946 gcc_cv_as_powerpc_dfp
=no
24947 if test $in_tree_gas = yes; then
24948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24949 then gcc_cv_as_powerpc_dfp
=yes
24951 elif test x
$gcc_cv_as != x
; then
24952 $as_echo "$conftest_s" > conftest.s
24953 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24955 (eval $ac_try) 2>&5
24957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24958 test $ac_status = 0; }; }
24960 gcc_cv_as_powerpc_dfp
=yes
24962 echo "configure: failed program was" >&5
24965 rm -f conftest.o conftest.s
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24969 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24970 if test $gcc_cv_as_powerpc_dfp = yes; then
24972 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24977 *-*-aix*) conftest_s
=' .machine "pwr7"
24980 *) conftest_s
=' .machine power7
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24986 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24987 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24988 $as_echo_n "(cached) " >&6
24990 gcc_cv_as_powerpc_vsx
=no
24991 if test $in_tree_gas = yes; then
24992 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24993 then gcc_cv_as_powerpc_vsx
=yes
24995 elif test x
$gcc_cv_as != x
; then
24996 $as_echo "$conftest_s" > conftest.s
24997 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999 (eval $ac_try) 2>&5
25001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002 test $ac_status = 0; }; }
25004 gcc_cv_as_powerpc_vsx
=yes
25006 echo "configure: failed program was" >&5
25009 rm -f conftest.o conftest.s
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25013 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25014 if test $gcc_cv_as_powerpc_vsx = yes; then
25016 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25021 *-*-aix*) conftest_s
=' .machine "pwr7"
25024 *) conftest_s
=' .machine power7
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25030 $as_echo_n "checking assembler for popcntd support... " >&6; }
25031 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25032 $as_echo_n "(cached) " >&6
25034 gcc_cv_as_powerpc_popcntd
=no
25035 if test $in_tree_gas = yes; then
25036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25037 then gcc_cv_as_powerpc_popcntd
=yes
25039 elif test x
$gcc_cv_as != x
; then
25040 $as_echo "$conftest_s" > conftest.s
25041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25043 (eval $ac_try) 2>&5
25045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25046 test $ac_status = 0; }; }
25048 gcc_cv_as_powerpc_popcntd
=yes
25050 echo "configure: failed program was" >&5
25053 rm -f conftest.o conftest.s
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25057 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25058 if test $gcc_cv_as_powerpc_popcntd = yes; then
25060 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25065 *-*-aix*) conftest_s
=' .csect .text[PR]
25067 *) conftest_s
=' .text
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25072 $as_echo_n "checking assembler for lwsync support... " >&6; }
25073 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25074 $as_echo_n "(cached) " >&6
25076 gcc_cv_as_powerpc_lwsync
=no
25077 if test $in_tree_gas = yes; then
25078 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25079 then gcc_cv_as_powerpc_lwsync
=yes
25081 elif test x
$gcc_cv_as != x
; then
25082 $as_echo "$conftest_s" > conftest.s
25083 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25085 (eval $ac_try) 2>&5
25087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25088 test $ac_status = 0; }; }
25090 gcc_cv_as_powerpc_lwsync
=yes
25092 echo "configure: failed program was" >&5
25095 rm -f conftest.o conftest.s
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25099 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25100 if test $gcc_cv_as_powerpc_lwsync = yes; then
25102 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25107 *-*-aix*) conftest_s
=' .machine "476"
25110 *) conftest_s
=' .machine "476"
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25116 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25117 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25118 $as_echo_n "(cached) " >&6
25120 gcc_cv_as_powerpc_dci
=no
25121 if test $in_tree_gas = yes; then
25122 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25123 then gcc_cv_as_powerpc_dci
=yes
25125 elif test x
$gcc_cv_as != x
; then
25126 $as_echo "$conftest_s" > conftest.s
25127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; }
25134 gcc_cv_as_powerpc_dci
=yes
25136 echo "configure: failed program was" >&5
25139 rm -f conftest.o conftest.s
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25143 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25144 if test $gcc_cv_as_powerpc_dci = yes; then
25146 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25151 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25152 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25153 $as_echo_n "(cached) " >&6
25155 gcc_cv_as_powerpc_gnu_attribute
=no
25156 if test $in_tree_gas = yes; then
25157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25158 then gcc_cv_as_powerpc_gnu_attribute
=yes
25160 elif test x
$gcc_cv_as != x
; then
25161 $as_echo '.gnu_attribute 4,1' > conftest.s
25162 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25164 (eval $ac_try) 2>&5
25166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25167 test $ac_status = 0; }; }
25169 gcc_cv_as_powerpc_gnu_attribute
=yes
25171 echo "configure: failed program was" >&5
25174 rm -f conftest.o conftest.s
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25178 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25179 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25181 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25186 $as_echo_n "checking assembler for tls marker support... " >&6; }
25187 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25188 $as_echo_n "(cached) " >&6
25190 gcc_cv_as_powerpc_tls_markers
=no
25191 if test $in_tree_gas = yes; then
25192 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25193 then gcc_cv_as_powerpc_tls_markers
=yes
25195 elif test x
$gcc_cv_as != x
; then
25196 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25197 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25199 (eval $ac_try) 2>&5
25201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25202 test $ac_status = 0; }; }
25204 gcc_cv_as_powerpc_tls_markers
=yes
25206 echo "configure: failed program was" >&5
25209 rm -f conftest.o conftest.s
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25213 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25214 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25216 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25223 $as_echo_n "checking assembler for .ref support... " >&6; }
25224 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25225 $as_echo_n "(cached) " >&6
25227 gcc_cv_as_aix_ref
=no
25228 if test $in_tree_gas = yes; then
25229 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25232 elif test x
$gcc_cv_as != x
; then
25233 $as_echo ' .csect stuff[rw]
25239 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25241 (eval $ac_try) 2>&5
25243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25244 test $ac_status = 0; }; }
25246 gcc_cv_as_aix_ref
=yes
25248 echo "configure: failed program was" >&5
25251 rm -f conftest.o conftest.s
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25255 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25256 if test $gcc_cv_as_aix_ref = yes; then
25258 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25267 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25268 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25269 $as_echo_n "(cached) " >&6
25271 gcc_cv_as_mips_explicit_relocs
=no
25272 if test $in_tree_gas = yes; then
25273 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25274 then gcc_cv_as_mips_explicit_relocs
=yes
25276 elif test x
$gcc_cv_as != x
; then
25277 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25278 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25280 (eval $ac_try) 2>&5
25282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25283 test $ac_status = 0; }; }
25285 gcc_cv_as_mips_explicit_relocs
=yes
25287 echo "configure: failed program was" >&5
25290 rm -f conftest.o conftest.s
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25294 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25295 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25296 if test x
$target_cpu_default = x
25297 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25298 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25302 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25303 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25306 gcc_cv_as_mips_no_shared
=no
25307 if test $in_tree_gas = yes; then
25308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25309 then gcc_cv_as_mips_no_shared
=yes
25311 elif test x
$gcc_cv_as != x
; then
25312 $as_echo 'nop' > conftest.s
25313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25315 (eval $ac_try) 2>&5
25317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25318 test $ac_status = 0; }; }
25320 gcc_cv_as_mips_no_shared
=yes
25322 echo "configure: failed program was" >&5
25325 rm -f conftest.o conftest.s
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25329 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25330 if test $gcc_cv_as_mips_no_shared = yes; then
25332 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25337 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25338 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25339 $as_echo_n "(cached) " >&6
25341 gcc_cv_as_mips_gnu_attribute
=no
25342 if test $in_tree_gas = yes; then
25343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25344 then gcc_cv_as_mips_gnu_attribute
=yes
25346 elif test x
$gcc_cv_as != x
; then
25347 $as_echo '.gnu_attribute 4,1' > conftest.s
25348 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25350 (eval $ac_try) 2>&5
25352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25353 test $ac_status = 0; }; }
25355 gcc_cv_as_mips_gnu_attribute
=yes
25357 echo "configure: failed program was" >&5
25360 rm -f conftest.o conftest.s
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25364 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25365 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25367 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25372 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25373 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25374 $as_echo_n "(cached) " >&6
25376 gcc_cv_as_mips_dtprelword
=no
25377 if test $in_tree_gas = yes; then
25378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25379 then gcc_cv_as_mips_dtprelword
=yes
25381 elif test x
$gcc_cv_as != x
; then
25382 $as_echo '.section .tdata,"awT",@progbits
25386 .dtprelword x+0x8000' > conftest.s
25387 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25389 (eval $ac_try) 2>&5
25391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25392 test $ac_status = 0; }; }
25394 gcc_cv_as_mips_dtprelword
=yes
25396 echo "configure: failed program was" >&5
25399 rm -f conftest.o conftest.s
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25403 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25404 if test $gcc_cv_as_mips_dtprelword = yes; then
25406 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25411 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25412 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25413 $as_echo_n "(cached) " >&6
25415 gcc_cv_as_mips_dspr1_mult
=no
25416 if test x
$gcc_cv_as != x
; then
25417 $as_echo ' .set mips32r2
25425 multu $ac3,$4,$5' > conftest.s
25426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25428 (eval $ac_try) 2>&5
25430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25431 test $ac_status = 0; }; }
25433 gcc_cv_as_mips_dspr1_mult
=yes
25435 echo "configure: failed program was" >&5
25438 rm -f conftest.o conftest.s
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25442 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25443 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25445 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25450 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25451 gcc_cv_as_ld_jalr_reloc
=no
25452 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25453 if test $in_tree_ld = yes ; then
25454 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 \
25455 && test $in_tree_ld_is_elf = yes; then
25456 gcc_cv_as_ld_jalr_reloc
=yes
25458 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25459 echo ' .ent x' > conftest.s
25460 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25461 echo ' ld $25,%call16(y)($28)' >> conftest.s
25462 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25463 echo '1: jalr $25' >> conftest.s
25464 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25465 echo '1: jalr $25' >> conftest.s
25466 echo ' .end x' >> conftest.s
25467 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25468 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25469 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25470 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25471 gcc_cv_as_ld_jalr_reloc
=yes
25477 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25478 if test x
$target_cpu_default = x
; then
25479 target_cpu_default
=MASK_RELAX_PIC_CALLS
25481 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25485 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25488 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25489 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25490 $as_echo_n "(cached) " >&6
25492 gcc_cv_ld_mips_personality_relaxation
=no
25493 if test $in_tree_ld = yes ; then
25494 if test "$gcc_cv_gld_major_version" -eq 2 \
25495 -a "$gcc_cv_gld_minor_version" -ge 21 \
25496 -o "$gcc_cv_gld_major_version" -gt 2; then
25497 gcc_cv_ld_mips_personality_relaxation
=yes
25499 elif test x
$gcc_cv_as != x \
25500 -a x
$gcc_cv_ld != x \
25501 -a x
$gcc_cv_readelf != x
; then
25502 cat > conftest.s
<<EOF
25504 .cfi_personality 0x80,indirect_ptr
25511 .section .data,"aw",@progbits
25515 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25516 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25517 if $gcc_cv_readelf -d conftest
2>&1 \
25518 |
grep TEXTREL
> /dev
/null
2>&1; then
25520 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25521 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25524 gcc_cv_ld_mips_personality_relaxation
=yes
25528 rm -f conftest.s conftest.o conftest
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25531 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25532 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25534 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25540 # Mips and HP-UX need the GNU assembler.
25541 # Linux on IA64 might be able to use the Intel assembler.
25544 mips
*-*-* |
*-*-hpux* )
25545 if test x
$gas_flag = xyes \
25546 ||
test x
"$host" != x
"$build" \
25547 ||
test ! -x "$gcc_cv_as" \
25548 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25551 echo "*** This configuration requires the GNU assembler" >&2
25557 # ??? Not all targets support dwarf2 debug_line, even within a version
25558 # of gas. Moreover, we need to emit a valid instruction to trigger any
25559 # info to the output file. So, as supported targets are added to gas 2.11,
25560 # add some instruction here to (also) show we expect this might work.
25561 # ??? Once 2.11 is released, probably need to add first known working
25562 # version to the per-target configury.
25563 case "$cpu_type" in
25564 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25565 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25575 if test x
"$insn" != x
; then
25577 .file 1 \"conftest.s\"
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25581 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25582 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25583 $as_echo_n "(cached) " >&6
25585 gcc_cv_as_dwarf2_debug_line
=no
25586 if test $in_tree_gas = yes; then
25587 if test $in_tree_gas_is_elf = yes \
25588 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25589 then gcc_cv_as_dwarf2_debug_line
=yes
25591 elif test x
$gcc_cv_as != x
; then
25592 $as_echo "$conftest_s" > conftest.s
25593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25595 (eval $ac_try) 2>&5
25597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25598 test $ac_status = 0; }; }
25600 if test x
$gcc_cv_objdump != x \
25601 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25602 |
grep debug_line
> /dev
/null
2>&1; then
25603 gcc_cv_as_dwarf2_debug_line
=yes
25606 echo "configure: failed program was" >&5
25609 rm -f conftest.o conftest.s
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25613 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25616 # The .debug_line file table must be in the exact order that
25617 # we specified the files, since these indices are also used
25618 # by DW_AT_decl_file. Approximate this test by testing if
25619 # the assembler bitches if the same index is assigned twice.
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25621 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25622 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25623 $as_echo_n "(cached) " >&6
25625 gcc_cv_as_dwarf2_file_buggy
=no
25626 if test x
$gcc_cv_as != x
; then
25627 $as_echo ' .file 1 "foo.s"
25628 .file 1 "bar.s"' > conftest.s
25629 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25631 (eval $ac_try) 2>&5
25633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25634 test $ac_status = 0; }; }
25636 gcc_cv_as_dwarf2_file_buggy
=yes
25638 echo "configure: failed program was" >&5
25641 rm -f conftest.o conftest.s
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25645 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25648 if test $gcc_cv_as_dwarf2_debug_line = yes \
25649 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25651 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25656 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25657 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25658 $as_echo_n "(cached) " >&6
25660 gcc_cv_as_gdwarf2_flag
=no
25661 if test $in_tree_gas = yes; then
25662 if test $in_tree_gas_is_elf = yes \
25663 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25664 then gcc_cv_as_gdwarf2_flag
=yes
25666 elif test x
$gcc_cv_as != x
; then
25667 $as_echo "$insn" > conftest.s
25668 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25670 (eval $ac_try) 2>&5
25672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25673 test $ac_status = 0; }; }
25675 gcc_cv_as_gdwarf2_flag
=yes
25677 echo "configure: failed program was" >&5
25680 rm -f conftest.o conftest.s
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25684 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25685 if test $gcc_cv_as_gdwarf2_flag = yes; then
25687 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25692 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25693 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25696 gcc_cv_as_gstabs_flag
=no
25697 if test $in_tree_gas = yes; then
25698 if test $in_tree_gas_is_elf = yes \
25699 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25700 then gcc_cv_as_gstabs_flag
=yes
25702 elif test x
$gcc_cv_as != x
; then
25703 $as_echo "$insn" > conftest.s
25704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25706 (eval $ac_try) 2>&5
25708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25709 test $ac_status = 0; }; }
25711 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25712 # and warns about it, but still exits successfully. So check for
25714 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25716 (eval $ac_try) 2>&5
25718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25719 test $ac_status = 0; }; }
25721 else gcc_cv_as_gstabs_flag
=yes
25724 echo "configure: failed program was" >&5
25727 rm -f conftest.o conftest.s
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25731 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25732 if test $gcc_cv_as_gstabs_flag = yes; then
25734 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25739 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25740 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25741 $as_echo_n "(cached) " >&6
25743 gcc_cv_as_debug_prefix_map_flag
=no
25744 if test $in_tree_gas = yes; then
25745 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25746 then gcc_cv_as_debug_prefix_map_flag
=yes
25748 elif test x
$gcc_cv_as != x
; then
25749 $as_echo "$insn" > conftest.s
25750 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25752 (eval $ac_try) 2>&5
25754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25755 test $ac_status = 0; }; }
25757 gcc_cv_as_debug_prefix_map_flag
=yes
25759 echo "configure: failed program was" >&5
25762 rm -f conftest.o conftest.s
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25766 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25767 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25769 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25775 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25776 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25777 $as_echo_n "(cached) " >&6
25779 gcc_cv_as_lcomm_with_alignment
=no
25780 if test x
$gcc_cv_as != x
; then
25781 $as_echo '.lcomm bar,4,16' > conftest.s
25782 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25784 (eval $ac_try) 2>&5
25786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25787 test $ac_status = 0; }; }
25789 gcc_cv_as_lcomm_with_alignment
=yes
25791 echo "configure: failed program was" >&5
25794 rm -f conftest.o conftest.s
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25798 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25799 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25801 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25805 # Check whether --enable-gnu-unique-object was given.
25806 if test "${enable_gnu_unique_object+set}" = set; then :
25807 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25809 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25810 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25814 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25815 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25816 $as_echo_n "(cached) " >&6
25818 gcc_cv_as_gnu_unique_object
=no
25819 if test $in_tree_gas = yes; then
25820 if test $in_tree_gas_is_elf = yes \
25821 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25822 then gcc_cv_as_gnu_unique_object
=yes
25824 elif test x
$gcc_cv_as != x
; then
25825 $as_echo '.type foo, @gnu_unique_object' > conftest.s
25826 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25828 (eval $ac_try) 2>&5
25830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25831 test $ac_status = 0; }; }
25833 gcc_cv_as_gnu_unique_object
=yes
25835 echo "configure: failed program was" >&5
25838 rm -f conftest.o conftest.s
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25842 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25843 if test $gcc_cv_as_gnu_unique_object = yes; then
25844 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25845 if test x
$host = x
$build -a x
$host = x
$target &&
25846 ldd
--version 2>/dev
/null
&&
25847 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25848 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
25849 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25850 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
25851 if test "$glibcnum" -ge 2011 ; then
25852 enable_gnu_unique_object
=yes
25858 if test x
$enable_gnu_unique_object = xyes
; then
25860 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25865 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25866 if test "${gcc_cv_as_line_zero+set}" = set; then :
25867 $as_echo_n "(cached) " >&6
25869 gcc_cv_as_line_zero
=no
25870 if test $in_tree_gas = yes; then
25871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25872 then gcc_cv_as_line_zero
=yes
25874 elif test "x$gcc_cv_as" != x
; then
25875 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25876 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; } &&
25882 test "x`cat conftest.out`" = x
25884 gcc_cv_as_line_zero
=yes
25886 echo "configure: failed program was" >&5
25888 echo "configure: error output was" >&5
25889 cat conftest.out
>&5
25891 rm -f conftest.o conftest.s conftest.out
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25895 $as_echo "$gcc_cv_as_line_zero" >&6; }
25896 if test "x$gcc_cv_as_line_zero" = xyes
; then
25898 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25903 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25904 gcc_cv_ld_eh_frame_hdr
=no
25905 if test $in_tree_ld = yes ; then
25906 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 \
25907 && test $in_tree_ld_is_elf = yes; then
25908 gcc_cv_ld_eh_frame_hdr
=yes
25910 elif test x
$gcc_cv_ld != x
; then
25911 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25912 # Check if linker supports --eh-frame-hdr option
25913 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
25914 gcc_cv_ld_eh_frame_hdr
=yes
25919 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25920 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
25921 gcc_cv_ld_eh_frame_hdr
=yes
25928 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
25930 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25934 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25937 $as_echo_n "checking linker position independent executable support... " >&6; }
25939 if test $in_tree_ld = yes ; then
25940 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 \
25941 && test $in_tree_ld_is_elf = yes; then
25944 elif test x
$gcc_cv_ld != x
; then
25945 # Check if linker supports -pie option
25946 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
25950 if test x
"$gcc_cv_ld_pie" = xyes
; then
25952 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25956 $as_echo "$gcc_cv_ld_pie" >&6; }
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25959 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25960 gcc_cv_ld_eh_gc_sections
=no
25961 if test $in_tree_ld = yes ; then
25962 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 \
25963 && test $in_tree_ld_is_elf = yes; then
25964 gcc_cv_ld_eh_gc_sections
=yes
25966 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25967 cat > conftest.s
<<EOF
25970 .type _start, @function
25973 .size _start, .-_start
25974 .section .text.foo,"ax",@progbits
25975 .type foo, @function
25979 .section .gcc_except_table.foo,"a",@progbits
25982 .section .eh_frame,"a",@progbits
25985 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25986 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25987 |
grep "gc-sections option ignored" > /dev
/null
; then
25988 gcc_cv_ld_eh_gc_sections
=no
25989 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25990 |
grep gcc_except_table
> /dev
/null
; then
25991 gcc_cv_ld_eh_gc_sections
=yes
25992 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25993 if test x
$gcc_cv_as_comdat_group != xyes
; then
25994 gcc_cv_ld_eh_gc_sections
=no
25995 cat > conftest.s
<<EOF
25998 .type _start, @function
26001 .size _start, .-_start
26002 .section .gnu.linkonce.t.foo,"ax",@progbits
26003 .type foo, @function
26007 .section .gcc_except_table.foo,"a",@progbits
26010 .section .eh_frame,"a",@progbits
26013 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26014 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26015 |
grep "gc-sections option ignored" > /dev
/null
; then
26016 gcc_cv_ld_eh_gc_sections
=no
26017 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26018 |
grep gcc_except_table
> /dev
/null
; then
26019 gcc_cv_ld_eh_gc_sections
=yes
26025 rm -f conftest.s conftest.o conftest
26029 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26030 gcc_cv_ld_eh_gc_sections
=no
26033 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26035 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26039 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26042 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26043 gcc_cv_ld_eh_gc_sections_bug
=no
26044 if test $in_tree_ld = yes ; then
26045 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 \
26046 && test $in_tree_ld_is_elf = yes; then
26047 gcc_cv_ld_eh_gc_sections_bug
=yes
26049 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
26050 gcc_cv_ld_eh_gc_sections_bug
=yes
26051 cat > conftest.s
<<EOF
26054 .type _start, @function
26057 .size _start, .-_start
26058 .section .text.startup.foo,"ax",@progbits
26059 .type foo, @function
26063 .section .gcc_except_table.foo,"a",@progbits
26066 .section .eh_frame,"a",@progbits
26069 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26070 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26071 |
grep "gc-sections option ignored" > /dev
/null
; then
26073 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26074 |
grep gcc_except_table
> /dev
/null
; then
26075 gcc_cv_ld_eh_gc_sections_bug
=no
26078 rm -f conftest.s conftest.o conftest
26080 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26082 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26086 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26093 $as_echo_n "checking linker --as-needed support... " >&6; }
26094 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26095 $as_echo_n "(cached) " >&6
26097 gcc_cv_ld_as_needed
=no
26098 if test $in_tree_ld = yes ; then
26099 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 \
26100 && test $in_tree_ld_is_elf = yes; then
26101 gcc_cv_ld_as_needed
=yes
26103 elif test x
$gcc_cv_ld != x
; then
26104 # Check if linker supports --as-needed and --no-as-needed options
26105 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26106 gcc_cv_ld_as_needed
=yes
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26112 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26113 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26115 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26119 case "$target:$tm_file" in
26120 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26122 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26123 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26124 $as_echo_n "(cached) " >&6
26126 gcc_cv_ld_no_dot_syms
=no
26127 if test $in_tree_ld = yes ; then
26128 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
26129 gcc_cv_ld_no_dot_syms
=yes
26131 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26132 cat > conftest1.s
<<EOF
26136 cat > conftest2.s
<<EOF
26137 .section ".opd","aw"
26140 .type foo,@function
26142 .quad .LEfoo,.TOC.@tocbase,0
26148 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26149 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26150 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26151 gcc_cv_ld_no_dot_syms
=yes
26153 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26158 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26159 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26161 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26166 $as_echo_n "checking linker large toc support... " >&6; }
26167 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26168 $as_echo_n "(cached) " >&6
26170 gcc_cv_ld_large_toc
=no
26171 if test $in_tree_ld = yes ; then
26172 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
26173 gcc_cv_ld_large_toc
=yes
26175 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26176 cat > conftest.s
<<EOF
26177 .section ".tbss","awT",@nobits
26183 addis 9,13,ie0@got@tprel@ha
26184 ld 9,ie0@got@tprel@l(9)
26186 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26187 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26188 gcc_cv_ld_large_toc
=yes
26190 rm -f conftest conftest.o conftest.s
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26195 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26196 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26198 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26205 $as_echo_n "checking linker --build-id support... " >&6; }
26206 if test "${gcc_cv_ld_buildid+set}" = set; then :
26207 $as_echo_n "(cached) " >&6
26209 gcc_cv_ld_buildid
=no
26210 if test $in_tree_ld = yes ; then
26211 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26212 "$gcc_cv_gld_minor_version" -ge 18 -o \
26213 "$gcc_cv_gld_major_version" -gt 2 \
26214 && test $in_tree_ld_is_elf = yes; then
26215 gcc_cv_ld_buildid
=yes
26217 elif test x
$gcc_cv_ld != x
; then
26218 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26219 gcc_cv_ld_buildid
=yes
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26224 $as_echo "$gcc_cv_ld_buildid" >&6; }
26225 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26227 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26231 # Check whether --enable-linker-build-id was given.
26232 if test "${enable_linker_build_id+set}" = set; then :
26233 enableval
=$enable_linker_build_id;
26235 enable_linker_build_id
=no
26239 if test x
"$enable_linker_build_id" = xyes
; then
26240 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26242 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26246 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26250 # In binutils 2.21, GNU ld gained support for new emulations fully
26251 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26253 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26254 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26255 $as_echo_n "(cached) " >&6
26257 gcc_cv_ld_sol2_emulation
=no
26258 if test $in_tree_ld = yes ; then
26259 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26260 "$gcc_cv_gld_minor_version" -ge 21 -o \
26261 "$gcc_cv_gld_major_version" -gt 2 \
26262 && test $in_tree_ld_is_elf = yes; then
26263 gcc_cv_ld_sol2_emulation
=yes
26265 elif test x
$gcc_cv_ld != x
; then
26266 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26267 grep _sol2
> /dev
/null
; then
26268 gcc_cv_ld_sol2_emulation
=yes
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26273 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26274 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26276 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26281 $as_echo_n "checking linker --sysroot support... " >&6; }
26282 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26283 $as_echo_n "(cached) " >&6
26285 gcc_cv_ld_sysroot
=no
26286 if test $in_tree_ld = yes ; then
26287 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
26288 gcc_cv_ld_sysroot
=yes
26290 elif test x
$gcc_cv_ld != x
; then
26291 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26292 gcc_cv_ld_sysroot
=yes
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26297 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26298 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26300 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26304 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26305 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26306 && test "$prefix" != "NONE"; then
26308 cat >>confdefs.h
<<_ACEOF
26309 #define PREFIX_INCLUDE_DIR "$prefix/include"
26314 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26315 if test "x$with_headers" != x
; then
26316 target_header_dir
=$with_headers
26317 elif test "x$with_sysroot" = x
; then
26318 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26319 elif test "x$with_build_sysroot" != "x"; then
26320 target_header_dir
="${with_build_sysroot}/usr/include"
26321 elif test "x$with_sysroot" = xyes
; then
26322 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26324 target_header_dir
="${with_sysroot}/usr/include"
26327 target_header_dir
=/usr
/include
26330 # Test for stack protector support in target C library.
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26332 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26333 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26334 $as_echo_n "(cached) " >&6
26336 gcc_cv_libc_provides_ssp
=no
26338 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26339 # glibc 2.4 and later provides __stack_chk_fail and
26340 # either __stack_chk_guard, or TLS access to stack guard canary.
26341 if test -f $target_header_dir/features.h \
26342 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26343 $target_header_dir/features.h
> /dev
/null
; then
26344 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26345 $target_header_dir/features.h
> /dev
/null
; then
26346 gcc_cv_libc_provides_ssp
=yes
26347 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26348 $target_header_dir/features.h
> /dev
/null \
26349 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26350 $target_header_dir/features.h
> /dev
/null
; then
26351 gcc_cv_libc_provides_ssp
=yes
26352 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26353 $target_header_dir/features.h
> /dev
/null
&& \
26354 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26355 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26356 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26357 gcc_cv_libc_provides_ssp
=yes
26362 # Avoid complicated tests (see
26363 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26364 # simply assert that glibc does provide this, which is true for all
26365 # realistically usable GNU/Hurd configurations.
26366 gcc_cv_libc_provides_ssp
=yes;;
26367 *-*-darwin* |
*-*-freebsd*)
26368 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26369 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26370 gcc_cv_libc_provides_ssp
=yes
26372 echo "no __stack_chk_fail on this target"
26376 *) gcc_cv_libc_provides_ssp
=no
;;
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26380 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26382 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26384 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26388 # Test for <sys/sdt.h> on the target.
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26391 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26393 if test -f $target_header_dir/sys
/sdt.h
; then
26395 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26399 $as_echo "$have_sys_sdt_h" >&6; }
26401 # Check if TFmode long double should be used by default or not.
26402 # Some glibc targets used DFmode long double, but with glibc 2.4
26403 # and later they can use TFmode.
26405 powerpc
*-*-linux* | \
26406 sparc
*-*-linux* | \
26410 # Check whether --with-long-double-128 was given.
26411 if test "${with_long_double_128+set}" = set; then :
26412 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26414 gcc_cv_target_ldbl128
=no
26415 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26416 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26417 && gcc_cv_target_ldbl128
=yes
26423 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26425 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26430 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26431 gcc_cv_target_dl_iterate_phdr
=unknown
26434 # <link.h> needs both a dl_iterate_phdr declaration and support for
26435 # compilation with largefile support.
26436 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26437 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26438 gcc_cv_target_dl_iterate_phdr
=yes
26440 gcc_cv_target_dl_iterate_phdr
=no
26445 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26447 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26451 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26453 # Find out what GC implementation we want, or may, use.
26455 # Check whether --with-gc was given.
26456 if test "${with_gc+set}" = set; then :
26457 withval
=$with_gc; case "$withval" in
26464 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26468 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26476 echo "Using $GGC for garbage collection."
26478 # Libraries to use on the host. This will normally be set by the top
26479 # level Makefile. Here we simply capture the value for our Makefile.
26480 if test -z "${HOST_LIBS+set}"; then
26485 # Use the system's zlib library.
26487 zlibinc
="-I\$(srcdir)/../zlib"
26489 # Check whether --with-system-zlib was given.
26490 if test "${with_system_zlib+set}" = set; then :
26491 withval
=$with_system_zlib; zlibdir
=
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26501 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26502 # Check whether --enable-maintainer-mode was given.
26503 if test "${enable_maintainer_mode+set}" = set; then :
26504 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26511 $as_echo "$maintainer_mode" >&6; }
26513 if test "$maintainer_mode" = "yes"; then
26523 # Make empty files to contain the specs and options for each language.
26524 # Then add #include lines to for a compiler that has specs and/or options.
26530 # These (without "all_") are set in each config-lang.in.
26531 # `language' must be a single word so is spelled singularly.
26534 all_outputs
='Makefile'
26535 # List of language makefile fragments.
26536 all_lang_makefrags
=
26537 # Additional files for gengtype
26538 all_gtfiles
="$target_gtfiles"
26540 # These are the languages that are set in --enable-languages,
26541 # and are available in the GCC tree.
26542 all_selected_languages
=
26544 # Add the language fragments.
26545 # Languages are added via two mechanisms. Some information must be
26546 # recorded in makefile variables, these are defined in config-lang.in.
26547 # We accumulate them and plug them into the main Makefile.
26548 # The other mechanism is a set of hooks for each of the main targets
26549 # like `clean', `install', etc.
26551 language_hooks
="Make-hooks"
26553 for lang
in ${srcdir}/*/config-lang.
in
26555 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26557 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26558 if test "x$lang_alias" = x
26560 echo "$lang doesn't set \$language." 1>&2
26563 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26564 subdirs
="$subdirs $subdir"
26566 # $gcc_subdir is where the gcc integration files are to be found
26567 # for a language, both for internal compiler purposes (compiler
26568 # sources implementing front-end to GCC tree converters), and for
26569 # build infrastructure purposes (Make-lang.in, etc.)
26571 # This will be <subdir> (relative to $srcdir) if a line like
26572 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26573 # is found in <langdir>/config-lang.in, and will remain <langdir>
26576 # Except for the language alias (fetched above), the regular
26577 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26578 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26579 # only this and the language alias.
26581 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26582 if [ "$gcc_subdir" = "" ]; then
26583 gcc_subdir
="$subdir"
26586 case ",$enable_languages," in
26588 all_selected_languages
="$all_selected_languages $lang_alias"
26589 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26590 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26601 .
${srcdir}/$gcc_subdir/config-lang.
in
26602 if test "x$language" = x
26604 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26609 case ",$enable_languages," in
26610 *,$lang_alias,*) ;;
26612 for i
in $subdir_requires; do
26613 test -f "${srcdir}/$i/config-lang.in" && continue
26621 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26622 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26623 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26624 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26626 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26627 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26629 all_languages
="$all_languages $language"
26630 all_compilers
="$all_compilers $compilers"
26631 all_outputs
="$all_outputs $outputs"
26632 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26633 case ",$enable_languages," in
26636 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26645 # Pick up gtfiles for c
26647 .
${srcdir}/c-config-lang.
in
26648 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26651 for language
in $all_selected_languages
26653 check_languages
="$check_languages check-$language"
26656 # We link each language in with a set of hooks, reached indirectly via
26657 # lang.${target}. Only do so for selected languages.
26661 target_list
="all.cross start.encap rest.encap tags \
26662 install-common install-man install-info install-pdf install-html dvi \
26663 pdf html uninstall info man srcextra srcman srcinfo \
26664 mostlyclean clean distclean maintainer-clean install-plugin"
26666 for t
in $target_list
26669 for lang
in $all_selected_languages
26673 echo "lang.$t: $x" >> Make-hooks
26677 # Option include files
26680 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26681 option_includes
="option-includes.mk"
26690 echo "dir ." > .gdbinit
26691 echo "dir ${srcdir}" >> .gdbinit
26692 if test x
$gdb_needs_out_file_path = xyes
26694 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26696 if test "x$subdirs" != x
; then
26699 echo "dir ${srcdir}/$s" >> .gdbinit
26702 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26704 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26708 # Find a directory in which to install a shared libgcc.
26710 # Check whether --enable-version-specific-runtime-libs was given.
26711 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26712 enableval
=$enable_version_specific_runtime_libs;
26717 # Check whether --with-slibdir was given.
26718 if test "${with_slibdir+set}" = set; then :
26719 withval
=$with_slibdir; slibdir
="$with_slibdir"
26721 if test "${enable_version_specific_runtime_libs+set}" = set; then
26722 slibdir
='$(libsubdir)'
26723 elif test "$host" != "$target"; then
26724 slibdir
='$(build_tooldir)/lib'
26726 slibdir
='$(libdir)'
26732 # Substitute configuration variables
26800 if test x
${build} = x
${host} ; then
26801 if test x
${host} = x
${target} ; then
26802 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26804 echo "Links are now set up to build a cross-compiler" 1>&2
26805 echo " from ${host} to ${target}." 1>&2
26808 if test x
${host} = x
${target} ; then
26809 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26810 echo " for ${target}." 1>&2
26812 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26813 echo " from ${host} to ${target}." 1>&2
26825 if test "x${CLOOGLIBS}" != "x" ; then
26827 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26831 # Check for plugin support
26832 # Check whether --enable-plugin was given.
26833 if test "${enable_plugin+set}" = set; then :
26834 enableval
=$enable_plugin; enable_plugin
=$enableval
26836 enable_plugin
=yes; default_plugin
=yes
26844 if test x
$build = x
$host; then
26845 export_sym_check
="nm${exeext} -g"
26846 elif test x
$host = x
$target; then
26847 export_sym_check
="$gcc_cv_nm -g"
26853 if test x
$build = x
$host; then
26854 export_sym_check
="objdump${exeext} -T"
26855 elif test x
$host = x
$target; then
26856 export_sym_check
="$gcc_cv_objdump -T"
26863 if test x
"$enable_plugin" = x
"yes"; then
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26866 $as_echo_n "checking for exported symbols... " >&6; }
26867 if test "x$export_sym_check" != x
; then
26868 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26869 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
26870 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26871 : # No need to use a flag
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26873 $as_echo "yes" >&6; }
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26876 $as_echo "yes" >&6; }
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26878 $as_echo_n "checking for -rdynamic... " >&6; }
26879 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
26880 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26881 plugin_rdynamic
=yes
26882 pluginlibs
="-rdynamic"
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26888 $as_echo "$plugin_rdynamic" >&6; }
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26892 $as_echo "unable to check" >&6; }
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26898 $as_echo_n "checking for library containing dlopen... " >&6; }
26899 if test "${ac_cv_search_dlopen+set}" = set; then :
26900 $as_echo_n "(cached) " >&6
26902 ac_func_search_save_LIBS
=$LIBS
26903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26904 /* end confdefs.h. */
26906 /* Override any GCC internal prototype to avoid an error.
26907 Use char because int might match the return type of a GCC
26908 builtin and then its argument prototype would still apply. */
26921 for ac_lib
in '' dl
; do
26922 if test -z "$ac_lib"; then
26923 ac_res
="none required"
26926 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26928 if ac_fn_c_try_link
"$LINENO"; then :
26929 ac_cv_search_dlopen
=$ac_res
26931 rm -f core conftest.err conftest.
$ac_objext \
26933 if test "${ac_cv_search_dlopen+set}" = set; then :
26937 if test "${ac_cv_search_dlopen+set}" = set; then :
26940 ac_cv_search_dlopen
=no
26942 rm conftest.
$ac_ext
26943 LIBS
=$ac_func_search_save_LIBS
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26946 $as_echo "$ac_cv_search_dlopen" >&6; }
26947 ac_res
=$ac_cv_search_dlopen
26948 if test "$ac_res" != no
; then :
26949 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26953 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
26954 pluginlibs
="$pluginlibs -ldl"
26958 # Check that we can build shared objects with -fPIC -shared
26959 saved_LDFLAGS
="$LDFLAGS"
26960 saved_CFLAGS
="$CFLAGS"
26963 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26964 CFLAGS
="$CFLAGS -fPIC"
26965 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
26968 CFLAGS
="$CFLAGS -fPIC"
26969 LDFLAGS
="$LDFLAGS -fPIC -shared"
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26973 $as_echo_n "checking for -fPIC -shared... " >&6; }
26974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26975 /* end confdefs.h. */
26985 if ac_fn_c_try_link
"$LINENO"; then :
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26987 $as_echo "yes" >&6; }; have_pic_shared
=yes
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26990 $as_echo "no" >&6; }; have_pic_shared
=no
26992 rm -f core conftest.err conftest.
$ac_objext \
26993 conftest
$ac_exeext conftest.
$ac_ext
26994 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
26998 LDFLAGS
="$saved_LDFLAGS"
26999 CFLAGS
="$saved_CFLAGS"
27001 # If plugin support had been requested but not available, fail.
27002 if test x
"$enable_plugin" = x
"no" ; then
27003 if test x
"$default_plugin" != x
"yes"; then
27005 Building GCC with plugin support requires a host that supports
27006 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27013 if test x
"$enable_plugin" = x
"yes"; then
27015 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27020 # Check whether --enable-libquadmath-support was given.
27021 if test "${enable_libquadmath_support+set}" = set; then :
27022 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27024 ENABLE_LIBQUADMATH_SUPPORT
=yes
27027 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27029 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27034 # Specify what hash style to use by default.
27036 # Check whether --with-linker-hash-style was given.
27037 if test "${with_linker_hash_style+set}" = set; then :
27038 withval
=$with_linker_hash_style; case x
"$withval" in
27040 LINKER_HASH_STYLE
=sysv
27043 LINKER_HASH_STYLE
=gnu
27046 LINKER_HASH_STYLE
=both
27049 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27053 LINKER_HASH_STYLE
=''
27056 if test x
"${LINKER_HASH_STYLE}" != x
; then
27058 cat >>confdefs.h
<<_ACEOF
27059 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27064 # Configure the subdirectories
27065 # AC_CONFIG_SUBDIRS($subdirs)
27067 # Create the Makefile
27068 # and configure language subdirectories
27069 ac_config_files
="$ac_config_files $all_outputs"
27072 ac_config_commands
="$ac_config_commands default"
27074 cat >confcache
<<\_ACEOF
27075 # This file is a shell script that caches the results of configure
27076 # tests run on this system so they can be shared between configure
27077 # scripts and configure runs, see configure's option --config-cache.
27078 # It is not useful on other systems. If it contains results you don't
27079 # want to keep, you may remove or edit it.
27081 # config.status only pays attention to the cache file if you give it
27082 # the --recheck option to rerun configure.
27084 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27085 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27086 # following values.
27090 # The following way of writing the cache mishandles newlines in values,
27091 # but we know of no workaround that is simple, portable, and efficient.
27092 # So, we kill variables containing newlines.
27093 # Ultrix sh set writes to stderr and can't be redirected directly,
27094 # and sets the high bit in the cache file unless we assign to the vars.
27096 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27097 eval ac_val
=\$
$ac_var
27101 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27105 _ | IFS | as_nl
) ;; #(
27106 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27107 *) { eval $ac_var=; unset $ac_var;} ;;
27113 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27114 *${as_nl}ac_space
=\
*)
27115 # `set' does not quote correctly, so add quotes: double-quote
27116 # substitution turns \\\\ into \\, and sed turns \\ into \.
27119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27122 # `set' quotes correctly as required by POSIX, so do not add quotes.
27123 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27132 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27134 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27136 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27137 if test -w "$cache_file"; then
27138 test "x$cache_file" != "x/dev/null" &&
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27140 $as_echo "$as_me: updating cache $cache_file" >&6;}
27141 cat confcache
>$cache_file
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27144 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27149 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27150 # Let make expand exec_prefix.
27151 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27153 DEFS
=-DHAVE_CONFIG_H
27157 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27158 # 1. Remove the extension, and $U if already installed.
27159 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27160 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27161 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27162 # will be set to the directory where LIBOBJS objects are built.
27163 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27164 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27166 LIBOBJS
=$ac_libobjs
27168 LTLIBOBJS
=$ac_ltlibobjs
27173 : ${CONFIG_STATUS=./config.status}
27175 ac_clean_files_save
=$ac_clean_files
27176 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27178 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27180 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27182 # Generated by $as_me.
27183 # Run this file to recreate the current configuration.
27184 # Compiler output produced by configure, useful for debugging
27185 # configure, is in config.log if it exists.
27188 ac_cs_recheck=false
27191 SHELL=\${CONFIG_SHELL-$SHELL}
27194 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27195 ## -------------------- ##
27196 ## M4sh Initialization. ##
27197 ## -------------------- ##
27199 # Be more Bourne compatible
27200 DUALCASE
=1; export DUALCASE
# for MKS sh
27201 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27204 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27205 # is contrary to our usage. Disable this feature.
27206 alias -g '${1+"$@"}'='"$@"'
27207 setopt NO_GLOB_SUBST
27209 case `(set -o) 2>/dev/null` in #(
27221 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27222 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27223 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27224 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27225 # Prefer a ksh shell builtin over an external printf program on Solaris,
27226 # but without wasting forks for bash or zsh.
27227 if test -z "$BASH_VERSION$ZSH_VERSION" \
27228 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27229 as_echo='print
-r --'
27230 as_echo_n='print
-rn --'
27231 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27232 as_echo='printf %s
\n'
27233 as_echo_n='printf %s
'
27235 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27236 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27237 as_echo_n='/usr
/ucb
/echo -n'
27239 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27240 as_echo_n_body='eval
27244 expr "X$arg" : "X\\(.*\\)$as_nl";
27245 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27247 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27249 export as_echo_n_body
27250 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27252 export as_echo_body
27253 as_echo='sh
-c $as_echo_body as_echo
'
27256 # The user is always right.
27257 if test "${PATH_SEPARATOR+set}" != set; then
27259 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27260 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27267 # We need space, tab and new line, in precisely that order. Quoting is
27268 # there to prevent editors from complaining about space-tab.
27269 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27270 # splitting by setting IFS to empty value.)
27273 # Find who we are. Look in the path if we contain no directory separator.
27275 *[\\/]* ) as_myself=$0 ;;
27276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27277 for as_dir in $PATH
27280 test -z "$as_dir" && as_dir=.
27281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27287 # We did not find ourselves, most probably we were run as `sh COMMAND'
27288 # in which case we are not to be found in the path.
27289 if test "x$as_myself" = x
; then
27292 if test ! -f "$as_myself"; then
27293 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27297 # Unset variables that we do not need and which cause bugs (e.g. in
27298 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27299 # suppresses any "Segmentation fault" message there. '((' could
27300 # trigger a bug in pdksh 5.2.14.
27301 for as_var
in BASH_ENV ENV MAIL MAILPATH
27302 do eval test x\
${$as_var+set} = xset \
27303 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27316 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27319 # as_fn_error ERROR [LINENO LOG_FD]
27320 # ---------------------------------
27321 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27322 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27323 # script with status $?, using 1 if that was 0.
27326 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27328 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27329 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27331 $as_echo "$as_me: error: $1" >&2
27332 as_fn_exit
$as_status
27336 # as_fn_set_status STATUS
27337 # -----------------------
27338 # Set $? to STATUS, without forking.
27339 as_fn_set_status
()
27342 } # as_fn_set_status
27344 # as_fn_exit STATUS
27345 # -----------------
27346 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27350 as_fn_set_status
$1
27356 # Portably unset VAR.
27359 { eval $1=; unset $1;}
27361 as_unset
=as_fn_unset
27362 # as_fn_append VAR VALUE
27363 # ----------------------
27364 # Append the text in VALUE to the end of the definition contained in VAR. Take
27365 # advantage of any shell optimizations that allow amortized linear growth over
27366 # repeated appends, instead of the typical quadratic growth present in naive
27368 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27369 eval 'as_fn_append ()
27380 # as_fn_arith ARG...
27381 # ------------------
27382 # Perform arithmetic evaluation on the ARGs, and store the result in the
27383 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27384 # must be portable across $(()) and expr.
27385 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27386 eval 'as_fn_arith ()
27393 as_val
=`expr "$@" || test $? -eq 1`
27398 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27399 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27405 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27406 as_basename
=basename
27411 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27417 as_me
=`$as_basename -- "$0" ||
27418 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27419 X"$0" : 'X\(//\)$' \| \
27420 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27422 sed '/^.*\/\([^/][^/]*\)\/*$/{
27436 # Avoid depending upon Character Ranges.
27437 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27438 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27439 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27440 as_cr_digits
='0123456789'
27441 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27443 ECHO_C
= ECHO_N
= ECHO_T
=
27444 case `echo -n x` in #(((((
27446 case `echo 'xy\c'` in
27447 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27449 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27456 rm -f conf$$ conf$$.exe conf$$.
file
27457 if test -d conf$$.dir
; then
27458 rm -f conf$$.dir
/conf$$.
file
27461 mkdir conf$$.dir
2>/dev
/null
27463 if (echo >conf$$.
file) 2>/dev
/null
; then
27464 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27466 # ... but there are two gotchas:
27467 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27468 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27469 # In both cases, we have to default to `cp -p'.
27470 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27472 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27480 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27481 rmdir conf$$.dir
2>/dev
/null
27486 # Create "$as_dir" as a directory, including parents if necessary.
27491 -*) as_dir
=.
/$as_dir;;
27493 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27497 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27498 *) as_qdir
=$as_dir;;
27500 as_dirs
="'$as_qdir' $as_dirs"
27501 as_dir
=`$as_dirname -- "$as_dir" ||
27502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27503 X"$as_dir" : 'X\(//\)[^/]' \| \
27504 X"$as_dir" : 'X\(//\)$' \| \
27505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27506 $as_echo X"$as_dir" |
27507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27511 /^X\(\/\/\)[^/].*/{
27524 test -d "$as_dir" && break
27526 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27527 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27531 if mkdir
-p .
2>/dev
/null
; then
27532 as_mkdir_p
='mkdir -p "$as_dir"'
27534 test -d .
/-p && rmdir .
/-p
27538 if test -x / >/dev
/null
2>&1; then
27539 as_test_x
='test -x'
27541 if ls -dL / >/dev
/null
2>&1; then
27548 if test -d "$1"; then
27554 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27555 ???[sx]*):;;*)false;;esac;fi
27559 as_executable_p
=$as_test_x
27561 # Sed expression to map a string onto a valid CPP name.
27562 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27564 # Sed expression to map a string onto a valid variable name.
27565 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27569 ## ----------------------------------- ##
27570 ## Main body of $CONFIG_STATUS script. ##
27571 ## ----------------------------------- ##
27573 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27576 # Save the log message, to keep $0 and so on meaningful, and to
27577 # report actual input values of CONFIG_FILES etc. instead of their
27578 # values after options handling.
27580 This file was extended by $as_me, which was
27581 generated by GNU Autoconf 2.64. Invocation command line was
27583 CONFIG_FILES = $CONFIG_FILES
27584 CONFIG_HEADERS = $CONFIG_HEADERS
27585 CONFIG_LINKS = $CONFIG_LINKS
27586 CONFIG_COMMANDS = $CONFIG_COMMANDS
27589 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27594 case $ac_config_files in *"
27595 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27598 case $ac_config_headers in *"
27599 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27604 # Files that config.status was made for.
27605 config_files="$ac_config_files"
27606 config_headers="$ac_config_headers"
27607 config_commands="$ac_config_commands"
27611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27613 \`$as_me' instantiates files and other configuration actions
27614 from templates according to the current configuration. Unless the files
27615 and actions are specified as TAGs, all are instantiated by default.
27617 Usage: $0 [OPTION]... [TAG]...
27619 -h, --help print this help, then exit
27620 -V, --version print version number and configuration settings, then exit
27621 -q, --quiet, --silent
27622 do not print progress messages
27623 -d, --debug don't remove temporary files
27624 --recheck update $as_me by reconfiguring in the same conditions
27625 --file=FILE[:TEMPLATE]
27626 instantiate the configuration file FILE
27627 --header=FILE[:TEMPLATE]
27628 instantiate the configuration header FILE
27630 Configuration files:
27633 Configuration headers:
27636 Configuration commands:
27639 Report bugs to the package provider."
27642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27645 configured by $0, generated by GNU Autoconf 2.64,
27646 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27648 Copyright (C) 2009 Free Software Foundation, Inc.
27649 This config.status script is free software; the Free Software Foundation
27650 gives unlimited permission to copy, distribute and modify it."
27655 test -n "\$AWK" || AWK=awk
27658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27659 # The default lists apply if the user does not specify any file.
27665 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27666 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27677 # Handling of the options.
27678 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27680 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27681 $as_echo "$ac_cs_version"; exit ;;
27682 --debug |
--debu |
--deb |
--de |
--d |
-d )
27684 --file |
--fil |
--fi |
--f )
27687 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27689 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27690 ac_need_defaults
=false
;;
27691 --header |
--heade |
--head |
--hea )
27694 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27696 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27697 ac_need_defaults
=false
;;
27699 # Conflict between --help and --header
27700 as_fn_error
"ambiguous option: \`$1'
27701 Try \`$0 --help' for more information.";;
27702 --help |
--hel |
-h )
27703 $as_echo "$ac_cs_usage"; exit ;;
27704 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27705 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27708 # This is an error.
27709 -*) as_fn_error
"unrecognized option: \`$1'
27710 Try \`$0 --help' for more information." ;;
27712 *) as_fn_append ac_config_targets
" $1"
27713 ac_need_defaults
=false
;;
27719 ac_configure_extra_args
=
27721 if $ac_cs_silent; then
27723 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27728 if \$ac_cs_recheck; then
27729 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27731 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27732 CONFIG_SHELL='$SHELL'
27733 export CONFIG_SHELL
27738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27742 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27743 ## Running $as_me. ##
27749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27759 # Handling of arguments.
27760 for ac_config_target
in $ac_config_targets
27762 case $ac_config_target in
27763 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27764 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27765 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27766 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27767 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27768 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27770 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27775 # If the user did not use the arguments to specify the items to instantiate,
27776 # then the envvar interface is used. Set only those that are not.
27777 # We use the long form for the default assignment because of an extremely
27778 # bizarre bug on SunOS 4.1.3.
27779 if $ac_need_defaults; then
27780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27785 # Have a temporary directory for convenience. Make it in the build tree
27786 # simply because there is no reason against having it here, and in addition,
27787 # creating and moving files from /tmp can sometimes cause problems.
27788 # Hook for its removal unless debugging.
27789 # Note that there is a small window in which the directory will not be cleaned:
27790 # after its creation but before its name has been assigned to `$tmp'.
27794 trap 'exit_status=$?
27795 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27797 trap 'as_fn_exit 1' 1 2 13 15
27799 # Create a (secure) tmp directory for tmp files.
27802 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27803 test -n "$tmp" && test -d "$tmp"
27806 tmp
=.
/conf$$
-$RANDOM
27807 (umask 077 && mkdir
"$tmp")
27808 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27810 # Set up the scripts for CONFIG_FILES section.
27811 # No need to generate them if there are no CONFIG_FILES.
27812 # This happens for instance with `./config.status config.h'.
27813 if test -n "$CONFIG_FILES"; then
27815 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27816 ac_cs_awk_getline
=:
27817 ac_cs_awk_pipe_init
=
27818 ac_cs_awk_read_file
='
27819 while ((getline aline < (F[key])) > 0)
27822 ac_cs_awk_pipe_fini
=
27824 ac_cs_awk_getline
=false
27825 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27826 ac_cs_awk_read_file
='
27828 print "cat " F[key] " &&"
27829 '$ac_cs_awk_pipe_init
27830 # The final `:' finishes the AND list.
27831 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27833 ac_cr
=`echo X | tr X '\015'`
27834 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27835 # But we know of no other shell where ac_cr would be empty at this
27836 # point, so we can use a bashism as a fallback.
27837 if test "x$ac_cr" = x
; then
27838 eval ac_cr
=\$
\'\\r
\'
27840 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27841 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27844 ac_cs_awk_cr
=$ac_cr
27847 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27850 # Create commands to substitute file output variables.
27852 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27853 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27854 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27857 } >conf$
$files.sh
&&
27858 . .
/conf$
$files.sh ||
27859 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27860 rm -f conf$
$files.sh
27863 echo "cat >conf$$subs.awk <<_ACEOF" &&
27864 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27866 } >conf$$subs.sh ||
27867 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27868 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27870 for ac_last_try in false false false false false :; do
27871 . ./conf$$subs.sh ||
27872 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27874 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27875 if test $ac_delim_n = $ac_delim_num; then
27877 elif $ac_last_try; then
27878 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27880 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27883 rm -f conf$$subs.sh
27885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27886 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27890 s/^/S["/; s
/!.
*/"]=/
27900 s/\(.\{148\}\).*/\1/
27902 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27907 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27914 s/\(.\{148\}\).*/\1/
27916 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27920 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27925 ' <conf$$subs.awk | sed '
27930 ' >>$CONFIG_STATUS || ac_write_fail=1
27931 rm -f conf$$subs.awk
27932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27934 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27935 for (key in S) S_is_set[key] = 1
27937 \$ac_cs_awk_pipe_init
27941 nfields = split(line, field, "@
")
27943 len = length(field[1])
27944 for (i = 2; i < nfields; i++) {
27946 keylen = length(key)
27947 if (S_is_set[key]) {
27949 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27950 len += length(value) + length(field[++i])
27955 if (nfields == 3 && !substed) {
27957 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27958 \$ac_cs_awk_read_file
27964 \$ac_cs_awk_pipe_fini
27967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27968 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27969 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27972 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27973 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
27976 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27977 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27978 # trailing colons and then remove the whole line if VPATH becomes empty
27979 # (actually we leave an empty line to preserve line numbers).
27980 if test "x
$srcdir" = x.; then
27981 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27982 s/:*\$(srcdir):*/:/
27983 s/:*\${srcdir}:*/:/
27985 s/^\([^=]*=[ ]*\):*/\1/
27991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27992 fi # test -n "$CONFIG_FILES"
27994 # Set up the scripts for CONFIG_HEADERS section.
27995 # No need to generate them if there are no CONFIG_HEADERS.
27996 # This happens for instance with `./config.status Makefile'.
27997 if test -n "$CONFIG_HEADERS"; then
27998 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28002 # Transform confdefs.h into an awk script `defines.awk', embedded as
28003 # here-document in config.status, that substitutes the proper values into
28004 # config.h.in to produce config.h.
28006 # Create a delimiter string that does not exist in confdefs.h, to ease
28007 # handling of long lines.
28009 for ac_last_try in false false :; do
28010 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28011 if test -z "$ac_t"; then
28013 elif $ac_last_try; then
28014 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28016 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28020 # For the awk script, D is an array of macro values keyed by name,
28021 # likewise P contains macro parameters if any. Preserve backslash
28022 # newline sequences.
28024 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28026 s/.\{148\}/&'"$ac_delim"'/g
28029 s/^[ ]*#[ ]*define[ ][ ]*/ /
28036 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28038 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28042 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28043 D["\
1"]=" \
3\\\\\\n
"\\/p
28045 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28050 s/.\{148\}/&'"$ac_delim"'/g
28055 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28058 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28060 ' <confdefs.h | sed '
28061 s/'"$ac_delim"'/"\\\
28062 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28065 for (key in D) D_is_set[key] = 1
28068 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28070 split(line, arg, " ")
28071 if (arg[1] == "#") {
28075 defundef
= substr
(arg
[1], 2)
28078 split(mac1
, mac2
, "(") #)
28080 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28081 if (D_is_set
[macro
]) {
28082 # Preserve the white space surrounding the "#".
28083 print prefix
"define", macro P
[macro
] D
[macro
]
28086 # Replace #undef with comments. This is necessary, for example,
28087 # in the case of _POSIX_SOURCE, which is predefined and required
28088 # on some systems where configure will not decide to define it.
28089 if (defundef
== "undef") {
28090 print
"/*", prefix defundef
, macro
, "*/"
28098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28099 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28100 fi # test -n "$CONFIG_HEADERS"
28103 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28108 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28110 case $ac_mode$ac_tag in
28112 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28113 :[FH
]-) ac_tag
=-:-;;
28114 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28131 -) ac_f
="$tmp/stdin";;
28132 *) # Look for the file first in the build tree, then in the source tree
28133 # (if the path is not absolute). The absolute path cannot be DOS-style,
28134 # because $ac_f cannot contain `:'.
28138 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28140 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28142 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28143 as_fn_append ac_file_inputs
" '$ac_f'"
28146 # Let's still pretend it is `configure' which instantiates (i.e., don't
28147 # use $as_me), people would be surprised to read:
28148 # /* config.h. Generated by config.status. */
28149 configure_input
='Generated from '`
28150 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28152 if test x
"$ac_file" != x-
; then
28153 configure_input
="$ac_file. $configure_input"
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28155 $as_echo "$as_me: creating $ac_file" >&6;}
28157 # Neutralize special characters interpreted by sed in replacement strings.
28158 case $configure_input in #(
28159 *\
&* |
*\|
* |
*\\* )
28160 ac_sed_conf_input
=`$as_echo "$configure_input" |
28161 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28162 *) ac_sed_conf_input
=$configure_input;;
28166 *:-:* |
*:-) cat >"$tmp/stdin" \
28167 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28172 ac_dir
=`$as_dirname -- "$ac_file" ||
28173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28174 X"$ac_file" : 'X\(//\)[^/]' \| \
28175 X"$ac_file" : 'X\(//\)$' \| \
28176 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28177 $as_echo X"$ac_file" |
28178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28182 /^X\(\/\/\)[^/].*/{
28195 as_dir
="$ac_dir"; as_fn_mkdir_p
28199 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28201 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28202 # A ".." for each directory in $ac_dir_suffix.
28203 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28204 case $ac_top_builddir_sub in
28205 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28206 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28209 ac_abs_top_builddir
=$ac_pwd
28210 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28211 # for backward compatibility:
28212 ac_top_builddir
=$ac_top_build_prefix
28215 .
) # We are building in place.
28217 ac_top_srcdir
=$ac_top_builddir_sub
28218 ac_abs_top_srcdir
=$ac_pwd ;;
28219 [\\/]* | ?
:[\\/]* ) # Absolute name.
28220 ac_srcdir
=$srcdir$ac_dir_suffix;
28221 ac_top_srcdir
=$srcdir
28222 ac_abs_top_srcdir
=$srcdir ;;
28223 *) # Relative name.
28224 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28225 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28226 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28228 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28240 # If the template does not know about datarootdir, expand it.
28241 # FIXME: This hack should be removed a few years after 2.60.
28242 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28253 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28254 *datarootdir
*) ac_datarootdir_seen
=yes;;
28255 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28257 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28260 ac_datarootdir_hack='
28261 s&@datadir@&$datadir&g
28262 s&@docdir@&$docdir&g
28263 s&@infodir@&$infodir&g
28264 s&@localedir@&$localedir&g
28265 s&@mandir@&$mandir&g
28266 s&\\\${datarootdir}&$datarootdir&g' ;;
28270 # Neutralize VPATH when `$srcdir' = `.'.
28271 # Shell code in configure.ac might set extrasub.
28272 # FIXME: do we really want to maintain this feature?
28273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28274 ac_sed_extra="$ac_vpsub
28277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28279 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28280 s|@configure_input@|
$ac_sed_conf_input|
;t t
28281 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28282 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28283 s
&@srcdir@
&$ac_srcdir&;t t
28284 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28285 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28286 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28287 s
&@builddir@
&$ac_builddir&;t t
28288 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28289 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28290 $ac_datarootdir_hack
28292 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28293 if $ac_cs_awk_getline; then
28294 $AWK -f "$tmp/subs.
awk"
28296 $AWK -f "$tmp/subs.
awk" | $SHELL
28298 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28300 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28301 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28302 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28304 which seems to be undefined. Please make sure it is defined." >&5
28305 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28306 which seems to be undefined. Please make sure it is defined." >&2;}
28310 -) cat "$tmp/out" && rm -f "$tmp/out";;
28311 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28313 || as_fn_error "could not create $ac_file" "$LINENO" 5
28319 if test x"$ac_file" != x-; then
28321 $as_echo "/* $configure_input */" \
28322 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28323 } >"$tmp/config.h" \
28324 || as_fn_error "could not create $ac_file" "$LINENO" 5
28325 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28327 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28330 mv "$tmp/config.h" "$ac_file" \
28331 || as_fn_error "could not create $ac_file" "$LINENO" 5
28334 $as_echo "/* $configure_input */" \
28335 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28336 || as_fn_error "could not create -" "$LINENO" 5
28340 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28341 $as_echo "$as_me: executing $ac_file commands" >&6;}
28346 case $ac_file$ac_mode in
28347 "as":F) chmod +x as ;;
28348 "collect-ld":F) chmod +x collect-ld ;;
28349 "nm":F) chmod +x nm ;;
28351 case ${CONFIG_HEADERS} in
28352 *auto-host.h:config.in*)
28355 # Make sure all the subdirs exist.
28356 for d in $subdirs doc build common c-family
28358 test -d $d || mkdir $d
28368 ac_clean_files=$ac_clean_files_save
28370 test $ac_write_fail = 0 ||
28371 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28374 # configure is writing to config.log, and then calls config.status.
28375 # config.status does its own redirection, appending to config.log.
28376 # Unfortunately, on DOS this fails, as config.log is still kept open
28377 # by configure, so config.status won't be able to
write to it
; its
28378 # output is simply discarded. So we exec the FD to /dev/null,
28379 # effectively closing config.log, so it can be properly (re)opened and
28380 # appended to by config.status. When coming back to configure, we
28381 # need to make the FD available again.
28382 if test "$no_create" != yes; then
28384 ac_config_status_args
=
28385 test "$silent" = yes &&
28386 ac_config_status_args
="$ac_config_status_args --quiet"
28388 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28390 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28391 # would make configure fail if this is the last instruction.
28392 $ac_cs_success || as_fn_exit $?
28394 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28396 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}