2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
726 NATIVE_SYSTEM_HEADER_DIR
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
762 SYSROOT_CFLAGS_FOR_TARGET
767 ENABLE_BUILD_WITH_CXX
770 valgrind_path_defines
843 program_transform_name
854 ac_subst_files
='option_includes
857 enable_option_checking
862 enable_generated_files_in_srcdir
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
884 with_native_system_header_dir
894 enable_initfini_array
895 enable_sjlj_exceptions
897 enable_leading_mingw64_underscores
900 enable_win32_registry
906 enable_gnu_indirect_function
908 enable_gnu_unique_object
909 enable_linker_build_id
913 enable_maintainer_mode
914 enable_version_specific_runtime_libs
916 enable_libquadmath_support
917 with_linker_hash_style
919 ac_precious_vars
='build_alias
940 # Initialize some variables set by options.
942 ac_init_version
=false
943 ac_unrecognized_opts
=
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
954 program_transform_name
=s
,x
,x
,
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir
='${exec_prefix}/bin'
969 sbindir
='${exec_prefix}/sbin'
970 libexecdir
='${exec_prefix}/libexec'
971 datarootdir
='${prefix}/share'
972 datadir
='${datarootdir}'
973 sysconfdir
='${prefix}/etc'
974 sharedstatedir
='${prefix}/com'
975 localstatedir
='${prefix}/var'
976 includedir
='${prefix}/include'
977 oldincludedir
='/usr/include'
978 docdir
='${datarootdir}/doc/${PACKAGE}'
979 infodir
='${datarootdir}/info'
984 libdir
='${exec_prefix}/lib'
985 localedir
='${datarootdir}/locale'
986 mandir
='${datarootdir}/man'
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\
$ac_option
1000 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1010 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1012 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1013 bindir
=$ac_optarg ;;
1015 -build |
--build |
--buil |
--bui |
--bu)
1016 ac_prev
=build_alias
;;
1017 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1018 build_alias
=$ac_optarg ;;
1020 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1021 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1022 ac_prev
=cache_file
;;
1023 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1024 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1025 cache_file
=$ac_optarg ;;
1027 --config-cache |
-C)
1028 cache_file
=config.cache
;;
1030 -datadir |
--datadir |
--datadi |
--datad)
1032 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1033 datadir
=$ac_optarg ;;
1035 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1036 |
--dataroo |
--dataro |
--datar)
1037 ac_prev
=datarootdir
;;
1038 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1039 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1040 datarootdir
=$ac_optarg ;;
1042 -disable-* |
--disable-*)
1043 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1046 as_fn_error
"invalid feature name: $ac_useropt"
1047 ac_useropt_orig
=$ac_useropt
1048 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "enable_
$ac_useropt"
1053 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep
=', ';;
1056 eval enable_
$ac_useropt=no
;;
1058 -docdir |
--docdir |
--docdi |
--doc |
--do)
1060 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1061 docdir
=$ac_optarg ;;
1063 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1065 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1066 dvidir
=$ac_optarg ;;
1068 -enable-* |
--enable-*)
1069 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1072 as_fn_error
"invalid feature name: $ac_useropt"
1073 ac_useropt_orig
=$ac_useropt
1074 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_
$ac_useropt"
1079 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep
=', ';;
1082 eval enable_
$ac_useropt=\
$ac_optarg ;;
1084 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1085 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1086 |
--exec |
--exe |
--ex)
1087 ac_prev
=exec_prefix
;;
1088 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1089 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1090 |
--exec=* |
--exe=* |
--ex=*)
1091 exec_prefix
=$ac_optarg ;;
1093 -gas |
--gas |
--ga |
--g)
1094 # Obsolete; use --with-gas.
1097 -help |
--help |
--hel |
--he |
-h)
1098 ac_init_help
=long
;;
1099 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1100 ac_init_help
=recursive
;;
1101 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1102 ac_init_help
=short
;;
1104 -host |
--host |
--hos |
--ho)
1105 ac_prev
=host_alias
;;
1106 -host=* |
--host=* |
--hos=* |
--ho=*)
1107 host_alias
=$ac_optarg ;;
1109 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1111 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1113 htmldir
=$ac_optarg ;;
1115 -includedir |
--includedir |
--includedi |
--included |
--include \
1116 |
--includ |
--inclu |
--incl |
--inc)
1117 ac_prev
=includedir
;;
1118 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1119 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1120 includedir
=$ac_optarg ;;
1122 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1124 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1125 infodir
=$ac_optarg ;;
1127 -libdir |
--libdir |
--libdi |
--libd)
1129 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1130 libdir
=$ac_optarg ;;
1132 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1133 |
--libexe |
--libex |
--libe)
1134 ac_prev
=libexecdir
;;
1135 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1136 |
--libexe=* |
--libex=* |
--libe=*)
1137 libexecdir
=$ac_optarg ;;
1139 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1140 ac_prev
=localedir
;;
1141 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1142 localedir
=$ac_optarg ;;
1144 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1145 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1146 ac_prev
=localstatedir
;;
1147 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1148 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1149 localstatedir
=$ac_optarg ;;
1151 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1153 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1154 mandir
=$ac_optarg ;;
1156 -nfp |
--nfp |
--nf)
1157 # Obsolete; use --without-fp.
1160 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1161 |
--no-cr |
--no-c |
-n)
1164 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1165 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1168 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1169 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1170 |
--oldin |
--oldi |
--old |
--ol |
--o)
1171 ac_prev
=oldincludedir
;;
1172 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1173 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1174 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1175 oldincludedir
=$ac_optarg ;;
1177 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1179 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1180 prefix
=$ac_optarg ;;
1182 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1183 |
--program-pre |
--program-pr |
--program-p)
1184 ac_prev
=program_prefix
;;
1185 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1186 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1187 program_prefix
=$ac_optarg ;;
1189 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1190 |
--program-suf |
--program-su |
--program-s)
1191 ac_prev
=program_suffix
;;
1192 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1193 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1194 program_suffix
=$ac_optarg ;;
1196 -program-transform-name |
--program-transform-name \
1197 |
--program-transform-nam |
--program-transform-na \
1198 |
--program-transform-n |
--program-transform- \
1199 |
--program-transform |
--program-transfor \
1200 |
--program-transfo |
--program-transf \
1201 |
--program-trans |
--program-tran \
1202 |
--progr-tra |
--program-tr |
--program-t)
1203 ac_prev
=program_transform_name
;;
1204 -program-transform-name=* |
--program-transform-name=* \
1205 |
--program-transform-nam=* |
--program-transform-na=* \
1206 |
--program-transform-n=* |
--program-transform-=* \
1207 |
--program-transform=* |
--program-transfor=* \
1208 |
--program-transfo=* |
--program-transf=* \
1209 |
--program-trans=* |
--program-tran=* \
1210 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1211 program_transform_name
=$ac_optarg ;;
1213 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1215 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1216 pdfdir
=$ac_optarg ;;
1218 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1220 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1223 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1224 |
-silent |
--silent |
--silen |
--sile |
--sil)
1227 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1229 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1231 sbindir
=$ac_optarg ;;
1233 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1234 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1235 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1237 ac_prev
=sharedstatedir
;;
1238 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1239 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1240 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1242 sharedstatedir
=$ac_optarg ;;
1244 -site |
--site |
--sit)
1246 -site=* |
--site=* |
--sit=*)
1249 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1251 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1252 srcdir
=$ac_optarg ;;
1254 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1255 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1256 ac_prev
=sysconfdir
;;
1257 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1258 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1259 sysconfdir
=$ac_optarg ;;
1261 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1262 ac_prev
=target_alias
;;
1263 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1264 target_alias
=$ac_optarg ;;
1266 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1269 -version |
--version |
--versio |
--versi |
--vers |
-V)
1270 ac_init_version
=: ;;
1273 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1276 as_fn_error
"invalid package name: $ac_useropt"
1277 ac_useropt_orig
=$ac_useropt
1278 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep
=', ';;
1286 eval with_
$ac_useropt=\
$ac_optarg ;;
1288 -without-* |
--without-*)
1289 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1292 as_fn_error
"invalid package name: $ac_useropt"
1293 ac_useropt_orig
=$ac_useropt
1294 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1299 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep
=', ';;
1302 eval with_
$ac_useropt=no
;;
1305 # Obsolete; use --with-x.
1308 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1309 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1310 ac_prev
=x_includes
;;
1311 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1312 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1313 x_includes
=$ac_optarg ;;
1315 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1316 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1317 ac_prev
=x_libraries
;;
1318 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1319 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1320 x_libraries
=$ac_optarg ;;
1322 -*) as_fn_error
"unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information."
1327 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1331 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1333 eval $ac_envvar=\
$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347 if test -n "$ac_prev"; then
1348 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error
"missing argument to $ac_option"
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1355 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 # Check all directory arguments for consistency.
1361 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val
=\$
$ac_var
1367 # Remove trailing slashes.
1370 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\
$ac_val;;
1373 # Be sure to have absolute directory names.
1375 [\\/$
]* | ?
:[\\/]* ) continue;;
1376 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1378 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1386 target
=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x
; then
1390 if test "x$build_alias" = x
; then
1391 cross_compiling
=maybe
1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used." >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1400 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1402 test "$silent" = yes && exec 6>/dev
/null
1405 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di
=`ls -di .` &&
1407 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error
"working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error
"pwd does not report name of working directory"
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted
=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir
=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1445 ac_srcdir_defaulted
=no
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1449 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1451 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var
in $ac_precious_vars; do
1466 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1468 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures this package to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --program-prefix=PREFIX prepend PREFIX to installed program names
1538 --program-suffix=SUFFIX append SUFFIX to installed program names
1539 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1542 --build=BUILD configure
for building on BUILD
[guessed
]
1543 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1544 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1548 if test -n "$ac_init_help"; then
1553 --disable-option-checking ignore unrecognized
--enable/--with options
1554 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1555 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1556 --enable-generated-files-in-srcdir
1557 put copies of generated files
in source dir intended
1558 for creating
source tarballs
for users without
1559 texinfo bison or flex
1560 --disable-largefile omit support
for large files
1561 --enable-werror-always enable -Werror despite compiler version
1562 --enable-checking[=LIST
]
1563 enable expensive run-time checks. With LIST
, enable
1564 only specific categories of checks. Categories are
:
1565 yes,no
,all
,none
,release. Flags are
:
1566 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1567 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1568 --enable-coverage[=LEVEL
]
1569 enable compiler
's code coverage collection. Use to
1570 measure compiler performance and locate unused parts
1571 of the compiler. With LEVEL, specify optimization.
1572 Values are opt, noopt, default is noopt
1573 --enable-gather-detailed-mem-stats
1574 enable detailed memory allocation stats gathering
1575 --enable-build-with-cxx build with C++ compiler instead of C compiler
1576 --enable-multilib enable library support for multiple ABIs
1577 --enable-__cxa_atexit enable __cxa_atexit for C++
1578 --enable-decimal-float={no,yes,bid,dpd}
1579 enable decimal float extension to C. Selecting 'bid
'
1580 or 'dpd
' choses which decimal floating point format
1582 --enable-fixed-point enable fixed-point arithmetic extension to C
1583 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1585 --enable-tls enable or disable generation of tls code overriding
1586 the assembler check for tls support
1587 --enable-objc-gc enable the use of Boehm's garbage collector with the
1588 GNU Objective-C runtime
1589 --disable-shared don
't provide a shared libgcc
1590 --enable-languages=LIST specify which front-ends to build
1591 --disable-rpath do not hardcode runtime library paths
1592 --enable-initfini-array use .init_array/.fini_array sections
1593 --enable-sjlj-exceptions
1594 arrange to use setjmp/longjmp exception handling
1595 --enable-secureplt enable -msecure-plt by default for PowerPC
1596 --enable-leading-mingw64-underscores
1597 enable leading underscores on 64 bit mingw targets
1598 --enable-cld enable -mcld by default for 32bit x86
1599 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1601 --disable-win32-registry
1602 disable lookup of installation paths in the Registry
1604 --enable-win32-registry enable registry lookup (default)
1605 --enable-win32-registry=KEY
1606 use KEY instead of GCC version as the last portion
1608 --enable-shared[=PKGS] build shared libraries [default=yes]
1609 --enable-static[=PKGS] build static libraries [default=yes]
1610 --enable-fast-install[=PKGS]
1611 optimize for fast installation [default=yes]
1612 --disable-libtool-lock avoid locking (might break parallel builds)
1613 --enable-gnu-indirect-function
1614 enable the use of the @gnu_indirect_function to
1616 --enable-comdat enable COMDAT group support
1617 --enable-gnu-unique-object
1618 enable the use of the @gnu_unique_object ELF
1619 extension on glibc systems
1620 --enable-linker-build-id
1621 compiler will always pass --build-id to linker
1622 --enable-maintainer-mode
1623 enable make rules and dependencies not useful (and
1624 sometimes confusing) to the casual installer
1625 --enable-version-specific-runtime-libs
1626 specify that runtime libraries should be installed
1627 in a compiler-specific directory
1628 --enable-plugin enable plugin support
1629 --disable-libquadmath-support
1630 disable libquadmath support for Fortran
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-build-libsubdir=DIR Directory where to find libraries for build system
1636 --with-local-prefix=DIR specifies directory to put local include
1637 --with-gxx-include-dir=DIR
1638 specifies directory to put g++ header files
1639 --with-cpp-install-dir=DIR
1640 install the user visible C preprocessor in DIR
1641 (relative to PREFIX) as well as PREFIX/bin
1642 --with-gnu-ld arrange to work with GNU ld
1643 --with-ld arrange to use the specified ld (full pathname)
1644 --with-demangler-in-ld try to use demangler in GNU ld
1645 --with-gnu-as arrange to work with GNU as
1646 --with-as arrange to use the specified as (full pathname)
1647 --with-stabs arrange to use stabs instead of host debug format
1648 --with-dwarf2 force the default debug format to be DWARF 2
1649 --with-native-system-header-dir=dir
1650 use dir as the directory to look for standard
1651 system header files in. Defaults to /usr/include.
1652 --with-build-sysroot=sysroot
1653 use sysroot as the system root during the build
1654 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1655 --with-specs=SPECS add SPECS to driver command-line processing
1656 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1657 --with-bugurl=URL Direct users to URL to report a bug
1658 --with-multilib-list select multilibs (SH and x86-64 only)
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1661 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1662 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1664 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1665 --with-plugin-ld=[ARG
] specify the plugin linker
1666 --with-long-double-128 use
128-bit long double by default
1667 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1669 --with-system-zlib use installed libz
1670 --with-linker-hash-style={sysv
,gnu
,both
}
1671 specify the linker
hash style
1673 Some influential environment variables
:
1674 CC C compiler
command
1675 CFLAGS C compiler flags
1676 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1677 nonstandard directory
<lib dir
>
1678 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1679 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1680 you have headers
in a nonstandard directory
<include dir
>
1681 CXX C
++ compiler
command
1682 CXXFLAGS C
++ compiler flags
1684 CXXCPP C
++ preprocessor
1685 GMPLIBS How to link GMP
1686 GMPINC How to
find GMP include files
1687 PPLLIBS How to link PPL
1688 PPLINC How to
find PPL include files
1689 CLOOGLIBS How to link CLOOG
1690 CLOOGINC How to
find CLOOG include files
1692 Use these variables to override the choices made by
`configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1695 Report bugs to the package provider.
1700 if test "$ac_init_help" = "recursive"; then
1701 # If there are subdirs, report their specific --help.
1702 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1703 test -d "$ac_dir" ||
1704 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1712 # A ".." for each directory in $ac_dir_suffix.
1713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1714 case $ac_top_builddir_sub in
1715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 ac_abs_top_builddir=$ac_pwd
1720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1721 # for backward compatibility:
1722 ac_top_builddir=$ac_top_build_prefix
1725 .) # We are building in place.
1727 ac_top_srcdir=$ac_top_builddir_sub
1728 ac_abs_top_srcdir=$ac_pwd ;;
1729 [\\/]* | ?:[\\/]* ) # Absolute name.
1730 ac_srcdir=$srcdir$ac_dir_suffix;
1731 ac_top_srcdir=$srcdir
1732 ac_abs_top_srcdir=$srcdir ;;
1734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1735 ac_top_srcdir=$ac_top_build_prefix$srcdir
1736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740 cd "$ac_dir" || { ac_status=$?; continue; }
1741 # Check for guested configure.
1742 if test -f "$ac_srcdir/configure.gnu"; then
1744 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1745 elif test -f "$ac_srcdir/configure"; then
1747 $SHELL "$ac_srcdir/configure" --help=recursive
1749 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751 cd "$ac_pwd" || { ac_status=$?; break; }
1755 test -n "$ac_init_help" && exit $ac_status
1756 if $ac_init_version; then
1759 generated by GNU Autoconf 2.64
1761 Copyright (C) 2009 Free Software Foundation, Inc.
1762 This configure script is free software; the Free Software Foundation
1763 gives unlimited permission to copy, distribute and modify it.
1768 ## ------------------------ ##
1769 ## Autoconf initialization. ##
1770 ## ------------------------ ##
1772 # ac_fn_c_try_compile LINENO
1773 # --------------------------
1774 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_compile ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext
1779 if { { ac_try="$ac_compile"
1781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1782 *) ac_try_echo
=$ac_try;;
1784 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_compile") 2>conftest.err
1788 if test -s conftest.err
; then
1789 grep -v '^ *+' conftest.err
>conftest.er1
1790 cat conftest.er1
>&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest.
$ac_objext; then :
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.
$ac_ext >&5
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1808 } # ac_fn_c_try_compile
1810 # ac_fn_cxx_try_compile LINENO
1811 # ----------------------------
1812 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_cxx_try_compile
()
1815 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1816 rm -f conftest.
$ac_objext
1817 if { { ac_try
="$ac_compile"
1819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_compile") 2>conftest.err
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_cxx_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest.$ac_objext; then :
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 } # ac_fn_cxx_try_compile
1848 # ac_fn_c_try_cpp LINENO
1849 # ----------------------
1850 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1857 *) ac_try_echo
=$ac_try;;
1859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 if test -s conftest.err
; then
1864 grep -v '^ *+' conftest.err
>conftest.er1
1865 cat conftest.er1
>&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } >/dev
/null
&& {
1870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.
$ac_ext >&5
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1890 ac_fn_c_check_header_mongrel
()
1892 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1893 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1903 # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1911 if ac_fn_c_try_compile
"$LINENO"; then :
1912 ac_header_compiler
=yes
1914 ac_header_compiler
=no
1916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1927 if ac_fn_c_try_cpp
"$LINENO"; then :
1928 ac_header_preproc
=yes
1930 ac_header_preproc
=no
1932 rm -f conftest.err conftest.
$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1936 # So? What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1960 $as_echo_n "(cached) " >&6
1962 eval "$3=\$ac_header_compiler"
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1970 } # ac_fn_c_check_header_mongrel
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1978 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1979 if { { ac_try
="$ac_link"
1981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>&5
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
1991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1992 *) ac_try_echo
=$ac_try;;
1994 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_try") 2>&5
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2002 $as_echo "$as_me: program exited with status $ac_status" >&5
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.
$ac_ext >&5
2006 ac_retval
=$ac_status
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile
()
2020 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2031 if ac_fn_c_try_compile
"$LINENO"; then :
2036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2043 } # ac_fn_c_check_header_compile
2045 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046 # --------------------------------------------
2047 # Tries to find the compile-time value of EXPR in a program that includes
2048 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 ac_fn_c_compute_int
()
2052 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2053 if test "$cross_compiling" = yes; then
2054 # Depending upon the size, compute the lo and hi bounds.
2055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) >= 0)];
2068 if ac_fn_c_try_compile
"$LINENO"; then :
2071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2077 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 if ac_fn_c_try_compile
"$LINENO"; then :
2085 ac_hi
=$ac_mid; break
2087 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2088 if test $ac_lo -le $ac_mid; then
2092 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) < 0)];
2110 if ac_fn_c_try_compile
"$LINENO"; then :
2113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2119 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2126 if ac_fn_c_try_compile
"$LINENO"; then :
2127 ac_lo
=$ac_mid; break
2129 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2130 if test $ac_mid -le $ac_hi; then
2134 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2144 # Binary search between lo and hi bounds.
2145 while test "x$ac_lo" != "x$ac_hi"; do
2146 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 if ac_fn_c_try_compile
"$LINENO"; then :
2163 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2168 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2175 static long int longval () { return $2; }
2176 static unsigned long int ulongval () { return $2; }
2183 FILE *f = fopen ("conftest.val", "w");
2188 long int i = longval ();
2191 fprintf (f, "%ld", i);
2195 unsigned long int i = ulongval ();
2198 fprintf (f, "%lu", i);
2200 /* Do not output a trailing newline, as this causes \r\n confusion
2201 on some platforms. */
2202 return ferror (f) || fclose (f) != 0;
2208 if ac_fn_c_try_run
"$LINENO"; then :
2209 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2214 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2221 } # ac_fn_c_compute_int
2223 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2224 # -------------------------------------------
2225 # Tests whether TYPE exists after having included INCLUDES, setting cache
2226 # variable VAR accordingly.
2227 ac_fn_c_check_type
()
2229 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2248 if ac_fn_c_try_compile
"$LINENO"; then :
2249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2261 if ac_fn_c_try_compile
"$LINENO"; then :
2266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2275 } # ac_fn_c_check_type
2277 # ac_fn_c_find_intX_t LINENO BITS VAR
2278 # -----------------------------------
2279 # Finds a signed integer type with width BITS, setting cache variable VAR
2281 ac_fn_c_find_intX_t
()
2283 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2285 $as_echo_n "checking for int$2_t... " >&6; }
2286 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2287 $as_echo_n "(cached) " >&6
2290 for ac_type
in int
$2_t 'int' 'long int' \
2291 'long long int' 'short int' 'signed char'; do
2292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2298 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2305 if ac_fn_c_try_compile
"$LINENO"; then :
2306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 $ac_includes_default
2312 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2313 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2320 if ac_fn_c_try_compile
"$LINENO"; then :
2327 eval "$3=\$ac_type" ;;
2330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2334 if test "x$as_val" = x
""no
; then :
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2346 } # ac_fn_c_find_intX_t
2348 # ac_fn_c_try_link LINENO
2349 # -----------------------
2350 # Try to link conftest.$ac_ext, and return whether this succeeded.
2353 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2354 rm -f conftest.
$ac_objext conftest
$ac_exeext
2355 if { { ac_try
="$ac_link"
2357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2361 $as_echo "$ac_try_echo"; } >&5
2362 (eval "$ac_link") 2>conftest.err
2364 if test -s conftest.err; then
2365 grep -v '^ *+' conftest.err >conftest.er1
2366 cat conftest.er1 >&5
2367 mv -f conftest.er1 conftest.err
2369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2370 test $ac_status = 0; } && {
2371 test -z "$ac_c_werror_flag" ||
2372 test ! -s conftest.err
2373 } && test -s conftest$ac_exeext && {
2374 test "$cross_compiling" = yes ||
2375 $as_test_x conftest$ac_exeext
2379 $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2384 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2385 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2386 # interfere with the next link command; also delete a directory that is
2387 # left behind by Apple's compiler. We do this before executing the actions.
2388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 } # ac_fn_c_try_link
2394 # ac_fn_c_find_uintX_t LINENO BITS VAR
2395 # ------------------------------------
2396 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2398 ac_fn_c_find_uintX_t ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2402 $as_echo_n "checking for uint$2_t... " >&6; }
2403 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2404 $as_echo_n "(cached) " >&6
2407 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2408 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2411 $ac_includes_default
2415 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2422 if ac_fn_c_try_compile "$LINENO"; then :
2427 eval "$3=\$ac_type" ;;
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 if test "x$as_val" = x""no; then :
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444 } # ac_fn_c_find_uintX_t
2446 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2447 # ----------------------------------------------
2448 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2449 ac_fn_c_check_header_preproc ()
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2461 if ac_fn_c_try_cpp "$LINENO"; then :
2466 rm -f conftest.err conftest.$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473 } # ac_fn_c_check_header_preproc
2475 # ac_fn_cxx_try_cpp LINENO
2476 # ------------------------
2477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2478 ac_fn_cxx_try_cpp ()
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 if { { ac_try="$ac_cpp conftest.$ac_ext"
2483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2484 *) ac_try_echo
=$ac_try;;
2486 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2490 if test -s conftest.err
; then
2491 grep -v '^ *+' conftest.err
>conftest.er1
2492 cat conftest.er1
>&5
2493 mv -f conftest.er1 conftest.err
2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496 test $ac_status = 0; } >/dev
/null
&& {
2497 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2498 test ! -s conftest.err
2502 $as_echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.
$ac_ext >&5
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2510 } # ac_fn_cxx_try_cpp
2512 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2513 # ------------------------------------------------
2514 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2515 ac_fn_cxx_check_header_preproc
()
2517 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2527 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2532 rm -f conftest.err conftest.
$ac_ext
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2539 } # ac_fn_cxx_check_header_preproc
2541 # ac_fn_c_check_func LINENO FUNC VAR
2542 # ----------------------------------
2543 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2544 ac_fn_c_check_func
()
2546 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2556 #define $2 innocuous_$2
2558 /* System header to define __stub macros and hopefully few prototypes,
2559 which can conflict with char $2 (); below.
2560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2561 <limits.h> exists even on freestanding compilers. */
2564 # include <limits.h>
2566 # include <assert.h>
2571 /* Override any GCC internal prototype to avoid an error.
2572 Use char because int might match the return type of a GCC
2573 builtin and then its argument prototype would still apply. */
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined __stub_$2 || defined __stub___$2
2593 if ac_fn_c_try_link
"$LINENO"; then :
2598 rm -f core conftest.err conftest.
$ac_objext \
2599 conftest
$ac_exeext conftest.
$ac_ext
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2606 } # ac_fn_c_check_func
2608 # ac_fn_cxx_try_link LINENO
2609 # -------------------------
2610 # Try to link conftest.$ac_ext, and return whether this succeeded.
2611 ac_fn_cxx_try_link
()
2613 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2614 rm -f conftest.
$ac_objext conftest
$ac_exeext
2615 if { { ac_try
="$ac_link"
2617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_link") 2>conftest.err
2624 if test -s conftest.err; then
2625 grep -v '^ *+' conftest.err >conftest.er1
2626 cat conftest.er1 >&5
2627 mv -f conftest.er1 conftest.err
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; } && {
2631 test -z "$ac_cxx_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest$ac_exeext && {
2634 test "$cross_compiling" = yes ||
2635 $as_test_x conftest$ac_exeext
2639 $as_echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2646 # interfere with the next link command; also delete a directory that is
2647 # left behind by Apple's compiler. We do this before executing the actions.
2648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652 } # ac_fn_cxx_try_link
2653 cat >config.log <<_ACEOF
2654 This file contains any messages produced by compilers while
2655 running configure, to aid debugging if configure makes a mistake.
2657 It was created by $as_me, which was
2658 generated by GNU Autoconf 2.64. Invocation command line was
2670 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2671 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2672 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2673 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2674 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2676 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2677 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2679 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2680 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2681 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2682 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2683 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2684 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2685 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 $as_echo "PATH: $as_dir"
2710 # Keep a trace of the command line.
2711 # Strip out --no-create and --no-recursion so they do not pile up.
2712 # Strip out --silent because we don't want to record it for future runs.
2713 # Also quote any args containing shell meta-characters.
2714 # Make two passes to allow for proper duplicate-argument suppression.
2718 ac_must_keep_next=false
2724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2726 | -silent | --silent | --silen | --sile | --sil)
2729 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2732 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734 as_fn_append ac_configure_args1 " '$ac_arg'"
2735 if test $ac_must_keep_next = true; then
2736 ac_must_keep_next=false # Got value, back to normal.
2739 *=* | --config-cache | -C | -disable-* | --disable-* \
2740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2742 | -with-* | --with-* | -without-* | --without-* | --x)
2743 case "$ac_configure_args0 " in
2744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747 -* ) ac_must_keep_next=true ;;
2750 as_fn_append ac_configure_args " '$ac_arg'"
2755 { ac_configure_args0=; unset ac_configure_args0;}
2756 { ac_configure_args1=; unset ac_configure_args1;}
2758 # When interrupted or exit'd, cleanup temporary files, and complete
2759 # config.log. We remove comments because anyway the quotes in there
2760 # would cause problems or look ugly.
2761 # WARNING: Use '\'' to represent an apostrophe within the trap.
2762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2763 trap 'exit_status=$?
2764 # Save into config.log some information that might help in debugging.
2769 ## ---------------- ##
2770 ## Cache variables. ##
2771 ## ---------------- ##
2774 # The following way of writing the cache mishandles newlines in values,
2776 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2777 eval ac_val=\$$ac_var
2781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785 _ | IFS | as_nl) ;; #(
2786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2787 *) { eval $ac_var=; unset $ac_var;} ;;
2792 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2793 *${as_nl}ac_space=\ *)
2795 "s/'\''/'\''\\\\'\'''\''/g;
2796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2807 ## ----------------- ##
2808 ## Output variables. ##
2809 ## ----------------- ##
2812 for ac_var in $ac_subst_vars
2814 eval ac_val=\$$ac_var
2816 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818 $as_echo "$ac_var='\''$ac_val'\''"
2822 if test -n "$ac_subst_files"; then
2824 ## ------------------- ##
2825 ## File substitutions. ##
2826 ## ------------------- ##
2829 for ac_var in $ac_subst_files
2831 eval ac_val=\$$ac_var
2833 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 $as_echo "$ac_var='\''$ac_val'\''"
2840 if test -s confdefs.h; then
2850 test "$ac_signal" != 0 &&
2851 $as_echo "$as_me: caught signal $ac_signal"
2852 $as_echo "$as_me: exit $exit_status"
2854 rm -f core *.core core.conftest.* &&
2855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858 for ac_signal in 1 2 13 15; do
2859 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2864 rm -f -r conftest* confdefs.h
2866 $as_echo "/* confdefs.h */" > confdefs.h
2868 # Predefined preprocessor variables.
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_URL "$PACKAGE_URL"
2895 # Let the site file select an alternate cache file if it wants to.
2896 # Prefer an explicitly selected file to automatically selected ones.
2899 if test -n "$CONFIG_SITE"; then
2900 ac_site_file1=$CONFIG_SITE
2901 elif test "x$prefix" != xNONE; then
2902 ac_site_file1=$prefix/share/config.site
2903 ac_site_file2=$prefix/etc/config.site
2905 ac_site_file1=$ac_default_prefix/share/config.site
2906 ac_site_file2=$ac_default_prefix/etc/config.site
2908 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910 test "x$ac_site_file" = xNONE && continue
2911 if test -r "$ac_site_file"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2913 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2914 sed 's/^/| /' "$ac_site_file" >&5
2919 if test -r "$cache_file"; then
2920 # Some versions of bash will fail to source /dev/null (special
2921 # files actually), so we avoid doing that.
2922 if test -f "$cache_file"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2924 $as_echo "$as_me: loading cache $cache_file" >&6;}
2926 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2927 *) . "./$cache_file";;
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2932 $as_echo "$as_me: creating cache $cache_file" >&6;}
2936 # Check that the precious variables saved in the cache have kept the same
2938 ac_cache_corrupted=false
2939 for ac_var in $ac_precious_vars; do
2940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2941 eval ac_new_set=\$ac_env_${ac_var}_set
2942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2943 eval ac_new_val=\$ac_env_${ac_var}_value
2944 case $ac_old_set,$ac_new_set in
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2947 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2948 ac_cache_corrupted=: ;;
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2951 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2955 if test "x$ac_old_val" != "x$ac_new_val"; then
2956 # differences in whitespace do not lead to failure.
2957 ac_old_val_w=`echo x
$ac_old_val`
2958 ac_new_val_w=`echo x
$ac_new_val`
2959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2962 ac_cache_corrupted=:
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2966 eval $ac_var=\$ac_old_val
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2969 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2974 # Pass precious variables to config.status.
2975 if test "$ac_new_set" = set; then
2977 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2978 *) ac_arg=$ac_var=$ac_new_val ;;
2980 case " $ac_configure_args " in
2981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2982 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2986 if $ac_cache_corrupted; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2990 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2991 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2993 ## -------------------- ##
2994 ## Main body of script. ##
2995 ## -------------------- ##
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3011 gcc_version=`cat $srcdir/BASE-VER
`
3013 # Determine the host, build, and target systems
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016 for ac_t in install-sh install.sh shtool; do
3017 if test -f "$ac_dir/$ac_t"; then
3019 ac_install_sh="$ac_aux_dir/$ac_t -c"
3024 if test -z "$ac_aux_dir"; then
3025 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3028 # These three variables are undocumented and unsupported,
3029 # and are intended to be withdrawn in a future Autoconf release.
3030 # They can cause serious problems if a builder's source tree is in a directory
3031 # whose full name contains unusual characters.
3032 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3033 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3034 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3037 # Make sure we can run config.sub.
3038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3039 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3042 $as_echo_n "checking build system type... " >&6; }
3043 if test "${ac_cv_build+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3046 ac_build_alias=$build_alias
3047 test "x$ac_build_alias" = x &&
3048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3049 test "x$ac_build_alias" = x &&
3050 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3052 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3056 $as_echo "$ac_cv_build" >&6; }
3057 case $ac_cv_build in
3059 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3062 ac_save_IFS=$IFS; IFS='-'
3068 # Remember, the first character of IFS is used to create $*,
3069 # except with old shells:
3072 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3076 $as_echo_n "checking host system type... " >&6; }
3077 if test "${ac_cv_host+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3080 if test "x$host_alias" = x; then
3081 ac_cv_host=$ac_cv_build
3083 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3084 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3089 $as_echo "$ac_cv_host" >&6; }
3092 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3095 ac_save_IFS=$IFS; IFS='-'
3101 # Remember, the first character of IFS is used to create $*,
3102 # except with old shells:
3105 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3109 $as_echo_n "checking target system type... " >&6; }
3110 if test "${ac_cv_target+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3113 if test "x$target_alias" = x; then
3114 ac_cv_target=$ac_cv_host
3116 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3117 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3122 $as_echo "$ac_cv_target" >&6; }
3123 case $ac_cv_target in
3125 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3127 target=$ac_cv_target
3128 ac_save_IFS=$IFS; IFS='-'
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3138 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3141 # The aliases save the names the user supplied, while $host etc.
3142 # will get canonicalized.
3143 test -n "$target_alias" &&
3144 test "$program_prefix$program_suffix$program_transform_name" = \
3146 program_prefix=${target_alias}-
3148 # Determine the noncanonical target name, for directory use.
3149 case ${build_alias} in
3150 "") build_noncanonical=${build} ;;
3151 *) build_noncanonical=${build_alias} ;;
3154 case ${host_alias} in
3155 "") host_noncanonical=${build_noncanonical} ;;
3156 *) host_noncanonical=${host_alias} ;;
3159 case ${target_alias} in
3160 "") target_noncanonical=${host_noncanonical} ;;
3161 *) target_noncanonical=${target_alias} ;;
3167 # Determine the target- and build-specific subdirectories
3169 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3170 # have matching libraries, they should use host libraries: Makefile.tpl
3171 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3172 # However, they still use the build modules, because the corresponding
3173 # host modules (e.g. bison) are only built for the host when bootstrap
3175 # - build_subdir is where we find build modules, and never changes.
3176 # - build_libsubdir is where we find build libraries, and can be overridden.
3178 # Prefix 'build-' so this never conflicts with target_subdir.
3179 build_subdir="build-${build_noncanonical}"
3181 # Check whether --with-build-libsubdir was given.
3182 if test "${with_build_libsubdir+set}" = set; then :
3183 withval=$with_build_libsubdir; build_libsubdir="$withval"
3185 build_libsubdir="$build_subdir"
3188 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3189 if ( test $srcdir = . && test -d gcc ) \
3190 || test -d $srcdir/../host-${host_noncanonical}; then
3191 host_subdir="host-${host_noncanonical}"
3196 target_subdir=${target_noncanonical}
3199 # Set program_transform_name
3200 test "$program_prefix" != NONE &&
3201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3202 # Use a double $ so make ignores it.
3203 test "$program_suffix" != NONE &&
3204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3205 # Double any \ or $.
3206 # By default was `s
,x
,x
', remove it if useless.
3207 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3208 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3211 # Check for bogus environment variables.
3212 # Test if LIBRARY_PATH contains the notation for the current directory
3213 # since this would lead to problems installing/building glibc.
3214 # LIBRARY_PATH contains the current directory if one of the following
3216 # - one of the terminals (":" and ";") is the first or last sign
3217 # - two terminals occur directly after each other
3218 # - the path contains an element with a dot in it
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3220 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3221 case ${LIBRARY_PATH} in
3222 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3223 library_path_setting="contains current directory"
3226 library_path_setting="ok"
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3230 $as_echo "$library_path_setting" >&6; }
3231 if test "$library_path_setting" != "ok"; then
3233 *** LIBRARY_PATH shouldn't contain the current directory when
3234 *** building gcc. Please change the environment variable
3235 *** and run configure again.
" "$LINENO" 5
3238 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3239 # since this would lead to problems installing/building glibc.
3240 # GCC_EXEC_PREFIX contains the current directory if one of the following
3242 # - one of the terminals (":" and ";") is the first or last sign
3243 # - two terminals occur directly after each other
3244 # - the path contains an element with a dot in it
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3246 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3247 case ${GCC_EXEC_PREFIX} in
3248 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3249 gcc_exec_prefix_setting="contains current directory
"
3252 gcc_exec_prefix_setting="ok
"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3256 $as_echo "$gcc_exec_prefix_setting" >&6; }
3257 if test "$gcc_exec_prefix_setting" != "ok
"; then
3259 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3260 *** building gcc. Please change the environment variable
3261 *** and run configure again." "$LINENO" 5
3268 # Specify the local prefix
3271 # Check whether --with-local-prefix was given.
3272 if test "${with_local_prefix+set}" = set; then :
3273 withval=$with_local_prefix; case "${withval}" in
3274 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3276 *) local_prefix=$with_local_prefix ;;
3281 # Default local prefix if it is empty
3282 if test x$local_prefix = x; then
3283 local_prefix=/usr/local
3286 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3287 # passed in by the toplevel make and thus we'd get different behavior
3288 # depending on where we built the sources.
3289 gcc_gxx_include_dir
=
3290 # Specify the g++ header file directory
3292 # Check whether --with-gxx-include-dir was given.
3293 if test "${with_gxx_include_dir+set}" = set; then :
3294 withval
=$with_gxx_include_dir; case "${withval}" in
3295 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3297 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3302 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3303 if test x
${gcc_gxx_include_dir} = x
; then
3304 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3305 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3307 libstdcxx_incdir
='include/c++/$(version)'
3308 if test x
$host != x
$target; then
3309 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3311 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3316 # Check whether --with-cpp_install_dir was given.
3317 if test "${with_cpp_install_dir+set}" = set; then :
3318 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3319 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3320 elif test x
$withval != xno
; then
3321 cpp_install_dir
=$withval
3326 # We would like to our source tree to be readonly. However when releases or
3327 # pre-releases are generated, the flex/bison generated files as well as the
3328 # various formats of manuals need to be included along with the rest of the
3329 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3333 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3334 # Check whether --enable-generated-files-in-srcdir was given.
3335 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3336 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3338 generated_files_in_srcdir
=no
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3343 $as_echo "$generated_files_in_srcdir" >&6; }
3345 if test "$generated_files_in_srcdir" = "yes"; then
3352 # -------------------
3353 # Find default linker
3354 # -------------------
3358 # Check whether --with-gnu-ld was given.
3359 if test "${with_gnu_ld+set}" = set; then :
3360 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3366 # With pre-defined ld
3368 # Check whether --with-ld was given.
3369 if test "${with_ld+set}" = set; then :
3370 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3373 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3374 if test ! -x "$DEFAULT_LINKER"; then
3375 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3376 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3380 cat >>confdefs.h
<<_ACEOF
3381 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3386 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3388 cat >>confdefs.h
<<_ACEOF
3389 #define HAVE_GNU_LD $gnu_ld
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3394 $as_echo_n "checking whether a default linker was specified... " >&6; }
3395 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3396 if test x
"$gnu_ld_flag" = x
"no"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3398 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3401 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3408 # With demangler in GNU ld
3410 # Check whether --with-demangler-in-ld was given.
3411 if test "${with_demangler_in_ld+set}" = set; then :
3412 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3418 # ----------------------
3419 # Find default assembler
3420 # ----------------------
3424 # Check whether --with-gnu-as was given.
3425 if test "${with_gnu_as+set}" = set; then :
3426 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3433 # Check whether --with-as was given.
3434 if test "${with_as+set}" = set; then :
3435 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3438 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3439 if test ! -x "$DEFAULT_ASSEMBLER"; then
3440 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3441 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3445 cat >>confdefs.h
<<_ACEOF
3446 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3451 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3453 cat >>confdefs.h
<<_ACEOF
3454 #define HAVE_GNU_AS $gnu_as
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3459 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3460 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3461 if test x
"$gas_flag" = x
"no"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3463 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3466 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3477 # If a non-executable a.out is present (e.g. created by GNU as above even if
3478 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3479 # file, even when creating an executable, so an execution test fails.
3480 # Remove possible default executable files to avoid this.
3482 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3483 # Autoconf includes it.
3484 rm -f a.out a.exe b.out
3486 # Find the native compiler
3488 ac_cpp
='$CPP $CPPFLAGS'
3489 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3492 if test -n "$ac_tool_prefix"; then
3493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3494 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_CC+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC
="$CC" # Let the user override the test.
3503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir
=.
3508 for ac_exec_ext
in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3531 if test -z "$ac_cv_prog_CC"; then
3533 # Extract the first word of "gcc", so it can be a program name with args.
3534 set dummy gcc
; ac_word
=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir
=.
3548 for ac_exec_ext
in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_ac_ct_CC
="gcc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563 $as_echo "$ac_ct_CC" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3569 if test "x$ac_ct_CC" = x
; then
3572 case $cross_compiling:$ac_tool_warned in
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576 ac_tool_warned
=yes ;;
3584 if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3587 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC
="$CC" # Let the user override the test.
3596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir
=.
3601 for ac_exec_ext
in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 if test -n "$CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 $as_echo "$CC" >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3625 if test -z "$CC"; then
3626 # Extract the first word of "cc", so it can be a program name with args.
3627 set dummy cc
; ac_word
=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC
="$CC" # Let the user override the test.
3637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir
=.
3642 for ac_exec_ext
in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3645 ac_prog_rejected
=yes
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 if test $ac_prog_rejected = yes; then
3657 # We found a bogon in the path, so make sure we never use it.
3658 set dummy
$ac_cv_prog_CC
3660 if test $# != 0; then
3661 # We chose a different compiler from the bogus one.
3662 # However, it has the same basename, so the bogon will be chosen
3663 # first if we set CC to just the basename; use the full file name.
3665 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3671 if test -n "$CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3673 $as_echo "$CC" >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3681 if test -z "$CC"; then
3682 if test -n "$ac_tool_prefix"; then
3683 for ac_prog
in cl.exe
3685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3686 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_CC+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3692 if test -n "$CC"; then
3693 ac_cv_prog_CC
="$CC" # Let the user override the test.
3695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir
=.
3700 for ac_exec_ext
in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3722 test -n "$CC" && break
3725 if test -z "$CC"; then
3727 for ac_prog
in cl.exe
3729 # Extract the first word of "$ac_prog", so it can be a program name with args.
3730 set dummy
$ac_prog; ac_word
=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3736 if test -n "$ac_ct_CC"; then
3737 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir
=.
3744 for ac_exec_ext
in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_ac_ct_CC
="$ac_prog"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3757 if test -n "$ac_ct_CC"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759 $as_echo "$ac_ct_CC" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3766 test -n "$ac_ct_CC" && break
3769 if test "x$ac_ct_CC" = x
; then
3772 case $cross_compiling:$ac_tool_warned in
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776 ac_tool_warned
=yes ;;
3785 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error
"no acceptable C compiler found in \$PATH
3788 See \`config.log' for more details." "$LINENO" 5; }
3790 # Provide some information about the compiler.
3791 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 for ac_option
in --version -v -V -qversion; do
3795 { { ac_try
="$ac_compiler $ac_option >&5"
3797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804 if test -s conftest.err; then
3806 ... rest of stderr output deleted ...
3807 10q' conftest.err >conftest.er1
3808 cat conftest.er1 >&5
3809 rm -f conftest.er1 conftest.err
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3826 ac_clean_files_save=$ac_clean_files
3827 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3828 # Try to create an executable without -o first, disregard a.out.
3829 # It will help us diagnose broken compilers, and finding out an intuition
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3832 $as_echo_n "checking for C compiler default output file name... " >&6; }
3833 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3835 # The possible output files:
3836 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839 for ac_file in $ac_files
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3843 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3848 if { { ac_try="$ac_link_default"
3850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3851 *) ac_try_echo
=$ac_try;;
3853 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 $as_echo "$ac_try_echo"; } >&5
3855 (eval "$ac_link_default") 2>&5
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }; then :
3859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3861 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3862 # so that the user can short-circuit this test for compilers unknown to
3864 for ac_file
in $ac_files ''
3866 test -f "$ac_file" ||
continue
3868 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3871 # We found the default executable, but exeext='' is most
3875 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3877 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879 # We set ac_cv_exeext here because the later test for it is not
3880 # safe: cross compilers may not add the suffix if given an `-o'
3881 # argument, so we may need to know it at that point already.
3882 # Even if this section looks crufty: it has the advantage of
3889 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895 $as_echo "$ac_file" >&6; }
3896 if test -z "$ac_file"; then :
3897 $as_echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.
$ac_ext >&5
3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 { as_fn_set_status
77
3903 as_fn_error
"C compiler cannot create executables
3904 See \`config.log' for more details." "$LINENO" 5; }; }
3906 ac_exeext
=$ac_cv_exeext
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3911 $as_echo_n "checking whether the C compiler works... " >&6; }
3912 # If not cross compiling, check that we can run a simple program.
3913 if test "$cross_compiling" != yes; then
3914 if { ac_try
='./$ac_file'
3915 { { case "(($ac_try" in
3916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_try") 2>&5
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; }; then
3927 if test "$cross_compiling" = maybe; then
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error "cannot run C compiled programs.
3933 If you meant to cross compile
, use \
`--host'.
3934 See \`config.log
' for more details." "$LINENO" 5; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3941 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3942 ac_clean_files=$ac_clean_files_save
3943 # Check that the compiler produces executables we can run. If not, either
3944 # the compiler is broken, or we cross compile.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3946 $as_echo_n "checking whether we are cross compiling... " >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3948 $as_echo "$cross_compiling" >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951 $as_echo_n "checking for suffix of executables... " >&6; }
3952 if { { ac_try="$ac_link"
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_link") 2>&5
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; then :
3963 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3964 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3965 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3967 for ac_file
in conftest.exe conftest conftest.
*; do
3968 test -f "$ac_file" ||
continue
3970 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3971 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3980 See \`config.log' for more details." "$LINENO" 5; }
3982 rm -f conftest
$ac_cv_exeext
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984 $as_echo "$ac_cv_exeext" >&6; }
3986 rm -f conftest.
$ac_ext
3987 EXEEXT
=$ac_cv_exeext
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990 $as_echo_n "checking for suffix of object files... " >&6; }
3991 if test "${ac_cv_objext+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4005 rm -f conftest.o conftest.obj
4006 if { { ac_try
="$ac_compile"
4008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_compile") 2>&5
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error "cannot compute suffix of object files
: cannot compile
4032 See \
`config.log' for more details." "$LINENO" 5; }
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037 $as_echo "$ac_cv_objext" >&6; }
4038 OBJEXT=$ac_cv_objext
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4059 if ac_fn_c_try_compile "$LINENO"; then :
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 if ac_fn_c_try_compile "$LINENO"; then :
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 if ac_fn_c_try_compile "$LINENO"; then :
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_c_try_compile "$LINENO"; then :
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139 $as_echo "$ac_cv_prog_cc_g" >&6; }
4140 if test "$ac_test_CFLAGS" = set; then
4141 CFLAGS=$ac_save_CFLAGS
4142 elif test $ac_cv_prog_cc_g = yes; then
4143 if test "$GCC" = yes; then
4149 if test "$GCC" = yes; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4160 ac_cv_prog_cc_c89=no
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4166 #include <sys/types.h>
4167 #include <sys/stat.h>
4168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4169 struct buf { int x; };
4170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4171 static char *e (p, i)
4177 static char *f (char * (*g) (char **, int), char **p, ...)
4182 s = g (p, va_arg (v,int));
4187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4188 function prototypes and stuff, but not '\xHH' hex character constants.
4189 These don't provoke an error unfortunately, instead are silently treated
4190 as 'x'. The following induces an error, until -std is added to get
4191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4192 array size at least. It's necessary to write '\x00'==0 to get something
4193 that's true only with -std. */
4194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4197 inside strings and character constants. */
4199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4201 int test (int i, double x);
4202 struct s1 {int (*f) (int a);};
4203 struct s2 {int (*f) (double a);};
4204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4210 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4218 CC="$ac_save_CC $ac_arg"
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_c89=$ac_arg
4222 rm -f core conftest.err conftest.$ac_objext
4223 test "x$ac_cv_prog_cc_c89" != "xno" && break
4225 rm -f conftest.$ac_ext
4230 case "x$ac_cv_prog_cc_c89" in
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233 $as_echo "none needed" >&6; } ;;
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 $as_echo "unsupported" >&6; } ;;
4238 CC="$CC $ac_cv_prog_cc_c89"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4240 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4242 if test "x$ac_cv_prog_cc_c89" != xno; then :
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252 if test "x$CC" != xcc; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4254 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4257 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4259 set dummy $CC; ac_cc=`$as_echo "$2" |
4260 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4261 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4262 $as_echo_n "(cached) " >&6
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4275 # Make sure it works both with $CC and with simple cc.
4276 # We do the test twice because some compilers refuse to overwrite an
4277 # existing .o file with -o, though they will create one.
4278 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 if { { case "(($ac_try" in
4281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4282 *) ac_try_echo
=$ac_try;;
4284 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_try") 2>&5
4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289 test $ac_status = 0; } &&
4290 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; };
4301 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4302 if test "x$CC" != xcc; then
4303 # Test first that cc exists at all.
4304 if { ac_try='cc -c conftest.$ac_ext >&5'
4305 { { case "(($ac_try" in
4306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4307 *) ac_try_echo
=$ac_try;;
4309 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_try") 2>&5
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }; }; then
4315 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4317 if { { case "(($ac_try" in
4318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323 (eval "$ac_try") 2>&5
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; } &&
4327 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4329 *) ac_try_echo
=$ac_try;;
4331 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; };
4341 # cc exists but doesn't like -o.
4342 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4347 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4349 rm -f core conftest
*
4352 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4354 $as_echo "yes" >&6; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4359 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4363 # expand $ac_aux_dir to an absolute path
4364 am_aux_dir
=`cd $ac_aux_dir && pwd`
4366 # FIXME: we rely on the cache variable name because
4367 # there is no other way.
4369 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4370 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4371 if test "$am_t" != yes; then
4372 # Losing compiler, so override with the script.
4373 # FIXME: It is wrong to rewrite CC.
4374 # But if we don't then we get into trouble of one sort or another.
4375 # A longer-term fix would be to have automake use am__CC in this case,
4376 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4377 CC
="$am_aux_dir/compile $CC"
4382 ac_cpp
='$CXXCPP $CPPFLAGS'
4383 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4386 if test -z "$CXX"; then
4387 if test -n "$CCC"; then
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_CXX+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -n "$CXX"; then
4401 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir
=.
4408 for ac_exec_ext
in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 if test -n "$CXX"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4423 $as_echo "$CXX" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4430 test -n "$CXX" && break
4433 if test -z "$CXX"; then
4435 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy
$ac_prog; ac_word
=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4444 if test -n "$ac_ct_CXX"; then
4445 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir
=.
4452 for ac_exec_ext
in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4465 if test -n "$ac_ct_CXX"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4467 $as_echo "$ac_ct_CXX" >&6; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4474 test -n "$ac_ct_CXX" && break
4477 if test "x$ac_ct_CXX" = x
; then
4480 case $cross_compiling:$ac_tool_warned in
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned
=yes ;;
4492 # Provide some information about the compiler.
4493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4496 for ac_option
in --version -v -V -qversion; do
4497 { { ac_try
="$ac_compiler $ac_option >&5"
4499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506 if test -s conftest.err; then
4508 ... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4518 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4519 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4536 if ac_fn_cxx_try_compile "$LINENO"; then :
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4546 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4547 if test $ac_compiler_gnu = yes; then
4552 ac_test_CXXFLAGS=${CXXFLAGS+set}
4553 ac_save_CXXFLAGS=$CXXFLAGS
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4555 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4556 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4560 ac_cxx_werror_flag=yes
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4574 if ac_fn_cxx_try_compile "$LINENO"; then :
4575 ac_cv_prog_cxx_g=yes
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4589 if ac_fn_cxx_try_compile "$LINENO"; then :
4592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4605 if ac_fn_cxx_try_compile "$LINENO"; then :
4606 ac_cv_prog_cxx_g=yes
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4616 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4617 if test "$ac_test_CXXFLAGS" = set; then
4618 CXXFLAGS=$ac_save_CXXFLAGS
4619 elif test $ac_cv_prog_cxx_g = yes; then
4620 if test "$GXX" = yes; then
4626 if test "$GXX" = yes; then
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641 if test -n "$ac_tool_prefix"; then
4642 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4643 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -n "$GNATBIND"; then
4650 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 GNATBIND=$ac_cv_prog_GNATBIND
4670 if test -n "$GNATBIND"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4672 $as_echo "$GNATBIND" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4680 if test -z "$ac_cv_prog_GNATBIND"; then
4681 ac_ct_GNATBIND=$GNATBIND
4682 # Extract the first word of "gnatbind", so it can be a program name with args.
4683 set dummy gnatbind; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4689 if test -n "$ac_ct_GNATBIND"; then
4690 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4710 if test -n "$ac_ct_GNATBIND"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4712 $as_echo "$ac_ct_GNATBIND" >&6; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4718 if test "x$ac_ct_GNATBIND" = x; then
4721 case $cross_compiling:$ac_tool_warned in
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4725 ac_tool_warned=yes ;;
4727 GNATBIND=$ac_ct_GNATBIND
4730 GNATBIND="$ac_cv_prog_GNATBIND"
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -n "$GNATMAKE"; then
4742 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 GNATMAKE=$ac_cv_prog_GNATMAKE
4762 if test -n "$GNATMAKE"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4764 $as_echo "$GNATMAKE" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4772 if test -z "$ac_cv_prog_GNATMAKE"; then
4773 ac_ct_GNATMAKE=$GNATMAKE
4774 # Extract the first word of "gnatmake", so it can be a program name with args.
4775 set dummy gnatmake; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4781 if test -n "$ac_ct_GNATMAKE"; then
4782 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4802 if test -n "$ac_ct_GNATMAKE"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4804 $as_echo "$ac_ct_GNATMAKE" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4810 if test "x$ac_ct_GNATMAKE" = x; then
4813 case $cross_compiling:$ac_tool_warned in
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4819 GNATMAKE=$ac_ct_GNATMAKE
4822 GNATMAKE="$ac_cv_prog_GNATMAKE"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4826 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4827 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4830 cat >conftest.adb <<EOF
4831 procedure conftest is begin null; end conftest;
4833 acx_cv_cc_gcc_supports_ada=no
4834 # There is a bug in old released versions of GCC which causes the
4835 # driver to exit successfully when the appropriate language module
4836 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4837 # Therefore we must check for the error message as well as an
4838 # unsuccessful exit.
4839 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4840 # given a .adb file, but produce no object file. So we must check
4841 # if an object file was really produced to guard against this.
4842 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4843 if test x"$errors" = x && test -f conftest.$ac_objext; then
4844 acx_cv_cc_gcc_supports_ada=yes
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4849 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4851 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4858 # autoconf is lame and doesn't give us any substitution variable for this.
4859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4860 NO_MINUS_C_MINUS_O=yes
4862 OUTPUT_OPTION='-o $@'
4867 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4868 # optimizations to be activated explicitly by the toplevel.
4870 */prev-gcc/xgcc*) ;;
4871 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4875 # Determine PICFLAG for target gnatlib.
4881 # PIC is the default on some targets or must not be used.
4883 # PIC is the default on this platform
4884 # Common symbols not allowed in MH_DYLIB files
4885 PICFLAG_FOR_TARGET=-fno-common
4888 # PIC is the default.
4891 # PIC is the default for 64-bit PA HP-UX.
4893 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4895 i[34567]86-*-interix3*)
4896 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4897 # Instead, we relocate shared libraries at runtime.
4899 i[34567]86-*-nto-qnx*)
4900 # QNX uses GNU C++, but need to define -shared option too, otherwise
4902 PICFLAG_FOR_TARGET='-fPIC -shared'
4904 i[34567]86-pc-msdosdjgpp*)
4905 # DJGPP does not support shared libraries at all.
4908 # On IA64 HP-UX, PIC is the default but the pic flag
4909 # sets the default TLS model and affects inlining.
4910 PICFLAG_FOR_TARGET=-fPIC
4913 # PIC is the default.
4915 rs6000-ibm-aix* | powerpc-ibm-aix*)
4916 # All AIX code is PIC.
4919 # Some targets support both -fPIC and -fpic, but prefer the latter.
4921 i[34567]86-*-* | x86_64-*-*)
4922 PICFLAG_FOR_TARGET=-fpic
4925 PICFLAG_FOR_TARGET=-fpic
4928 PICFLAG_FOR_TARGET=-fpic
4930 # FIXME: Override -fPIC default in libgcc only?
4931 sh-*-linux* | sh[2346lbe]*-*-linux*)
4932 PICFLAG_FOR_TARGET=-fpic
4934 # FIXME: Simplify to sh*-*-netbsd*?
4935 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4936 sh64-*-netbsd* | sh64l*-*-netbsd*)
4937 PICFLAG_FOR_TARGET=-fpic
4939 # Default to -fPIC unless specified otherwise.
4941 PICFLAG_FOR_TARGET=-fPIC
4945 # If the user explicitly uses -fpic/-fPIC, keep that.
4946 case "${CFLAGS_FOR_TARGET}" in
4948 PICFLAG_FOR_TARGET=-fpic
4951 PICFLAG_FOR_TARGET=-fPIC
4957 # -------------------------
4958 # Check C compiler features
4959 # -------------------------
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4968 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4969 # On Suns, sometimes $CPP names a directory.
4970 if test -n "$CPP" && test -d "$CPP"; then
4973 if test -z "$CPP"; then
4974 if test "${ac_cv_prog_CPP+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4977 # Double quotes because CPP needs to be expanded
4978 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4981 for ac_c_preproc_warn_flag in '' yes
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4992 # include <limits.h>
4994 # include <assert.h>
4998 if ac_fn_c_try_cpp "$LINENO"; then :
5001 # Broken: fails on valid input.
5004 rm -f conftest.err conftest.$ac_ext
5006 # OK, works on sane cases. Now check whether nonexistent headers
5007 # can be detected and how.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 #include <ac_nonexistent.h>
5012 if ac_fn_c_try_cpp "$LINENO"; then :
5013 # Broken: success on invalid input.
5016 # Passes both tests.
5020 rm -f conftest.err conftest.$ac_ext
5023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024 rm -f conftest.err conftest.
$ac_ext
5025 if $ac_preproc_ok; then :
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5038 $as_echo "$CPP" >&6; }
5040 for ac_c_preproc_warn_flag
in '' yes
5042 # Use a header file that comes with gcc, so configuring glibc
5043 # with a fresh cross-compiler works.
5044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 # <limits.h> exists even on freestanding compilers.
5046 # On the NeXT, cc -E runs the code through the compiler's parser,
5047 # not just through cpp. "Syntax error" is here to catch this case.
5048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5051 # include <limits.h>
5053 # include <assert.h>
5057 if ac_fn_c_try_cpp
"$LINENO"; then :
5060 # Broken: fails on valid input.
5063 rm -f conftest.err conftest.
$ac_ext
5065 # OK, works on sane cases. Now check whether nonexistent headers
5066 # can be detected and how.
5067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5071 if ac_fn_c_try_cpp
"$LINENO"; then :
5072 # Broken: success on invalid input.
5075 # Passes both tests.
5079 rm -f conftest.err conftest.
$ac_ext
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.
$ac_ext
5084 if $ac_preproc_ok; then :
5087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5090 See \`config.log' for more details." "$LINENO" 5; }
5094 ac_cpp
='$CPP $CPPFLAGS'
5095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5102 if test "${ac_cv_path_GREP+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 if test -z "$GREP"; then
5106 ac_path_GREP_found
=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5109 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5112 test -z "$as_dir" && as_dir
=.
5113 for ac_prog
in grep ggrep
; do
5114 for ac_exec_ext
in '' $ac_executable_extensions; do
5115 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5117 # Check for GNU ac_path_GREP and select it if it is found.
5118 # Check for GNU $ac_path_GREP
5119 case `"$ac_path_GREP" --version 2>&1` in
5121 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5124 $as_echo_n 0123456789 >"conftest.in"
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'GREP' >> "conftest.nl"
5131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5132 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5133 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_GREP
="$ac_path_GREP"
5137 ac_path_GREP_max
=$ac_count
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5142 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5145 $ac_path_GREP_found && break 3
5150 if test -z "$ac_cv_path_GREP"; then
5151 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5154 ac_cv_path_GREP
=$GREP
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5159 $as_echo "$ac_cv_path_GREP" >&6; }
5160 GREP
="$ac_cv_path_GREP"
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5164 $as_echo_n "checking for egrep... " >&6; }
5165 if test "${ac_cv_path_EGREP+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5168 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5169 then ac_cv_path_EGREP
="$GREP -E"
5171 if test -z "$EGREP"; then
5172 ac_path_EGREP_found
=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5175 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5178 test -z "$as_dir" && as_dir
=.
5179 for ac_prog
in egrep; do
5180 for ac_exec_ext
in '' $ac_executable_extensions; do
5181 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5183 # Check for GNU ac_path_EGREP and select it if it is found.
5184 # Check for GNU $ac_path_EGREP
5185 case `"$ac_path_EGREP" --version 2>&1` in
5187 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5190 $as_echo_n 0123456789 >"conftest.in"
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo 'EGREP' >> "conftest.nl"
5197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5198 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5199 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_EGREP
="$ac_path_EGREP"
5203 ac_path_EGREP_max
=$ac_count
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5208 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5211 $ac_path_EGREP_found && break 3
5216 if test -z "$ac_cv_path_EGREP"; then
5217 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5220 ac_cv_path_EGREP
=$EGREP
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5226 $as_echo "$ac_cv_path_EGREP" >&6; }
5227 EGREP
="$ac_cv_path_EGREP"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5231 $as_echo_n "checking for ANSI C header files... " >&6; }
5232 if test "${ac_cv_header_stdc+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5250 if ac_fn_c_try_compile
"$LINENO"; then :
5251 ac_cv_header_stdc
=yes
5253 ac_cv_header_stdc
=no
5255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5257 if test $ac_cv_header_stdc = yes; then
5258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5265 $EGREP "memchr" >/dev
/null
2>&1; then :
5268 ac_cv_header_stdc
=no
5274 if test $ac_cv_header_stdc = yes; then
5275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 $EGREP "free" >/dev
/null
2>&1; then :
5285 ac_cv_header_stdc
=no
5291 if test $ac_cv_header_stdc = yes; then
5292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5293 if test "$cross_compiling" = yes; then :
5296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304 # define ISLOWER(c) \
5305 (('a' <= (c) && (c) <= 'i') \
5306 || ('j' <= (c) && (c) <= 'r') \
5307 || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5316 for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i))
5318 || toupper (i) != TOUPPER (i))
5323 if ac_fn_c_try_run
"$LINENO"; then :
5326 ac_cv_header_stdc
=no
5328 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5329 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5335 $as_echo "$ac_cv_header_stdc" >&6; }
5336 if test $ac_cv_header_stdc = yes; then
5338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5343 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5344 inttypes.h stdint.h unistd.h
5346 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5347 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5349 eval as_val
=\$
$as_ac_Header
5350 if test "x$as_val" = x
""yes; then :
5351 cat >>confdefs.h
<<_ACEOF
5352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5362 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5369 if test "$MINIX" = yes; then
5371 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5374 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5377 $as_echo "#define _MINIX 1" >>confdefs.h
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5383 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5384 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5390 # define __EXTENSIONS__ 1
5391 $ac_includes_default
5400 if ac_fn_c_try_compile
"$LINENO"; then :
5401 ac_cv_safe_to_define___extensions__
=yes
5403 ac_cv_safe_to_define___extensions__
=no
5405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5408 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5409 test $ac_cv_safe_to_define___extensions__ = yes &&
5410 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5412 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5414 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5416 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5418 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5422 ac_cpp
='$CPP $CPPFLAGS'
5423 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5428 # On Suns, sometimes $CPP names a directory.
5429 if test -n "$CPP" && test -d "$CPP"; then
5432 if test -z "$CPP"; then
5433 if test "${ac_cv_prog_CPP+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5436 # Double quotes because CPP needs to be expanded
5437 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5440 for ac_c_preproc_warn_flag
in '' yes
5442 # Use a header file that comes with gcc, so configuring glibc
5443 # with a fresh cross-compiler works.
5444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 # <limits.h> exists even on freestanding compilers.
5446 # On the NeXT, cc -E runs the code through the compiler's parser,
5447 # not just through cpp. "Syntax error" is here to catch this case.
5448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5451 # include <limits.h>
5453 # include <assert.h>
5457 if ac_fn_c_try_cpp
"$LINENO"; then :
5460 # Broken: fails on valid input.
5463 rm -f conftest.err conftest.
$ac_ext
5465 # OK, works on sane cases. Now check whether nonexistent headers
5466 # can be detected and how.
5467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #include <ac_nonexistent.h>
5471 if ac_fn_c_try_cpp
"$LINENO"; then :
5472 # Broken: success on invalid input.
5475 # Passes both tests.
5479 rm -f conftest.err conftest.
$ac_ext
5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5483 rm -f conftest.err conftest.
$ac_ext
5484 if $ac_preproc_ok; then :
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5497 $as_echo "$CPP" >&6; }
5499 for ac_c_preproc_warn_flag
in '' yes
5501 # Use a header file that comes with gcc, so configuring glibc
5502 # with a fresh cross-compiler works.
5503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504 # <limits.h> exists even on freestanding compilers.
5505 # On the NeXT, cc -E runs the code through the compiler's parser,
5506 # not just through cpp. "Syntax error" is here to catch this case.
5507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5510 # include <limits.h>
5512 # include <assert.h>
5516 if ac_fn_c_try_cpp
"$LINENO"; then :
5519 # Broken: fails on valid input.
5522 rm -f conftest.err conftest.
$ac_ext
5524 # OK, works on sane cases. Now check whether nonexistent headers
5525 # can be detected and how.
5526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <ac_nonexistent.h>
5530 if ac_fn_c_try_cpp
"$LINENO"; then :
5531 # Broken: success on invalid input.
5534 # Passes both tests.
5538 rm -f conftest.err conftest.
$ac_ext
5541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5542 rm -f conftest.err conftest.
$ac_ext
5543 if $ac_preproc_ok; then :
5546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5548 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5549 See \`config.log' for more details." "$LINENO" 5; }
5553 ac_cpp
='$CPP $CPPFLAGS'
5554 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5559 $as_echo_n "checking for inline... " >&6; }
5560 if test "${ac_cv_c_inline+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5564 for ac_kw
in inline __inline__ __inline
; do
5565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5569 static $ac_kw foo_t static_foo () {return 0; }
5570 $ac_kw foo_t foo () {return 0; }
5574 if ac_fn_c_try_compile
"$LINENO"; then :
5575 ac_cv_c_inline
=$ac_kw
5577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5578 test "$ac_cv_c_inline" != no
&& break
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5583 $as_echo "$ac_cv_c_inline" >&6; }
5585 case $ac_cv_c_inline in
5588 case $ac_cv_c_inline in
5590 *) ac_val
=$ac_cv_c_inline;;
5592 cat >>confdefs.h
<<_ACEOF
5594 #define inline $ac_val
5601 # Check whether --enable-largefile was given.
5602 if test "${enable_largefile+set}" = set; then :
5603 enableval
=$enable_largefile;
5606 if test "$enable_largefile" != no
; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5609 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5610 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5613 ac_cv_sys_largefile_CC
=no
5614 if test "$GCC" != yes; then
5617 # IRIX 6.2 and later do not support large files by default,
5618 # so use the C compiler's -n32 option if that helps.
5619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5622 /* Check that off_t can represent 2**63 - 1 correctly.
5623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624 since some C++ compilers masquerading as C compilers
5625 incorrectly reject 9223372036854775807. */
5626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628 && LARGE_OFF_T % 2147483647 == 1)
5638 if ac_fn_c_try_compile
"$LINENO"; then :
5641 rm -f core conftest.err conftest.
$ac_objext
5643 if ac_fn_c_try_compile
"$LINENO"; then :
5644 ac_cv_sys_largefile_CC
=' -n32'; break
5646 rm -f core conftest.err conftest.
$ac_objext
5650 rm -f conftest.
$ac_ext
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5654 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5655 if test "$ac_cv_sys_largefile_CC" != no
; then
5656 CC
=$CC$ac_cv_sys_largefile_CC
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5660 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5661 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <sys/types.h>
5668 /* Check that off_t can represent 2**63 - 1 correctly.
5669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5670 since some C++ compilers masquerading as C compilers
5671 incorrectly reject 9223372036854775807. */
5672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5674 && LARGE_OFF_T % 2147483647 == 1)
5684 if ac_fn_c_try_compile
"$LINENO"; then :
5685 ac_cv_sys_file_offset_bits
=no
; break
5687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #define _FILE_OFFSET_BITS 64
5691 #include <sys/types.h>
5692 /* Check that off_t can represent 2**63 - 1 correctly.
5693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5694 since some C++ compilers masquerading as C compilers
5695 incorrectly reject 9223372036854775807. */
5696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5698 && LARGE_OFF_T % 2147483647 == 1)
5708 if ac_fn_c_try_compile
"$LINENO"; then :
5709 ac_cv_sys_file_offset_bits
=64; break
5711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5712 ac_cv_sys_file_offset_bits
=unknown
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5717 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5718 case $ac_cv_sys_file_offset_bits in #(
5721 cat >>confdefs.h
<<_ACEOF
5722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5727 if test $ac_cv_sys_file_offset_bits = unknown
; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5729 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5730 if test "${ac_cv_sys_large_files+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 #include <sys/types.h>
5737 /* Check that off_t can represent 2**63 - 1 correctly.
5738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5739 since some C++ compilers masquerading as C compilers
5740 incorrectly reject 9223372036854775807. */
5741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5743 && LARGE_OFF_T % 2147483647 == 1)
5753 if ac_fn_c_try_compile
"$LINENO"; then :
5754 ac_cv_sys_large_files
=no
; break
5756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #define _LARGE_FILES 1
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5777 if ac_fn_c_try_compile
"$LINENO"; then :
5778 ac_cv_sys_large_files
=1; break
5780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5781 ac_cv_sys_large_files
=unknown
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5786 $as_echo "$ac_cv_sys_large_files" >&6; }
5787 case $ac_cv_sys_large_files in #(
5790 cat >>confdefs.h
<<_ACEOF
5791 #define _LARGE_FILES $ac_cv_sys_large_files
5800 # sizeof(char) is 1 by definition.
5801 # The cast to long int works around a bug in the HP C Compiler
5802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5804 # This bug is HP SR number 8606223364.
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5806 $as_echo_n "checking size of void *... " >&6; }
5807 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5810 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5813 if test "$ac_cv_type_void_p" = yes; then
5814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5816 { as_fn_set_status
77
5817 as_fn_error
"cannot compute sizeof (void *)
5818 See \`config.log' for more details." "$LINENO" 5; }; }
5820 ac_cv_sizeof_void_p
=0
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5826 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5830 cat >>confdefs.h
<<_ACEOF
5831 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5835 # The cast to long int works around a bug in the HP C Compiler
5836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5838 # This bug is HP SR number 8606223364.
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5840 $as_echo_n "checking size of short... " >&6; }
5841 if test "${ac_cv_sizeof_short+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5844 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5847 if test "$ac_cv_type_short" = yes; then
5848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5850 { as_fn_set_status
77
5851 as_fn_error
"cannot compute sizeof (short)
5852 See \`config.log' for more details." "$LINENO" 5; }; }
5854 ac_cv_sizeof_short
=0
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5860 $as_echo "$ac_cv_sizeof_short" >&6; }
5864 cat >>confdefs.h
<<_ACEOF
5865 #define SIZEOF_SHORT $ac_cv_sizeof_short
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5874 $as_echo_n "checking size of int... " >&6; }
5875 if test "${ac_cv_sizeof_int+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5878 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5881 if test "$ac_cv_type_int" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 { as_fn_set_status
77
5885 as_fn_error
"cannot compute sizeof (int)
5886 See \`config.log' for more details." "$LINENO" 5; }; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5894 $as_echo "$ac_cv_sizeof_int" >&6; }
5898 cat >>confdefs.h
<<_ACEOF
5899 #define SIZEOF_INT $ac_cv_sizeof_int
5903 # The cast to long int works around a bug in the HP C Compiler
5904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5906 # This bug is HP SR number 8606223364.
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5908 $as_echo_n "checking size of long... " >&6; }
5909 if test "${ac_cv_sizeof_long+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5912 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5915 if test "$ac_cv_type_long" = yes; then
5916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5918 { as_fn_set_status
77
5919 as_fn_error
"cannot compute sizeof (long)
5920 See \`config.log' for more details." "$LINENO" 5; }; }
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5928 $as_echo "$ac_cv_sizeof_long" >&6; }
5932 cat >>confdefs.h
<<_ACEOF
5933 #define SIZEOF_LONG $ac_cv_sizeof_long
5937 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5938 if test "x$ac_cv_type_long_long" = x
""yes; then :
5940 cat >>confdefs.h
<<_ACEOF
5941 #define HAVE_LONG_LONG 1
5944 # The cast to long int works around a bug in the HP C Compiler
5945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5947 # This bug is HP SR number 8606223364.
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5949 $as_echo_n "checking size of long long... " >&6; }
5950 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5953 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5956 if test "$ac_cv_type_long_long" = yes; then
5957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5959 { as_fn_set_status
77
5960 as_fn_error
"cannot compute sizeof (long long)
5961 See \`config.log' for more details." "$LINENO" 5; }; }
5963 ac_cv_sizeof_long_long
=0
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5969 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5973 cat >>confdefs.h
<<_ACEOF
5974 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5980 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5981 if test "x$ac_cv_type___int64" = x
""yes; then :
5983 cat >>confdefs.h
<<_ACEOF
5984 #define HAVE___INT64 1
5987 # The cast to long int works around a bug in the HP C Compiler
5988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5990 # This bug is HP SR number 8606223364.
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5992 $as_echo_n "checking size of __int64... " >&6; }
5993 if test "${ac_cv_sizeof___int64+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5996 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5999 if test "$ac_cv_type___int64" = yes; then
6000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6002 { as_fn_set_status
77
6003 as_fn_error
"cannot compute sizeof (__int64)
6004 See \`config.log' for more details." "$LINENO" 5; }; }
6006 ac_cv_sizeof___int64
=0
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6012 $as_echo "$ac_cv_sizeof___int64" >&6; }
6016 cat >>confdefs.h
<<_ACEOF
6017 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6023 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6024 case $ac_cv_c_int8_t in #(
6028 cat >>confdefs.h
<<_ACEOF
6029 #define int8_t $ac_cv_c_int8_t
6034 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6035 case $ac_cv_c_int16_t in #(
6039 cat >>confdefs.h
<<_ACEOF
6040 #define int16_t $ac_cv_c_int16_t
6045 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6046 case $ac_cv_c_int32_t in #(
6050 cat >>confdefs.h
<<_ACEOF
6051 #define int32_t $ac_cv_c_int32_t
6056 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6057 case $ac_cv_c_int64_t in #(
6061 cat >>confdefs.h
<<_ACEOF
6062 #define int64_t $ac_cv_c_int64_t
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6069 $as_echo_n "checking for long long int... " >&6; }
6070 if test "${ac_cv_type_long_long_int+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6076 /* For now, do not test the preprocessor; as of 2007 there are too many
6077 implementations with broken preprocessors. Perhaps this can
6078 be revisited in 2012. In the meantime, code should not expect
6079 #if to work with literals wider than 32 bits. */
6080 /* Test literals. */
6081 long long int ll = 9223372036854775807ll;
6082 long long int nll = -9223372036854775807LL;
6083 unsigned long long int ull = 18446744073709551615ULL;
6084 /* Test constant expressions. */
6085 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6087 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6093 /* Test availability of runtime routines for shift and division. */
6094 long long int llmax = 9223372036854775807ll;
6095 unsigned long long int ullmax = 18446744073709551615ull;
6096 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6097 | (llmax / ll) | (llmax % ll)
6098 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6099 | (ullmax / ull) | (ullmax % ull));
6105 if ac_fn_c_try_link
"$LINENO"; then :
6106 if test "$cross_compiling" = yes; then :
6107 ac_cv_type_long_long_int
=yes
6109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6114 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6115 # define LLONG_MAX (HALF - 1 + HALF)
6120 long long int n = 1;
6124 long long int m = n << i;
6127 if (LLONG_MAX / 2 < m)
6135 if ac_fn_c_try_run
"$LINENO"; then :
6136 ac_cv_type_long_long_int
=yes
6138 ac_cv_type_long_long_int
=no
6140 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6141 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6145 ac_cv_type_long_long_int
=no
6147 rm -f core conftest.err conftest.
$ac_objext \
6148 conftest
$ac_exeext conftest.
$ac_ext
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6151 $as_echo "$ac_cv_type_long_long_int" >&6; }
6152 if test $ac_cv_type_long_long_int = yes; then
6154 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6160 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6161 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6163 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6166 test $ac_cv_type_long_long_int = yes \
6167 && ac_type
='long long int' \
6168 || ac_type
='long int'
6170 cat >>confdefs.h
<<_ACEOF
6171 #define intmax_t $ac_type
6178 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6179 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6181 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6184 for ac_type
in 'int' 'long int' 'long long int'; do
6185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 $ac_includes_default
6191 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6198 if ac_fn_c_try_compile
"$LINENO"; then :
6200 cat >>confdefs.h
<<_ACEOF
6201 #define intptr_t $ac_type
6206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6207 test -z "$ac_type" && break
6212 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6213 case $ac_cv_c_uint8_t in #(
6217 $as_echo "#define _UINT8_T 1" >>confdefs.h
6220 cat >>confdefs.h
<<_ACEOF
6221 #define uint8_t $ac_cv_c_uint8_t
6226 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6227 case $ac_cv_c_uint16_t in #(
6232 cat >>confdefs.h
<<_ACEOF
6233 #define uint16_t $ac_cv_c_uint16_t
6238 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6239 case $ac_cv_c_uint32_t in #(
6243 $as_echo "#define _UINT32_T 1" >>confdefs.h
6246 cat >>confdefs.h
<<_ACEOF
6247 #define uint32_t $ac_cv_c_uint32_t
6252 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6253 case $ac_cv_c_uint64_t in #(
6257 $as_echo "#define _UINT64_T 1" >>confdefs.h
6260 cat >>confdefs.h
<<_ACEOF
6261 #define uint64_t $ac_cv_c_uint64_t
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6268 $as_echo_n "checking for unsigned long long int... " >&6; }
6269 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6275 /* For now, do not test the preprocessor; as of 2007 there are too many
6276 implementations with broken preprocessors. Perhaps this can
6277 be revisited in 2012. In the meantime, code should not expect
6278 #if to work with literals wider than 32 bits. */
6279 /* Test literals. */
6280 long long int ll = 9223372036854775807ll;
6281 long long int nll = -9223372036854775807LL;
6282 unsigned long long int ull = 18446744073709551615ULL;
6283 /* Test constant expressions. */
6284 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6286 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6292 /* Test availability of runtime routines for shift and division. */
6293 long long int llmax = 9223372036854775807ll;
6294 unsigned long long int ullmax = 18446744073709551615ull;
6295 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6296 | (llmax / ll) | (llmax % ll)
6297 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6298 | (ullmax / ull) | (ullmax % ull));
6304 if ac_fn_c_try_link
"$LINENO"; then :
6305 ac_cv_type_unsigned_long_long_int
=yes
6307 ac_cv_type_unsigned_long_long_int
=no
6309 rm -f core conftest.err conftest.
$ac_objext \
6310 conftest
$ac_exeext conftest.
$ac_ext
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6313 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6314 if test $ac_cv_type_unsigned_long_long_int = yes; then
6316 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6322 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6323 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6325 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6328 test $ac_cv_type_unsigned_long_long_int = yes \
6329 && ac_type
='unsigned long long int' \
6330 || ac_type
='unsigned long int'
6332 cat >>confdefs.h
<<_ACEOF
6333 #define uintmax_t $ac_type
6340 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6341 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6343 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6346 for ac_type
in 'unsigned int' 'unsigned long int' \
6347 'unsigned long long int'; do
6348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 $ac_includes_default
6354 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6361 if ac_fn_c_try_compile
"$LINENO"; then :
6363 cat >>confdefs.h
<<_ACEOF
6364 #define uintptr_t $ac_type
6369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6370 test -z "$ac_type" && break
6388 # ---------------------
6389 # Warnings and checking
6390 # ---------------------
6392 # Check $CC warning features (if it's GCC).
6393 # We want to use -pedantic, but we don't want warnings about
6396 # * overlong strings
6397 # So, we only use -pedantic if we can disable those warnings.
6400 save_CFLAGS
="$CFLAGS"
6401 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6402 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6405 $as_echo_n "checking whether $CC supports $option... " >&6; }
6406 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6407 $as_echo_n "(cached) " >&6
6410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6421 if ac_fn_c_try_compile
"$LINENO"; then :
6422 eval "$as_acx_Woption=yes"
6424 eval "$as_acx_Woption=no"
6426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6429 eval ac_res
=\$
$as_acx_Woption
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6431 $as_echo "$ac_res" >&6; }
6432 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6433 loose_warn
="$loose_warn${loose_warn:+ }$option"
6436 CFLAGS
="$save_CFLAGS"
6439 save_CFLAGS
="$CFLAGS"
6440 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6441 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6444 $as_echo_n "checking whether $CC supports $option... " >&6; }
6445 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6446 $as_echo_n "(cached) " >&6
6449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6460 if ac_fn_c_try_compile
"$LINENO"; then :
6461 eval "$as_acx_Woption=yes"
6463 eval "$as_acx_Woption=no"
6465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6468 eval ac_res
=\$
$as_acx_Woption
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6470 $as_echo "$ac_res" >&6; }
6471 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6472 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6475 CFLAGS
="$save_CFLAGS"
6478 save_CFLAGS
="$CFLAGS"
6479 for option
in -Wmissing-format-attribute; do
6480 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6483 $as_echo_n "checking whether $CC supports $option... " >&6; }
6484 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6485 $as_echo_n "(cached) " >&6
6488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6499 if ac_fn_c_try_compile
"$LINENO"; then :
6500 eval "$as_acx_Woption=yes"
6502 eval "$as_acx_Woption=no"
6504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6507 eval ac_res
=\$
$as_acx_Woption
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6509 $as_echo "$ac_res" >&6; }
6510 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6511 strict_warn
="$strict_warn${strict_warn:+ }$option"
6514 CFLAGS
="$save_CFLAGS"
6517 save_CFLAGS
="$CFLAGS"
6518 for option
in -Wold-style-definition -Wc++-compat; do
6519 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6522 $as_echo_n "checking whether $CC supports $option... " >&6; }
6523 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6524 $as_echo_n "(cached) " >&6
6527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6538 if ac_fn_c_try_compile
"$LINENO"; then :
6539 eval "$as_acx_Woption=yes"
6541 eval "$as_acx_Woption=no"
6543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6546 eval ac_res
=\$
$as_acx_Woption
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6548 $as_echo "$ac_res" >&6; }
6549 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6550 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6553 CFLAGS
="$save_CFLAGS"
6555 if test "$GCC" = yes; then :
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6557 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6558 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6561 save_CFLAGS
="$CFLAGS"
6562 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6574 if ac_fn_c_try_compile
"$LINENO"; then :
6575 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6577 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6580 CFLAGS
="$save_CFLAGS"
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6583 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6584 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6585 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6590 # Check whether --enable-werror-always was given.
6591 if test "${enable_werror_always+set}" = set; then :
6592 enableval
=$enable_werror_always;
6594 enable_werror_always
=no
6597 if test $enable_werror_always = yes; then :
6598 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6603 # The above macros do nothing if the compiler is not GCC. However, the
6604 # Makefile has more goo to add other flags, so these variables are used
6605 # to enable warnings only for GCC.
6608 if test "x$GCC" = "xyes"; then
6609 warn_cflags
='$(GCC_WARN_CFLAGS)'
6610 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6615 # Enable expensive internal checks
6617 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6621 # Check whether --enable-checking was given.
6622 if test "${enable_checking+set}" = set; then :
6623 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6626 # Determine the default checks.
6627 if test x
$is_release = x
; then
6628 ac_checking_flags
=yes
6630 ac_checking_flags
=release
6634 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6635 for check
in release
$ac_checking_flags
6638 # these set all the flags to specific states
6639 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6640 ac_fold_checking
= ; ac_gc_checking
=1 ;
6641 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6642 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6643 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6644 ac_types_checking
=1 ;;
6645 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6646 ac_fold_checking
= ; ac_gc_checking
= ;
6647 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6648 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6649 ac_tree_checking
= ; ac_valgrind_checking
= ;
6650 ac_types_checking
= ;;
6651 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6652 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6653 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6654 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6655 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6656 ac_types_checking
=1 ;;
6657 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6658 ac_fold_checking
= ; ac_gc_checking
= ;
6659 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6660 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6661 ac_tree_checking
= ; ac_valgrind_checking
= ;
6662 ac_types_checking
= ;;
6663 # these enable particular checks
6664 assert
) ac_assert_checking
=1 ;;
6665 df
) ac_df_checking
=1 ;;
6666 fold) ac_fold_checking
=1 ;;
6667 gc
) ac_gc_checking
=1 ;;
6668 gcac
) ac_gc_always_collect
=1 ;;
6669 gimple
) ac_gimple_checking
=1 ;;
6670 misc
) ac_checking
=1 ;;
6671 rtl
) ac_rtl_checking
=1 ;;
6672 rtlflag
) ac_rtlflag_checking
=1 ;;
6673 runtime
) ac_runtime_checking
=1 ;;
6674 tree
) ac_tree_checking
=1 ;;
6675 types
) ac_types_checking
=1 ;;
6676 valgrind
) ac_valgrind_checking
=1 ;;
6677 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6683 if test x
$ac_checking != x
; then
6685 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6687 nocommon_flag
=-fno-common
6690 if test x
$ac_df_checking != x
; then
6692 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6695 if test x
$ac_assert_checking != x
; then
6697 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6700 if test x
$ac_gimple_checking != x
; then
6702 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6706 if test x
$ac_runtime_checking != x
; then
6708 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6711 if test x
$ac_tree_checking != x
; then
6713 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6715 TREEBROWSER
=tree-browser.o
6717 if test x
$ac_types_checking != x
; then
6719 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6723 if test x
$ac_rtl_checking != x
; then
6725 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6728 if test x
$ac_rtlflag_checking != x
; then
6730 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6733 if test x
$ac_gc_checking != x
; then
6735 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6738 if test x
$ac_gc_always_collect != x
; then
6740 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6743 if test x
$ac_fold_checking != x
; then
6745 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6748 valgrind_path_defines
=
6751 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6752 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6760 if test x
$ac_valgrind_checking != x
; then
6761 # It is certainly possible that there's valgrind but no valgrind.h.
6762 # GCC relies on making annotations so we must have both.
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6764 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 #include <valgrind/memcheck.h>
6768 #ifndef VALGRIND_DISCARD
6769 #error VALGRIND_DISCARD not defined
6772 if ac_fn_c_try_cpp
"$LINENO"; then :
6773 gcc_cv_header_valgrind_memcheck_h
=yes
6775 gcc_cv_header_valgrind_memcheck_h
=no
6777 rm -f conftest.err conftest.
$ac_ext
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6779 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6781 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 #include <memcheck.h>
6785 #ifndef VALGRIND_DISCARD
6786 #error VALGRIND_DISCARD not defined
6789 if ac_fn_c_try_cpp
"$LINENO"; then :
6790 gcc_cv_header_memcheck_h
=yes
6792 gcc_cv_header_memcheck_h
=no
6794 rm -f conftest.err conftest.
$ac_ext
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6796 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6798 # Prepare PATH_SEPARATOR.
6799 # The user is always right.
6800 if test "${PATH_SEPARATOR+set}" != set; then
6801 echo "#! /bin/sh" >conf$$.sh
6802 echo "exit 0" >>conf$$.sh
6804 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6812 # Find out how to test for executable files. Don't use a zero-byte file,
6813 # as systems may use methods other than mode bits to determine executability.
6814 cat >conf$$.
file <<_ASEOF
6818 chmod +x conf$$.
file
6819 if test -x conf$$.
file >/dev
/null
2>&1; then
6820 ac_executable_p
="test -x"
6822 ac_executable_p
="test -f"
6826 # Extract the first word of "valgrind", so it can be a program name with args.
6827 set dummy valgrind
; ac_word
=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6831 $as_echo_n "(cached) " >&6
6833 case "$valgrind_path" in
6835 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6838 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6839 for ac_dir
in $PATH; do
6841 test -z "$ac_dir" && ac_dir
=.
6842 for ac_exec_ext
in '' $ac_executable_extensions; do
6843 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6844 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6845 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6855 valgrind_path
="$ac_cv_path_valgrind_path"
6856 if test -n "$valgrind_path"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6858 $as_echo "$valgrind_path" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6864 if test "x$valgrind_path" = "x" \
6865 ||
(test $have_valgrind_h = no \
6866 && test $gcc_cv_header_memcheck_h = no \
6867 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6868 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6870 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6871 valgrind_command
="$valgrind_path -q"
6873 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6875 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6877 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6880 if test $gcc_cv_header_memcheck_h = yes; then
6882 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6889 # Enable code coverage collection
6890 # Check whether --enable-coverage was given.
6891 if test "${enable_coverage+set}" = set; then :
6892 enableval
=$enable_coverage; case "${enableval}" in
6894 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6897 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6900 # a.k.a. --disable-coverage
6904 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6913 # Check whether --enable-gather-detailed-mem-stats was given.
6914 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6915 enableval
=$enable_gather_detailed_mem_stats;
6917 enable_gather_detailed_mem_stats
=no
6920 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6922 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6926 # -------------------------------
6927 # Miscenalleous configure options
6928 # -------------------------------
6930 # See if we are building gcc with C++.
6931 # Check whether --enable-build-with-cxx was given.
6932 if test "${enable_build_with_cxx+set}" = set; then :
6933 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6935 ENABLE_BUILD_WITH_CXX
=no
6939 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6941 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6947 # Check whether --with-stabs was given.
6948 if test "${with_stabs+set}" = set; then :
6949 withval
=$with_stabs; stabs
="$with_stabs"
6955 # Determine whether or not multilibs are enabled.
6956 # Check whether --enable-multilib was given.
6957 if test "${enable_multilib+set}" = set; then :
6958 enableval
=$enable_multilib;
6965 # Enable __cxa_atexit for C++.
6966 # Check whether --enable-__cxa_atexit was given.
6967 if test "${enable___cxa_atexit+set}" = set; then :
6968 enableval
=$enable___cxa_atexit;
6972 # Enable C extension for decimal float if target supports it.
6974 # Check whether --enable-decimal-float was given.
6975 if test "${enable_decimal_float+set}" = set; then :
6976 enableval
=$enable_decimal_float;
6977 case $enable_decimal_float in
6978 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6979 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6980 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6986 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6987 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6989 enable_decimal_float
=yes
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6993 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6994 enable_decimal_float
=no
7001 # x86's use BID format instead of DPD
7002 case x
$enable_decimal_float in
7005 i?
86*-*-* | x86_64
*-*-*)
7006 enable_decimal_float
=bid
7009 enable_decimal_float
=dpd
7012 default_decimal_float
=$enable_decimal_float
7015 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7016 # dependency on libdecnumber.
7017 default_decimal_float
=dpd
7024 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7026 cat >>confdefs.h
<<_ACEOF
7027 #define ENABLE_DECIMAL_FLOAT $dfp
7031 # Use default_decimal_float for dependency.
7032 enable_decimal_float
=$default_decimal_float
7034 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7036 cat >>confdefs.h
<<_ACEOF
7037 #define ENABLE_DECIMAL_BID_FORMAT $bid
7041 # Enable C extension for fixed-point arithmetic.
7042 # Check whether --enable-fixed-point was given.
7043 if test "${enable_fixed_point+set}" = set; then :
7044 enableval
=$enable_fixed_point;
7049 enable_fixed_point
=yes
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7056 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7057 enable_fixed_point
=no
7060 enable_fixed_point
=yes
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7066 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7067 enable_fixed_point
=no
7075 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7077 cat >>confdefs.h
<<_ACEOF
7078 #define ENABLE_FIXED_POINT $fixedpoint
7083 # Pass with no value to take the default
7084 # Pass with a value to specify a thread package
7085 # Check whether --enable-threads was given.
7086 if test "${enable_threads+set}" = set; then :
7087 enableval
=$enable_threads;
7093 # Check whether --enable-tls was given.
7094 if test "${enable_tls+set}" = set; then :
7095 enableval
=$enable_tls;
7098 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7099 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7107 # Check whether --enable-objc-gc was given.
7108 if test "${enable_objc_gc+set}" = set; then :
7109 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7120 # Check whether --with-dwarf2 was given.
7121 if test "${with_dwarf2+set}" = set; then :
7122 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7128 # Check whether --enable-shared was given.
7129 if test "${enable_shared+set}" = set; then :
7130 enableval
=$enable_shared;
7131 case $enable_shared in
7135 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7136 for pkg
in $enableval; do
7137 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7152 # Check whether --with-native-system-header-dir was given.
7153 if test "${with_native_system_header_dir+set}" = set; then :
7154 withval
=$with_native_system_header_dir;
7155 case ${with_native_system_header_dir} in
7156 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7157 /* |
[A-Za-z
]:[\\/]*) ;;
7158 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7160 configured_native_system_header_dir
="${withval}"
7163 configured_native_system_header_dir
=
7168 # Check whether --with-build-sysroot was given.
7169 if test "${with_build_sysroot+set}" = set; then :
7170 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7171 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7174 SYSROOT_CFLAGS_FOR_TARGET
=
7180 # Check whether --with-sysroot was given.
7181 if test "${with_sysroot+set}" = set; then :
7182 withval
=$with_sysroot;
7183 case ${with_sysroot} in
7184 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7185 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7188 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7189 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7191 if test "x$prefix" = xNONE
; then
7192 test_prefix
=/usr
/local
7196 if test "x$exec_prefix" = xNONE
; then
7197 test_exec_prefix
=$test_prefix
7199 test_exec_prefix
=$exec_prefix
7201 case ${TARGET_SYSTEM_ROOT} in
7202 "${test_prefix}"|
"${test_prefix}/"*|\
7203 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7204 '${prefix}'|
'${prefix}/'*|\
7205 '${exec_prefix}'|
'${exec_prefix}/'*)
7206 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7207 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7214 TARGET_SYSTEM_ROOT_DEFINE
=
7215 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7224 # Check whether --with-specs was given.
7225 if test "${with_specs+set}" = set; then :
7226 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7236 # Check whether --with-pkgversion was given.
7237 if test "${with_pkgversion+set}" = set; then :
7238 withval
=$with_pkgversion; case "$withval" in
7239 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7241 *) PKGVERSION
="($withval) " ;;
7252 # Check whether --with-bugurl was given.
7253 if test "${with_bugurl+set}" = set; then :
7254 withval
=$with_bugurl; case "$withval" in
7255 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7258 *) BUGURL
="$withval"
7262 BUGURL
="http://gcc.gnu.org/bugs.html"
7272 REPORT_BUGS_TO
="<$BUGURL>"
7273 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7280 # Sanity check enable_languages in case someone does not run the toplevel
7281 # configure # script.
7282 # Check whether --enable-languages was given.
7283 if test "${enable_languages+set}" = set; then :
7284 enableval
=$enable_languages; case ,${enable_languages}, in
7286 # go safe -- we cannot be much sure without the toplevel
7288 # analysis of which target libs are present and usable
7292 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7297 enable_languages
=c
,${enable_languages}
7306 # Check whether --with-multilib-list was given.
7307 if test "${with_multilib_list+set}" = set; then :
7308 withval
=$with_multilib_list; :
7310 with_multilib_list
=default
7314 # -------------------------
7315 # Checks for other programs
7316 # -------------------------
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7319 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7321 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7322 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7323 $as_echo_n "(cached) " >&6
7325 cat >conftest.
make <<\_ACEOF
7328 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7330 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7331 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7333 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7335 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7339 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 SET_MAKE
="MAKE=${MAKE-make}"
7350 # Find some useful tools
7351 for ac_prog
in gawk mawk nawk
awk
7353 # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy
$ac_prog; ac_word
=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if test "${ac_cv_prog_AWK+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7360 if test -n "$AWK"; then
7361 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir
=.
7368 for ac_exec_ext
in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_prog_AWK
="$ac_prog"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 if test -n "$AWK"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7383 $as_echo "$AWK" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7390 test -n "$AWK" && break
7393 # We need awk to create options.c and options.h.
7394 # Bail out if it's missing.
7396 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7400 $as_echo_n "checking whether ln -s works... " >&6; }
7401 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7404 rm -f conftestdata_t
7405 echo >conftestdata_f
7406 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7408 gcc_cv_prog_LN_S
="ln -s"
7410 if ln conftestdata_f conftestdata_t
2>/dev
/null
7414 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7416 gcc_cv_prog_LN_S
="cp -p"
7422 rm -f conftestdata_f conftestdata_t
7425 LN_S
="$gcc_cv_prog_LN_S"
7426 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7428 $as_echo "yes" >&6; }
7430 if test "$gcc_cv_prog_LN_S" = "ln"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7432 $as_echo "no, using ln" >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7435 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7440 $as_echo_n "checking whether ln works... " >&6; }
7441 if test "${acx_cv_prog_LN+set}" = set; then :
7442 $as_echo_n "(cached) " >&6
7444 rm -f conftestdata_t
7445 echo >conftestdata_f
7446 if ln conftestdata_f conftestdata_t
2>/dev
/null
7452 rm -f conftestdata_f conftestdata_t
7455 if test $acx_cv_prog_LN = no
; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7458 $as_echo "no, using $LN" >&6; }
7460 LN
="$acx_cv_prog_LN"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7462 $as_echo "yes" >&6; }
7465 if test -n "$ac_tool_prefix"; then
7466 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7467 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7473 if test -n "$RANLIB"; then
7474 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7480 test -z "$as_dir" && as_dir
=.
7481 for ac_exec_ext
in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 RANLIB
=$ac_cv_prog_RANLIB
7494 if test -n "$RANLIB"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7496 $as_echo "$RANLIB" >&6; }
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7504 if test -z "$ac_cv_prog_RANLIB"; then
7505 ac_ct_RANLIB
=$RANLIB
7506 # Extract the first word of "ranlib", so it can be a program name with args.
7507 set dummy ranlib
; ac_word
=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7513 if test -n "$ac_ct_RANLIB"; then
7514 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir
=.
7521 for ac_exec_ext
in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7534 if test -n "$ac_ct_RANLIB"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7536 $as_echo "$ac_ct_RANLIB" >&6; }
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7542 if test "x$ac_ct_RANLIB" = x
; then
7545 case $cross_compiling:$ac_tool_warned in
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7549 ac_tool_warned
=yes ;;
7551 RANLIB
=$ac_ct_RANLIB
7554 RANLIB
="$ac_cv_prog_RANLIB"
7559 # By default, the Darwin ranlib will not treat common symbols as
7560 # definitions when building the archive table of contents. Other
7561 # ranlibs do that; pass an option to the Darwin ranlib that makes
7562 # it behave similarly.
7570 # Find a good install program. We prefer a C program (faster),
7571 # so one script is as good as another. But avoid the broken or
7572 # incompatible versions:
7573 # SysV /etc/install, /usr/sbin/install
7574 # SunOS /usr/etc/install
7575 # IRIX /sbin/install
7577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7579 # ./install, which can be erroneously created by make from ./install.sh.
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7581 $as_echo_n "checking for a BSD compatible install... " >&6; }
7582 if test -z "$INSTALL"; then
7583 if test "${ac_cv_path_install+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7586 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7587 for ac_dir
in $PATH; do
7588 # Account for people who put trailing slashes in PATH elements.
7590 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7592 # OSF1 and SCO ODT 3.0 have their own names for install.
7593 for ac_prog
in ginstall scoinst
install; do
7594 if test -f $ac_dir/$ac_prog; then
7595 if test $ac_prog = install &&
7596 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7597 # AIX install. It has an incompatible calling convention.
7598 # OSF/1 installbsd also uses dspmsg, but is usable.
7601 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7612 if test "${ac_cv_path_install+set}" = set; then
7613 INSTALL
="$ac_cv_path_install"
7615 # As a last resort, use the slow shell script. We don't cache a
7616 # path for INSTALL within a source directory, because that will
7617 # break other packages using the cache if that directory is
7618 # removed, or if the path is relative.
7619 INSTALL
="$ac_install_sh"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7623 $as_echo "$INSTALL" >&6; }
7625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7626 # It thinks the first close brace ends the variable substitution.
7627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7629 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7632 # See if cmp has --ignore-initial.
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7634 $as_echo_n "checking for cmp's capabilities... " >&6; }
7635 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7636 $as_echo_n "(cached) " >&6
7640 gcc_cv_prog_cmp_skip
=slowcompare
7641 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7642 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7645 gcc_cv_prog_cmp_skip
=gnucompare
7648 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7649 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7650 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7653 gcc_cv_prog_cmp_skip
=fastcompare
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7661 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7662 make_compare_target
=$gcc_cv_prog_cmp_skip
7666 # See if we have the mktemp command.
7667 # Extract the first word of "mktemp", so it can be a program name with args.
7668 set dummy mktemp
; ac_word
=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7674 if test -n "$have_mktemp_command"; then
7675 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir
=.
7682 for ac_exec_ext
in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_prog_have_mktemp_command
="yes"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7695 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7696 if test -n "$have_mktemp_command"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7698 $as_echo "$have_mktemp_command" >&6; }
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7706 # See if makeinfo has been installed and is modern enough
7707 # that we can use it.
7709 # Extract the first word of "makeinfo", so it can be a program name with args.
7710 set dummy makeinfo
; ac_word
=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7716 if test -n "$MAKEINFO"; then
7717 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir
=.
7724 for ac_exec_ext
in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_prog_MAKEINFO
="makeinfo"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 MAKEINFO
=$ac_cv_prog_MAKEINFO
7737 if test -n "$MAKEINFO"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7739 $as_echo "$MAKEINFO" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7746 if test -n "$MAKEINFO"; then
7747 # Found it, now check the version.
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7749 $as_echo_n "checking for modern makeinfo... " >&6; }
7750 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7753 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7754 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7756 case $ac_prog_version in
7757 '') gcc_cv_prog_makeinfo_modern
=no
;;
7758 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7759 *) gcc_cv_prog_makeinfo_modern
=no
;;
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7764 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7766 gcc_cv_prog_makeinfo_modern
=no
7768 if test $gcc_cv_prog_makeinfo_modern = no
; then
7769 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7772 if test $gcc_cv_prog_makeinfo_modern = no
; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7774 *** Makeinfo is missing or too old.
7775 *** Info documentation will not be built." >&5
7776 $as_echo "$as_me: WARNING:
7777 *** Makeinfo is missing or too old.
7778 *** Info documentation will not be built." >&2;}
7785 # Is pod2man recent enough to regenerate manpages?
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7787 $as_echo_n "checking for recent Pod::Man... " >&6; }
7788 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7790 $as_echo "yes" >&6; }
7791 GENERATED_MANPAGES
=generated-manpages
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7799 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy
$ac_prog; ac_word
=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_prog_FLEX+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7811 if test -n "$FLEX"; then
7812 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir
=.
7819 for ac_exec_ext
in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_FLEX
="$ac_prog"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 FLEX
=$ac_cv_prog_FLEX
7832 if test -n "$FLEX"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7834 $as_echo "$FLEX" >&6; }
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7841 test -n "$FLEX" && break
7843 test -n "$FLEX" || FLEX
="$MISSING flex"
7847 for ac_prog
in bison
7849 # Extract the first word of "$ac_prog", so it can be a program name with args.
7850 set dummy
$ac_prog; ac_word
=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if test "${ac_cv_prog_BISON+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7856 if test -n "$BISON"; then
7857 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7863 test -z "$as_dir" && as_dir
=.
7864 for ac_exec_ext
in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_prog_BISON
="$ac_prog"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 BISON
=$ac_cv_prog_BISON
7877 if test -n "$BISON"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7879 $as_echo "$BISON" >&6; }
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7886 test -n "$BISON" && break
7888 test -n "$BISON" || BISON
="$MISSING bison"
7891 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7892 # check for build == host before using them.
7895 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7896 && test -d ..
/binutils
; then
7897 NM
='${objdir}/../binutils/nm-new'
7899 # Extract the first word of "nm", so it can be a program name with args.
7900 set dummy nm
; ac_word
=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if test "${ac_cv_prog_NM+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7906 if test -n "$NM"; then
7907 ac_cv_prog_NM
="$NM" # Let the user override the test.
7909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7913 test -z "$as_dir" && as_dir
=.
7914 for ac_exec_ext
in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7928 if test -n "$NM"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7930 $as_echo "$NM" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7940 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7941 && test -d ..
/binutils
; then
7942 AR
='${objdir}/../binutils/ar'
7944 # Extract the first word of "ar", so it can be a program name with args.
7945 set dummy
ar; ac_word
=$2
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if test "${ac_cv_prog_AR+set}" = set; then :
7949 $as_echo_n "(cached) " >&6
7951 if test -n "$AR"; then
7952 ac_cv_prog_AR
="$AR" # Let the user override the test.
7954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7958 test -z "$as_dir" && as_dir
=.
7959 for ac_exec_ext
in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7973 if test -n "$AR"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7975 $as_echo "$AR" >&6; }
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7985 # --------------------
7986 # Checks for C headers
7987 # --------------------
7989 # Need to reject headers which give warnings, so that the -Werror bootstrap
7990 # works later. *sigh* This needs to come before all header checks.
7992 ac_c_preproc_warn_flag
=yes
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7995 $as_echo_n "checking for ANSI C header files... " >&6; }
7996 if test "${ac_cv_header_stdc+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
7999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8014 if ac_fn_c_try_compile
"$LINENO"; then :
8015 ac_cv_header_stdc
=yes
8017 ac_cv_header_stdc
=no
8019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8021 if test $ac_cv_header_stdc = yes; then
8022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8029 $EGREP "memchr" >/dev
/null
2>&1; then :
8032 ac_cv_header_stdc
=no
8038 if test $ac_cv_header_stdc = yes; then
8039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8046 $EGREP "free" >/dev
/null
2>&1; then :
8049 ac_cv_header_stdc
=no
8055 if test $ac_cv_header_stdc = yes; then
8056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8057 if test "$cross_compiling" = yes; then :
8060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8064 #if ((' ' & 0x0FF) == 0x020)
8065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8068 # define ISLOWER(c) \
8069 (('a' <= (c) && (c) <= 'i') \
8070 || ('j' <= (c) && (c) <= 'r') \
8071 || ('s' <= (c) && (c) <= 'z'))
8072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8080 for (i = 0; i < 256; i++)
8081 if (XOR (islower (i), ISLOWER (i))
8082 || toupper (i) != TOUPPER (i))
8087 if ac_fn_c_try_run
"$LINENO"; then :
8090 ac_cv_header_stdc
=no
8092 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8093 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8099 $as_echo "$ac_cv_header_stdc" >&6; }
8100 if test $ac_cv_header_stdc = yes; then
8102 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8107 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8108 if test "${ac_cv_header_time+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 #include <sys/types.h>
8114 #include <sys/time.h>
8120 if ((struct tm *) 0)
8126 if ac_fn_c_try_compile
"$LINENO"; then :
8127 ac_cv_header_time
=yes
8129 ac_cv_header_time
=no
8131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8134 $as_echo "$ac_cv_header_time" >&6; }
8135 if test $ac_cv_header_time = yes; then
8137 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8142 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8143 if test "${gcc_cv_header_string+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8149 #include <strings.h>
8158 if ac_fn_c_try_compile
"$LINENO"; then :
8159 gcc_cv_header_string
=yes
8161 gcc_cv_header_string
=no
8163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8166 $as_echo "$gcc_cv_header_string" >&6; }
8167 if test $gcc_cv_header_string = yes; then
8169 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8174 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8175 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180 #include <sys/types.h>
8181 #include <sys/wait.h>
8183 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8186 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8194 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8199 if ac_fn_c_try_compile
"$LINENO"; then :
8200 ac_cv_header_sys_wait_h
=yes
8202 ac_cv_header_sys_wait_h
=no
8204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8207 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8208 if test $ac_cv_header_sys_wait_h = yes; then
8210 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8214 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8215 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8216 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8217 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8219 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8220 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8221 eval as_val
=\$
$as_ac_Header
8222 if test "x$as_val" = x
""yes; then :
8223 cat >>confdefs.h
<<_ACEOF
8224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8231 # Check for thread headers.
8232 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8233 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8239 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8240 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8247 # These tests can't be done till we know if we have limits.h.
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8249 $as_echo_n "checking for CHAR_BIT... " >&6; }
8250 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255 #ifdef HAVE_LIMITS_H
8262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8263 $EGREP "found" >/dev
/null
2>&1; then :
8264 gcc_cv_decl_char_bit
=yes
8266 gcc_cv_decl_char_bit
=no
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8273 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8274 if test $gcc_cv_decl_char_bit = no
; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8276 $as_echo_n "checking number of bits in a byte... " >&6; }
8277 if test "${gcc_cv_c_nbby+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8282 while test $i -lt 65; do
8283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8290 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8291 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8297 if ac_fn_c_try_compile
"$LINENO"; then :
8298 gcc_cv_c_nbby
=$i; break
8300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8303 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8307 $as_echo "$gcc_cv_c_nbby" >&6; }
8308 if test $gcc_cv_c_nbby = failed
; then
8309 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8312 cat >>confdefs.h
<<_ACEOF
8313 #define CHAR_BIT $gcc_cv_c_nbby
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8319 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8320 if test "${ac_cv_c_bigendian+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8323 ac_cv_c_bigendian
=unknown
8324 # See if we're dealing with a universal compiler.
8325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 #ifndef __APPLE_CC__
8328 not a universal capable compiler
8333 if ac_fn_c_try_compile
"$LINENO"; then :
8335 # Check for potential -arch flags. It is not universal unless
8336 # there are at least two -arch flags with different values.
8339 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8340 if test -n "$ac_prev"; then
8342 i?
86 | x86_64 | ppc | ppc64
)
8343 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8346 ac_cv_c_bigendian
=universal
8352 elif test "x$ac_word" = "x-arch"; then
8357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8358 if test $ac_cv_c_bigendian = unknown
; then
8359 # See if sys/param.h defines the BYTE_ORDER macro.
8360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362 #include <sys/types.h>
8363 #include <sys/param.h>
8368 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8369 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8378 if ac_fn_c_try_compile
"$LINENO"; then :
8379 # It does; now see whether it defined to BIG_ENDIAN or not.
8380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382 #include <sys/types.h>
8383 #include <sys/param.h>
8388 #if BYTE_ORDER != BIG_ENDIAN
8396 if ac_fn_c_try_compile
"$LINENO"; then :
8397 ac_cv_c_bigendian
=yes
8399 ac_cv_c_bigendian
=no
8401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8405 if test $ac_cv_c_bigendian = unknown
; then
8406 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8414 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8422 if ac_fn_c_try_compile
"$LINENO"; then :
8423 # It does; now see whether it defined to _BIG_ENDIAN or not.
8424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8439 if ac_fn_c_try_compile
"$LINENO"; then :
8440 ac_cv_c_bigendian
=yes
8442 ac_cv_c_bigendian
=no
8444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8448 if test $ac_cv_c_bigendian = unknown
; then
8449 # Compile a test program.
8450 if test "$cross_compiling" = yes; then :
8451 # Try to guess by grepping values from an object file.
8452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 short int ascii_mm[] =
8455 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8456 short int ascii_ii[] =
8457 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8458 int use_ascii (int i) {
8459 return ascii_mm[i] + ascii_ii[i];
8461 short int ebcdic_ii[] =
8462 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8463 short int ebcdic_mm[] =
8464 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8465 int use_ebcdic (int i) {
8466 return ebcdic_mm[i] + ebcdic_ii[i];
8473 return use_ascii (foo) == use_ebcdic (foo);
8478 if ac_fn_c_try_compile
"$LINENO"; then :
8479 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8480 ac_cv_c_bigendian
=yes
8482 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8483 if test "$ac_cv_c_bigendian" = unknown
; then
8484 ac_cv_c_bigendian
=no
8486 # finding both strings is unlikely to happen, but who knows?
8487 ac_cv_c_bigendian
=unknown
8491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 $ac_includes_default
8500 /* Are we little or big endian? From Harbison&Steele. */
8504 char c[sizeof (long int)];
8507 return u.c[sizeof (long int) - 1] == 1;
8513 if ac_fn_c_try_run
"$LINENO"; then :
8514 ac_cv_c_bigendian
=no
8516 ac_cv_c_bigendian
=yes
8518 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8519 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8525 $as_echo "$ac_cv_c_bigendian" >&6; }
8526 case $ac_cv_c_bigendian in #(
8528 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8534 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8538 as_fn_error
"unknown endianness
8539 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8543 # ----------------------
8544 # Checks for C++ headers
8545 # ----------------------
8548 ac_cpp
='$CXXCPP $CPPFLAGS'
8549 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8550 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8551 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8553 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8554 if test -z "$CXXCPP"; then
8555 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8558 # Double quotes because CXXCPP needs to be expanded
8559 for CXXCPP
in "$CXX -E" "/lib/cpp"
8562 for ac_cxx_preproc_warn_flag
in '' yes
8564 # Use a header file that comes with gcc, so configuring glibc
8565 # with a fresh cross-compiler works.
8566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8567 # <limits.h> exists even on freestanding compilers.
8568 # On the NeXT, cc -E runs the code through the compiler's parser,
8569 # not just through cpp. "Syntax error" is here to catch this case.
8570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8573 # include <limits.h>
8575 # include <assert.h>
8579 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8582 # Broken: fails on valid input.
8585 rm -f conftest.err conftest.
$ac_ext
8587 # OK, works on sane cases. Now check whether nonexistent headers
8588 # can be detected and how.
8589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 #include <ac_nonexistent.h>
8593 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8594 # Broken: success on invalid input.
8597 # Passes both tests.
8601 rm -f conftest.err conftest.
$ac_ext
8604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8605 rm -f conftest.err conftest.
$ac_ext
8606 if $ac_preproc_ok; then :
8611 ac_cv_prog_CXXCPP
=$CXXCPP
8614 CXXCPP
=$ac_cv_prog_CXXCPP
8616 ac_cv_prog_CXXCPP
=$CXXCPP
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8619 $as_echo "$CXXCPP" >&6; }
8621 for ac_cxx_preproc_warn_flag
in '' yes
8623 # Use a header file that comes with gcc, so configuring glibc
8624 # with a fresh cross-compiler works.
8625 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8626 # <limits.h> exists even on freestanding compilers.
8627 # On the NeXT, cc -E runs the code through the compiler's parser,
8628 # not just through cpp. "Syntax error" is here to catch this case.
8629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8632 # include <limits.h>
8634 # include <assert.h>
8638 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8641 # Broken: fails on valid input.
8644 rm -f conftest.err conftest.
$ac_ext
8646 # OK, works on sane cases. Now check whether nonexistent headers
8647 # can be detected and how.
8648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650 #include <ac_nonexistent.h>
8652 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8653 # Broken: success on invalid input.
8656 # Passes both tests.
8660 rm -f conftest.err conftest.
$ac_ext
8663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8664 rm -f conftest.err conftest.
$ac_ext
8665 if $ac_preproc_ok; then :
8668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8671 See \`config.log' for more details." >&5
8672 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8673 See \`config.log' for more details." >&2;}; }
8677 ac_cpp
='$CPP $CPPFLAGS'
8678 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8679 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8680 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8684 ac_cpp
='$CXXCPP $CPPFLAGS'
8685 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8692 for ac_header
in unordered_map
8694 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8695 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8696 cat >>confdefs.h
<<_ACEOF
8697 #define HAVE_UNORDERED_MAP 1
8703 for ac_header
in tr1/unordered_map
8705 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8706 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8707 cat >>confdefs.h
<<_ACEOF
8708 #define HAVE_TR1_UNORDERED_MAP 1
8714 for ac_header
in ext
/hash_map
8716 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8717 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8718 cat >>confdefs.h
<<_ACEOF
8719 #define HAVE_EXT_HASH_MAP 1
8727 ac_cpp
='$CPP $CPPFLAGS'
8728 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8729 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8730 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8738 # These libraries may be used by collect2.
8739 # We may need a special search path to get them linked.
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8741 $as_echo_n "checking for collect2 libraries... " >&6; }
8742 if test "${gcc_cv_collect2_libs+set}" = set; then :
8743 $as_echo_n "(cached) " >&6
8746 for libs
in '' -lld -lmld \
8747 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8748 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8754 /* Override any GCC internal prototype to avoid an error.
8755 Use char because int might match the return type of a GCC
8756 builtin and then its argument prototype would still apply. */
8769 if ac_fn_c_try_link
"$LINENO"; then :
8770 gcc_cv_collect2_libs
="$libs"; break
8772 rm -f core conftest.err conftest.
$ac_objext \
8773 conftest
$ac_exeext conftest.
$ac_ext
8776 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8779 $as_echo "$gcc_cv_collect2_libs" >&6; }
8780 case $gcc_cv_collect2_libs in
8782 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8786 # When building Ada code on Alpha, we need exc_resume which is usually in
8787 # -lexc. So test for it.
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8791 $as_echo_n "checking for library containing exc_resume... " >&6; }
8792 if test "${ac_cv_search_exc_resume+set}" = set; then :
8793 $as_echo_n "(cached) " >&6
8795 ac_func_search_save_LIBS
=$LIBS
8796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8799 /* Override any GCC internal prototype to avoid an error.
8800 Use char because int might match the return type of a GCC
8801 builtin and then its argument prototype would still apply. */
8809 return exc_resume ();
8814 for ac_lib
in '' exc
; do
8815 if test -z "$ac_lib"; then
8816 ac_res
="none required"
8819 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8821 if ac_fn_c_try_link
"$LINENO"; then :
8822 ac_cv_search_exc_resume
=$ac_res
8824 rm -f core conftest.err conftest.
$ac_objext \
8826 if test "${ac_cv_search_exc_resume+set}" = set; then :
8830 if test "${ac_cv_search_exc_resume+set}" = set; then :
8833 ac_cv_search_exc_resume
=no
8836 LIBS
=$ac_func_search_save_LIBS
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8839 $as_echo "$ac_cv_search_exc_resume" >&6; }
8840 ac_res
=$ac_cv_search_exc_resume
8841 if test "$ac_res" != no
; then :
8842 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8850 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8854 $as_echo_n "checking for library containing kstat_open... " >&6; }
8855 if test "${ac_cv_search_kstat_open+set}" = set; then :
8856 $as_echo_n "(cached) " >&6
8858 ac_func_search_save_LIBS
=$LIBS
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8862 /* Override any GCC internal prototype to avoid an error.
8863 Use char because int might match the return type of a GCC
8864 builtin and then its argument prototype would still apply. */
8872 return kstat_open ();
8877 for ac_lib
in '' kstat
; do
8878 if test -z "$ac_lib"; then
8879 ac_res
="none required"
8882 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8884 if ac_fn_c_try_link
"$LINENO"; then :
8885 ac_cv_search_kstat_open
=$ac_res
8887 rm -f core conftest.err conftest.
$ac_objext \
8889 if test "${ac_cv_search_kstat_open+set}" = set; then :
8893 if test "${ac_cv_search_kstat_open+set}" = set; then :
8896 ac_cv_search_kstat_open
=no
8899 LIBS
=$ac_func_search_save_LIBS
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8902 $as_echo "$ac_cv_search_kstat_open" >&6; }
8903 ac_res
=$ac_cv_search_kstat_open
8904 if test "$ac_res" != no
; then :
8905 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8909 EXTRA_GCC_LIBS
="$LIBS"
8913 # Some systems put ldexp and frexp in libm instead of libc; assume
8914 # they're both in the same place. jcf-dump needs them.
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8918 $as_echo_n "checking for library containing ldexp... " >&6; }
8919 if test "${ac_cv_search_ldexp+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
8922 ac_func_search_save_LIBS
=$LIBS
8923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8926 /* Override any GCC internal prototype to avoid an error.
8927 Use char because int might match the return type of a GCC
8928 builtin and then its argument prototype would still apply. */
8941 for ac_lib
in '' m
; do
8942 if test -z "$ac_lib"; then
8943 ac_res
="none required"
8946 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8948 if ac_fn_c_try_link
"$LINENO"; then :
8949 ac_cv_search_ldexp
=$ac_res
8951 rm -f core conftest.err conftest.
$ac_objext \
8953 if test "${ac_cv_search_ldexp+set}" = set; then :
8957 if test "${ac_cv_search_ldexp+set}" = set; then :
8960 ac_cv_search_ldexp
=no
8963 LIBS
=$ac_func_search_save_LIBS
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8966 $as_echo "$ac_cv_search_ldexp" >&6; }
8967 ac_res
=$ac_cv_search_ldexp
8968 if test "$ac_res" != no
; then :
8969 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8977 # Use <inttypes.h> only if it exists,
8978 # doesn't clash with <sys/types.h>, and declares intmax_t.
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8980 $as_echo_n "checking for inttypes.h... " >&6; }
8981 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 #include <sys/types.h>
8987 #include <inttypes.h>
8996 if ac_fn_c_try_compile
"$LINENO"; then :
8997 gcc_cv_header_inttypes_h
=yes
8999 gcc_cv_header_inttypes_h
=no
9001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9005 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9006 if test $gcc_cv_header_inttypes_h = yes; then
9008 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9014 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9015 sysconf strsignal getrusage nl_langinfo \
9016 gettimeofday mbstowcs wcswidth mmap setlocale \
9017 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9019 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9020 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9021 eval as_val
=\$
$as_ac_var
9022 if test "x$as_val" = x
""yes; then :
9023 cat >>confdefs.h
<<_ACEOF
9024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9031 if test x
$ac_cv_func_mbstowcs = xyes
; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9033 $as_echo_n "checking whether mbstowcs works... " >&6; }
9034 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
9037 if test "$cross_compiling" = yes; then :
9038 gcc_cv_func_mbstowcs_works
=yes
9040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9049 if ac_fn_c_try_run
"$LINENO"; then :
9050 gcc_cv_func_mbstowcs_works
=yes
9052 gcc_cv_func_mbstowcs_works
=no
9054 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9055 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9060 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9061 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9063 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9068 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9069 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9073 cat >>confdefs.h
<<_ACEOF
9079 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9080 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9084 cat >>confdefs.h
<<_ACEOF
9085 #define caddr_t char *
9092 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9093 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9094 gcc_header_sys_mman_h
=yes
9096 gcc_header_sys_mman_h
=no
9099 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9100 if test "x$ac_cv_func_mmap" = x
""yes; then :
9106 if test "$gcc_header_sys_mman_h" != yes \
9107 ||
test "$gcc_func_mmap" != yes; then
9108 gcc_cv_func_mmap_file
=no
9109 gcc_cv_func_mmap_dev_zero
=no
9110 gcc_cv_func_mmap_anon
=no
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9113 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9114 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9117 # Add a system to this blacklist if
9118 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9119 # memory area containing the same data that you'd get if you applied
9120 # read() to the same fd. The only system known to have a problem here
9121 # is VMS, where text files have record structure.
9124 gcc_cv_func_mmap_file
=no
;;
9126 gcc_cv_func_mmap_file
=yes;;
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9130 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9132 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9133 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9136 # Add a system to this blacklist if it has mmap() but /dev/zero
9137 # does not exist, or if mmapping /dev/zero does not give anonymous
9138 # zeroed pages with both the following properties:
9139 # 1. If you map N consecutive pages in with one call, and then
9140 # unmap any subset of those pages, the pages that were not
9141 # explicitly unmapped remain accessible.
9142 # 2. If you map two adjacent blocks of memory and then unmap them
9143 # both at once, they must both go away.
9144 # Systems known to be in this category are Windows (all variants),
9147 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9148 gcc_cv_func_mmap_dev_zero
=no
;;
9150 gcc_cv_func_mmap_dev_zero
=yes;;
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9154 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9156 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9158 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9159 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <sys/types.h>
9165 #include <sys/mman.h>
9168 #ifndef MAP_ANONYMOUS
9169 #define MAP_ANONYMOUS MAP_ANON
9175 int n = MAP_ANONYMOUS;
9180 if ac_fn_c_try_compile
"$LINENO"; then :
9181 gcc_cv_decl_map_anon
=yes
9183 gcc_cv_decl_map_anon
=no
9185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9188 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9190 if test $gcc_cv_decl_map_anon = no
; then
9191 gcc_cv_func_mmap_anon
=no
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9194 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9195 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9198 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9199 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9200 # doesn't give anonymous zeroed pages with the same properties listed
9201 # above for use of /dev/zero.
9202 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9204 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9205 gcc_cv_func_mmap_anon
=no
;;
9207 gcc_cv_func_mmap_anon
=yes;;
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9211 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9215 if test $gcc_cv_func_mmap_file = yes; then
9217 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9220 if test $gcc_cv_func_mmap_dev_zero = yes; then
9222 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9225 if test $gcc_cv_func_mmap_anon = yes; then
9227 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9234 # Under VMS, vfork works very differently than on Unix. The standard test
9235 # won't work, and it isn't easily adaptable. It makes more sense to
9237 ac_cv_func_vfork_works
=yes
9240 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9241 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9245 cat >>confdefs.h
<<_ACEOF
9251 for ac_header
in vfork.h
9253 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9254 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9255 cat >>confdefs.h
<<_ACEOF
9256 #define HAVE_VFORK_H 1
9262 for ac_func
in fork vfork
9264 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9265 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9266 eval as_val
=\$
$as_ac_var
9267 if test "x$as_val" = x
""yes; then :
9268 cat >>confdefs.h
<<_ACEOF
9269 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9275 if test "x$ac_cv_func_fork" = xyes
; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9277 $as_echo_n "checking for working fork... " >&6; }
9278 if test "${ac_cv_func_fork_works+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9281 if test "$cross_compiling" = yes; then :
9282 ac_cv_func_fork_works
=cross
9284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 $ac_includes_default
9291 /* By Ruediger Kuhlmann. */
9298 if ac_fn_c_try_run
"$LINENO"; then :
9299 ac_cv_func_fork_works
=yes
9301 ac_cv_func_fork_works
=no
9303 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9304 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9309 $as_echo "$ac_cv_func_fork_works" >&6; }
9312 ac_cv_func_fork_works
=$ac_cv_func_fork
9314 if test "x$ac_cv_func_fork_works" = xcross
; then
9316 *-*-amigaos* |
*-*-msdosdjgpp*)
9317 # Override, as these systems have only a dummy fork() stub
9318 ac_cv_func_fork_works
=no
9321 ac_cv_func_fork_works
=yes
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9325 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9327 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9328 if test "x$ac_cv_func_vfork" = xyes
; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9330 $as_echo_n "checking for working vfork... " >&6; }
9331 if test "${ac_cv_func_vfork_works+set}" = set; then :
9332 $as_echo_n "(cached) " >&6
9334 if test "$cross_compiling" = yes; then :
9335 ac_cv_func_vfork_works
=cross
9337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339 /* Thanks to Paul Eggert for this test. */
9340 $ac_includes_default
9341 #include <sys/wait.h>
9345 /* On some sparc systems, changes by the child to local and incoming
9346 argument registers are propagated back to the parent. The compiler
9347 is told about this with #include <vfork.h>, but some compilers
9348 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9349 static variable whose address is put into a register that is
9350 clobbered by the vfork. */
9353 sparc_address_test (int arg)
9355 sparc_address_test (arg) int arg;
9376 pid_t parent = getpid ();
9379 sparc_address_test (0);
9384 /* Here is another test for sparc vfork register problems. This
9385 test uses lots of local variables, at least as many local
9386 variables as main has allocated so far including compiler
9387 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9388 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9389 reuse the register of parent for one of the local variables,
9390 since it will think that parent can't possibly be used any more
9391 in this routine. Assigning to the local variable will thus
9392 munge parent in the parent process. */
9394 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9395 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9396 /* Convince the compiler that p..p7 are live; otherwise, it might
9397 use the same hardware register for all 8 local variables. */
9398 if (p != p1 || p != p2 || p != p3 || p != p4
9399 || p != p5 || p != p6 || p != p7)
9402 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9403 from child file descriptors. If the child closes a descriptor
9404 before it execs or exits, this munges the parent's descriptor
9405 as well. Test for this by closing stdout in the child. */
9406 _exit(close(fileno(stdout)) != 0);
9411 while (wait(&status) != child)
9414 /* Was there some problem with vforking? */
9417 /* Did the child fail? (This shouldn't happen.) */
9420 /* Did the vfork/compiler bug occur? */
9421 || parent != getpid()
9423 /* Did the file descriptor bug occur? */
9424 || fstat(fileno(stdout), &st) != 0
9429 if ac_fn_c_try_run
"$LINENO"; then :
9430 ac_cv_func_vfork_works
=yes
9432 ac_cv_func_vfork_works
=no
9434 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9435 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9440 $as_echo "$ac_cv_func_vfork_works" >&6; }
9443 if test "x$ac_cv_func_fork_works" = xcross
; then
9444 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9446 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9449 if test "x$ac_cv_func_vfork_works" = xyes
; then
9451 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9455 $as_echo "#define vfork fork" >>confdefs.h
9458 if test "x$ac_cv_func_fork_works" = xyes
; then
9460 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9465 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9466 # iconv() prototype.
9468 if test "X$prefix" = "XNONE"; then
9469 acl_final_prefix
="$ac_default_prefix"
9471 acl_final_prefix
="$prefix"
9473 if test "X$exec_prefix" = "XNONE"; then
9474 acl_final_exec_prefix
='${prefix}'
9476 acl_final_exec_prefix
="$exec_prefix"
9478 acl_save_prefix
="$prefix"
9479 prefix
="$acl_final_prefix"
9480 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9481 prefix
="$acl_save_prefix"
9484 # Check whether --with-gnu-ld was given.
9485 if test "${with_gnu_ld+set}" = set; then :
9486 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9491 # Prepare PATH_SEPARATOR.
9492 # The user is always right.
9493 if test "${PATH_SEPARATOR+set}" != set; then
9494 echo "#! /bin/sh" >conf$$.sh
9495 echo "exit 0" >>conf$$.sh
9497 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9505 if test "$GCC" = yes; then
9506 # Check if gcc -print-prog-name=ld gives a path.
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9508 $as_echo_n "checking for ld used by GCC... " >&6; }
9511 # gcc leaves a trailing carriage return which upsets mingw
9512 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9514 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9517 # Accept absolute paths.
9518 [\\/]* |
[A-Za-z
]:[\\/]*)
9519 re_direlt
='/[^/][^/]*/\.\./'
9520 # Canonicalize the path of ld
9521 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9522 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9523 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9525 test -z "$LD" && LD
="$ac_prog"
9528 # If it fails, then pretend we aren't using GCC.
9532 # If it is relative, then search for the first ld in PATH.
9536 elif test "$with_gnu_ld" = yes; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9538 $as_echo_n "checking for GNU ld... " >&6; }
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9541 $as_echo_n "checking for non-GNU ld... " >&6; }
9543 if test "${acl_cv_path_LD+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9546 if test -z "$LD"; then
9547 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9548 for ac_dir
in $PATH; do
9549 test -z "$ac_dir" && ac_dir
=.
9550 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9551 acl_cv_path_LD
="$ac_dir/$ac_prog"
9552 # Check to see if the program is GNU ld. I'd rather use --version,
9553 # but apparently some GNU ld's only accept -v.
9554 # Break only if it was the GNU/non-GNU ld that we prefer.
9555 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9556 test "$with_gnu_ld" != no
&& break
9558 test "$with_gnu_ld" != yes && break
9564 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9568 LD
="$acl_cv_path_LD"
9569 if test -n "$LD"; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9571 $as_echo "$LD" >&6; }
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9576 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9578 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9579 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9580 $as_echo_n "(cached) " >&6
9582 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9583 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9584 acl_cv_prog_gnu_ld
=yes
9586 acl_cv_prog_gnu_ld
=no
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9590 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9591 with_gnu_ld
=$acl_cv_prog_gnu_ld
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9596 $as_echo_n "checking for shared library run path origin... " >&6; }
9597 if test "${acl_cv_rpath+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9601 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9602 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9609 $as_echo "$acl_cv_rpath" >&6; }
9611 libext
="$acl_cv_libext"
9612 shlibext
="$acl_cv_shlibext"
9613 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9614 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9615 hardcode_direct
="$acl_cv_hardcode_direct"
9616 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9617 # Check whether --enable-rpath was given.
9618 if test "${enable_rpath+set}" = set; then :
9619 enableval
=$enable_rpath; :
9633 acl_save_prefix
="$prefix"
9634 prefix
="$acl_final_prefix"
9635 acl_save_exec_prefix
="$exec_prefix"
9636 exec_prefix
="$acl_final_exec_prefix"
9638 eval additional_includedir
=\"$includedir\"
9639 eval additional_libdir
=\"$libdir\"
9641 exec_prefix
="$acl_save_exec_prefix"
9642 prefix
="$acl_save_prefix"
9645 # Check whether --with-libiconv-prefix was given.
9646 if test "${with_libiconv_prefix+set}" = set; then :
9647 withval
=$with_libiconv_prefix;
9648 if test "X$withval" = "Xno"; then
9651 if test "X$withval" = "X"; then
9653 acl_save_prefix
="$prefix"
9654 prefix
="$acl_final_prefix"
9655 acl_save_exec_prefix
="$exec_prefix"
9656 exec_prefix
="$acl_final_exec_prefix"
9658 eval additional_includedir
=\"$includedir\"
9659 eval additional_libdir
=\"$libdir\"
9661 exec_prefix
="$acl_save_exec_prefix"
9662 prefix
="$acl_save_prefix"
9665 additional_includedir
="$withval/include"
9666 additional_libdir
="$withval/lib"
9677 names_already_handled
=
9678 names_next_round
='iconv '
9679 while test -n "$names_next_round"; do
9680 names_this_round
="$names_next_round"
9682 for name
in $names_this_round; do
9684 for n
in $names_already_handled; do
9685 if test "$n" = "$name"; then
9690 if test -z "$already_handled"; then
9691 names_already_handled
="$names_already_handled $name"
9692 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9693 eval value
=\"\
$HAVE_LIB$uppername\"
9694 if test -n "$value"; then
9695 if test "$value" = yes; then
9696 eval value
=\"\
$LIB$uppername\"
9697 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9698 eval value
=\"\
$LTLIB$uppername\"
9699 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9708 if test $use_additional = yes; then
9709 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9710 found_dir
="$additional_libdir"
9711 found_so
="$additional_libdir/lib$name.$shlibext"
9712 if test -f "$additional_libdir/lib$name.la"; then
9713 found_la
="$additional_libdir/lib$name.la"
9716 if test -f "$additional_libdir/lib$name.$libext"; then
9717 found_dir
="$additional_libdir"
9718 found_a
="$additional_libdir/lib$name.$libext"
9719 if test -f "$additional_libdir/lib$name.la"; then
9720 found_la
="$additional_libdir/lib$name.la"
9725 if test "X$found_dir" = "X"; then
9726 for x
in $LDFLAGS $LTLIBICONV; do
9728 acl_save_prefix
="$prefix"
9729 prefix
="$acl_final_prefix"
9730 acl_save_exec_prefix
="$exec_prefix"
9731 exec_prefix
="$acl_final_exec_prefix"
9733 exec_prefix
="$acl_save_exec_prefix"
9734 prefix
="$acl_save_prefix"
9738 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9739 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9741 found_so
="$dir/lib$name.$shlibext"
9742 if test -f "$dir/lib$name.la"; then
9743 found_la
="$dir/lib$name.la"
9746 if test -f "$dir/lib$name.$libext"; then
9748 found_a
="$dir/lib$name.$libext"
9749 if test -f "$dir/lib$name.la"; then
9750 found_la
="$dir/lib$name.la"
9756 if test "X$found_dir" != "X"; then
9761 if test "X$found_dir" != "X"; then
9762 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9763 if test "X$found_so" != "X"; then
9764 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9765 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9768 for x
in $ltrpathdirs; do
9769 if test "X$x" = "X$found_dir"; then
9774 if test -z "$haveit"; then
9775 ltrpathdirs
="$ltrpathdirs $found_dir"
9777 if test "$hardcode_direct" = yes; then
9778 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9780 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9781 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9783 for x
in $rpathdirs; do
9784 if test "X$x" = "X$found_dir"; then
9789 if test -z "$haveit"; then
9790 rpathdirs
="$rpathdirs $found_dir"
9794 for x
in $LDFLAGS $LIBICONV; do
9796 acl_save_prefix
="$prefix"
9797 prefix
="$acl_final_prefix"
9798 acl_save_exec_prefix
="$exec_prefix"
9799 exec_prefix
="$acl_final_exec_prefix"
9801 exec_prefix
="$acl_save_exec_prefix"
9802 prefix
="$acl_save_prefix"
9804 if test "X$x" = "X-L$found_dir"; then
9809 if test -z "$haveit"; then
9810 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9812 if test "$hardcode_minus_L" != no
; then
9813 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9815 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9821 if test "X$found_a" != "X"; then
9822 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9824 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9827 additional_includedir
=
9828 case "$found_dir" in
9830 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9831 additional_includedir
="$basedir/include"
9834 if test "X$additional_includedir" != "X"; then
9835 if test "X$additional_includedir" != "X/usr/include"; then
9837 if test "X$additional_includedir" = "X/usr/local/include"; then
9838 if test -n "$GCC"; then
9840 linux
*) haveit
=yes;;
9844 if test -z "$haveit"; then
9845 for x
in $CPPFLAGS $INCICONV; do
9847 acl_save_prefix
="$prefix"
9848 prefix
="$acl_final_prefix"
9849 acl_save_exec_prefix
="$exec_prefix"
9850 exec_prefix
="$acl_final_exec_prefix"
9852 exec_prefix
="$acl_save_exec_prefix"
9853 prefix
="$acl_save_prefix"
9855 if test "X$x" = "X-I$additional_includedir"; then
9860 if test -z "$haveit"; then
9861 if test -d "$additional_includedir"; then
9862 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9868 if test -n "$found_la"; then
9869 save_libdir
="$libdir"
9871 */* |
*\\*) .
"$found_la" ;;
9872 *) .
"./$found_la" ;;
9874 libdir
="$save_libdir"
9875 for dep
in $dependency_libs; do
9878 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9879 if test "X$additional_libdir" != "X/usr/lib"; then
9881 if test "X$additional_libdir" = "X/usr/local/lib"; then
9882 if test -n "$GCC"; then
9884 linux
*) haveit
=yes;;
9888 if test -z "$haveit"; then
9890 for x
in $LDFLAGS $LIBICONV; do
9892 acl_save_prefix
="$prefix"
9893 prefix
="$acl_final_prefix"
9894 acl_save_exec_prefix
="$exec_prefix"
9895 exec_prefix
="$acl_final_exec_prefix"
9897 exec_prefix
="$acl_save_exec_prefix"
9898 prefix
="$acl_save_prefix"
9900 if test "X$x" = "X-L$additional_libdir"; then
9905 if test -z "$haveit"; then
9906 if test -d "$additional_libdir"; then
9907 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9911 for x
in $LDFLAGS $LTLIBICONV; do
9913 acl_save_prefix
="$prefix"
9914 prefix
="$acl_final_prefix"
9915 acl_save_exec_prefix
="$exec_prefix"
9916 exec_prefix
="$acl_final_exec_prefix"
9918 exec_prefix
="$acl_save_exec_prefix"
9919 prefix
="$acl_save_prefix"
9921 if test "X$x" = "X-L$additional_libdir"; then
9926 if test -z "$haveit"; then
9927 if test -d "$additional_libdir"; then
9928 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9935 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9936 if test "$enable_rpath" != no
; then
9938 for x
in $rpathdirs; do
9939 if test "X$x" = "X$dir"; then
9944 if test -z "$haveit"; then
9945 rpathdirs
="$rpathdirs $dir"
9948 for x
in $ltrpathdirs; do
9949 if test "X$x" = "X$dir"; then
9954 if test -z "$haveit"; then
9955 ltrpathdirs
="$ltrpathdirs $dir"
9960 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9963 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9966 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9967 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9973 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9974 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9980 if test "X$rpathdirs" != "X"; then
9981 if test -n "$hardcode_libdir_separator"; then
9983 for found_dir
in $rpathdirs; do
9984 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9986 acl_save_libdir
="$libdir"
9988 eval flag
=\"$hardcode_libdir_flag_spec\"
9989 libdir
="$acl_save_libdir"
9990 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9992 for found_dir
in $rpathdirs; do
9993 acl_save_libdir
="$libdir"
9995 eval flag
=\"$hardcode_libdir_flag_spec\"
9996 libdir
="$acl_save_libdir"
9997 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10001 if test "X$ltrpathdirs" != "X"; then
10002 for found_dir
in $ltrpathdirs; do
10003 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10008 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10010 ac_cpp
='$CXXCPP $CPPFLAGS'
10011 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10012 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10013 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10020 am_save_CPPFLAGS
="$CPPFLAGS"
10022 for element
in $INCICONV; do
10024 for x
in $CPPFLAGS; do
10026 acl_save_prefix
="$prefix"
10027 prefix
="$acl_final_prefix"
10028 acl_save_exec_prefix
="$exec_prefix"
10029 exec_prefix
="$acl_final_exec_prefix"
10031 exec_prefix
="$acl_save_exec_prefix"
10032 prefix
="$acl_save_prefix"
10034 if test "X$x" = "X$element"; then
10039 if test -z "$haveit"; then
10040 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10046 $as_echo_n "checking for iconv... " >&6; }
10047 if test "${am_cv_func_iconv+set}" = set; then :
10048 $as_echo_n "(cached) " >&6
10051 am_cv_func_iconv
="no, consider installing GNU libiconv"
10053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055 #include <stdlib.h>
10060 iconv_t cd = iconv_open("","");
10061 iconv(cd,NULL,NULL,NULL,NULL);
10067 if ac_fn_cxx_try_link
"$LINENO"; then :
10068 am_cv_func_iconv
=yes
10070 rm -f core conftest.err conftest.
$ac_objext \
10071 conftest
$ac_exeext conftest.
$ac_ext
10072 if test "$am_cv_func_iconv" != yes; then
10073 am_save_LIBS
="$LIBS"
10074 LIBS
="$LIBS $LIBICONV"
10075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10077 #include <stdlib.h>
10082 iconv_t cd = iconv_open("","");
10083 iconv(cd,NULL,NULL,NULL,NULL);
10089 if ac_fn_cxx_try_link
"$LINENO"; then :
10090 am_cv_lib_iconv
=yes
10091 am_cv_func_iconv
=yes
10093 rm -f core conftest.err conftest.
$ac_objext \
10094 conftest
$ac_exeext conftest.
$ac_ext
10095 LIBS
="$am_save_LIBS"
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10100 $as_echo "$am_cv_func_iconv" >&6; }
10101 if test "$am_cv_func_iconv" = yes; then
10103 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10106 if test "$am_cv_lib_iconv" = yes; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10108 $as_echo_n "checking how to link with libiconv... " >&6; }
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10110 $as_echo "$LIBICONV" >&6; }
10112 CPPFLAGS
="$am_save_CPPFLAGS"
10119 if test "$am_cv_func_iconv" = yes; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10121 $as_echo_n "checking for iconv declaration... " >&6; }
10122 if test "${am_cv_proto_iconv+set}" = set; then :
10123 $as_echo_n "(cached) " >&6
10126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 #include <stdlib.h>
10135 #if defined(__STDC__) || defined(__cplusplus)
10136 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10149 if ac_fn_cxx_try_compile
"$LINENO"; then :
10150 am_cv_proto_iconv_arg1
=""
10152 am_cv_proto_iconv_arg1
="const"
10154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10155 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);"
10158 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10160 }$am_cv_proto_iconv" >&5
10162 }$am_cv_proto_iconv" >&6; }
10164 cat >>confdefs.h
<<_ACEOF
10165 #define ICONV_CONST $am_cv_proto_iconv_arg1
10171 ac_cpp
='$CPP $CPPFLAGS'
10172 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10173 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10174 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10182 am_save_CPPFLAGS
="$CPPFLAGS"
10184 for element
in $INCICONV; do
10186 for x
in $CPPFLAGS; do
10188 acl_save_prefix
="$prefix"
10189 prefix
="$acl_final_prefix"
10190 acl_save_exec_prefix
="$exec_prefix"
10191 exec_prefix
="$acl_final_exec_prefix"
10193 exec_prefix
="$acl_save_exec_prefix"
10194 prefix
="$acl_save_prefix"
10196 if test "X$x" = "X$element"; then
10201 if test -z "$haveit"; then
10202 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10208 $as_echo_n "checking for iconv... " >&6; }
10209 if test "${am_cv_func_iconv+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
10213 am_cv_func_iconv
="no, consider installing GNU libiconv"
10215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10217 #include <stdlib.h>
10222 iconv_t cd = iconv_open("","");
10223 iconv(cd,NULL,NULL,NULL,NULL);
10229 if ac_fn_c_try_link
"$LINENO"; then :
10230 am_cv_func_iconv
=yes
10232 rm -f core conftest.err conftest.
$ac_objext \
10233 conftest
$ac_exeext conftest.
$ac_ext
10234 if test "$am_cv_func_iconv" != yes; then
10235 am_save_LIBS
="$LIBS"
10236 LIBS
="$LIBS $LIBICONV"
10237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239 #include <stdlib.h>
10244 iconv_t cd = iconv_open("","");
10245 iconv(cd,NULL,NULL,NULL,NULL);
10251 if ac_fn_c_try_link
"$LINENO"; then :
10252 am_cv_lib_iconv
=yes
10253 am_cv_func_iconv
=yes
10255 rm -f core conftest.err conftest.
$ac_objext \
10256 conftest
$ac_exeext conftest.
$ac_ext
10257 LIBS
="$am_save_LIBS"
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10262 $as_echo "$am_cv_func_iconv" >&6; }
10263 if test "$am_cv_func_iconv" = yes; then
10265 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10268 if test "$am_cv_lib_iconv" = yes; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10270 $as_echo_n "checking how to link with libiconv... " >&6; }
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10272 $as_echo "$LIBICONV" >&6; }
10274 CPPFLAGS
="$am_save_CPPFLAGS"
10281 if test "$am_cv_func_iconv" = yes; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10283 $as_echo_n "checking for iconv declaration... " >&6; }
10284 if test "${am_cv_proto_iconv+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10291 #include <stdlib.h>
10297 #if defined(__STDC__) || defined(__cplusplus)
10298 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10311 if ac_fn_c_try_compile
"$LINENO"; then :
10312 am_cv_proto_iconv_arg1
=""
10314 am_cv_proto_iconv_arg1
="const"
10316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10317 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);"
10320 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10322 }$am_cv_proto_iconv" >&5
10324 }$am_cv_proto_iconv" >&6; }
10326 cat >>confdefs.h
<<_ACEOF
10327 #define ICONV_CONST $am_cv_proto_iconv_arg1
10334 # Until we have in-tree GNU iconv:
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10340 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10341 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346 #include <locale.h>
10355 if ac_fn_c_try_link
"$LINENO"; then :
10356 am_cv_val_LC_MESSAGES
=yes
10358 am_cv_val_LC_MESSAGES
=no
10360 rm -f core conftest.err conftest.
$ac_objext \
10361 conftest
$ac_exeext conftest.
$ac_ext
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10364 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10365 if test $am_cv_val_LC_MESSAGES = yes; then
10367 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10374 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10375 if test "${am_cv_langinfo_codeset+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10380 #include <langinfo.h>
10384 char* cs = nl_langinfo(CODESET);
10389 if ac_fn_c_try_link
"$LINENO"; then :
10390 am_cv_langinfo_codeset
=yes
10392 am_cv_langinfo_codeset
=no
10394 rm -f core conftest.err conftest.
$ac_objext \
10395 conftest
$ac_exeext conftest.
$ac_ext
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10399 $as_echo "$am_cv_langinfo_codeset" >&6; }
10400 if test $am_cv_langinfo_codeset = yes; then
10402 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10407 # We will need to find libiberty.h and ansidecl.h
10408 saved_CFLAGS
="$CFLAGS"
10409 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10410 saved_CXXFLAGS
="$CXXFLAGS"
10411 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10412 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10413 strsignal strstr strverscmp \
10414 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10415 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
10417 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10419 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10420 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10421 $as_echo_n "(cached) " >&6
10423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10426 #define $ac_tr_decl 1
10428 #include "ansidecl.h"
10429 #include "system.h"
10435 char *(*pfn) = (char *(*)) $ac_func ;
10441 if ac_fn_c_try_compile
"$LINENO"; then :
10442 eval "gcc_cv_have_decl_$ac_func=yes"
10444 eval "gcc_cv_have_decl_$ac_func=no"
10446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10449 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10452 #define $ac_tr_decl 1
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10458 #define $ac_tr_decl 0
10466 for ac_func
in getrlimit setrlimit getrusage
10468 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10470 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10471 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10472 $as_echo_n "(cached) " >&6
10474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10477 #define $ac_tr_decl 1
10479 #include "ansidecl.h"
10480 #include "system.h"
10481 #ifdef HAVE_SYS_RESOURCE_H
10482 #include <sys/resource.h>
10490 char *(*pfn) = (char *(*)) $ac_func ;
10496 if ac_fn_c_try_compile
"$LINENO"; then :
10497 eval "gcc_cv_have_decl_$ac_func=yes"
10499 eval "gcc_cv_have_decl_$ac_func=no"
10501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10504 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10506 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10507 #define $ac_tr_decl 1
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10513 #define $ac_tr_decl 0
10521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10524 #include "ansidecl.h"
10525 #include "system.h"
10526 #ifdef HAVE_SYS_RESOURCE_H
10527 #include <sys/resource.h>
10538 if ac_fn_c_try_compile
"$LINENO"; then :
10542 $as_echo "#define rlim_t long" >>confdefs.h
10545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10547 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10548 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10549 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10550 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10551 for ac_func
in ldgetname
10553 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10555 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10556 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10557 $as_echo_n "(cached) " >&6
10559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10562 #define $ac_tr_decl 1
10564 #include "ansidecl.h"
10565 #include "system.h"
10566 #ifdef HAVE_LDFCN_H
10577 char *(*pfn) = (char *(*)) $ac_func ;
10583 if ac_fn_c_try_compile
"$LINENO"; then :
10584 eval "gcc_cv_have_decl_$ac_func=yes"
10586 eval "gcc_cv_have_decl_$ac_func=no"
10588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10591 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10593 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10594 #define $ac_tr_decl 1
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10600 #define $ac_tr_decl 0
10608 for ac_func
in times
10610 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10612 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10613 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10614 $as_echo_n "(cached) " >&6
10616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10619 #define $ac_tr_decl 1
10621 #include "ansidecl.h"
10622 #include "system.h"
10623 #ifdef HAVE_SYS_TIMES_H
10624 #include <sys/times.h>
10632 char *(*pfn) = (char *(*)) $ac_func ;
10638 if ac_fn_c_try_compile
"$LINENO"; then :
10639 eval "gcc_cv_have_decl_$ac_func=yes"
10641 eval "gcc_cv_have_decl_$ac_func=no"
10643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10646 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10649 #define $ac_tr_decl 1
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10655 #define $ac_tr_decl 0
10663 for ac_func
in sigaltstack
10665 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10667 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10668 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10669 $as_echo_n "(cached) " >&6
10671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10674 #define $ac_tr_decl 1
10676 #include "ansidecl.h"
10677 #include "system.h"
10678 #include <signal.h>
10685 char *(*pfn) = (char *(*)) $ac_func ;
10691 if ac_fn_c_try_compile
"$LINENO"; then :
10692 eval "gcc_cv_have_decl_$ac_func=yes"
10694 eval "gcc_cv_have_decl_$ac_func=no"
10696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10699 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10701 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10702 #define $ac_tr_decl 1
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10708 #define $ac_tr_decl 0
10716 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10718 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10720 ac_cpp
='$CXXCPP $CPPFLAGS'
10721 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10722 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10723 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10725 for ac_func
in madvise
10727 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10729 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10730 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10731 $as_echo_n "(cached) " >&6
10733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 #define $ac_tr_decl 1
10738 #include "ansidecl.h"
10739 #include "system.h"
10746 char *(*pfn) = (char *(*)) $ac_func ;
10752 if ac_fn_cxx_try_compile
"$LINENO"; then :
10753 eval "gcc_cv_have_decl_$ac_func=yes"
10755 eval "gcc_cv_have_decl_$ac_func=no"
10757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10760 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10762 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10763 #define $ac_tr_decl 1
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10769 #define $ac_tr_decl 0
10777 ac_cpp
='$CPP $CPPFLAGS'
10778 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10779 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10780 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10783 for ac_func
in madvise
10785 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10787 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10788 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10789 $as_echo_n "(cached) " >&6
10791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10794 #define $ac_tr_decl 1
10796 #include "ansidecl.h"
10797 #include "system.h"
10804 char *(*pfn) = (char *(*)) $ac_func ;
10810 if ac_fn_c_try_compile
"$LINENO"; then :
10811 eval "gcc_cv_have_decl_$ac_func=yes"
10813 eval "gcc_cv_have_decl_$ac_func=no"
10815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10818 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10820 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10821 #define $ac_tr_decl 1
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10827 #define $ac_tr_decl 0
10837 # More time-related stuff.
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10839 $as_echo_n "checking for struct tms... " >&6; }
10840 if test "${ac_cv_struct_tms+set}" = set; then :
10841 $as_echo_n "(cached) " >&6
10844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10847 #include "ansidecl.h"
10848 #include "system.h"
10849 #ifdef HAVE_SYS_TIMES_H
10850 #include <sys/times.h>
10861 if ac_fn_c_try_compile
"$LINENO"; then :
10862 ac_cv_struct_tms
=yes
10864 ac_cv_struct_tms
=no
10866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10869 $as_echo "$ac_cv_struct_tms" >&6; }
10870 if test $ac_cv_struct_tms = yes; then
10872 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10876 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10877 # revisit after autoconf 2.50.
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10879 $as_echo_n "checking for clock_t... " >&6; }
10880 if test "${gcc_cv_type_clock_t+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
10884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10887 #include "ansidecl.h"
10888 #include "system.h"
10898 if ac_fn_c_try_compile
"$LINENO"; then :
10899 gcc_cv_type_clock_t
=yes
10901 gcc_cv_type_clock_t
=no
10903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10906 $as_echo "$gcc_cv_type_clock_t" >&6; }
10907 if test $gcc_cv_type_clock_t = yes; then
10909 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10913 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10914 CFLAGS
="$saved_CFLAGS"
10915 CXXFLAGS
="$saved_CXXFLAGS"
10917 # Check whether --enable-initfini-array was given.
10918 if test "${enable_initfini_array+set}" = set; then :
10919 enableval
=$enable_initfini_array;
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10923 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10924 if test "${gcc_cv_initfini_array+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10927 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10928 if test "$cross_compiling" = yes; then :
10929 gcc_cv_initfini_array
=no
10931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10935 #error Not an ELF OS
10938 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10939 if it can be used. */
10941 int main (void) { return x; }
10942 int foo (void) { x = 0; }
10943 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10945 extern void abort ();
10955 void (*const init_array1005) ()
10956 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10964 void (*const fini_array1005) ()
10965 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10975 void (*const ctors1007) ()
10976 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10985 void (*const dtors1007) ()
10986 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10996 void (*const init_array65530) ()
10997 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11002 if (count != 65530)
11006 void (*const fini_array65530) ()
11007 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11013 if (count != 65530)
11017 void (*const ctors65535) ()
11018 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11023 if (count != 65535)
11027 void (*const dtors65535) ()
11028 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11034 if (count != 65535)
11041 if ac_fn_c_try_run
"$LINENO"; then :
11042 gcc_cv_initfini_array
=yes
11044 gcc_cv_initfini_array
=no
11046 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11047 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11052 $as_echo_n "checking cross compile... guessing... " >&6; }
11053 gcc_cv_initfini_array
=no
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11057 $as_echo "$gcc_cv_initfini_array" >&6; }
11058 enable_initfini_array
=$gcc_cv_initfini_array
11062 if test $enable_initfini_array = yes; then
11064 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11068 # mkdir takes a single argument on some systems.
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11070 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11071 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11077 #include <sys/types.h>
11078 #ifdef HAVE_SYS_STAT_H
11079 # include <sys/stat.h>
11081 #ifdef HAVE_UNISTD_H
11082 # include <unistd.h>
11084 #ifdef HAVE_DIRECT_H
11085 # include <direct.h>
11095 if ac_fn_c_try_compile
"$LINENO"; then :
11096 gcc_cv_mkdir_takes_one_arg
=no
11098 gcc_cv_mkdir_takes_one_arg
=yes
11100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11103 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11104 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11106 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11117 # With Setjmp/Longjmp based exception handling.
11118 # Check whether --enable-sjlj-exceptions was given.
11119 if test "${enable_sjlj_exceptions+set}" = set; then :
11120 enableval
=$enable_sjlj_exceptions; case $target in
11122 if test $enableval != yes; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11124 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11129 force_sjlj_exceptions
=yes
11133 force_sjlj_exceptions
=yes
11137 force_sjlj_exceptions
=no
11142 if test $force_sjlj_exceptions = yes; then
11143 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11145 cat >>confdefs.h
<<_ACEOF
11146 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11151 # --------------------------------------------------------
11152 # Build, host, and target specific configuration fragments
11153 # --------------------------------------------------------
11155 # Collect build-machine-specific information.
11156 .
${srcdir}/config.build
11158 # Collect host-machine-specific information.
11159 .
${srcdir}/config.
host
11163 # Collect target-machine-specific information.
11164 .
${srcdir}/config.gcc
11166 extra_objs
="${host_extra_objs} ${extra_objs}"
11167 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11169 # Default the target-machine variables that were not explicitly set.
11170 if test x
"$tm_file" = x
11171 then tm_file
=$cpu_type/$cpu_type.h
; fi
11173 if test x
"$extra_headers" = x
11174 then extra_headers
=; fi
11176 if test x
$md_file = x
11177 then md_file
=$cpu_type/$cpu_type.md
; fi
11179 if test x
$out_file = x
11180 then out_file
=$cpu_type/$cpu_type.c
; fi
11182 if test x
"$tmake_file" = x
11183 then tmake_file
=$cpu_type/t-
$cpu_type
11186 if test x
"$dwarf2" = xyes
11187 then tm_file
="$tm_file tm-dwarf2.h"
11190 # Say what files are being used for the output code and MD file.
11191 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11192 echo "Using \`$srcdir/config/$md_file' as machine description file."
11194 # If any of the xm_file variables contain nonexistent files, warn
11195 # about them and drop them.
11198 for x
in $build_xm_file; do
11199 if test -f $srcdir/config
/$x
11201 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11202 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11205 build_xm_file
="$bx"
11208 for x
in $host_xm_file; do
11209 if test -f $srcdir/config
/$x
11211 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11212 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11218 for x
in $xm_file; do
11219 if test -f $srcdir/config
/$x
11221 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11222 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11228 for f
in $tm_file; do
11231 if test $count = ax
; then
11232 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11234 echo "Using the following target machine macro files:"
11235 for f
in $tm_file; do
11236 echo " $srcdir/config/$f"
11240 if test x
$need_64bit_hwint = xyes
; then
11242 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11246 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11248 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11253 for f
in $host_xm_file; do
11256 if test $count = a
; then
11258 elif test $count = ax
; then
11259 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11261 echo "Using the following host machine macro files:"
11262 for f
in $host_xm_file; do
11263 echo " $srcdir/config/$f"
11266 echo "Using ${out_host_hook_obj} for host machine hooks."
11268 if test "$host_xm_file" != "$build_xm_file"; then
11270 for f
in $build_xm_file; do
11273 if test $count = a
; then
11275 elif test $count = ax
; then
11276 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11278 echo "Using the following build machine macro files:"
11279 for f
in $build_xm_file; do
11280 echo " $srcdir/config/$f"
11285 if test -n "$configured_native_system_header_dir"; then
11286 native_system_header_dir
=$configured_native_system_header_dir
11288 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11292 powerpc
*-*-darwin*)
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11294 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11295 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
11298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11301 #include <sys/cdefs.h>
11302 #include <sys/signal.h>
11303 #include <ucontext.h>
11304 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11307 if ac_fn_c_try_compile
"$LINENO"; then :
11308 gcc_cv_mcontext_underscores
=no
11310 gcc_cv_mcontext_underscores
=yes
11312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11315 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11316 if test $gcc_cv_mcontext_underscores = yes; then
11318 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11328 # Check if a valid thread package
11329 case ${enable_threads} in
11332 target_thread_file
='single'
11336 target_thread_file
='single'
11338 aix | dce | lynx | mipssde | posix | rtems | \
11339 single | tpf | vxworks | win32
)
11340 target_thread_file
=${enable_threads}
11343 echo "${enable_threads} is an unknown thread package" 1>&2
11348 if test x
${thread_file} = x
; then
11349 # No thread file set by target-specific clauses in config.gcc,
11350 # so use file chosen by default logic above
11351 thread_file
=${target_thread_file}
11359 if test x
$enable___cxa_atexit = xyes || \
11360 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11361 if test x
$host = x
$target; then
11363 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11364 # keyed to flag_use_cxa_atexit
11369 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11370 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11373 echo "__cxa_atexit can't be enabled on this target"
11379 # We can't check for __cxa_atexit when building a cross, so assume
11383 if test x
$use_cxa_atexit = xyes
; then
11385 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11390 # Look for a file containing extra machine modes.
11391 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11392 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11395 cat >>confdefs.h
<<_ACEOF
11396 #define EXTRA_MODES_FILE "config/$extra_modes"
11401 # Convert extra_options into a form suitable for Makefile use.
11404 for f
in $extra_options; do
11405 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11406 all_opt_files
="$all_opt_files $srcdir/config/$f"
11410 # auto-host.h is the file containing items generated by autoconf and is
11411 # the first file included by config.h.
11412 # If host=build, it is correct to have bconfig include auto-host.h
11413 # as well. If host!=build, we are in error and need to do more
11414 # work to find out the build config parameters.
11415 if test x
$host = x
$build
11417 build_auto
=auto-host.h
11419 # We create a subdir, then run autoconf in the subdir.
11420 # To prevent recursion we set host and build for the new
11421 # invocation of configure to the build for this invocation
11428 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11429 *) realsrcdir
=..
/${srcdir};;
11431 saved_CFLAGS
="${CFLAGS}"
11432 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11433 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11434 ${realsrcdir}/configure \
11435 --enable-languages=${enable_languages-all} \
11436 --target=$target_alias --host=$build_alias --build=$build_alias
11437 CFLAGS
="${saved_CFLAGS}"
11439 # We just finished tests for the build machine, so rename
11440 # the file auto-build.h in the gcc directory.
11441 mv auto-host.h ..
/auto-build.h
11444 build_auto
=auto-build.h
11448 tm_file
="${tm_file} defaults.h"
11449 tm_p_file
="${tm_p_file} tm-preds.h"
11450 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11451 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11452 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11453 # put this back in temporarily.
11454 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11460 # Compile in configure arguments.
11461 if test -f configargs.h
; then
11462 # Being re-configured.
11463 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11464 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11466 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11469 # Double all backslashes and backslash all quotes to turn
11470 # gcc_config_arguments into a C string.
11471 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11472 $gcc_config_arguments
11474 gcc_config_arguments_str
=`cat conftest.out`
11477 cat > configargs.h
<<EOF
11478 /* Generated automatically. */
11479 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11480 static const char thread_model[] = "$thread_file";
11482 static const struct {
11483 const char *name, *value;
11484 } configure_default_options[] = $configure_default_options;
11487 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11488 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11489 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11490 if test -f $srcdir/REVISION
; then
11491 gcc_REVISION
=`cat $srcdir/REVISION`
11495 cat > plugin-version.h
<<EOF
11496 #include "configargs.h"
11498 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11499 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11500 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11501 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11503 static char basever[] = "$gcc_BASEVER";
11504 static char datestamp[] = "$gcc_DATESTAMP";
11505 static char devphase[] = "$gcc_DEVPHASE";
11506 static char revision[] = "$gcc_REVISION";
11508 /* FIXME plugins: We should make the version information more precise.
11509 One way to do is to add a checksum. */
11511 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11512 devphase, revision,
11513 configuration_arguments};
11516 # Internationalization
11517 # If we haven't got the data from the intl directory,
11518 # assume NLS is disabled.
11527 if test -f ..
/intl
/config.intl
; then
11528 . ..
/intl
/config.intl
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11531 $as_echo_n "checking whether NLS is requested... " >&6; }
11532 if test x
"$USE_NLS" != xyes
; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11537 $as_echo "yes" >&6; }
11539 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11543 $as_echo_n "checking for catalogs to be installed... " >&6; }
11544 # Look for .po and .gmo files in the source directory.
11547 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11548 # If there aren't any .gmo files the shell will give us the
11549 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11551 case "$cat" in *\
**)
11554 # The quadruple backslash is collapsed to a double backslash
11555 # by the backticks, then collapsed again by the double quotes,
11556 # leaving us with one backslash in the sed expression (right
11557 # before the dot that mustn't act as a wildcard).
11558 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11559 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11560 # The user is allowed to set LINGUAS to a list of languages to
11561 # install catalogs for. If it's empty that means "all of them."
11562 if test "x$LINGUAS" = x
; then
11563 CATALOGS
="$CATALOGS $cat"
11564 XLINGUAS
="$XLINGUAS $lang"
11566 case "$LINGUAS" in *$lang*)
11567 CATALOGS
="$CATALOGS $cat"
11568 XLINGUAS
="$XLINGUAS $lang"
11573 LINGUAS
="$XLINGUAS"
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11575 $as_echo "$LINGUAS" >&6; }
11588 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11589 # -liconv on the link line twice.
11590 case "$LIBINTL" in *$LIBICONV*)
11594 # Check whether --enable-secureplt was given.
11595 if test "${enable_secureplt+set}" = set; then :
11596 enableval
=$enable_secureplt;
11600 # Check whether --enable-leading-mingw64-underscores was given.
11601 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11602 enableval
=$enable_leading_mingw64_underscores;
11605 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11607 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11611 # Check whether --enable-cld was given.
11612 if test "${enable_cld+set}" = set; then :
11613 enableval
=$enable_cld;
11619 # Check whether --enable-frame-pointer was given.
11620 if test "${enable_frame_pointer+set}" = set; then :
11621 enableval
=$enable_frame_pointer;
11625 linux
* | darwin
[8912]*)
11626 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11628 enable_frame_pointer
=no
11631 enable_frame_pointer
=yes
11638 # Windows32 Registry support for specifying GCC installation paths.
11639 # Check whether --enable-win32-registry was given.
11640 if test "${enable_win32_registry+set}" = set; then :
11641 enableval
=$enable_win32_registry;
11646 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11647 if test "x$enable_win32_registry" != xno
; then
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11649 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11650 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11653 ac_func_search_save_LIBS
=$LIBS
11654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11663 char RegOpenKeyExA ();
11667 return RegOpenKeyExA ();
11672 for ac_lib
in '' advapi32
; do
11673 if test -z "$ac_lib"; then
11674 ac_res
="none required"
11677 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11679 if ac_fn_c_try_link
"$LINENO"; then :
11680 ac_cv_search_RegOpenKeyExA
=$ac_res
11682 rm -f core conftest.err conftest.
$ac_objext \
11684 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11688 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11691 ac_cv_search_RegOpenKeyExA
=no
11693 rm conftest.
$ac_ext
11694 LIBS
=$ac_func_search_save_LIBS
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11697 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11698 ac_res
=$ac_cv_search_RegOpenKeyExA
11699 if test "$ac_res" != no
; then :
11700 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11703 enable_win32_registry
=no
11708 if test "x$enable_win32_registry" != xno
; then
11710 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11713 if test "x$enable_win32_registry" != xyes \
11714 && test "x$enable_win32_registry" != x
; then
11716 cat >>confdefs.h
<<_ACEOF
11717 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11725 # Get an absolute path to the GCC top-level source directory
11726 holddir
=`${PWDCMD-pwd}`
11728 topdir
=`${PWDCMD-pwd}`
11731 # Conditionalize the makefile for this host machine.
11733 for f
in ${host_xmake_file}
11735 if test -f ${srcdir}/config
/$f
11737 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11741 # Conditionalize the makefile for this target machine.
11743 for f
in ${tmake_file}
11745 if test -f ${srcdir}/config
/$f
11747 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11750 tmake_file
="${tmake_file_}"
11752 out_object_file
=`basename $out_file .c`.o
11753 common_out_object_file
=`basename $common_out_file .c`.o
11755 tm_file_list
="options.h"
11756 tm_include_list
="options.h insn-constants.h"
11757 for f
in $tm_file; do
11760 f
=`echo $f | sed 's/^..//'`
11761 tm_file_list
="${tm_file_list} $f"
11762 tm_include_list
="${tm_include_list} $f"
11765 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11766 tm_include_list
="${tm_include_list} $f"
11769 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11770 tm_include_list
="${tm_include_list} config/$f"
11777 for f
in $tm_p_file; do
11780 tm_p_file_list
="${tm_p_file_list} $f"
11781 tm_p_include_list
="${tm_p_include_list} $f"
11784 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11785 tm_p_include_list
="${tm_p_include_list} config/$f"
11791 for f
in $xm_file; do
11794 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11795 xm_include_list
="${xm_include_list} $f"
11798 xm_file_list
="${xm_file_list} $f"
11799 xm_include_list
="${xm_include_list} $f"
11802 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11803 xm_include_list
="${xm_include_list} config/$f"
11809 host_xm_include_list
=
11810 for f
in $host_xm_file; do
11813 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11814 host_xm_include_list
="${host_xm_include_list} $f"
11817 host_xm_file_list
="${host_xm_file_list} $f"
11818 host_xm_include_list
="${host_xm_include_list} $f"
11821 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11822 host_xm_include_list
="${host_xm_include_list} config/$f"
11827 build_xm_file_list
=
11828 for f
in $build_xm_file; do
11831 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11832 build_xm_include_list
="${build_xm_include_list} $f"
11834 auto-build.h | auto-host.h
)
11835 build_xm_file_list
="${build_xm_file_list} $f"
11836 build_xm_include_list
="${build_xm_include_list} $f"
11839 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11840 build_xm_include_list
="${build_xm_include_list} config/$f"
11845 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11846 # cross-compiler which does not use the native headers and libraries.
11847 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11850 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11852 if test "x$with_build_sysroot" != x
; then
11853 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11855 # This value is used, even on a native system, because
11856 # CROSS_SYSTEM_HEADER_DIR is just
11857 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11858 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11861 if test x
$host != x
$target
11863 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11865 SYSTEM_HEADER_DIR
=$build_system_header_dir
11866 case "$host","$target" in
11867 # Darwin crosses can use the host system's libraries and headers,
11868 # because of the fat library support. Of course, it must be the
11869 # same version of Darwin on both sides. Allow the user to
11870 # just say --target=foo-darwin without a version number to mean
11871 # "the version on this system".
11872 *-*-darwin*,*-*-darwin*)
11873 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11874 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11875 if test $hostos = $targetos -o $targetos = darwin
; then
11877 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11882 i?
86-*-*,x86_64-
*-* \
11883 | powerpc
*-*-*,powerpc64
*-*-*)
11884 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11889 if test "x$with_headers" = x
; then
11896 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11897 SYSTEM_HEADER_DIR
=$build_system_header_dir
11900 # If this is a cross-compiler that does not
11901 # have its own set of headers then define
11904 # If this is using newlib, without having the headers available now,
11905 # then define inhibit_libc in LIBGCC2_CFLAGS.
11906 # This prevents libgcc2 from containing any code which requires libc
11908 : ${inhibit_libc=false}
11909 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11910 test x
$with_newlib = xyes
; } &&
11911 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11916 # When building gcc with a cross-compiler, we need to adjust things so
11917 # that the generator programs are still built with the native compiler.
11918 # Also, we cannot run fixincludes.
11920 # These are the normal (build=host) settings:
11921 CC_FOR_BUILD
='$(CC)'
11922 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11923 BUILD_LDFLAGS
='$(LDFLAGS)'
11924 STMP_FIXINC
=stmp-fixinc
11926 # And these apply if build != host, or we are generating coverage data
11927 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11929 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11930 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11933 # Expand extra_headers to include complete path.
11934 # This substitutes for lots of t-* files.
11935 extra_headers_list
=
11936 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11937 for file in ${extra_headers} ; do
11938 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11941 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11942 if test x
"$use_gcc_tgmath" = xyes
11943 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11946 # Define collect2 in Makefile.
11947 case $host_can_use_collect2 in
11949 *) collect2
='collect2$(exeext)' ;;
11953 # Add a definition of USE_COLLECT2 if system wants one.
11954 case $use_collect2 in
11955 no
) use_collect2
= ;;
11958 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11959 xm_defines
="${xm_defines} USE_COLLECT2"
11960 case $host_can_use_collect2 in
11962 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11969 cat >>confdefs.h
<<_ACEOF
11970 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11974 # ---------------------------
11975 # Assembler & linker features
11976 # ---------------------------
11978 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11979 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11980 # However when ld-new is first executed from the build tree, libtool will
11981 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11982 # to the build tree. While doing this we need to use the previous-stage
11983 # linker, or we have an infinite loop. The presence of a shell script as
11984 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11985 # the gcc/collect-ld script. So we need to know how libtool works, or
11986 # exec-tool will fail.
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11992 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11997 macro_version
='2.2.7a'
11998 macro_revision
='1.3134'
12012 ltmain
="$ac_aux_dir/ltmain.sh"
12014 # Backslashify metacharacters that are still active within
12015 # double-quoted strings.
12016 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12018 # Same as above, but do not quote variable references.
12019 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12021 # Sed substitution to delay expansion of an escaped shell variable in a
12022 # double_quote_subst'ed string.
12023 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12025 # Sed substitution to delay expansion of an escaped single quote.
12026 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12028 # Sed substitution to avoid accidental globbing in evaled expressions
12029 no_glob_subst
='s/\*/\\\*/g'
12031 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12032 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12036 $as_echo_n "checking how to print strings... " >&6; }
12037 # Test print first, because it will be a builtin if present.
12038 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12039 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12041 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12044 # Use this function as a fallback that always works.
12045 func_fallback_echo ()
12047 eval 'cat <<_LTECHO_EOF
12051 ECHO='func_fallback_echo
'
12054 # func_echo_all arg...
12055 # Invoke $ECHO with all args, space-separated.
12062 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12063 $as_echo "printf" >&6; } ;;
12064 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12065 $as_echo "print -r" >&6; } ;;
12066 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12067 $as_echo "cat" >&6; } ;;
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12084 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12085 if test "${ac_cv_path_SED+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12088 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12089 for ac_i in 1 2 3 4 5 6 7; do
12090 ac_script="$ac_script$as_nl$ac_script"
12092 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12093 { ac_script=; unset ac_script;}
12094 if test -z "$SED"; then
12095 ac_path_SED_found=false
12096 # Loop through the user's path and
test for each of PROGNAME-LIST
12097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12098 for as_dir
in $PATH
12101 test -z "$as_dir" && as_dir
=.
12102 for ac_prog
in sed gsed
; do
12103 for ac_exec_ext
in '' $ac_executable_extensions; do
12104 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12105 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12106 # Check for GNU ac_path_SED and select it if it is found.
12107 # Check for GNU $ac_path_SED
12108 case `"$ac_path_SED" --version 2>&1` in
12110 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12113 $as_echo_n 0123456789 >"conftest.in"
12116 cat "conftest.in" "conftest.in" >"conftest.tmp"
12117 mv "conftest.tmp" "conftest.in"
12118 cp "conftest.in" "conftest.nl"
12119 $as_echo '' >> "conftest.nl"
12120 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12121 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12122 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12123 if test $ac_count -gt ${ac_path_SED_max-0}; then
12124 # Best one so far, save it but keep looking for a better one
12125 ac_cv_path_SED
="$ac_path_SED"
12126 ac_path_SED_max
=$ac_count
12128 # 10*(2^10) chars as input seems more than enough
12129 test $ac_count -gt 10 && break
12131 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12134 $ac_path_SED_found && break 3
12139 if test -z "$ac_cv_path_SED"; then
12140 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12143 ac_cv_path_SED
=$SED
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12148 $as_echo "$ac_cv_path_SED" >&6; }
12149 SED
="$ac_cv_path_SED"
12152 test -z "$SED" && SED
=sed
12153 Xsed
="$SED -e 1s/^X//"
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12166 $as_echo_n "checking for fgrep... " >&6; }
12167 if test "${ac_cv_path_FGREP+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12170 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12171 then ac_cv_path_FGREP
="$GREP -F"
12173 if test -z "$FGREP"; then
12174 ac_path_FGREP_found
=false
12175 # Loop through the user's path and test for each of PROGNAME-LIST
12176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12177 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12180 test -z "$as_dir" && as_dir
=.
12181 for ac_prog
in fgrep
; do
12182 for ac_exec_ext
in '' $ac_executable_extensions; do
12183 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12184 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12185 # Check for GNU ac_path_FGREP and select it if it is found.
12186 # Check for GNU $ac_path_FGREP
12187 case `"$ac_path_FGREP" --version 2>&1` in
12189 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12192 $as_echo_n 0123456789 >"conftest.in"
12195 cat "conftest.in" "conftest.in" >"conftest.tmp"
12196 mv "conftest.tmp" "conftest.in"
12197 cp "conftest.in" "conftest.nl"
12198 $as_echo 'FGREP' >> "conftest.nl"
12199 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12200 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12201 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12203 # Best one so far, save it but keep looking for a better one
12204 ac_cv_path_FGREP
="$ac_path_FGREP"
12205 ac_path_FGREP_max
=$ac_count
12207 # 10*(2^10) chars as input seems more than enough
12208 test $ac_count -gt 10 && break
12210 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12213 $ac_path_FGREP_found && break 3
12218 if test -z "$ac_cv_path_FGREP"; then
12219 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12222 ac_cv_path_FGREP
=$FGREP
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12228 $as_echo "$ac_cv_path_FGREP" >&6; }
12229 FGREP
="$ac_cv_path_FGREP"
12232 test -z "$GREP" && GREP
=grep
12252 # Check whether --with-gnu-ld was given.
12253 if test "${with_gnu_ld+set}" = set; then :
12254 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12260 if test "$GCC" = yes; then
12261 # Check if gcc -print-prog-name=ld gives a path.
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12263 $as_echo_n "checking for ld used by $CC... " >&6; }
12266 # gcc leaves a trailing carriage return which upsets mingw
12267 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12269 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12272 # Accept absolute paths.
12274 re_direlt
='/[^/][^/]*/\.\./'
12275 # Canonicalize the pathname of ld
12276 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12277 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12278 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12280 test -z "$LD" && LD
="$ac_prog"
12283 # If it fails, then pretend we aren't using GCC.
12287 # If it is relative, then search for the first ld in PATH.
12288 with_gnu_ld
=unknown
12291 elif test "$with_gnu_ld" = yes; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12293 $as_echo_n "checking for GNU ld... " >&6; }
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12296 $as_echo_n "checking for non-GNU ld... " >&6; }
12298 if test "${lt_cv_path_LD+set}" = set; then :
12299 $as_echo_n "(cached) " >&6
12301 if test -z "$LD"; then
12302 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12303 for ac_dir
in $PATH; do
12305 test -z "$ac_dir" && ac_dir
=.
12306 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12307 lt_cv_path_LD
="$ac_dir/$ac_prog"
12308 # Check to see if the program is GNU ld. I'd rather use --version,
12309 # but apparently some variants of GNU ld only accept -v.
12310 # Break only if it was the GNU/non-GNU ld that we prefer.
12311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12312 *GNU
* |
*'with BFD'*)
12313 test "$with_gnu_ld" != no
&& break
12316 test "$with_gnu_ld" != yes && break
12323 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12327 LD
="$lt_cv_path_LD"
12328 if test -n "$LD"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12330 $as_echo "$LD" >&6; }
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12335 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12337 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12338 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12341 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12342 case `$LD -v 2>&1 </dev/null` in
12343 *GNU
* |
*'with BFD'*)
12344 lt_cv_prog_gnu_ld
=yes
12347 lt_cv_prog_gnu_ld
=no
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12352 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12353 with_gnu_ld
=$lt_cv_prog_gnu_ld
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12364 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12365 if test "${lt_cv_path_NM+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12368 if test -n "$NM"; then
12369 # Let the user override the test.
12370 lt_cv_path_NM
="$NM"
12372 lt_nm_to_check
="${ac_tool_prefix}nm"
12373 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12374 lt_nm_to_check
="$lt_nm_to_check nm"
12376 for lt_tmp_nm
in $lt_nm_to_check; do
12377 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12378 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12380 test -z "$ac_dir" && ac_dir
=.
12381 tmp_nm
="$ac_dir/$lt_tmp_nm"
12382 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12383 # Check to see if the nm accepts a BSD-compat flag.
12384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12385 # nm: unknown option "B" ignored
12386 # Tru64's nm complains that /dev/null is an invalid object file
12387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12388 */dev
/null
* |
*'Invalid file or object type'*)
12389 lt_cv_path_NM
="$tmp_nm -B"
12393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12395 lt_cv_path_NM
="$tmp_nm -p"
12399 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12400 continue # so that we can try to find one that supports BSD flags
12409 : ${lt_cv_path_NM=no}
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12413 $as_echo "$lt_cv_path_NM" >&6; }
12414 if test "$lt_cv_path_NM" != "no"; then
12415 NM
="$lt_cv_path_NM"
12417 # Didn't find any BSD compatible name lister, look for dumpbin.
12418 if test -n "$DUMPBIN"; then :
12419 # Let the user override the test.
12421 if test -n "$ac_tool_prefix"; then
12422 for ac_prog
in dumpbin
"link -dump"
12424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12425 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12431 if test -n "$DUMPBIN"; then
12432 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12435 for as_dir
in $PATH
12438 test -z "$as_dir" && as_dir
=.
12439 for ac_exec_ext
in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12441 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 DUMPBIN
=$ac_cv_prog_DUMPBIN
12452 if test -n "$DUMPBIN"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12454 $as_echo "$DUMPBIN" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12461 test -n "$DUMPBIN" && break
12464 if test -z "$DUMPBIN"; then
12465 ac_ct_DUMPBIN
=$DUMPBIN
12466 for ac_prog
in dumpbin
"link -dump"
12468 # Extract the first word of "$ac_prog", so it can be a program name with args.
12469 set dummy
$ac_prog; ac_word
=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12475 if test -n "$ac_ct_DUMPBIN"; then
12476 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12479 for as_dir
in $PATH
12482 test -z "$as_dir" && as_dir
=.
12483 for ac_exec_ext
in '' $ac_executable_extensions; do
12484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12485 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12496 if test -n "$ac_ct_DUMPBIN"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12498 $as_echo "$ac_ct_DUMPBIN" >&6; }
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12505 test -n "$ac_ct_DUMPBIN" && break
12508 if test "x$ac_ct_DUMPBIN" = x
; then
12511 case $cross_compiling:$ac_tool_warned in
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12515 ac_tool_warned
=yes ;;
12517 DUMPBIN
=$ac_ct_DUMPBIN
12521 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12523 DUMPBIN
="$DUMPBIN -symbols"
12531 if test "$DUMPBIN" != ":"; then
12535 test -z "$NM" && NM
=nm
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12543 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12544 if test "${lt_cv_nm_interface+set}" = set; then :
12545 $as_echo_n "(cached) " >&6
12547 lt_cv_nm_interface
="BSD nm"
12548 echo "int some_variable = 0;" > conftest.
$ac_ext
12549 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12550 (eval "$ac_compile" 2>conftest.err
)
12551 cat conftest.err
>&5
12552 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12553 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12554 cat conftest.err
>&5
12555 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12556 cat conftest.out
>&5
12557 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12558 lt_cv_nm_interface
="MS dumpbin"
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12563 $as_echo "$lt_cv_nm_interface" >&6; }
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12566 $as_echo_n "checking whether ln -s works... " >&6; }
12568 if test "$LN_S" = "ln -s"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12570 $as_echo "yes" >&6; }
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12573 $as_echo "no, using $LN_S" >&6; }
12576 # find the maximum length of command line arguments
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12578 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12579 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12587 # On DJGPP, this test can blow up pretty badly due to problems in libc
12588 # (any single argument exceeding 2000 bytes causes a buffer overrun
12589 # during glob expansion). Even if it were fixed, the result of this
12590 # check would be larger than it should be.
12591 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12595 # Under GNU Hurd, this test is not required because there is
12596 # no limit to the length of command line arguments.
12597 # Libtool will interpret -1 as no limit whatsoever
12598 lt_cv_sys_max_cmd_len
=-1;
12601 cygwin
* | mingw
* | cegcc
*)
12602 # On Win9x/ME, this test blows up -- it succeeds, but takes
12603 # about 5 minutes as the teststring grows exponentially.
12604 # Worse, since 9x/ME are not pre-emptively multitasking,
12605 # you end up with a "frozen" computer, even though with patience
12606 # the test eventually succeeds (with a max line length of 256k).
12607 # Instead, let's just punt: use the minimum linelength reported by
12608 # all of the supported platforms: 8192 (on NT/2K/XP).
12609 lt_cv_sys_max_cmd_len
=8192;
12613 # On MiNT this can take a long time and run out of memory.
12614 lt_cv_sys_max_cmd_len
=8192;
12618 # On AmigaOS with pdksh, this test takes hours, literally.
12619 # So we just punt and use a minimum line length of 8192.
12620 lt_cv_sys_max_cmd_len
=8192;
12623 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12624 # This has been around since 386BSD, at least. Likely further.
12625 if test -x /sbin
/sysctl
; then
12626 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12627 elif test -x /usr
/sbin
/sysctl
; then
12628 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12630 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12632 # And add a safety zone
12633 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12634 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12638 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12639 lt_cv_sys_max_cmd_len
=196608
12643 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12644 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12645 # nice to cause kernel panics so lets avoid the loop below.
12646 # First set a reasonable default.
12647 lt_cv_sys_max_cmd_len
=16384
12649 if test -x /sbin
/sysconfig
; then
12650 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12651 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12656 lt_cv_sys_max_cmd_len
=102400
12658 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12659 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12660 if test -n "$kargmax"; then
12661 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12663 lt_cv_sys_max_cmd_len
=32768
12667 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12668 if test -n "$lt_cv_sys_max_cmd_len"; then
12669 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12670 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12672 # Make teststring a little bigger before we do anything with it.
12673 # a 1K string should be a reasonable start.
12674 for i
in 1 2 3 4 5 6 7 8 ; do
12675 teststring
=$teststring$teststring
12677 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12678 # If test is not a shell built-in, we'll probably end up computing a
12679 # maximum length that is only half of the actual maximum length, but
12681 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12682 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12683 test $i != 17 # 1/2 MB should be enough
12686 teststring
=$teststring$teststring
12688 # Only check the string length outside the loop.
12689 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12691 # Add a significant safety factor because C++ compilers can tack on
12692 # massive amounts of additional arguments before passing them to the
12693 # linker. It appears as though 1/2 is a usable value.
12694 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12701 if test -n $lt_cv_sys_max_cmd_len ; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12703 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12706 $as_echo "none" >&6; }
12708 max_cmd_len
=$lt_cv_sys_max_cmd_len
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12720 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12721 # Try some XSI features
12723 ( _lt_dummy
="a/b/c"
12724 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12726 && eval 'test $(( 1 + 1 )) -eq 2 \
12727 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12730 $as_echo "$xsi_shell" >&6; }
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12734 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12736 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12738 && lt_shell_append=yes
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12740 $as_echo "$lt_shell_append" >&6; }
12743 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12753 # test EBCDIC or ASCII
12754 case `echo X|tr X '\101'` in
12755 A) # ASCII based system
12756 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12757 lt_SP2NL='tr \040 \012'
12758 lt_NL2SP='tr \015\012 \040\040'
12760 *) # EBCDIC based system
12761 lt_SP2NL='tr \100 \n'
12762 lt_NL2SP='tr \r\n \100\100'
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12775 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12776 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12777 $as_echo_n "(cached
) " >&6
12779 lt_cv_ld_reload_flag='-r'
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12782 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12783 reload_flag=$lt_cv_ld_reload_flag
12784 case $reload_flag in
12786 *) reload_flag=" $reload_flag" ;;
12788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12791 if test "$GCC" = yes; then
12792 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12794 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12807 if test -n "$ac_tool_prefix"; then
12808 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12809 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12811 $as_echo_n "checking
for $ac_word...
" >&6; }
12812 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12813 $as_echo_n "(cached
) " >&6
12815 if test -n "$OBJDUMP"; then
12816 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12822 test -z "$as_dir" && as_dir=.
12823 for ac_exec_ext in '' $ac_executable_extensions; do
12824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12825 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12835 OBJDUMP=$ac_cv_prog_OBJDUMP
12836 if test -n "$OBJDUMP"; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12838 $as_echo "$OBJDUMP" >&6; }
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12841 $as_echo "no
" >&6; }
12846 if test -z "$ac_cv_prog_OBJDUMP"; then
12847 ac_ct_OBJDUMP=$OBJDUMP
12848 # Extract the first word of "objdump
", so it can be a program name with args.
12849 set dummy objdump; ac_word=$2
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12851 $as_echo_n "checking
for $ac_word...
" >&6; }
12852 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12853 $as_echo_n "(cached
) " >&6
12855 if test -n "$ac_ct_OBJDUMP"; then
12856 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859 for as_dir in $PATH
12862 test -z "$as_dir" && as_dir=.
12863 for ac_exec_ext in '' $ac_executable_extensions; do
12864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12865 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12866 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12875 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12876 if test -n "$ac_ct_OBJDUMP"; then
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12878 $as_echo "$ac_ct_OBJDUMP" >&6; }
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12881 $as_echo "no
" >&6; }
12884 if test "x
$ac_ct_OBJDUMP" = x; then
12887 case $cross_compiling:$ac_tool_warned in
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12890 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12891 ac_tool_warned=yes ;;
12893 OBJDUMP=$ac_ct_OBJDUMP
12896 OBJDUMP="$ac_cv_prog_OBJDUMP"
12899 test -z "$OBJDUMP" && OBJDUMP=objdump
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12910 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12911 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12912 $as_echo_n "(cached
) " >&6
12914 lt_cv_file_magic_cmd='$MAGIC_CMD'
12915 lt_cv_file_magic_test_file=
12916 lt_cv_deplibs_check_method='unknown'
12917 # Need to set the preceding variable on all platforms that support
12918 # interlibrary dependencies.
12919 # 'none' -- dependencies not supported.
12920 # `unknown' -- same as none, but documents that we really don't know.
12921 # 'pass_all' -- all dependencies passed with no checks.
12922 # 'test_compile' -- check by making test program.
12923 # 'file_magic [[regex]]' -- check by looking for files in library path
12924 # which responds to the $file_magic_cmd with a given extended regex.
12925 # If you have `file' or equivalent on your system and you're not sure
12926 # whether `pass_all' will *always* work, you probably want this one.
12930 lt_cv_deplibs_check_method=pass_all
12934 lt_cv_deplibs_check_method=pass_all
12938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12939 lt_cv_file_magic_cmd='/usr/bin/file -L'
12940 lt_cv_file_magic_test_file=/shlib/libc.so
12944 # func_win32_libid is a shell function defined in ltmain.sh
12945 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12946 lt_cv_file_magic_cmd='func_win32_libid'
12950 # Base MSYS/MinGW do not provide the 'file' command needed by
12951 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12952 # unless we find 'file', for example because we are cross-compiling.
12953 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12954 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12956 lt_cv_file_magic_cmd='func_win32_libid'
12958 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12959 lt_cv_file_magic_cmd='$OBJDUMP -f'
12964 # use the weaker test based on 'objdump'. See mingw*.
12965 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12966 lt_cv_file_magic_cmd='$OBJDUMP -f'
12969 darwin* | rhapsody*)
12970 lt_cv_deplibs_check_method=pass_all
12973 freebsd* | dragonfly*)
12974 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12977 # Not sure whether the presence of OpenBSD here was a mistake.
12978 # Let's accept both of them until this is cleared up.
12979 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12980 lt_cv_file_magic_cmd=/usr/bin/file
12981 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12985 lt_cv_deplibs_check_method=pass_all
12990 lt_cv_deplibs_check_method=pass_all
12994 lt_cv_deplibs_check_method=pass_all
12997 hpux10.20* | hpux11*)
12998 lt_cv_file_magic_cmd=/usr/bin/file
13001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13002 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13005 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]'
13006 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13010 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13016 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13020 irix5* | irix6* | nonstopux*)
13022 *-32|*"-32 ") libmagic=32-bit;;
13023 *-n32|*"-n32 ") libmagic=N32;;
13024 *-64|*"-64 ") libmagic=64-bit;;
13025 *) libmagic=never-match;;
13027 lt_cv_deplibs_check_method=pass_all
13030 # This must be Linux ELF.
13031 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13032 lt_cv_deplibs_check_method=pass_all
13036 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13045 lt_cv_file_magic_cmd=/usr/bin/file
13046 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13050 lt_cv_deplibs_check_method=pass_all
13054 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13061 osf3* | osf4* | osf5*)
13062 lt_cv_deplibs_check_method=pass_all
13066 lt_cv_deplibs_check_method=pass_all
13070 lt_cv_deplibs_check_method=pass_all
13073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13074 lt_cv_deplibs_check_method=pass_all
13078 case $host_vendor in
13080 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]'
13081 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13084 lt_cv_deplibs_check_method=pass_all
13087 lt_cv_file_magic_cmd='/bin/file'
13088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13091 lt_cv_file_magic_cmd='/bin/file'
13092 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13093 lt_cv_file_magic_test_file=/lib/libc.so
13096 lt_cv_deplibs_check_method=pass_all
13099 lt_cv_deplibs_check_method=pass_all
13105 lt_cv_deplibs_check_method=pass_all
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13111 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13112 file_magic_cmd=$lt_cv_file_magic_cmd
13113 deplibs_check_method=$lt_cv_deplibs_check_method
13114 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13127 if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}ar; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13131 $as_echo_n "checking
for $ac_word...
" >&6; }
13132 if test "${ac_cv_prog_AR+set}" = set; then :
13133 $as_echo_n "(cached
) " >&6
13135 if test -n "$AR"; then
13136 ac_cv_prog_AR="$AR" # Let the user override the test.
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_AR="${ac_tool_prefix}ar"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13156 if test -n "$AR"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13158 $as_echo "$AR" >&6; }
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13161 $as_echo "no
" >&6; }
13166 if test -z "$ac_cv_prog_AR"; then
13168 # Extract the first word of "ar", so it can be a program name with args.
13169 set dummy ar; ac_word=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13171 $as_echo_n "checking
for $ac_word...
" >&6; }
13172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13173 $as_echo_n "(cached
) " >&6
13175 if test -n "$ac_ct_AR"; then
13176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
13184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185 ac_cv_prog_ac_ct_AR="ar"
13186 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13196 if test -n "$ac_ct_AR"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13198 $as_echo "$ac_ct_AR" >&6; }
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13201 $as_echo "no
" >&6; }
13204 if test "x
$ac_ct_AR" = x; then
13207 case $cross_compiling:$ac_tool_warned in
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13210 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13211 ac_tool_warned=yes ;;
13216 AR="$ac_cv_prog_AR"
13219 test -z "$AR" && AR=ar
13220 test -z "$AR_FLAGS" && AR_FLAGS=cru
13232 if test -n "$ac_tool_prefix"; then
13233 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13234 set dummy ${ac_tool_prefix}strip; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13236 $as_echo_n "checking
for $ac_word...
" >&6; }
13237 if test "${ac_cv_prog_STRIP+set}" = set; then :
13238 $as_echo_n "(cached
) " >&6
13240 if test -n "$STRIP"; then
13241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13260 STRIP=$ac_cv_prog_STRIP
13261 if test -n "$STRIP"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13263 $as_echo "$STRIP" >&6; }
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13266 $as_echo "no
" >&6; }
13271 if test -z "$ac_cv_prog_STRIP"; then
13273 # Extract the first word of "strip
", so it can be a program name with args.
13274 set dummy strip; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13276 $as_echo_n "checking
for $ac_word...
" >&6; }
13277 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13278 $as_echo_n "(cached
) " >&6
13280 if test -n "$ac_ct_STRIP"; then
13281 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290 ac_cv_prog_ac_ct_STRIP="strip
"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13301 if test -n "$ac_ct_STRIP"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13303 $as_echo "$ac_ct_STRIP" >&6; }
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13306 $as_echo "no
" >&6; }
13309 if test "x
$ac_ct_STRIP" = x; then
13312 case $cross_compiling:$ac_tool_warned in
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13315 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13316 ac_tool_warned=yes ;;
13321 STRIP="$ac_cv_prog_STRIP"
13324 test -z "$STRIP" && STRIP=:
13331 if test -n "$ac_tool_prefix"; then
13332 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13333 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13335 $as_echo_n "checking
for $ac_word...
" >&6; }
13336 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13337 $as_echo_n "(cached
) " >&6
13339 if test -n "$RANLIB"; then
13340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13346 test -z "$as_dir" && as_dir=.
13347 for ac_exec_ext in '' $ac_executable_extensions; do
13348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13349 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13350 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13359 RANLIB=$ac_cv_prog_RANLIB
13360 if test -n "$RANLIB"; then
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13362 $as_echo "$RANLIB" >&6; }
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13365 $as_echo "no
" >&6; }
13370 if test -z "$ac_cv_prog_RANLIB"; then
13371 ac_ct_RANLIB=$RANLIB
13372 # Extract the first word of "ranlib
", so it can be a program name with args.
13373 set dummy ranlib; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13375 $as_echo_n "checking
for $ac_word...
" >&6; }
13376 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13377 $as_echo_n "(cached
) " >&6
13379 if test -n "$ac_ct_RANLIB"; then
13380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13389 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13390 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13399 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13400 if test -n "$ac_ct_RANLIB"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13402 $as_echo "$ac_ct_RANLIB" >&6; }
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13405 $as_echo "no
" >&6; }
13408 if test "x
$ac_ct_RANLIB" = x; then
13411 case $cross_compiling:$ac_tool_warned in
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13414 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13415 ac_tool_warned=yes ;;
13417 RANLIB=$ac_ct_RANLIB
13420 RANLIB="$ac_cv_prog_RANLIB"
13423 test -z "$RANLIB" && RANLIB=:
13430 # Determine commands to create old-style static archives.
13431 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13432 old_postinstall_cmds='chmod 644 $oldlib'
13433 old_postuninstall_cmds=
13435 if test -n "$RANLIB"; then
13438 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13441 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13444 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13449 lock_old_archive_extraction=yes ;;
13451 lock_old_archive_extraction=no ;;
13492 # If no C compiler was specified, use CC.
13495 # If no C compiler flags were specified, use CFLAGS.
13496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13498 # Allow CC to be a program name with arguments.
13502 # Check for command to grab the raw symbol name followed by C symbol from nm.
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13504 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13505 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13506 $as_echo_n "(cached
) " >&6
13509 # These are sane defaults that work on at least a few old systems.
13510 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13512 # Character class describing NM global symbol codes.
13513 symcode='[BCDEGRST]'
13515 # Regexp to match symbols that can be accessed directly from C.
13516 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13518 # Define system-specific variables.
13523 cygwin* | mingw* | pw32* | cegcc*)
13524 symcode='[ABCDGISTW]'
13527 if test "$host_cpu" = ia64; then
13528 symcode='[ABCDEGRST]'
13531 irix* | nonstopux*)
13532 symcode='[BCDEGRST]'
13535 symcode='[BCDEGQRST]'
13546 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13554 # If we're using GNU nm, then use its standard symbol codes.
13555 case `$NM -V 2>&1` in
13556 *GNU* | *'with BFD'*)
13557 symcode='[ABCDGIRSTW]' ;;
13560 # Transform an extracted symbol line into a proper C declaration.
13561 # Some systems (esp. on ia64) link data and code symbols differently,
13562 # so use this general approach.
13563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13565 # Transform an extracted symbol line into symbol name and symbol address
13566 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13567 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'"
13569 # Handle CRLF in mingw tool chain
13573 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13577 # Try without a prefix underscore, then with it.
13578 for ac_symprfx in "" "_
"; do
13580 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13581 symxfrm="\\1 $ac_symprfx\\2 \\2"
13583 # Write the raw and C identifiers.
13584 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13585 # Fake it for dumpbin and say T for any non-static function
13586 # and D for any global variable.
13587 # Also find C++ and __fastcall symbols from MSVC++,
13588 # which start with @ or ?.
13589 lt_cv_sys_global_symbol_pipe="$AWK '"\
13590 " {last_section=section; section=\$ 3};"\
13591 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13592 " \$ 0!~/External *\|/{next};"\
13593 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13594 " {if(hide[section]) next};"\
13595 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13596 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13597 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13598 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13599 " ' prfx
=^
$ac_symprfx"
13601 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13604 # Check to see that the pipe works correctly.
13608 cat > conftest.$ac_ext <<_LT_EOF
13613 void nm_test_func(void);
13614 void nm_test_func(void){}
13618 int main(){nm_test_var='a';nm_test_func();return(0);}
13621 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13622 (eval $ac_compile) 2>&5
13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13625 test $ac_status = 0; }; then
13626 # Now try to grab the symbols.
13628 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13629 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13631 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13632 test $ac_status = 0; } && test -s "$nlist"; then
13633 # Try sorting and uniquifying the output.
13634 if sort "$nlist" | uniq > "$nlist"T; then
13635 mv -f "$nlist"T "$nlist"
13640 # Make sure that we snagged all the symbols we need.
13641 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13642 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13643 cat <<_LT_EOF > conftest.$ac_ext
13649 # Now generate the symbol file.
13650 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13652 cat <<_LT_EOF >> conftest.$ac_ext
13654 /* The mapping between symbol names and symbols. */
13659 lt__PROGRAM__LTX_preloaded_symbols[] =
13661 { "@PROGRAM@
", (void *) 0 },
13663 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13664 cat <<\_LT_EOF >> conftest.$ac_ext
13668 /* This works around a problem in FreeBSD linker */
13669 #ifdef FREEBSD_WORKAROUND
13670 static const void *lt_preloaded_setup() {
13671 return lt__PROGRAM__LTX_preloaded_symbols;
13679 # Now try linking the two files.
13680 mv conftest.$ac_objext conftstm.$ac_objext
13681 lt_save_LIBS="$LIBS"
13682 lt_save_CFLAGS="$CFLAGS"
13683 LIBS="conftstm.
$ac_objext"
13684 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13685 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13686 (eval $ac_link) 2>&5
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13689 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13692 LIBS="$lt_save_LIBS"
13693 CFLAGS="$lt_save_CFLAGS"
13695 echo "cannot
find nm_test_func
in $nlist" >&5
13698 echo "cannot
find nm_test_var
in $nlist" >&5
13701 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13704 echo "$progname: failed program was
:" >&5
13705 cat conftest.$ac_ext >&5
13707 rm -rf conftest* conftst*
13709 # Do not use the global_symbol_pipe unless it works.
13710 if test "$pipe_works" = yes; then
13713 lt_cv_sys_global_symbol_pipe=
13719 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13720 lt_cv_sys_global_symbol_to_cdecl=
13722 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13724 $as_echo "failed
" >&6; }
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13727 $as_echo "ok
" >&6; }
13751 # Check whether --enable-libtool-lock was given.
13752 if test "${enable_libtool_lock+set}" = set; then :
13753 enableval=$enable_libtool_lock;
13756 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13758 # Some flags need to be propagated to the compiler or linker for good
13762 # Find out which ABI we are using.
13763 echo 'int i;' > conftest.$ac_ext
13764 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13765 (eval $ac_compile) 2>&5
13767 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13768 test $ac_status = 0; }; then
13769 case `/usr/bin/file conftest.$ac_objext` in
13771 HPUX_IA64_MODE="32"
13774 HPUX_IA64_MODE="64"
13781 # Find out which ABI we are using.
13782 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13783 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13784 (eval $ac_compile) 2>&5
13786 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13787 test $ac_status = 0; }; then
13788 if test "$lt_cv_prog_gnu_ld" = yes; then
13789 case `/usr/bin/file conftest.$ac_objext` in
13791 LD="${LD-ld} -melf32bsmip"
13794 LD="${LD-ld} -melf32bmipn32"
13797 LD="${LD-ld} -melf64bmip"
13801 case `/usr/bin/file conftest.$ac_objext` in
13817 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13818 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13819 # Find out which ABI we are using.
13820 echo 'int i;' > conftest.$ac_ext
13821 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13822 (eval $ac_compile) 2>&5
13824 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13825 test $ac_status = 0; }; then
13826 case `/usr/bin/file conftest.o` in
13829 x86_64-*kfreebsd*-gnu)
13830 LD="${LD-ld} -m elf_i386_fbsd
"
13833 LD="${LD-ld} -m elf_i386
"
13835 ppc64-*linux*|powerpc64-*linux*)
13836 LD="${LD-ld} -m elf32ppclinux
"
13839 LD="${LD-ld} -m elf_s390
"
13842 LD="${LD-ld} -m elf32_sparc
"
13848 x86_64-*kfreebsd*-gnu)
13849 LD="${LD-ld} -m elf_x86_64_fbsd
"
13852 LD="${LD-ld} -m elf_x86_64
"
13854 ppc*-*linux*|powerpc*-*linux*)
13855 LD="${LD-ld} -m elf64ppc
"
13857 s390*-*linux*|s390*-*tpf*)
13858 LD="${LD-ld} -m elf64_s390
"
13861 LD="${LD-ld} -m elf64_sparc
"
13871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13872 SAVE_CFLAGS="$CFLAGS"
13873 CFLAGS="$CFLAGS -belf"
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13875 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13876 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13877 $as_echo_n "(cached
) " >&6
13880 ac_cpp='$CPP $CPPFLAGS'
13881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13896 if ac_fn_c_try_link "$LINENO"; then :
13897 lt_cv_cc_needs_belf=yes
13899 lt_cv_cc_needs_belf=no
13901 rm -f core conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
13904 ac_cpp='$CPP $CPPFLAGS'
13905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13911 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13912 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13913 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13914 CFLAGS="$SAVE_CFLAGS"
13918 # Find out which ABI we are using.
13919 echo 'int i;' > conftest.$ac_ext
13920 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13921 (eval $ac_compile) 2>&5
13923 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13924 test $ac_status = 0; }; then
13925 case `/usr/bin/file conftest.o` in
13927 case $lt_cv_prog_gnu_ld in
13928 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13930 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13942 need_locks="$enable_libtool_lock"
13946 rhapsody* | darwin*)
13947 if test -n "$ac_tool_prefix"; then
13948 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13949 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13951 $as_echo_n "checking
for $ac_word...
" >&6; }
13952 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13953 $as_echo_n "(cached
) " >&6
13955 if test -n "$DSYMUTIL"; then
13956 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13959 for as_dir in $PATH
13962 test -z "$as_dir" && as_dir=.
13963 for ac_exec_ext in '' $ac_executable_extensions; do
13964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13965 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13966 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13975 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13976 if test -n "$DSYMUTIL"; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13978 $as_echo "$DSYMUTIL" >&6; }
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13981 $as_echo "no
" >&6; }
13986 if test -z "$ac_cv_prog_DSYMUTIL"; then
13987 ac_ct_DSYMUTIL=$DSYMUTIL
13988 # Extract the first word of "dsymutil
", so it can be a program name with args.
13989 set dummy dsymutil; ac_word=$2
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13991 $as_echo_n "checking
for $ac_word...
" >&6; }
13992 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13993 $as_echo_n "(cached
) " >&6
13995 if test -n "$ac_ct_DSYMUTIL"; then
13996 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14002 test -z "$as_dir" && as_dir=.
14003 for ac_exec_ext in '' $ac_executable_extensions; do
14004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14005 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14006 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14015 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14016 if test -n "$ac_ct_DSYMUTIL"; then
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14018 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14021 $as_echo "no
" >&6; }
14024 if test "x
$ac_ct_DSYMUTIL" = x; then
14027 case $cross_compiling:$ac_tool_warned in
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14030 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14031 ac_tool_warned=yes ;;
14033 DSYMUTIL=$ac_ct_DSYMUTIL
14036 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14039 if test -n "$ac_tool_prefix"; then
14040 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14041 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14043 $as_echo_n "checking
for $ac_word...
" >&6; }
14044 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14045 $as_echo_n "(cached
) " >&6
14047 if test -n "$NMEDIT"; then
14048 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051 for as_dir in $PATH
14054 test -z "$as_dir" && as_dir=.
14055 for ac_exec_ext in '' $ac_executable_extensions; do
14056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14057 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14058 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14067 NMEDIT=$ac_cv_prog_NMEDIT
14068 if test -n "$NMEDIT"; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14070 $as_echo "$NMEDIT" >&6; }
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14073 $as_echo "no
" >&6; }
14078 if test -z "$ac_cv_prog_NMEDIT"; then
14079 ac_ct_NMEDIT=$NMEDIT
14080 # Extract the first word of "nmedit
", so it can be a program name with args.
14081 set dummy nmedit; ac_word=$2
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14083 $as_echo_n "checking
for $ac_word...
" >&6; }
14084 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14085 $as_echo_n "(cached
) " >&6
14087 if test -n "$ac_ct_NMEDIT"; then
14088 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091 for as_dir in $PATH
14094 test -z "$as_dir" && as_dir=.
14095 for ac_exec_ext in '' $ac_executable_extensions; do
14096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14097 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14098 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14107 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14108 if test -n "$ac_ct_NMEDIT"; then
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14110 $as_echo "$ac_ct_NMEDIT" >&6; }
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14113 $as_echo "no
" >&6; }
14116 if test "x
$ac_ct_NMEDIT" = x; then
14119 case $cross_compiling:$ac_tool_warned in
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14122 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14123 ac_tool_warned=yes ;;
14125 NMEDIT=$ac_ct_NMEDIT
14128 NMEDIT="$ac_cv_prog_NMEDIT"
14131 if test -n "$ac_tool_prefix"; then
14132 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14133 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14135 $as_echo_n "checking
for $ac_word...
" >&6; }
14136 if test "${ac_cv_prog_LIPO+set}" = set; then :
14137 $as_echo_n "(cached
) " >&6
14139 if test -n "$LIPO"; then
14140 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14149 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14159 LIPO=$ac_cv_prog_LIPO
14160 if test -n "$LIPO"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14162 $as_echo "$LIPO" >&6; }
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14165 $as_echo "no
" >&6; }
14170 if test -z "$ac_cv_prog_LIPO"; then
14172 # Extract the first word of "lipo
", so it can be a program name with args.
14173 set dummy lipo; ac_word=$2
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14175 $as_echo_n "checking
for $ac_word...
" >&6; }
14176 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14177 $as_echo_n "(cached
) " >&6
14179 if test -n "$ac_ct_LIPO"; then
14180 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
14188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14189 ac_cv_prog_ac_ct_LIPO="lipo
"
14190 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14199 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14200 if test -n "$ac_ct_LIPO"; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14202 $as_echo "$ac_ct_LIPO" >&6; }
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14205 $as_echo "no
" >&6; }
14208 if test "x
$ac_ct_LIPO" = x; then
14211 case $cross_compiling:$ac_tool_warned in
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14214 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14215 ac_tool_warned=yes ;;
14220 LIPO="$ac_cv_prog_LIPO"
14223 if test -n "$ac_tool_prefix"; then
14224 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14225 set dummy ${ac_tool_prefix}otool; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14227 $as_echo_n "checking
for $ac_word...
" >&6; }
14228 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14229 $as_echo_n "(cached
) " >&6
14231 if test -n "$OTOOL"; then
14232 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14241 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14251 OTOOL=$ac_cv_prog_OTOOL
14252 if test -n "$OTOOL"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14254 $as_echo "$OTOOL" >&6; }
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14257 $as_echo "no
" >&6; }
14262 if test -z "$ac_cv_prog_OTOOL"; then
14264 # Extract the first word of "otool
", so it can be a program name with args.
14265 set dummy otool; ac_word=$2
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14267 $as_echo_n "checking
for $ac_word...
" >&6; }
14268 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14269 $as_echo_n "(cached
) " >&6
14271 if test -n "$ac_ct_OTOOL"; then
14272 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14275 for as_dir in $PATH
14278 test -z "$as_dir" && as_dir=.
14279 for ac_exec_ext in '' $ac_executable_extensions; do
14280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14281 ac_cv_prog_ac_ct_OTOOL="otool
"
14282 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14291 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14292 if test -n "$ac_ct_OTOOL"; then
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14294 $as_echo "$ac_ct_OTOOL" >&6; }
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14297 $as_echo "no
" >&6; }
14300 if test "x
$ac_ct_OTOOL" = x; then
14303 case $cross_compiling:$ac_tool_warned in
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14306 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14307 ac_tool_warned=yes ;;
14312 OTOOL="$ac_cv_prog_OTOOL"
14315 if test -n "$ac_tool_prefix"; then
14316 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14317 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14319 $as_echo_n "checking
for $ac_word...
" >&6; }
14320 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14321 $as_echo_n "(cached
) " >&6
14323 if test -n "$OTOOL64"; then
14324 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327 for as_dir in $PATH
14330 test -z "$as_dir" && as_dir=.
14331 for ac_exec_ext in '' $ac_executable_extensions; do
14332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14333 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14334 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14343 OTOOL64=$ac_cv_prog_OTOOL64
14344 if test -n "$OTOOL64"; then
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14346 $as_echo "$OTOOL64" >&6; }
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14349 $as_echo "no
" >&6; }
14354 if test -z "$ac_cv_prog_OTOOL64"; then
14355 ac_ct_OTOOL64=$OTOOL64
14356 # Extract the first word of "otool64
", so it can be a program name with args.
14357 set dummy otool64; ac_word=$2
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14359 $as_echo_n "checking
for $ac_word...
" >&6; }
14360 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14361 $as_echo_n "(cached
) " >&6
14363 if test -n "$ac_ct_OTOOL64"; then
14364 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14367 for as_dir in $PATH
14370 test -z "$as_dir" && as_dir=.
14371 for ac_exec_ext in '' $ac_executable_extensions; do
14372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14373 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14374 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14383 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14384 if test -n "$ac_ct_OTOOL64"; then
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14386 $as_echo "$ac_ct_OTOOL64" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14389 $as_echo "no
" >&6; }
14392 if test "x
$ac_ct_OTOOL64" = x; then
14395 case $cross_compiling:$ac_tool_warned in
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14398 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14399 ac_tool_warned=yes ;;
14401 OTOOL64=$ac_ct_OTOOL64
14404 OTOOL64="$ac_cv_prog_OTOOL64"
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14434 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14435 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14436 $as_echo_n "(cached
) " >&6
14438 lt_cv_apple_cc_single_mod=no
14439 if test -z "${LT_MULTI_MODULE}"; then
14440 # By default we will add the -single_module flag. You can override
14441 # by either setting the environment variable LT_MULTI_MODULE
14442 # non-empty at configure time, or by adding -multi_module to the
14444 rm -rf libconftest.dylib*
14445 echo "int foo
(void
){return 1;}" > conftest.c
14446 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14447 -dynamiclib -Wl,-single_module conftest.c
" >&5
14448 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14449 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14451 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14452 lt_cv_apple_cc_single_mod=yes
14454 cat conftest.err >&5
14456 rm -rf libconftest.dylib*
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14461 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14463 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14464 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14465 $as_echo_n "(cached
) " >&6
14467 lt_cv_ld_exported_symbols_list=no
14468 save_LDFLAGS=$LDFLAGS
14469 echo "_main
" > conftest.sym
14470 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14482 if ac_fn_c_try_link "$LINENO"; then :
14483 lt_cv_ld_exported_symbols_list=yes
14485 lt_cv_ld_exported_symbols_list=no
14487 rm -f core conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14489 LDFLAGS="$save_LDFLAGS"
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14493 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14495 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14496 if test "${lt_cv_ld_force_load+set}" = set; then :
14497 $as_echo_n "(cached
) " >&6
14499 lt_cv_ld_force_load=no
14500 cat > conftest.c << _LT_EOF
14501 int forced_loaded() { return 2;}
14503 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14504 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14505 echo "$AR cru libconftest.a conftest.o
" >&5
14506 $AR cru libconftest.a conftest.o 2>&5
14507 cat > conftest.c << _LT_EOF
14508 int main() { return 0;}
14510 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14511 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14513 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14514 lt_cv_ld_force_load=yes
14516 cat conftest.err >&5
14518 rm -f conftest.err libconftest.a conftest conftest.c
14519 rm -rf conftest.dSYM
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14523 $as_echo "$lt_cv_ld_force_load" >&6; }
14525 rhapsody* | darwin1.[012])
14526 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14528 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14529 darwin*) # darwin 5.x on
14530 # if running on 10.5 or later, the deployment target defaults
14531 # to the OS version, if on x86, and 10.4, the deployment
14532 # target defaults to 10.4. Don't you love it?
14533 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14534 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14535 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14537 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14539 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14543 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14544 _lt_dar_single_mod='$single_module'
14546 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14547 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14549 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14551 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14552 _lt_dsymutil='~$DSYMUTIL $lib || :'
14559 for ac_header in dlfcn.h
14561 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14562 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14563 cat >>confdefs.h <<_ACEOF
14564 #define HAVE_DLFCN_H 1
14581 enable_win32_dll=no
14584 # Check whether --enable-shared was given.
14585 if test "${enable_shared+set}" = set; then :
14586 enableval=$enable_shared; p=${PACKAGE-default}
14588 yes) enable_shared=yes ;;
14589 no) enable_shared=no ;;
14592 # Look at the argument we got. We use all the common list separators.
14593 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14594 for pkg in $enableval; do
14596 if test "X
$pkg" = "X
$p"; then
14615 # Check whether --enable-static was given.
14616 if test "${enable_static+set}" = set; then :
14617 enableval=$enable_static; p=${PACKAGE-default}
14619 yes) enable_static=yes ;;
14620 no) enable_static=no ;;
14623 # Look at the argument we got. We use all the common list separators.
14624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14625 for pkg in $enableval; do
14627 if test "X
$pkg" = "X
$p"; then
14647 # Check whether --with-pic was given.
14648 if test "${with_pic+set}" = set; then :
14649 withval=$with_pic; pic_mode="$withval"
14655 test -z "$pic_mode" && pic_mode=default
14663 # Check whether --enable-fast-install was given.
14664 if test "${enable_fast_install+set}" = set; then :
14665 enableval=$enable_fast_install; p=${PACKAGE-default}
14667 yes) enable_fast_install=yes ;;
14668 no) enable_fast_install=no ;;
14670 enable_fast_install=no
14671 # Look at the argument we got. We use all the common list separators.
14672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14673 for pkg in $enableval; do
14675 if test "X
$pkg" = "X
$p"; then
14676 enable_fast_install=yes
14683 enable_fast_install=yes
14696 # This can be used to rebuild libtool when needed
14697 LIBTOOL_DEPS="$ltmain"
14699 # Always use our own libtool.
14700 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14727 test -z "$LN_S" && LN_S="ln -s"
14742 if test -n "${ZSH_VERSION+set}" ; then
14743 setopt NO_GLOB_SUBST
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14747 $as_echo_n "checking
for objdir...
" >&6; }
14748 if test "${lt_cv_objdir+set}" = set; then :
14749 $as_echo_n "(cached
) " >&6
14751 rm -f .libs 2>/dev/null
14752 mkdir .libs 2>/dev/null
14753 if test -d .libs; then
14756 # MS-DOS does not allow filenames that begin with a dot.
14759 rmdir .libs 2>/dev/null
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14762 $as_echo "$lt_cv_objdir" >&6; }
14763 objdir=$lt_cv_objdir
14769 cat >>confdefs.h <<_ACEOF
14770 #define LT_OBJDIR "$lt_cv_objdir/"
14778 # AIX sometimes has problems with the GCC collect2 program. For some
14779 # reason, if we set the COLLECT_NAMES environment variable, the problems
14780 # vanish in a puff of smoke.
14781 if test "X
${COLLECT_NAMES+set}" != Xset; then
14783 export COLLECT_NAMES
14788 # Global variables:
14790 can_build_shared=yes
14792 # All known linkers require a `.a' archive for static linking (except MSVC,
14793 # which needs '.lib').
14796 with_gnu_ld="$lt_cv_prog_gnu_ld"
14799 old_CFLAGS="$CFLAGS"
14801 # Set sane defaults for various variables
14802 test -z "$CC" && CC=cc
14803 test -z "$LTCC" && LTCC=$CC
14804 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14805 test -z "$LD" && LD=ld
14806 test -z "$ac_objext" && ac_objext=o
14808 for cc_temp in $compiler""; do
14810 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14811 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14816 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14819 # Only perform the check for file, if the check method requires it
14820 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14821 case $deplibs_check_method in
14823 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14825 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14826 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14827 $as_echo_n "(cached
) " >&6
14831 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14834 lt_save_MAGIC_CMD="$MAGIC_CMD"
14835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14836 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14837 for ac_dir in $ac_dummy; do
14839 test -z "$ac_dir" && ac_dir=.
14840 if test -f $ac_dir/${ac_tool_prefix}file; then
14841 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14842 if test -n "$file_magic_test_file"; then
14843 case $deplibs_check_method in
14845 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14848 $EGREP "$file_magic_regex" > /dev/null; then
14853 *** Warning: the command libtool uses to detect shared libraries,
14854 *** $file_magic_cmd, produces output that libtool cannot recognize.
14855 *** The result is that libtool may fail to recognize shared libraries
14856 *** as such. This will affect the creation of libtool libraries that
14857 *** depend on shared libraries, but programs linked with such libtool
14858 *** libraries will work regardless of this problem. Nevertheless, you
14859 *** may want to report the problem to your system manager and/or to
14860 *** bug-libtool@gnu.org
14870 MAGIC_CMD="$lt_save_MAGIC_CMD"
14875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14876 if test -n "$MAGIC_CMD"; then
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14878 $as_echo "$MAGIC_CMD" >&6; }
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14881 $as_echo "no
" >&6; }
14888 if test -z "$lt_cv_path_MAGIC_CMD"; then
14889 if test -n "$ac_tool_prefix"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14891 $as_echo_n "checking
for file...
" >&6; }
14892 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14893 $as_echo_n "(cached
) " >&6
14897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14900 lt_save_MAGIC_CMD="$MAGIC_CMD"
14901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14902 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14903 for ac_dir in $ac_dummy; do
14905 test -z "$ac_dir" && ac_dir=.
14906 if test -f $ac_dir/file; then
14907 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14908 if test -n "$file_magic_test_file"; then
14909 case $deplibs_check_method in
14911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14914 $EGREP "$file_magic_regex" > /dev/null; then
14919 *** Warning: the command libtool uses to detect shared libraries,
14920 *** $file_magic_cmd, produces output that libtool cannot recognize.
14921 *** The result is that libtool may fail to recognize shared libraries
14922 *** as such. This will affect the creation of libtool libraries that
14923 *** depend on shared libraries, but programs linked with such libtool
14924 *** libraries will work regardless of this problem. Nevertheless, you
14925 *** may want to report the problem to your system manager and/or to
14926 *** bug-libtool@gnu.org
14936 MAGIC_CMD="$lt_save_MAGIC_CMD"
14941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14942 if test -n "$MAGIC_CMD"; then
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14944 $as_echo "$MAGIC_CMD" >&6; }
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14947 $as_echo "no
" >&6; }
14960 # Use C for the default configuration in the libtool script
14964 ac_cpp='$CPP $CPPFLAGS'
14965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14970 # Source file extension for C test sources.
14973 # Object file extension for compiled C test sources.
14977 # Code to be used in simple compile tests
14978 lt_simple_compile_test_code="int some_variable
= 0;"
14980 # Code to be used in simple link tests
14981 lt_simple_link_test_code='int main(){return(0);}'
14989 # If no C compiler was specified, use CC.
14992 # If no C compiler flags were specified, use CFLAGS.
14993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14995 # Allow CC to be a program name with arguments.
14998 # Save the default compiler, since it gets overwritten when the other
14999 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15000 compiler_DEFAULT=$CC
15002 # save warnings/boilerplate of simple test code
15003 ac_outfile=conftest.$ac_objext
15004 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15005 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15006 _lt_compiler_boilerplate=`cat conftest.err`
15009 ac_outfile=conftest.$ac_objext
15010 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15011 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15012 _lt_linker_boilerplate=`cat conftest.err`
15017 ## There is no encapsulation within the following macros, do not change
15018 ## the running order or otherwise move them around unless you know exactly
15019 ## what you are doing...
15020 if test -n "$compiler"; then
15022 lt_prog_compiler_no_builtin_flag=
15024 if test "$GCC" = yes; then
15025 case $cc_basename in
15027 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15029 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15033 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15034 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15035 $as_echo_n "(cached
) " >&6
15037 lt_cv_prog_compiler_rtti_exceptions=no
15038 ac_outfile=conftest.$ac_objext
15039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15040 lt_compiler_flag="-fno-rtti -fno-exceptions"
15041 # Insert the option either (1) after the last *FLAGS variable, or
15042 # (2) before a word containing "conftest.
", or (3) at the end.
15043 # Note that $ac_compile itself does not contain backslashes and begins
15044 # with a dollar sign (not a hyphen), so the echo should work correctly.
15045 # The option is referenced via a variable to avoid confusing sed.
15046 lt_compile=`echo "$ac_compile" | $SED \
15047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15049 -e 's:$: $lt_compiler_flag:'`
15050 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15051 (eval "$lt_compile" 2>conftest.err)
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15055 if (exit $ac_status) && test -s "$ac_outfile"; then
15056 # The compiler can only warn and ignore the option if not recognized
15057 # So say no if there are warnings other than the usual output.
15058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15060 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15061 lt_cv_prog_compiler_rtti_exceptions=yes
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15068 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15070 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15071 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15083 lt_prog_compiler_wl=
15084 lt_prog_compiler_pic=
15085 lt_prog_compiler_static=
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15088 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15090 if test "$GCC" = yes; then
15091 lt_prog_compiler_wl='-Wl,'
15092 lt_prog_compiler_static='-static'
15096 # All AIX code is PIC.
15097 if test "$host_cpu" = ia64; then
15098 # AIX 5 now supports IA64 processor
15099 lt_prog_compiler_static='-Bstatic'
15106 # see comment about AmigaOS4 .so support
15107 lt_prog_compiler_pic='-fPIC'
15110 # FIXME: we need at least 68020 code to build shared libraries, but
15111 # adding the `-m68020' flag to GCC prevents building anything better,
15113 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15118 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15119 # PIC is the default for these OSes.
15122 mingw* | cygwin* | pw32* | os2* | cegcc*)
15123 # This hack is so that the source file can tell whether it is being
15124 # built for inclusion in a dll (and should export symbols for example).
15125 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15126 # (--disable-auto-import) libraries
15127 lt_prog_compiler_pic='-DDLL_EXPORT'
15130 darwin* | rhapsody*)
15131 # PIC is the default on this platform
15132 # Common symbols not allowed in MH_DYLIB files
15133 lt_prog_compiler_pic='-fno-common'
15137 # PIC is the default for Haiku.
15138 # The "-static" flag exists, but is broken.
15139 lt_prog_compiler_static=
15143 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15144 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15145 # sets the default TLS model and affects inlining.
15151 lt_prog_compiler_pic='-fPIC'
15157 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15158 # Instead, we relocate shared libraries at runtime.
15162 # Just because we use GCC doesn't mean we suddenly get shared libraries
15163 # on systems that don't support them.
15164 lt_prog_compiler_can_build_shared=no
15169 # QNX uses GNU C++, but need to define -shared option too, otherwise
15170 # it will coredump.
15171 lt_prog_compiler_pic='-fPIC -shared'
15175 if test -d /usr/nec; then
15176 lt_prog_compiler_pic=-Kconform_pic
15181 lt_prog_compiler_pic='-fPIC'
15185 case $cc_basename in
15186 nvcc*) # Cuda Compiler Driver 2.2
15187 lt_prog_compiler_wl='-Xlinker '
15188 lt_prog_compiler_pic='-Xcompiler -fPIC'
15192 # PORTME Check for flag to pass linker flags through the system compiler.
15195 lt_prog_compiler_wl='-Wl,'
15196 if test "$host_cpu" = ia64; then
15197 # AIX 5 now supports IA64 processor
15198 lt_prog_compiler_static='-Bstatic'
15200 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15204 mingw* | cygwin* | pw32* | os2* | cegcc*)
15205 # This hack is so that the source file can tell whether it is being
15206 # built for inclusion in a dll (and should export symbols for example).
15207 lt_prog_compiler_pic='-DDLL_EXPORT'
15210 hpux9* | hpux10* | hpux11*)
15211 lt_prog_compiler_wl='-Wl,'
15212 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15213 # not for PA HP-UX.
15219 lt_prog_compiler_pic='+Z'
15222 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15223 lt_prog_compiler_static='${wl}-a ${wl}archive'
15226 irix5* | irix6* | nonstopux*)
15227 lt_prog_compiler_wl='-Wl,'
15228 # PIC (with -KPIC) is the default.
15229 lt_prog_compiler_static='-non_shared'
15232 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15233 case $cc_basename in
15234 # old Intel for x86_64 which still supported -KPIC.
15236 lt_prog_compiler_wl='-Wl,'
15237 lt_prog_compiler_pic='-KPIC'
15238 lt_prog_compiler_static='-static'
15240 # icc used to be incompatible with GCC.
15241 # ICC 10 doesn't accept -KPIC any more.
15243 lt_prog_compiler_wl='-Wl,'
15244 lt_prog_compiler_pic='-fPIC'
15245 lt_prog_compiler_static='-static'
15247 # Lahey Fortran 8.1.
15249 lt_prog_compiler_wl='-Wl,'
15250 lt_prog_compiler_pic='--shared'
15251 lt_prog_compiler_static='--static'
15253 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15254 # Portland Group compilers (*not* the Pentium gcc compiler,
15255 # which looks to be a dead project)
15256 lt_prog_compiler_wl='-Wl,'
15257 lt_prog_compiler_pic='-fpic'
15258 lt_prog_compiler_static='-Bstatic'
15261 lt_prog_compiler_wl='-Wl,'
15262 # All Alpha code is PIC.
15263 lt_prog_compiler_static='-non_shared'
15265 xl* | bgxl* | bgf* | mpixl*)
15266 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15267 lt_prog_compiler_wl='-Wl,'
15268 lt_prog_compiler_pic='-qpic'
15269 lt_prog_compiler_static='-qstaticlink'
15272 case `$CC -V 2>&1 | sed 5q` in
15273 *Sun\ F* | *Sun*Fortran*)
15274 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15275 lt_prog_compiler_pic='-KPIC'
15276 lt_prog_compiler_static='-Bstatic'
15277 lt_prog_compiler_wl=''
15281 lt_prog_compiler_pic='-KPIC'
15282 lt_prog_compiler_static='-Bstatic'
15283 lt_prog_compiler_wl='-Wl,'
15291 lt_prog_compiler_pic='-KPIC'
15292 lt_prog_compiler_static='-Bstatic'
15296 # QNX uses GNU C++, but need to define -shared option too, otherwise
15297 # it will coredump.
15298 lt_prog_compiler_pic='-fPIC -shared'
15301 osf3* | osf4* | osf5*)
15302 lt_prog_compiler_wl='-Wl,'
15303 # All OSF/1 code is PIC.
15304 lt_prog_compiler_static='-non_shared'
15308 lt_prog_compiler_static='-non_shared'
15312 lt_prog_compiler_pic='-KPIC'
15313 lt_prog_compiler_static='-Bstatic'
15314 case $cc_basename in
15315 f77* | f90* | f95*)
15316 lt_prog_compiler_wl='-Qoption ld ';;
15318 lt_prog_compiler_wl='-Wl,';;
15323 lt_prog_compiler_wl='-Qoption ld '
15324 lt_prog_compiler_pic='-PIC'
15325 lt_prog_compiler_static='-Bstatic'
15328 sysv4 | sysv4.2uw2* | sysv4.3*)
15329 lt_prog_compiler_wl='-Wl,'
15330 lt_prog_compiler_pic='-KPIC'
15331 lt_prog_compiler_static='-Bstatic'
15335 if test -d /usr/nec ;then
15336 lt_prog_compiler_pic='-Kconform_pic'
15337 lt_prog_compiler_static='-Bstatic'
15341 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15342 lt_prog_compiler_wl='-Wl,'
15343 lt_prog_compiler_pic='-KPIC'
15344 lt_prog_compiler_static='-Bstatic'
15348 lt_prog_compiler_wl='-Wl,'
15349 lt_prog_compiler_can_build_shared=no
15353 lt_prog_compiler_pic='-pic'
15354 lt_prog_compiler_static='-Bstatic'
15358 lt_prog_compiler_can_build_shared=no
15364 # For platforms which do not support PIC, -DPIC is meaningless:
15366 lt_prog_compiler_pic=
15369 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15373 $as_echo "$lt_prog_compiler_pic" >&6; }
15381 # Check to make sure the PIC flag actually works.
15383 if test -n "$lt_prog_compiler_pic"; then
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15385 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15386 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15387 $as_echo_n "(cached
) " >&6
15389 lt_cv_prog_compiler_pic_works=no
15390 ac_outfile=conftest.$ac_objext
15391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15392 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15393 # Insert the option either (1) after the last *FLAGS variable, or
15394 # (2) before a word containing "conftest.
", or (3) at the end.
15395 # Note that $ac_compile itself does not contain backslashes and begins
15396 # with a dollar sign (not a hyphen), so the echo should work correctly.
15397 # The option is referenced via a variable to avoid confusing sed.
15398 lt_compile=`echo "$ac_compile" | $SED \
15399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15401 -e 's:$: $lt_compiler_flag:'`
15402 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15403 (eval "$lt_compile" 2>conftest.err)
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15407 if (exit $ac_status) && test -s "$ac_outfile"; then
15408 # The compiler can only warn and ignore the option if not recognized
15409 # So say no if there are warnings other than the usual output.
15410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15413 lt_cv_prog_compiler_pic_works=yes
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15420 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15422 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15423 case $lt_prog_compiler_pic in
15425 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15428 lt_prog_compiler_pic=
15429 lt_prog_compiler_can_build_shared=no
15440 # Check to make sure the static flag actually works.
15442 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15444 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15445 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15446 $as_echo_n "(cached
) " >&6
15448 lt_cv_prog_compiler_static_works=no
15449 save_LDFLAGS="$LDFLAGS"
15450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15453 # The linker can only warn and ignore the option if not recognized
15454 # So say no if there are warnings
15455 if test -s conftest.err; then
15456 # Append any errors to the config.log.
15457 cat conftest.err 1>&5
15458 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15460 if diff conftest.exp conftest.er2 >/dev/null; then
15461 lt_cv_prog_compiler_static_works=yes
15464 lt_cv_prog_compiler_static_works=yes
15468 LDFLAGS="$save_LDFLAGS"
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15472 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15474 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15477 lt_prog_compiler_static=
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15487 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15488 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15489 $as_echo_n "(cached
) " >&6
15491 lt_cv_prog_compiler_c_o=no
15492 $RM -r conftest 2>/dev/null
15496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15498 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15499 # Insert the option either (1) after the last *FLAGS variable, or
15500 # (2) before a word containing "conftest.
", or (3) at the end.
15501 # Note that $ac_compile itself does not contain backslashes and begins
15502 # with a dollar sign (not a hyphen), so the echo should work correctly.
15503 lt_compile=`echo "$ac_compile" | $SED \
15504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15506 -e 's:$: $lt_compiler_flag:'`
15507 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15508 (eval "$lt_compile" 2>out/conftest.err)
15510 cat out/conftest.err >&5
15511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15512 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15514 # The compiler can only warn and ignore the option if not recognized
15515 # So say no if there are warnings
15516 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15517 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15518 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15519 lt_cv_prog_compiler_c_o=yes
15524 # SGI C++ compiler will create directory out/ii_files/ for
15525 # template instantiation
15526 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15527 $RM out/* && rmdir out
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15534 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15542 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15543 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15544 $as_echo_n "(cached
) " >&6
15546 lt_cv_prog_compiler_c_o=no
15547 $RM -r conftest 2>/dev/null
15551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15553 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15554 # Insert the option either (1) after the last *FLAGS variable, or
15555 # (2) before a word containing "conftest.
", or (3) at the end.
15556 # Note that $ac_compile itself does not contain backslashes and begins
15557 # with a dollar sign (not a hyphen), so the echo should work correctly.
15558 lt_compile=`echo "$ac_compile" | $SED \
15559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15561 -e 's:$: $lt_compiler_flag:'`
15562 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15563 (eval "$lt_compile" 2>out/conftest.err)
15565 cat out/conftest.err >&5
15566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15569 # The compiler can only warn and ignore the option if not recognized
15570 # So say no if there are warnings
15571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15574 lt_cv_prog_compiler_c_o=yes
15579 # SGI C++ compiler will create directory out/ii_files/ for
15580 # template instantiation
15581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15582 $RM out/* && rmdir out
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15589 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15594 hard_links="nottested
"
15595 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15596 # do not overwrite the value of need_locks provided by the user
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15598 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15603 ln conftest.a conftest.b 2>&5 || hard_links=no
15604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15606 $as_echo "$hard_links" >&6; }
15607 if test "$hard_links" = no; then
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15609 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15622 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15625 allow_undefined_flag=
15626 always_export_symbols=no
15628 archive_expsym_cmds=
15629 compiler_needs_object=no
15630 enable_shared_with_static_runtimes=no
15631 export_dynamic_flag_spec=
15632 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15633 hardcode_automatic=no
15635 hardcode_direct_absolute=no
15636 hardcode_libdir_flag_spec=
15637 hardcode_libdir_flag_spec_ld=
15638 hardcode_libdir_separator=
15639 hardcode_minus_L=no
15640 hardcode_shlibpath_var=unsupported
15642 link_all_deplibs=unknown
15644 module_expsym_cmds=
15645 old_archive_from_new_cmds=
15646 old_archive_from_expsyms_cmds=
15647 thread_safe_flag_spec=
15648 whole_archive_flag_spec=
15649 # include_expsyms should be a list of space-separated symbols to be *always*
15650 # included in the symbol list
15652 # exclude_expsyms can be an extended regexp of symbols to exclude
15653 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15654 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15655 # as well as any symbol that contains `d'.
15656 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15657 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15658 # platforms (ab)use it in PIC code, but their linkers get confused if
15659 # the symbol is explicitly referenced. Since portable code cannot
15660 # rely on this symbol name, it's probably fine to never include it in
15661 # preloaded symbol tables.
15662 # Exclude shared library initialization/finalization symbols.
15663 extract_expsyms_cmds=
15666 cygwin* | mingw* | pw32* | cegcc*)
15667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15668 # When not using gcc, we currently assume that we are using
15669 # Microsoft Visual C++.
15670 if test "$GCC" != yes; then
15675 # we just hope/assume this is gcc and not c89 (= MSVC++)
15685 # On some targets, GNU ld is compatible enough with the native linker
15686 # that we're better off using the native interface for both.
15687 lt_use_gnu_ld_interface=no
15688 if test "$with_gnu_ld" = yes; then
15691 # The AIX port of GNU ld has always aspired to compatibility
15692 # with the native linker. However, as the warning in the GNU ld
15693 # block says, versions before 2.19.5* couldn't really create working
15694 # shared libraries, regardless of the interface used.
15695 case `$LD -v 2>&1` in
15696 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15697 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15698 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15700 lt_use_gnu_ld_interface=yes
15705 lt_use_gnu_ld_interface=yes
15710 if test "$lt_use_gnu_ld_interface" = yes; then
15711 # If archive_cmds runs LD, not CC, wlarc should be empty
15714 # Set some defaults for GNU ld with shared library support. These
15715 # are reset later if shared libraries are not supported. Putting them
15716 # here allows them to be overridden if necessary.
15717 runpath_var=LD_RUN_PATH
15718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15719 export_dynamic_flag_spec='${wl}--export-dynamic'
15720 # ancient GNU ld didn't support --whole-archive et. al.
15721 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15722 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15724 whole_archive_flag_spec=
15726 supports_anon_versioning=no
15727 case `$LD -v 2>&1` in
15728 *GNU\ gold*) supports_anon_versioning=yes ;;
15729 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15730 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15731 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15732 *\ 2.11.*) ;; # other 2.11 versions
15733 *) supports_anon_versioning=yes ;;
15736 # See if GNU ld supports shared libraries.
15739 # On AIX/PPC, the GNU linker is very broken
15740 if test "$host_cpu" != ia64; then
15744 *** Warning: the GNU linker, at least up to release 2.19, is reported
15745 *** to be unable to reliably create shared libraries on AIX.
15746 *** Therefore, libtool is disabling shared libraries support. If you
15747 *** really care for shared libraries, you may want to install binutils
15748 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15749 *** You will then need to restart the configuration process.
15758 # see comment about AmigaOS4 .so support
15759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15760 archive_expsym_cmds=''
15763 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)'
15764 hardcode_libdir_flag_spec
='-L$libdir'
15765 hardcode_minus_L
=yes
15771 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15772 allow_undefined_flag
=unsupported
15773 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15774 # support --undefined. This deserves some investigation. FIXME
15775 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15781 cygwin
* | mingw
* | pw32
* | cegcc
*)
15782 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15783 # as there is no search path for DLLs.
15784 hardcode_libdir_flag_spec
='-L$libdir'
15785 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15786 allow_undefined_flag
=unsupported
15787 always_export_symbols
=no
15788 enable_shared_with_static_runtimes
=yes
15789 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15791 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15792 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15793 # If the export-symbols file already is a .def file (1st line
15794 # is EXPORTS), use it as is; otherwise, prepend...
15795 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15796 cp $export_symbols $output_objdir/$soname.def;
15798 echo EXPORTS > $output_objdir/$soname.def;
15799 cat $export_symbols >> $output_objdir/$soname.def;
15801 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15808 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 link_all_deplibs
=yes
15814 hardcode_shlibpath_var
=no
15815 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15816 export_dynamic_flag_spec
='${wl}-E'
15817 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15818 # Instead, shared libraries are loaded at an image base (0x10000000 by
15819 # default) and relocated if they conflict, which is a slow very memory
15820 # consuming and fragmenting process. To avoid this, we pick a random,
15821 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15822 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15823 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15824 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'
15827 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15829 if test "$host_os" = linux-dietlibc
; then
15830 case $cc_basename in
15831 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15834 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15835 && test "$tmp_diet" = no
15838 tmp_sharedflag
='-shared'
15839 case $cc_basename,$host_cpu in
15840 pgcc
*) # Portland Group C compiler
15841 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'
15842 tmp_addflag
=' $pic_flag'
15844 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15845 # Portland Group f77 and f90 compilers
15846 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'
15847 tmp_addflag
=' $pic_flag -Mnomain' ;;
15848 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15849 tmp_addflag
=' -i_dynamic' ;;
15850 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15851 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15852 ifc
* | ifort
*) # Intel Fortran compiler
15853 tmp_addflag
=' -nofor_main' ;;
15854 lf95
*) # Lahey Fortran 8.1
15855 whole_archive_flag_spec
=
15856 tmp_sharedflag
='--shared' ;;
15857 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15858 tmp_sharedflag
='-qmkshrobj'
15860 nvcc
*) # Cuda Compiler Driver 2.2
15861 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'
15862 compiler_needs_object
=yes
15865 case `$CC -V 2>&1 | sed 5q` in
15866 *Sun\ C
*) # Sun C 5.9
15867 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'
15868 compiler_needs_object
=yes
15869 tmp_sharedflag
='-G' ;;
15870 *Sun\ F
*) # Sun Fortran 8.3
15871 tmp_sharedflag
='-G' ;;
15873 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15875 if test "x$supports_anon_versioning" = xyes
; then
15876 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15877 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15878 echo "local: *; };" >> $output_objdir/$libname.ver~
15879 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15882 case $cc_basename in
15883 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15884 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15885 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15886 hardcode_libdir_flag_spec
=
15887 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15888 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15889 if test "x$supports_anon_versioning" = xyes
; then
15890 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15892 echo "local: *; };" >> $output_objdir/$libname.ver~
15893 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15903 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15904 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15907 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15908 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15913 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15917 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15918 *** create shared libraries on Solaris systems. Therefore, libtool
15919 *** is disabling shared libraries support. We urge you to upgrade GNU
15920 *** binutils to release 2.9.1 or newer. Another option is to modify
15921 *** your PATH or compiler configuration so that the native linker is
15922 *** used, and then restart.
15925 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15926 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15927 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15933 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15934 case `$LD -v 2>&1` in
15935 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15939 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15940 *** reliably create shared libraries on SCO systems. Therefore, libtool
15941 *** is disabling shared libraries support. We urge you to upgrade GNU
15942 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15943 *** your PATH or compiler configuration so that the native linker is
15944 *** used, and then restart.
15949 # For security reasons, it is highly recommended that you always
15950 # use absolute paths for naming shared libraries, and exclude the
15951 # DT_RUNPATH tag from executables and libraries. But doing so
15952 # requires that you compile everything twice, which is a pain.
15953 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15954 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15955 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15956 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15965 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15967 hardcode_direct
=yes
15968 hardcode_shlibpath_var
=no
15972 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15973 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15974 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15981 if test "$ld_shlibs" = no
; then
15983 hardcode_libdir_flag_spec
=
15984 export_dynamic_flag_spec
=
15985 whole_archive_flag_spec
=
15988 # PORTME fill in a description of your system's linker (not GNU ld)
15991 allow_undefined_flag
=unsupported
15992 always_export_symbols
=yes
15993 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'
15994 # Note: this linker hardcodes the directories in LIBPATH if there
15995 # are no directories specified by -L.
15996 hardcode_minus_L
=yes
15997 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15998 # Neither direct hardcoding nor static linking is supported with a
16000 hardcode_direct
=unsupported
16005 if test "$host_cpu" = ia64
; then
16006 # On IA64, the linker does run time linking by default, so we don't
16007 # have to do anything special.
16008 aix_use_runtimelinking
=no
16009 exp_sym_flag
='-Bexport'
16012 # If we're using GNU nm, then we don't want the "-C" option.
16013 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16014 # Also, AIX nm treats weak defined symbols like other global
16015 # defined symbols, whereas GNU nm marks them as "W".
16016 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16017 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'
16019 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'
16021 aix_use_runtimelinking
=no
16023 # Test if we are trying to use run time linking or normal
16024 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16025 # need to do runtime linking.
16026 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16027 for ld_flag
in $LDFLAGS; do
16028 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16029 aix_use_runtimelinking
=yes
16036 exp_sym_flag
='-bexport'
16037 no_entry_flag
='-bnoentry'
16040 # When large executables or shared objects are built, AIX ld can
16041 # have problems creating the table of contents. If linking a library
16042 # or program results in "error TOC overflow" add -mminimal-toc to
16043 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16044 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16047 hardcode_direct
=yes
16048 hardcode_direct_absolute
=yes
16049 hardcode_libdir_separator
=':'
16050 link_all_deplibs
=yes
16051 file_list_spec
='${wl}-f,'
16053 if test "$GCC" = yes; then
16054 case $host_os in aix4.
[012]|aix4.
[012].
*)
16055 # We only want to do this on AIX 4.2 and lower, the check
16056 # below for broken collect2 doesn't work under 4.3+
16057 collect2name
=`${CC} -print-prog-name=collect2`
16058 if test -f "$collect2name" &&
16059 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16061 # We have reworked collect2
16064 # We have old collect2
16065 hardcode_direct
=unsupported
16066 # It fails to find uninstalled libraries when the uninstalled
16067 # path is not listed in the libpath. Setting hardcode_minus_L
16068 # to unsupported forces relinking
16069 hardcode_minus_L
=yes
16070 hardcode_libdir_flag_spec
='-L$libdir'
16071 hardcode_libdir_separator
=
16075 shared_flag
='-shared'
16076 if test "$aix_use_runtimelinking" = yes; then
16077 shared_flag
="$shared_flag "'${wl}-G'
16081 if test "$host_cpu" = ia64
; then
16082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16083 # chokes on -Wl,-G. The following line is correct:
16086 if test "$aix_use_runtimelinking" = yes; then
16087 shared_flag
='${wl}-G'
16089 shared_flag
='${wl}-bM:SRE'
16094 export_dynamic_flag_spec
='${wl}-bexpall'
16095 # It seems that -bexpall does not export symbols beginning with
16096 # underscore (_), so it is better to generate a list of symbols to export.
16097 always_export_symbols
=yes
16098 if test "$aix_use_runtimelinking" = yes; then
16099 # Warning - without using the other runtime loading flags (-brtl),
16100 # -berok will link without error, but may produce a broken library.
16101 allow_undefined_flag
='-berok'
16102 # Determine the default libpath from the value encoded in an
16103 # empty executable.
16104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16105 /* end confdefs.h. */
16115 if ac_fn_c_try_link
"$LINENO"; then :
16117 lt_aix_libpath_sed
='
16118 /Import File Strings/,/^$/ {
16124 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16125 # Check for a 64-bit object if we didn't find anything.
16126 if test -z "$aix_libpath"; then
16127 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16130 rm -f core conftest.err conftest.
$ac_objext \
16131 conftest
$ac_exeext conftest.
$ac_ext
16132 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16134 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16135 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"
16137 if test "$host_cpu" = ia64
; then
16138 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16139 allow_undefined_flag
="-z nodefs"
16140 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"
16142 # Determine the default libpath from the value encoded in an
16143 # empty executable.
16144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h. */
16155 if ac_fn_c_try_link
"$LINENO"; then :
16157 lt_aix_libpath_sed
='
16158 /Import File Strings/,/^$/ {
16164 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16165 # Check for a 64-bit object if we didn't find anything.
16166 if test -z "$aix_libpath"; then
16167 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16170 rm -f core conftest.err conftest.
$ac_objext \
16171 conftest
$ac_exeext conftest.
$ac_ext
16172 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16174 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16175 # Warning - without using the other run time loading flags,
16176 # -berok will link without error, but may produce a broken library.
16177 no_undefined_flag
=' ${wl}-bernotok'
16178 allow_undefined_flag
=' ${wl}-berok'
16179 if test "$with_gnu_ld" = yes; then
16180 # We only use this code for GNU lds that support --whole-archive.
16181 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16183 # Exported symbols can be pulled into shared objects from archives
16184 whole_archive_flag_spec
='$convenience'
16186 archive_cmds_need_lc
=yes
16187 # This is similar to how AIX traditionally builds its shared libraries.
16188 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'
16196 # see comment about AmigaOS4 .so support
16197 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16198 archive_expsym_cmds
=''
16201 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)'
16202 hardcode_libdir_flag_spec
='-L$libdir'
16203 hardcode_minus_L
=yes
16209 export_dynamic_flag_spec
=-rdynamic
16212 cygwin
* | mingw
* | pw32
* | cegcc
*)
16213 # When not using gcc, we currently assume that we are using
16214 # Microsoft Visual C++.
16215 # hardcode_libdir_flag_spec is actually meaningless, as there is
16216 # no search path for DLLs.
16217 hardcode_libdir_flag_spec
=' '
16218 allow_undefined_flag
=unsupported
16219 # Tell ltmain to make .lib files, not .a files.
16221 # Tell ltmain to make .dll files, not .so files.
16223 # FIXME: Setting linknames here is a bad hack.
16224 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16225 # The linker will automatically build a .lib file if we build a DLL.
16226 old_archive_from_new_cmds
='true'
16227 # FIXME: Should let the user specify the lib program.
16228 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16229 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16230 enable_shared_with_static_runtimes
=yes
16233 darwin
* | rhapsody
*)
16236 archive_cmds_need_lc
=no
16238 hardcode_automatic
=yes
16239 hardcode_shlibpath_var
=unsupported
16240 if test "$lt_cv_ld_force_load" = "yes"; then
16241 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\"`'
16243 whole_archive_flag_spec
=''
16245 link_all_deplibs
=yes
16246 allow_undefined_flag
="$_lt_dar_allow_undefined"
16247 case $cc_basename in
16248 ifort
*) _lt_dar_can_shared
=yes ;;
16249 *) _lt_dar_can_shared
=$GCC ;;
16251 if test "$_lt_dar_can_shared" = "yes"; then
16252 output_verbose_link_cmd
=func_echo_all
16253 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16254 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16255 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}"
16256 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}"
16265 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266 hardcode_libdir_flag_spec
='-L$libdir'
16267 hardcode_shlibpath_var
=no
16270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16271 # support. Future versions do this automatically, but an explicit c++rt0.o
16272 # does not break anything, and helps significantly (at the cost of a little
16275 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16276 hardcode_libdir_flag_spec
='-R$libdir'
16277 hardcode_direct
=yes
16278 hardcode_shlibpath_var
=no
16281 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16283 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16284 hardcode_direct
=yes
16285 hardcode_minus_L
=yes
16286 hardcode_shlibpath_var
=no
16289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16290 freebsd
* | dragonfly
*)
16291 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16292 hardcode_libdir_flag_spec
='-R$libdir'
16293 hardcode_direct
=yes
16294 hardcode_shlibpath_var
=no
16298 if test "$GCC" = yes; then
16299 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'
16301 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'
16303 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16304 hardcode_libdir_separator
=:
16305 hardcode_direct
=yes
16307 # hardcode_minus_L: Not really in the search PATH,
16308 # but as the default location of the library.
16309 hardcode_minus_L
=yes
16310 export_dynamic_flag_spec
='${wl}-E'
16314 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16315 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16317 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16319 if test "$with_gnu_ld" = no
; then
16320 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16321 hardcode_libdir_flag_spec_ld
='+b $libdir'
16322 hardcode_libdir_separator
=:
16323 hardcode_direct
=yes
16324 hardcode_direct_absolute
=yes
16325 export_dynamic_flag_spec
='${wl}-E'
16326 # hardcode_minus_L: Not really in the search PATH,
16327 # but as the default location of the library.
16328 hardcode_minus_L
=yes
16333 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16336 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16339 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16342 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16348 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16351 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16355 # Older versions of the 11.00 compiler do not understand -b yet
16356 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16358 $as_echo_n "checking if $CC understands -b... " >&6; }
16359 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16360 $as_echo_n "(cached) " >&6
16362 lt_cv_prog_compiler__b
=no
16363 save_LDFLAGS
="$LDFLAGS"
16364 LDFLAGS
="$LDFLAGS -b"
16365 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16366 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16367 # The linker can only warn and ignore the option if not recognized
16368 # So say no if there are warnings
16369 if test -s conftest.err
; then
16370 # Append any errors to the config.log.
16371 cat conftest.err
1>&5
16372 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16373 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16374 if diff conftest.exp conftest.er2
>/dev
/null
; then
16375 lt_cv_prog_compiler__b
=yes
16378 lt_cv_prog_compiler__b
=yes
16382 LDFLAGS
="$save_LDFLAGS"
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16386 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16388 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16389 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16391 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16397 if test "$with_gnu_ld" = no
; then
16398 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16399 hardcode_libdir_separator
=:
16404 hardcode_shlibpath_var
=no
16407 hardcode_direct
=yes
16408 hardcode_direct_absolute
=yes
16409 export_dynamic_flag_spec
='${wl}-E'
16411 # hardcode_minus_L: Not really in the search PATH,
16412 # but as the default location of the library.
16413 hardcode_minus_L
=yes
16419 irix5
* | irix6
* | nonstopux
*)
16420 if test "$GCC" = yes; then
16421 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'
16422 # Try to use the -exported_symbol ld option, if it does not
16423 # work, assume that -exports_file does not work either and
16424 # implicitly export all symbols.
16425 save_LDFLAGS
="$LDFLAGS"
16426 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16431 if ac_fn_c_try_link
"$LINENO"; then :
16432 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'
16435 rm -f core conftest.err conftest.
$ac_objext \
16436 conftest
$ac_exeext conftest.
$ac_ext
16437 LDFLAGS
="$save_LDFLAGS"
16439 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'
16440 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'
16442 archive_cmds_need_lc
='no'
16443 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16444 hardcode_libdir_separator
=:
16446 link_all_deplibs
=yes
16450 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16451 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16453 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16455 hardcode_libdir_flag_spec
='-R$libdir'
16456 hardcode_direct
=yes
16457 hardcode_shlibpath_var
=no
16461 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16462 hardcode_direct
=yes
16463 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16464 hardcode_libdir_separator
=:
16465 hardcode_shlibpath_var
=no
16472 if test -f /usr
/libexec
/ld.so
; then
16473 hardcode_direct
=yes
16474 hardcode_shlibpath_var
=no
16475 hardcode_direct_absolute
=yes
16476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16477 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16478 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16479 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16480 export_dynamic_flag_spec
='${wl}-E'
16483 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16484 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16485 hardcode_libdir_flag_spec
='-R$libdir'
16488 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16489 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16499 hardcode_libdir_flag_spec
='-L$libdir'
16500 hardcode_minus_L
=yes
16501 allow_undefined_flag
=unsupported
16502 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'
16503 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16507 if test "$GCC" = yes; then
16508 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16509 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'
16511 allow_undefined_flag
=' -expect_unresolved \*'
16512 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'
16514 archive_cmds_need_lc
='no'
16515 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16516 hardcode_libdir_separator
=:
16519 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16520 if test "$GCC" = yes; then
16521 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16522 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'
16523 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16525 allow_undefined_flag
=' -expect_unresolved \*'
16526 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'
16527 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~
16528 $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'
16530 # Both c and cxx compiler support -rpath directly
16531 hardcode_libdir_flag_spec
='-rpath $libdir'
16533 archive_cmds_need_lc
='no'
16534 hardcode_libdir_separator
=:
16538 no_undefined_flag
=' -z defs'
16539 if test "$GCC" = yes; then
16541 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16543 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16545 case `$CC -V 2>&1` in
16548 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16549 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16550 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16554 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16555 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16556 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16560 hardcode_libdir_flag_spec
='-R$libdir'
16561 hardcode_shlibpath_var
=no
16563 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16565 # The compiler driver will combine and reorder linker options,
16566 # but understands `-z linker_flag'. GCC discards it without `$wl',
16567 # but is careful enough not to reorder.
16568 # Supported since Solaris 2.6 (maybe 2.5.1?)
16569 if test "$GCC" = yes; then
16570 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16572 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16576 link_all_deplibs
=yes
16580 if test "x$host_vendor" = xsequent
; then
16581 # Use $CC to link under sequent, because it throws in some extra .o
16582 # files that make .init and .fini sections work.
16583 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16585 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_libdir_flag_spec
='-L$libdir'
16588 hardcode_direct
=yes
16589 hardcode_minus_L
=yes
16590 hardcode_shlibpath_var
=no
16594 case $host_vendor in
16596 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 hardcode_direct
=yes # is this really true???
16600 ## LD is ld it makes a PLAMLIB
16601 ## CC just makes a GrossModule.
16602 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16603 reload_cmds
='$CC -r -o $output$reload_objs'
16607 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16608 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16611 runpath_var
='LD_RUN_PATH'
16612 hardcode_shlibpath_var
=no
16616 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617 hardcode_shlibpath_var
=no
16618 export_dynamic_flag_spec
='-Bexport'
16622 if test -d /usr
/nec
; then
16623 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16624 hardcode_shlibpath_var
=no
16625 runpath_var
=LD_RUN_PATH
16626 hardcode_runpath_var
=yes
16631 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16632 no_undefined_flag
='${wl}-z,text'
16633 archive_cmds_need_lc
=no
16634 hardcode_shlibpath_var
=no
16635 runpath_var
='LD_RUN_PATH'
16637 if test "$GCC" = yes; then
16638 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16639 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16641 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16642 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16646 sysv5
* | sco3.2v5
* | sco5v6
*)
16647 # Note: We can NOT use -z defs as we might desire, because we do not
16648 # link with -lc, and that would cause any symbols used from libc to
16649 # always be unresolved, which means just about no library would
16650 # ever link correctly. If we're not using GNU ld we use -z text
16651 # though, which does catch some bad symbols but isn't as heavy-handed
16653 no_undefined_flag
='${wl}-z,text'
16654 allow_undefined_flag
='${wl}-z,nodefs'
16655 archive_cmds_need_lc
=no
16656 hardcode_shlibpath_var
=no
16657 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16658 hardcode_libdir_separator
=':'
16659 link_all_deplibs
=yes
16660 export_dynamic_flag_spec
='${wl}-Bexport'
16661 runpath_var
='LD_RUN_PATH'
16663 if test "$GCC" = yes; then
16664 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16665 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16667 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16668 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16673 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16674 hardcode_libdir_flag_spec
='-L$libdir'
16675 hardcode_shlibpath_var
=no
16683 if test x
$host_vendor = xsni
; then
16685 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16686 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16693 $as_echo "$ld_shlibs" >&6; }
16694 test "$ld_shlibs" = no
&& can_build_shared
=no
16696 with_gnu_ld
=$with_gnu_ld
16713 # Do we need to explicitly link libc?
16715 case "x$archive_cmds_need_lc" in
16717 # Assume -lc should be added
16718 archive_cmds_need_lc
=yes
16720 if test "$enable_shared" = yes && test "$GCC" = yes; then
16721 case $archive_cmds in
16723 # FIXME: we may have to deal with multi-command sequences.
16726 # Test whether the compiler implicitly links with -lc since on some
16727 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16728 # to ld, don't add -lc before -lgcc.
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16730 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16731 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16732 $as_echo_n "(cached) " >&6
16735 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16738 (eval $ac_compile) 2>&5
16740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16741 test $ac_status = 0; } 2>conftest.err
; then
16744 libobjs
=conftest.
$ac_objext
16746 wl
=$lt_prog_compiler_wl
16747 pic_flag
=$lt_prog_compiler_pic
16753 lt_save_allow_undefined_flag
=$allow_undefined_flag
16754 allow_undefined_flag
=
16755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16756 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16759 test $ac_status = 0; }
16761 lt_cv_archive_cmds_need_lc
=no
16763 lt_cv_archive_cmds_need_lc
=yes
16765 allow_undefined_flag
=$lt_save_allow_undefined_flag
16767 cat conftest.err
1>&5
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16773 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16774 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16938 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16940 if test "$GCC" = yes; then
16942 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16943 *) lt_awk_arg
="/^libraries:/" ;;
16946 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16947 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16949 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16950 case $lt_search_path_spec in
16952 # if the path contains ";" then we assume it to be the separator
16953 # otherwise default to the standard path separator (i.e. ":") - it is
16954 # assumed that no part of a normal pathname contains ";" but that should
16955 # okay in the real world where ";" in dirpaths is itself problematic.
16956 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16959 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16962 # Ok, now we have the path, separated by spaces, we can step through it
16963 # and add multilib dir if necessary.
16964 lt_tmp_lt_search_path_spec
=
16965 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16966 for lt_sys_path
in $lt_search_path_spec; do
16967 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16968 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16970 test -d "$lt_sys_path" && \
16971 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16974 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16975 BEGIN {RS=" "; FS="/|\n";} {
16978 for (lt_i = NF; lt_i > 0; lt_i--) {
16979 if ($lt_i != "" && $lt_i != ".") {
16980 if ($lt_i == "..") {
16983 if (lt_count == 0) {
16984 lt_foo="/" $lt_i lt_foo;
16991 if (lt_foo != "") { lt_freq[lt_foo]++; }
16992 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16994 # AWK program above erroneously prepends '/' to C:/dos/paths
16997 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16998 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17000 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17002 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17004 library_names_spec
=
17005 libname_spec
='lib$name'
17009 postuninstall_cmds
=
17013 shlibpath_overrides_runpath
=unknown
17015 dynamic_linker
="$host_os ld.so"
17016 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17017 need_lib_prefix
=unknown
17018 hardcode_into_libs
=no
17020 # when you set need_version to no, make sure it does not cause -set_version
17021 # flags to be left without arguments
17022 need_version
=unknown
17027 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17028 shlibpath_var
=LIBPATH
17030 # AIX 3 has no versioning support, so we append a major version to the name.
17031 soname_spec
='${libname}${release}${shared_ext}$major'
17038 hardcode_into_libs
=yes
17039 if test "$host_cpu" = ia64
; then
17040 # AIX 5 supports IA64
17041 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17042 shlibpath_var
=LD_LIBRARY_PATH
17044 # With GCC up to 2.95.x, collect2 would create an import file
17045 # for dependence libraries. The import file would start with
17046 # the line `#! .'. This would cause the generated library to
17047 # depend on `.', always an invalid library. This was fixed in
17048 # development snapshots of GCC prior to 3.0.
17050 aix4 | aix4.
[01] | aix4.
[01].
*)
17051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17053 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17056 can_build_shared
=no
17060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17061 # soname into executable. Probably we can add versioning support to
17062 # collect2, so additional links can be useful in future.
17063 if test "$aix_use_runtimelinking" = yes; then
17064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17065 # instead of lib<name>.a to let people know that these are not
17066 # typical AIX shared libraries.
17067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 # We preserve .a as extension for shared libraries through AIX4.2
17070 # and later when we are not doing run time linking.
17071 library_names_spec
='${libname}${release}.a $libname.a'
17072 soname_spec
='${libname}${release}${shared_ext}$major'
17074 shlibpath_var
=LIBPATH
17081 # Since July 2007 AmigaOS4 officially supports .so libraries.
17082 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17086 library_names_spec
='$libname.ixlibrary $libname.a'
17087 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17088 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'
17094 library_names_spec
='${libname}${shared_ext}'
17095 dynamic_linker
="$host_os ld.so"
17096 shlibpath_var
=LIBRARY_PATH
17102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103 soname_spec
='${libname}${release}${shared_ext}$major'
17104 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17105 shlibpath_var
=LD_LIBRARY_PATH
17106 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17107 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17108 # the default ld.so.conf also contains /usr/contrib/lib and
17109 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17110 # libtool to hard-code these into programs
17113 cygwin
* | mingw
* | pw32
* | cegcc
*)
17114 version_type
=windows
17119 case $GCC,$host_os in
17120 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17121 library_names_spec
='$libname.dll.a'
17122 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17123 postinstall_cmds
='base_file=`basename \${file}`~
17124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17125 dldir=$destdir/`dirname \$dlpath`~
17126 test -d \$dldir || mkdir -p \$dldir~
17127 $install_prog $dir/$dlname \$dldir/$dlname~
17128 chmod a+x \$dldir/$dlname~
17129 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17130 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17132 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17133 dlpath=$dir/\$dldll~
17135 shlibpath_overrides_runpath
=yes
17139 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17140 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17142 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17145 # MinGW DLLs use traditional 'lib' prefix
17146 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17149 # pw32 DLLs use 'pw' prefix rather than 'lib'
17150 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17156 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17159 dynamic_linker
='Win32 ld.exe'
17160 # FIXME: first we should search . and the directory the executable is in
17164 darwin
* | rhapsody
*)
17165 dynamic_linker
="$host_os dyld"
17166 version_type
=darwin
17169 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17170 soname_spec
='${libname}${release}${major}$shared_ext'
17171 shlibpath_overrides_runpath
=yes
17172 shlibpath_var
=DYLD_LIBRARY_PATH
17173 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17175 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17176 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17183 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17184 soname_spec
='${libname}${release}${shared_ext}$major'
17185 shlibpath_var
=LD_LIBRARY_PATH
17188 freebsd
* | dragonfly
*)
17189 # DragonFly does not have aout. When/if they implement a new
17190 # versioning mechanism, adjust this.
17191 if test -x /usr
/bin
/objformat
; then
17192 objformat
=`/usr/bin/objformat`
17195 freebsd
[123]*) objformat
=aout
;;
17196 *) objformat
=elf
;;
17199 version_type
=freebsd-
$objformat
17200 case $version_type in
17202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17207 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17211 shlibpath_var
=LD_LIBRARY_PATH
17214 shlibpath_overrides_runpath
=yes
17216 freebsd3.
[01]* | freebsdelf3.
[01]*)
17217 shlibpath_overrides_runpath
=yes
17218 hardcode_into_libs
=yes
17220 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17221 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17222 shlibpath_overrides_runpath
=no
17223 hardcode_into_libs
=yes
17225 *) # from 4.6 on, and DragonFly
17226 shlibpath_overrides_runpath
=yes
17227 hardcode_into_libs
=yes
17236 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17237 soname_spec
='${libname}${release}${shared_ext}$major'
17238 shlibpath_var
=LD_LIBRARY_PATH
17239 hardcode_into_libs
=yes
17246 dynamic_linker
="$host_os runtime_loader"
17247 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17248 soname_spec
='${libname}${release}${shared_ext}$major'
17249 shlibpath_var
=LIBRARY_PATH
17250 shlibpath_overrides_runpath
=yes
17251 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17252 hardcode_into_libs
=yes
17255 hpux9
* | hpux10
* | hpux11
*)
17256 # Give a soname corresponding to the major version so that dld.sl refuses to
17257 # link against other versions.
17264 hardcode_into_libs
=yes
17265 dynamic_linker
="$host_os dld.so"
17266 shlibpath_var
=LD_LIBRARY_PATH
17267 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17268 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17269 soname_spec
='${libname}${release}${shared_ext}$major'
17270 if test "X$HPUX_IA64_MODE" = X32
; then
17271 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17273 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17275 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17279 hardcode_into_libs
=yes
17280 dynamic_linker
="$host_os dld.sl"
17281 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17282 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284 soname_spec
='${libname}${release}${shared_ext}$major'
17285 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17286 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17290 dynamic_linker
="$host_os dld.sl"
17291 shlibpath_var
=SHLIB_PATH
17292 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17293 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17294 soname_spec
='${libname}${release}${shared_ext}$major'
17297 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17298 postinstall_cmds
='chmod 555 $lib'
17299 # or fails outright, so override atomically:
17300 install_override_mode
=555
17307 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17308 soname_spec
='${libname}${release}${shared_ext}$major'
17309 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17310 shlibpath_var
=LD_LIBRARY_PATH
17311 shlibpath_overrides_runpath
=no
17312 hardcode_into_libs
=yes
17315 irix5
* | irix6
* | nonstopux
*)
17317 nonstopux
*) version_type
=nonstopux
;;
17319 if test "$lt_cv_prog_gnu_ld" = yes; then
17327 soname_spec
='${libname}${release}${shared_ext}$major'
17328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17330 irix5
* | nonstopux
*)
17331 libsuff
= shlibsuff
=
17334 case $LD in # libtool.m4 will add one of these switches to LD
17335 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17336 libsuff
= shlibsuff
= libmagic
=32-bit;;
17337 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17338 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17339 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17340 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17341 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17345 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17346 shlibpath_overrides_runpath
=no
17347 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17348 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17349 hardcode_into_libs
=yes
17352 # No shared lib support for Linux oldld, aout, or coff.
17353 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17357 # This must be Linux ELF.
17358 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 soname_spec
='${libname}${release}${shared_ext}$major'
17364 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17365 shlibpath_var
=LD_LIBRARY_PATH
17366 shlibpath_overrides_runpath
=no
17368 # Some binutils ld are patched to set DT_RUNPATH
17369 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17370 $as_echo_n "(cached) " >&6
17372 lt_cv_shlibpath_overrides_runpath
=no
17373 save_LDFLAGS
=$LDFLAGS
17374 save_libdir
=$libdir
17375 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17376 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17378 /* end confdefs.h. */
17388 if ac_fn_c_try_link
"$LINENO"; then :
17389 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17390 lt_cv_shlibpath_overrides_runpath
=yes
17393 rm -f core conftest.err conftest.
$ac_objext \
17394 conftest
$ac_exeext conftest.
$ac_ext
17395 LDFLAGS
=$save_LDFLAGS
17396 libdir
=$save_libdir
17400 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17402 # This implies no fast_install, which is unacceptable.
17403 # Some rework will be needed to allow for fast_install
17404 # before this can be enabled.
17405 hardcode_into_libs
=yes
17407 # Append ld.so.conf contents to the search path
17408 if test -f /etc
/ld.so.conf
; then
17409 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' ' '`
17410 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17413 # We used to test for /lib/ld.so.1 and disable shared libraries on
17414 # powerpc, because MkLinux only supported shared libraries with the
17415 # GNU dynamic linker. Since this was broken with cross compilers,
17416 # most powerpc-linux boxes support dynamic linking these days and
17417 # people can always --disable-shared, the test was removed, and we
17418 # assume the GNU/Linux dynamic linker is in use.
17419 dynamic_linker
='GNU/Linux ld.so'
17426 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17427 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17428 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17429 dynamic_linker
='NetBSD (a.out) ld.so'
17431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17432 soname_spec
='${libname}${release}${shared_ext}$major'
17433 dynamic_linker
='NetBSD ld.elf_so'
17435 shlibpath_var
=LD_LIBRARY_PATH
17436 shlibpath_overrides_runpath
=yes
17437 hardcode_into_libs
=yes
17442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 shlibpath_var
=LD_LIBRARY_PATH
17444 shlibpath_overrides_runpath
=yes
17451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452 soname_spec
='${libname}${release}${shared_ext}$major'
17453 shlibpath_var
=LD_LIBRARY_PATH
17454 shlibpath_overrides_runpath
=no
17455 hardcode_into_libs
=yes
17456 dynamic_linker
='ldqnx.so'
17461 sys_lib_dlsearch_path_spec
="/usr/lib"
17463 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17465 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17466 *) need_version
=no
;;
17468 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17469 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17470 shlibpath_var
=LD_LIBRARY_PATH
17471 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17473 openbsd2.
[89] | openbsd2.
[89].
*)
17474 shlibpath_overrides_runpath
=no
17477 shlibpath_overrides_runpath
=yes
17481 shlibpath_overrides_runpath
=yes
17486 libname_spec
='$name'
17489 library_names_spec
='$libname${shared_ext} $libname.a'
17490 dynamic_linker
='OS/2 ld.exe'
17491 shlibpath_var
=LIBPATH
17494 osf3
* | osf4
* | osf5
*)
17498 soname_spec
='${libname}${release}${shared_ext}$major'
17499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500 shlibpath_var
=LD_LIBRARY_PATH
17501 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17502 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17514 soname_spec
='${libname}${release}${shared_ext}$major'
17515 shlibpath_var
=LD_LIBRARY_PATH
17516 shlibpath_overrides_runpath
=yes
17517 hardcode_into_libs
=yes
17518 # ldd complains unless libraries are executable
17519 postinstall_cmds
='chmod +x $lib'
17524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17525 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17526 shlibpath_var
=LD_LIBRARY_PATH
17527 shlibpath_overrides_runpath
=yes
17528 if test "$with_gnu_ld" = yes; then
17536 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17537 soname_spec
='${libname}${release}${shared_ext}$major'
17538 shlibpath_var
=LD_LIBRARY_PATH
17539 case $host_vendor in
17541 shlibpath_overrides_runpath
=no
17543 runpath_var
=LD_RUN_PATH
17551 shlibpath_overrides_runpath
=no
17552 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17558 if test -d /usr
/nec
;then
17560 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17561 soname_spec
='$libname${shared_ext}.$major'
17562 shlibpath_var
=LD_LIBRARY_PATH
17566 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17567 version_type
=freebsd-elf
17570 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17571 soname_spec
='${libname}${release}${shared_ext}$major'
17572 shlibpath_var
=LD_LIBRARY_PATH
17573 shlibpath_overrides_runpath
=yes
17574 hardcode_into_libs
=yes
17575 if test "$with_gnu_ld" = yes; then
17576 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17578 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17581 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17585 sys_lib_dlsearch_path_spec
='/usr/lib'
17589 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594 shlibpath_var
=LD_LIBRARY_PATH
17595 shlibpath_overrides_runpath
=no
17596 hardcode_into_libs
=yes
17601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17602 soname_spec
='${libname}${release}${shared_ext}$major'
17603 shlibpath_var
=LD_LIBRARY_PATH
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17611 $as_echo "$dynamic_linker" >&6; }
17612 test "$dynamic_linker" = no
&& can_build_shared
=no
17614 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17615 if test "$GCC" = yes; then
17616 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17619 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17620 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17622 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17623 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17718 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17720 if test -n "$hardcode_libdir_flag_spec" ||
17721 test -n "$runpath_var" ||
17722 test "X$hardcode_automatic" = "Xyes" ; then
17724 # We can hardcode non-existent directories.
17725 if test "$hardcode_direct" != no
&&
17726 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17727 # have to relink, otherwise we might link with an installed library
17728 # when we should be linking with a yet-to-be-installed one
17729 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17730 test "$hardcode_minus_L" != no
; then
17731 # Linking always hardcodes the temporary library directory.
17732 hardcode_action
=relink
17734 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17735 hardcode_action
=immediate
17738 # We cannot hardcode anything, or else we can only hardcode existing
17740 hardcode_action
=unsupported
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17743 $as_echo "$hardcode_action" >&6; }
17745 if test "$hardcode_action" = relink ||
17746 test "$inherit_rpath" = yes; then
17747 # Fast installation is not supported
17748 enable_fast_install
=no
17749 elif test "$shlibpath_overrides_runpath" = yes ||
17750 test "$enable_shared" = no
; then
17751 # Fast installation is not necessary
17752 enable_fast_install
=needless
17760 if test "x$enable_dlopen" != xyes
; then
17761 enable_dlopen
=unknown
17762 enable_dlopen_self
=unknown
17763 enable_dlopen_self_static
=unknown
17770 lt_cv_dlopen
="load_add_on"
17772 lt_cv_dlopen_self
=yes
17775 mingw
* | pw32
* | cegcc
*)
17776 lt_cv_dlopen
="LoadLibrary"
17781 lt_cv_dlopen
="dlopen"
17786 # if libdl is installed we need to link against it
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17789 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17790 $as_echo_n "(cached) " >&6
17792 ac_check_lib_save_LIBS
=$LIBS
17794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17797 /* Override any GCC internal prototype to avoid an error.
17798 Use char because int might match the return type of a GCC
17799 builtin and then its argument prototype would still apply. */
17812 if ac_fn_c_try_link
"$LINENO"; then :
17813 ac_cv_lib_dl_dlopen
=yes
17815 ac_cv_lib_dl_dlopen
=no
17817 rm -f core conftest.err conftest.
$ac_objext \
17818 conftest
$ac_exeext conftest.
$ac_ext
17819 LIBS
=$ac_check_lib_save_LIBS
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17823 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17824 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17827 lt_cv_dlopen
="dyld"
17829 lt_cv_dlopen_self
=yes
17836 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17837 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17838 lt_cv_dlopen
="shl_load"
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17841 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17842 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17843 $as_echo_n "(cached) " >&6
17845 ac_check_lib_save_LIBS
=$LIBS
17847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17850 /* Override any GCC internal prototype to avoid an error.
17851 Use char because int might match the return type of a GCC
17852 builtin and then its argument prototype would still apply. */
17860 return shl_load ();
17865 if ac_fn_c_try_link
"$LINENO"; then :
17866 ac_cv_lib_dld_shl_load
=yes
17868 ac_cv_lib_dld_shl_load
=no
17870 rm -f core conftest.err conftest.
$ac_objext \
17871 conftest
$ac_exeext conftest.
$ac_ext
17872 LIBS
=$ac_check_lib_save_LIBS
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17875 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17876 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17877 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17879 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17880 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17881 lt_cv_dlopen
="dlopen"
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17884 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17885 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17886 $as_echo_n "(cached) " >&6
17888 ac_check_lib_save_LIBS
=$LIBS
17890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17893 /* Override any GCC internal prototype to avoid an error.
17894 Use char because int might match the return type of a GCC
17895 builtin and then its argument prototype would still apply. */
17908 if ac_fn_c_try_link
"$LINENO"; then :
17909 ac_cv_lib_dl_dlopen
=yes
17911 ac_cv_lib_dl_dlopen
=no
17913 rm -f core conftest.err conftest.
$ac_objext \
17914 conftest
$ac_exeext conftest.
$ac_ext
17915 LIBS
=$ac_check_lib_save_LIBS
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17918 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17919 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17920 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17923 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17924 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17925 $as_echo_n "(cached) " >&6
17927 ac_check_lib_save_LIBS
=$LIBS
17928 LIBS
="-lsvld $LIBS"
17929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h. */
17932 /* Override any GCC internal prototype to avoid an error.
17933 Use char because int might match the return type of a GCC
17934 builtin and then its argument prototype would still apply. */
17947 if ac_fn_c_try_link
"$LINENO"; then :
17948 ac_cv_lib_svld_dlopen
=yes
17950 ac_cv_lib_svld_dlopen
=no
17952 rm -f core conftest.err conftest.
$ac_objext \
17953 conftest
$ac_exeext conftest.
$ac_ext
17954 LIBS
=$ac_check_lib_save_LIBS
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17957 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17958 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17959 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17962 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17963 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17964 $as_echo_n "(cached) " >&6
17966 ac_check_lib_save_LIBS
=$LIBS
17968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h. */
17971 /* Override any GCC internal prototype to avoid an error.
17972 Use char because int might match the return type of a GCC
17973 builtin and then its argument prototype would still apply. */
17981 return dld_link ();
17986 if ac_fn_c_try_link
"$LINENO"; then :
17987 ac_cv_lib_dld_dld_link
=yes
17989 ac_cv_lib_dld_dld_link
=no
17991 rm -f core conftest.err conftest.
$ac_objext \
17992 conftest
$ac_exeext conftest.
$ac_ext
17993 LIBS
=$ac_check_lib_save_LIBS
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17996 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17997 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17998 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18019 if test "x$lt_cv_dlopen" != xno
; then
18025 case $lt_cv_dlopen in
18027 save_CPPFLAGS
="$CPPFLAGS"
18028 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18030 save_LDFLAGS
="$LDFLAGS"
18031 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18034 LIBS
="$lt_cv_dlopen_libs $LIBS"
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18037 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18038 if test "${lt_cv_dlopen_self+set}" = set; then :
18039 $as_echo_n "(cached) " >&6
18041 if test "$cross_compiling" = yes; then :
18042 lt_cv_dlopen_self
=cross
18044 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18045 lt_status
=$lt_dlunknown
18046 cat > conftest.
$ac_ext <<_LT_EOF
18047 #line 18047 "configure"
18048 #include "confdefs.h"
18057 # define LT_DLGLOBAL RTLD_GLOBAL
18060 # define LT_DLGLOBAL DL_GLOBAL
18062 # define LT_DLGLOBAL 0
18066 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18067 find out it does not work in some platform. */
18068 #ifndef LT_DLLAZY_OR_NOW
18070 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18073 # define LT_DLLAZY_OR_NOW DL_LAZY
18076 # define LT_DLLAZY_OR_NOW RTLD_NOW
18079 # define LT_DLLAZY_OR_NOW DL_NOW
18081 # define LT_DLLAZY_OR_NOW 0
18088 /* When -fvisbility=hidden is used, assume the code has been annotated
18089 correspondingly for the symbols needed. */
18090 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18091 void fnord () __attribute__((visibility("default")));
18094 void fnord () { int i=42; }
18097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18098 int status = $lt_dlunknown;
18102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18105 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18106 else puts (dlerror ());
18108 /* dlclose (self); */
18116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18117 (eval $ac_link) 2>&5
18119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18120 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18121 (.
/conftest
; exit; ) >&5 2>/dev
/null
18123 case x
$lt_status in
18124 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18125 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18126 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18129 # compilation failed
18130 lt_cv_dlopen_self
=no
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18138 $as_echo "$lt_cv_dlopen_self" >&6; }
18140 if test "x$lt_cv_dlopen_self" = xyes
; then
18141 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18143 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18144 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18145 $as_echo_n "(cached) " >&6
18147 if test "$cross_compiling" = yes; then :
18148 lt_cv_dlopen_self_static
=cross
18150 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18151 lt_status
=$lt_dlunknown
18152 cat > conftest.
$ac_ext <<_LT_EOF
18153 #line 18153 "configure"
18154 #include "confdefs.h"
18163 # define LT_DLGLOBAL RTLD_GLOBAL
18166 # define LT_DLGLOBAL DL_GLOBAL
18168 # define LT_DLGLOBAL 0
18172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18173 find out it does not work in some platform. */
18174 #ifndef LT_DLLAZY_OR_NOW
18176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18179 # define LT_DLLAZY_OR_NOW DL_LAZY
18182 # define LT_DLLAZY_OR_NOW RTLD_NOW
18185 # define LT_DLLAZY_OR_NOW DL_NOW
18187 # define LT_DLLAZY_OR_NOW 0
18194 /* When -fvisbility=hidden is used, assume the code has been annotated
18195 correspondingly for the symbols needed. */
18196 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18197 void fnord () __attribute__((visibility("default")));
18200 void fnord () { int i=42; }
18203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18204 int status = $lt_dlunknown;
18208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18212 else puts (dlerror ());
18214 /* dlclose (self); */
18222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18223 (eval $ac_link) 2>&5
18225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18226 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18227 (.
/conftest
; exit; ) >&5 2>/dev
/null
18229 case x
$lt_status in
18230 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18231 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18232 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18235 # compilation failed
18236 lt_cv_dlopen_self_static
=no
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18244 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18247 CPPFLAGS
="$save_CPPFLAGS"
18248 LDFLAGS
="$save_LDFLAGS"
18253 case $lt_cv_dlopen_self in
18254 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18255 *) enable_dlopen_self
=unknown
;;
18258 case $lt_cv_dlopen_self_static in
18259 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18260 *) enable_dlopen_self_static
=unknown
;;
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18283 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18284 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18285 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18286 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18288 $as_echo "yes" >&6; }
18290 # FIXME - insert some real tests, host_os isn't really good enough
18293 if test -n "$STRIP" ; then
18294 striplib
="$STRIP -x"
18295 old_striplib
="$STRIP -S"
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18297 $as_echo "yes" >&6; }
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18300 $as_echo "no" >&6; }
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305 $as_echo "no" >&6; }
18321 # Report which library types will actually be built
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18323 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18325 $as_echo "$can_build_shared" >&6; }
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18328 $as_echo_n "checking whether to build shared libraries... " >&6; }
18329 test "$can_build_shared" = "no" && enable_shared
=no
18331 # On AIX, shared libraries and static libraries use the same namespace, and
18332 # are all built from PIC.
18335 test "$enable_shared" = yes && enable_static
=no
18336 if test -n "$RANLIB"; then
18337 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18338 postinstall_cmds
='$RANLIB $lib'
18343 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18344 test "$enable_shared" = yes && enable_static
=no
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18349 $as_echo "$enable_shared" >&6; }
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18352 $as_echo_n "checking whether to build static libraries... " >&6; }
18353 # Make sure either enable_shared or enable_static is yes.
18354 test "$enable_shared" = yes || enable_static
=yes
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18356 $as_echo "$enable_static" >&6; }
18363 ac_cpp
='$CPP $CPPFLAGS'
18364 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18365 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18366 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18370 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18371 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18372 (test "X$CXX" != "Xg++"))) ; then
18374 ac_cpp
='$CXXCPP $CPPFLAGS'
18375 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18376 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18377 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18379 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18380 if test -z "$CXXCPP"; then
18381 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18382 $as_echo_n "(cached) " >&6
18384 # Double quotes because CXXCPP needs to be expanded
18385 for CXXCPP
in "$CXX -E" "/lib/cpp"
18387 ac_preproc_ok
=false
18388 for ac_cxx_preproc_warn_flag
in '' yes
18390 # Use a header file that comes with gcc, so configuring glibc
18391 # with a fresh cross-compiler works.
18392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18393 # <limits.h> exists even on freestanding compilers.
18394 # On the NeXT, cc -E runs the code through the compiler's parser,
18395 # not just through cpp. "Syntax error" is here to catch this case.
18396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18399 # include <limits.h>
18401 # include <assert.h>
18405 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18408 # Broken: fails on valid input.
18411 rm -f conftest.err conftest.
$ac_ext
18413 # OK, works on sane cases. Now check whether nonexistent headers
18414 # can be detected and how.
18415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18416 /* end confdefs.h. */
18417 #include <ac_nonexistent.h>
18419 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18420 # Broken: success on invalid input.
18423 # Passes both tests.
18427 rm -f conftest.err conftest.
$ac_ext
18430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18431 rm -f conftest.err conftest.
$ac_ext
18432 if $ac_preproc_ok; then :
18437 ac_cv_prog_CXXCPP
=$CXXCPP
18440 CXXCPP
=$ac_cv_prog_CXXCPP
18442 ac_cv_prog_CXXCPP
=$CXXCPP
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18445 $as_echo "$CXXCPP" >&6; }
18446 ac_preproc_ok
=false
18447 for ac_cxx_preproc_warn_flag
in '' yes
18449 # Use a header file that comes with gcc, so configuring glibc
18450 # with a fresh cross-compiler works.
18451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18452 # <limits.h> exists even on freestanding compilers.
18453 # On the NeXT, cc -E runs the code through the compiler's parser,
18454 # not just through cpp. "Syntax error" is here to catch this case.
18455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18456 /* end confdefs.h. */
18458 # include <limits.h>
18460 # include <assert.h>
18464 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18467 # Broken: fails on valid input.
18470 rm -f conftest.err conftest.
$ac_ext
18472 # OK, works on sane cases. Now check whether nonexistent headers
18473 # can be detected and how.
18474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18475 /* end confdefs.h. */
18476 #include <ac_nonexistent.h>
18478 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18479 # Broken: success on invalid input.
18482 # Passes both tests.
18486 rm -f conftest.err conftest.
$ac_ext
18489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18490 rm -f conftest.err conftest.
$ac_ext
18491 if $ac_preproc_ok; then :
18494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18496 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18497 See \`config.log' for more details." "$LINENO" 5; }
18501 ac_cpp
='$CPP $CPPFLAGS'
18502 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18503 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18504 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18507 _lt_caught_CXX_error
=yes
18511 ac_cpp
='$CXXCPP $CPPFLAGS'
18512 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18513 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18514 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18516 archive_cmds_need_lc_CXX
=no
18517 allow_undefined_flag_CXX
=
18518 always_export_symbols_CXX
=no
18519 archive_expsym_cmds_CXX
=
18520 compiler_needs_object_CXX
=no
18521 export_dynamic_flag_spec_CXX
=
18522 hardcode_direct_CXX
=no
18523 hardcode_direct_absolute_CXX
=no
18524 hardcode_libdir_flag_spec_CXX
=
18525 hardcode_libdir_flag_spec_ld_CXX
=
18526 hardcode_libdir_separator_CXX
=
18527 hardcode_minus_L_CXX
=no
18528 hardcode_shlibpath_var_CXX
=unsupported
18529 hardcode_automatic_CXX
=no
18530 inherit_rpath_CXX
=no
18532 module_expsym_cmds_CXX
=
18533 link_all_deplibs_CXX
=unknown
18534 old_archive_cmds_CXX
=$old_archive_cmds
18535 reload_flag_CXX
=$reload_flag
18536 reload_cmds_CXX
=$reload_cmds
18537 no_undefined_flag_CXX
=
18538 whole_archive_flag_spec_CXX
=
18539 enable_shared_with_static_runtimes_CXX
=no
18541 # Source file extension for C++ test sources.
18544 # Object file extension for compiled C++ test sources.
18548 # No sense in running all these tests if we already determined that
18549 # the CXX compiler isn't working. Some variables (like enable_shared)
18550 # are currently assumed to apply to all compilers on this platform,
18551 # and will be corrupted by setting them based on a non-working compiler.
18552 if test "$_lt_caught_CXX_error" != yes; then
18553 # Code to be used in simple compile tests
18554 lt_simple_compile_test_code
="int some_variable = 0;"
18556 # Code to be used in simple link tests
18557 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18559 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18566 # If no C compiler was specified, use CC.
18569 # If no C compiler flags were specified, use CFLAGS.
18570 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18572 # Allow CC to be a program name with arguments.
18576 # save warnings/boilerplate of simple test code
18577 ac_outfile
=conftest.
$ac_objext
18578 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18579 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18580 _lt_compiler_boilerplate
=`cat conftest.err`
18583 ac_outfile
=conftest.
$ac_objext
18584 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18585 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18586 _lt_linker_boilerplate
=`cat conftest.err`
18590 # Allow CC to be a program name with arguments.
18595 lt_save_with_gnu_ld
=$with_gnu_ld
18596 lt_save_path_LD
=$lt_cv_path_LD
18597 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18598 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18600 $as_unset lt_cv_prog_gnu_ld
18602 if test -n "${lt_cv_path_LDCXX+set}"; then
18603 lt_cv_path_LD
=$lt_cv_path_LDCXX
18605 $as_unset lt_cv_path_LD
18607 test -z "${LDCXX+set}" || LD
=$LDCXX
18611 for cc_temp
in $compiler""; do
18613 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18614 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18619 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18622 if test -n "$compiler"; then
18623 # We don't want -fno-exception when compiling C++ code, so set the
18624 # no_builtin_flag separately
18625 if test "$GXX" = yes; then
18626 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18628 lt_prog_compiler_no_builtin_flag_CXX
=
18631 if test "$GXX" = yes; then
18632 # Set up default GNU C++ configuration
18636 # Check whether --with-gnu-ld was given.
18637 if test "${with_gnu_ld+set}" = set; then :
18638 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18644 if test "$GCC" = yes; then
18645 # Check if gcc -print-prog-name=ld gives a path.
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18647 $as_echo_n "checking for ld used by $CC... " >&6; }
18650 # gcc leaves a trailing carriage return which upsets mingw
18651 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18653 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18656 # Accept absolute paths.
18658 re_direlt
='/[^/][^/]*/\.\./'
18659 # Canonicalize the pathname of ld
18660 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18661 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18662 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18664 test -z "$LD" && LD
="$ac_prog"
18667 # If it fails, then pretend we aren't using GCC.
18671 # If it is relative, then search for the first ld in PATH.
18672 with_gnu_ld
=unknown
18675 elif test "$with_gnu_ld" = yes; then
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18677 $as_echo_n "checking for GNU ld... " >&6; }
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18680 $as_echo_n "checking for non-GNU ld... " >&6; }
18682 if test "${lt_cv_path_LD+set}" = set; then :
18683 $as_echo_n "(cached) " >&6
18685 if test -z "$LD"; then
18686 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18687 for ac_dir
in $PATH; do
18689 test -z "$ac_dir" && ac_dir
=.
18690 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18691 lt_cv_path_LD
="$ac_dir/$ac_prog"
18692 # Check to see if the program is GNU ld. I'd rather use --version,
18693 # but apparently some variants of GNU ld only accept -v.
18694 # Break only if it was the GNU/non-GNU ld that we prefer.
18695 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18696 *GNU
* |
*'with BFD'*)
18697 test "$with_gnu_ld" != no
&& break
18700 test "$with_gnu_ld" != yes && break
18707 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18711 LD
="$lt_cv_path_LD"
18712 if test -n "$LD"; then
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18714 $as_echo "$LD" >&6; }
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18717 $as_echo "no" >&6; }
18719 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18721 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18722 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18723 $as_echo_n "(cached) " >&6
18725 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18726 case `$LD -v 2>&1 </dev/null` in
18727 *GNU
* |
*'with BFD'*)
18728 lt_cv_prog_gnu_ld
=yes
18731 lt_cv_prog_gnu_ld
=no
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18736 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18737 with_gnu_ld
=$lt_cv_prog_gnu_ld
18745 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18746 # archiving commands below assume that GNU ld is being used.
18747 if test "$with_gnu_ld" = yes; then
18748 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18749 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'
18751 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18752 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18754 # If archive_cmds runs LD, not CC, wlarc should be empty
18755 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18756 # investigate it a little bit more. (MM)
18759 # ancient GNU ld didn't support --whole-archive et. al.
18760 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18761 $GREP 'no-whole-archive' > /dev
/null
; then
18762 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18764 whole_archive_flag_spec_CXX
=
18770 # A generic and very simple default shared library creation
18771 # command for GNU C++ for the case where it uses the native
18772 # linker, instead of GNU ld. If possible, this setting should
18773 # overridden to take advantage of the native linker features on
18774 # the platform it is being used on.
18775 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18778 # Commands to make compiler produce verbose output that lists
18779 # what "hidden" libraries, object files and flags are used when
18780 # linking a shared library.
18781 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18789 # PORTME: fill in a description of your system's C++ link characteristics
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18791 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18795 # FIXME: insert proper C++ library support
18799 if test "$host_cpu" = ia64
; then
18800 # On IA64, the linker does run time linking by default, so we don't
18801 # have to do anything special.
18802 aix_use_runtimelinking
=no
18803 exp_sym_flag
='-Bexport'
18806 aix_use_runtimelinking
=no
18808 # Test if we are trying to use run time linking or normal
18809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18810 # need to do runtime linking.
18811 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18812 for ld_flag
in $LDFLAGS; do
18815 aix_use_runtimelinking
=yes
18823 exp_sym_flag
='-bexport'
18824 no_entry_flag
='-bnoentry'
18827 # When large executables or shared objects are built, AIX ld can
18828 # have problems creating the table of contents. If linking a library
18829 # or program results in "error TOC overflow" add -mminimal-toc to
18830 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18831 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18833 archive_cmds_CXX
=''
18834 hardcode_direct_CXX
=yes
18835 hardcode_direct_absolute_CXX
=yes
18836 hardcode_libdir_separator_CXX
=':'
18837 link_all_deplibs_CXX
=yes
18838 file_list_spec_CXX
='${wl}-f,'
18840 if test "$GXX" = yes; then
18841 case $host_os in aix4.
[012]|aix4.
[012].
*)
18842 # We only want to do this on AIX 4.2 and lower, the check
18843 # below for broken collect2 doesn't work under 4.3+
18844 collect2name
=`${CC} -print-prog-name=collect2`
18845 if test -f "$collect2name" &&
18846 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18848 # We have reworked collect2
18851 # We have old collect2
18852 hardcode_direct_CXX
=unsupported
18853 # It fails to find uninstalled libraries when the uninstalled
18854 # path is not listed in the libpath. Setting hardcode_minus_L
18855 # to unsupported forces relinking
18856 hardcode_minus_L_CXX
=yes
18857 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18858 hardcode_libdir_separator_CXX
=
18861 shared_flag
='-shared'
18862 if test "$aix_use_runtimelinking" = yes; then
18863 shared_flag
="$shared_flag "'${wl}-G'
18867 if test "$host_cpu" = ia64
; then
18868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18869 # chokes on -Wl,-G. The following line is correct:
18872 if test "$aix_use_runtimelinking" = yes; then
18873 shared_flag
='${wl}-G'
18875 shared_flag
='${wl}-bM:SRE'
18880 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18881 # It seems that -bexpall does not export symbols beginning with
18882 # underscore (_), so it is better to generate a list of symbols to
18884 always_export_symbols_CXX
=yes
18885 if test "$aix_use_runtimelinking" = yes; then
18886 # Warning - without using the other runtime loading flags (-brtl),
18887 # -berok will link without error, but may produce a broken library.
18888 allow_undefined_flag_CXX
='-berok'
18889 # Determine the default libpath from the value encoded in an empty
18891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18892 /* end confdefs.h. */
18902 if ac_fn_cxx_try_link
"$LINENO"; then :
18904 lt_aix_libpath_sed
='
18905 /Import File Strings/,/^$/ {
18911 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18912 # Check for a 64-bit object if we didn't find anything.
18913 if test -z "$aix_libpath"; then
18914 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18917 rm -f core conftest.err conftest.
$ac_objext \
18918 conftest
$ac_exeext conftest.
$ac_ext
18919 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18921 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18923 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"
18925 if test "$host_cpu" = ia64
; then
18926 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18927 allow_undefined_flag_CXX
="-z nodefs"
18928 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"
18930 # Determine the default libpath from the value encoded in an
18931 # empty executable.
18932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18943 if ac_fn_cxx_try_link
"$LINENO"; then :
18945 lt_aix_libpath_sed
='
18946 /Import File Strings/,/^$/ {
18952 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18953 # Check for a 64-bit object if we didn't find anything.
18954 if test -z "$aix_libpath"; then
18955 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18958 rm -f core conftest.err conftest.
$ac_objext \
18959 conftest
$ac_exeext conftest.
$ac_ext
18960 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18962 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18963 # Warning - without using the other run time loading flags,
18964 # -berok will link without error, but may produce a broken library.
18965 no_undefined_flag_CXX
=' ${wl}-bernotok'
18966 allow_undefined_flag_CXX
=' ${wl}-berok'
18967 if test "$with_gnu_ld" = yes; then
18968 # We only use this code for GNU lds that support --whole-archive.
18969 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18971 # Exported symbols can be pulled into shared objects from archives
18972 whole_archive_flag_spec_CXX
='$convenience'
18974 archive_cmds_need_lc_CXX
=yes
18975 # This is similar to how AIX traditionally builds its shared
18977 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'
18983 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18984 allow_undefined_flag_CXX
=unsupported
18985 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18986 # support --undefined. This deserves some investigation. FIXME
18987 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18994 case $cc_basename in
18996 # FIXME: insert proper C++ library support
19002 cygwin
* | mingw
* | pw32
* | cegcc
*)
19003 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19004 # as there is no search path for DLLs.
19005 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19006 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19007 allow_undefined_flag_CXX
=unsupported
19008 always_export_symbols_CXX
=no
19009 enable_shared_with_static_runtimes_CXX
=yes
19011 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19012 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'
19013 # If the export-symbols file already is a .def file (1st line
19014 # is EXPORTS), use it as is; otherwise, prepend...
19015 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19016 cp $export_symbols $output_objdir/$soname.def;
19018 echo EXPORTS > $output_objdir/$soname.def;
19019 cat $export_symbols >> $output_objdir/$soname.def;
19021 $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'
19026 darwin
* | rhapsody
*)
19029 archive_cmds_need_lc_CXX
=no
19030 hardcode_direct_CXX
=no
19031 hardcode_automatic_CXX
=yes
19032 hardcode_shlibpath_var_CXX
=unsupported
19033 if test "$lt_cv_ld_force_load" = "yes"; then
19034 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\"`'
19036 whole_archive_flag_spec_CXX
=''
19038 link_all_deplibs_CXX
=yes
19039 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19040 case $cc_basename in
19041 ifort
*) _lt_dar_can_shared
=yes ;;
19042 *) _lt_dar_can_shared
=$GCC ;;
19044 if test "$_lt_dar_can_shared" = "yes"; then
19045 output_verbose_link_cmd
=func_echo_all
19046 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}"
19047 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19048 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}"
19049 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}"
19050 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19051 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}"
19052 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}"
19062 case $cc_basename in
19064 # FIXME: insert proper C++ library support
19068 # Green Hills C++ Compiler
19069 # FIXME: insert proper C++ library support
19073 # FIXME: insert proper C++ library support
19080 # C++ shared libraries reported to be fairly broken before
19086 archive_cmds_need_lc_CXX
=no
19089 freebsd
* | dragonfly
*)
19090 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19099 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19100 link_all_deplibs_CXX
=yes
19104 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19105 hardcode_libdir_separator_CXX
=:
19106 export_dynamic_flag_spec_CXX
='${wl}-E'
19107 hardcode_direct_CXX
=yes
19108 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19109 # but as the default
19110 # location of the library.
19112 case $cc_basename in
19114 # FIXME: insert proper C++ library support
19118 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'
19119 # Commands to make compiler produce verbose output that lists
19120 # what "hidden" libraries, object files and flags are used when
19121 # linking a shared library.
19123 # There doesn't appear to be a way to prevent this compiler from
19124 # explicitly linking system object files so we need to strip them
19125 # from the output so that they don't get included in the library
19127 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"'
19130 if test "$GXX" = yes; then
19131 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'
19133 # FIXME: insert proper C++ library support
19141 if test $with_gnu_ld = no
; then
19142 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19143 hardcode_libdir_separator_CXX
=:
19149 export_dynamic_flag_spec_CXX
='${wl}-E'
19155 hardcode_direct_CXX
=no
19156 hardcode_shlibpath_var_CXX
=no
19159 hardcode_direct_CXX
=yes
19160 hardcode_direct_absolute_CXX
=yes
19161 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19162 # but as the default
19163 # location of the library.
19167 case $cc_basename in
19169 # FIXME: insert proper C++ library support
19175 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19178 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19181 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19184 # Commands to make compiler produce verbose output that lists
19185 # what "hidden" libraries, object files and flags are used when
19186 # linking a shared library.
19188 # There doesn't appear to be a way to prevent this compiler from
19189 # explicitly linking system object files so we need to strip them
19190 # from the output so that they don't get included in the library
19192 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"'
19195 if test "$GXX" = yes; then
19196 if test $with_gnu_ld = no
; then
19199 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19202 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19205 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'
19210 # FIXME: insert proper C++ library support
19218 hardcode_direct_CXX
=no
19219 hardcode_shlibpath_var_CXX
=no
19220 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19221 export_dynamic_flag_spec_CXX
='${wl}-E'
19222 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19223 # Instead, shared libraries are loaded at an image base (0x10000000 by
19224 # default) and relocated if they conflict, which is a slow very memory
19225 # consuming and fragmenting process. To avoid this, we pick a random,
19226 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19227 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19228 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'
19229 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'
19232 case $cc_basename in
19235 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'
19237 # Archives containing C++ object files must be created using
19238 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19239 # necessary to make sure instantiated templates are included
19241 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19244 if test "$GXX" = yes; then
19245 if test "$with_gnu_ld" = no
; then
19246 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'
19248 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'
19251 link_all_deplibs_CXX
=yes
19254 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19255 hardcode_libdir_separator_CXX
=:
19256 inherit_rpath_CXX
=yes
19259 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19260 case $cc_basename in
19262 # Kuck and Associates, Inc. (KAI) C++ Compiler
19264 # KCC will only create a shared library if the output file
19265 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19266 # to its proper name (with version) after linking.
19267 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'
19268 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'
19269 # Commands to make compiler produce verbose output that lists
19270 # what "hidden" libraries, object files and flags are used when
19271 # linking a shared library.
19273 # There doesn't appear to be a way to prevent this compiler from
19274 # explicitly linking system object files so we need to strip them
19275 # from the output so that they don't get included in the library
19277 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"'
19279 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19280 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19282 # Archives containing C++ object files must be created using
19283 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19284 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19289 # version 8.0 and above of icpc choke on multiply defined symbols
19290 # if we add $predep_objects and $postdep_objects, however 7.1 and
19291 # earlier do not add the objects themselves.
19292 case `$CC -V 2>&1` in
19294 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19295 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'
19297 *) # Version 8.0 or newer
19300 ia64
*) tmp_idyn
=' -i_dynamic';;
19302 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19303 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'
19306 archive_cmds_need_lc_CXX
=no
19307 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19308 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19309 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19312 # Portland Group C++ compiler
19314 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19315 prelink_cmds_CXX
='tpldir=Template.dir~
19317 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19318 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19319 old_archive_cmds_CXX
='tpldir=Template.dir~
19321 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19322 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19324 archive_cmds_CXX
='tpldir=Template.dir~
19326 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19327 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19328 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19330 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19331 $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'
19333 *) # Version 6 and above use weak symbols
19334 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19335 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'
19339 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19340 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19341 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'
19345 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346 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'
19348 runpath_var
=LD_RUN_PATH
19349 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19350 hardcode_libdir_separator_CXX
=:
19352 # Commands to make compiler produce verbose output that lists
19353 # what "hidden" libraries, object files and flags are used when
19354 # linking a shared library.
19356 # There doesn't appear to be a way to prevent this compiler from
19357 # explicitly linking system object files so we need to strip them
19358 # from the output so that they don't get included in the library
19360 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'
19362 xl
* | mpixl
* | bgxl
*)
19363 # IBM XL 8.0 on PPC, with GNU ld
19364 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19365 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19366 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19367 if test "x$supports_anon_versioning" = xyes
; then
19368 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19369 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19370 echo "local: *; };" >> $output_objdir/$libname.ver~
19371 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19375 case `$CC -V 2>&1 | sed 5q` in
19378 no_undefined_flag_CXX
=' -zdefs'
19379 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19380 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'
19381 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19382 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'
19383 compiler_needs_object_CXX
=yes
19385 # Not sure whether something based on
19386 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19388 output_verbose_link_cmd
='func_echo_all'
19390 # Archives containing C++ object files must be created using
19391 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19392 # necessary to make sure instantiated templates are included
19394 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19402 # FIXME: insert proper C++ library support
19407 # FIXME: insert proper C++ library support
19412 case $cc_basename in
19414 # FIXME: insert proper C++ library support
19418 # FIXME: insert proper C++ library support
19425 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19426 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19428 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19429 hardcode_direct_CXX
=yes
19430 hardcode_shlibpath_var_CXX
=no
19432 # Workaround some broken pre-1.5 toolchains
19433 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19441 # C++ shared libraries are fairly broken
19446 if test -f /usr
/libexec
/ld.so
; then
19447 hardcode_direct_CXX
=yes
19448 hardcode_shlibpath_var_CXX
=no
19449 hardcode_direct_absolute_CXX
=yes
19450 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19451 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19453 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19454 export_dynamic_flag_spec_CXX
='${wl}-E'
19455 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19457 output_verbose_link_cmd
=func_echo_all
19463 osf3
* | osf4
* | osf5
*)
19464 case $cc_basename in
19466 # Kuck and Associates, Inc. (KAI) C++ Compiler
19468 # KCC will only create a shared library if the output file
19469 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19470 # to its proper name (with version) after linking.
19471 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'
19473 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19474 hardcode_libdir_separator_CXX
=:
19476 # Archives containing C++ object files must be created using
19477 # the KAI C++ compiler.
19479 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19480 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19484 # Rational C++ 2.4.1
19485 # FIXME: insert proper C++ library support
19491 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19492 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'
19493 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19496 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19497 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'
19498 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19499 echo "-hidden">> $lib.exp~
19500 $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~
19502 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19506 hardcode_libdir_separator_CXX
=:
19508 # Commands to make compiler produce verbose output that lists
19509 # what "hidden" libraries, object files and flags are used when
19510 # linking a shared library.
19512 # There doesn't appear to be a way to prevent this compiler from
19513 # explicitly linking system object files so we need to strip them
19514 # from the output so that they don't get included in the library
19516 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"'
19519 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19520 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19523 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'
19526 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'
19530 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19531 hardcode_libdir_separator_CXX
=:
19533 # Commands to make compiler produce verbose output that lists
19534 # what "hidden" libraries, object files and flags are used when
19535 # linking a shared library.
19536 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19539 # FIXME: insert proper C++ library support
19547 # FIXME: insert proper C++ library support
19552 case $cc_basename in
19555 # FIXME: insert proper C++ library support
19560 # FIXME: insert proper C++ library support
19564 # FIXME: insert proper C++ library support
19571 case $cc_basename in
19573 # Sun C++ 4.2, 5.x and Centerline C++
19574 archive_cmds_need_lc_CXX
=yes
19575 no_undefined_flag_CXX
=' -zdefs'
19576 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19577 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19578 $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'
19580 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19581 hardcode_shlibpath_var_CXX
=no
19583 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19585 # The compiler driver will combine and reorder linker options,
19586 # but understands `-z linker_flag'.
19587 # Supported since Solaris 2.6 (maybe 2.5.1?)
19588 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19591 link_all_deplibs_CXX
=yes
19593 output_verbose_link_cmd
='func_echo_all'
19595 # Archives containing C++ object files must be created using
19596 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19597 # necessary to make sure instantiated templates are included
19599 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19602 # Green Hills C++ Compiler
19603 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19605 # The C++ compiler must be used to create the archive.
19606 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19609 # GNU C++ compiler with Solaris linker
19610 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19611 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19612 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19613 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19614 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19615 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19617 # Commands to make compiler produce verbose output that lists
19618 # what "hidden" libraries, object files and flags are used when
19619 # linking a shared library.
19620 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19622 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19624 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19625 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19626 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19628 # Commands to make compiler produce verbose output that lists
19629 # what "hidden" libraries, object files and flags are used when
19630 # linking a shared library.
19631 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19634 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19636 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19638 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19646 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19647 no_undefined_flag_CXX
='${wl}-z,text'
19648 archive_cmds_need_lc_CXX
=no
19649 hardcode_shlibpath_var_CXX
=no
19650 runpath_var
='LD_RUN_PATH'
19652 case $cc_basename in
19654 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19655 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19658 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19659 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19664 sysv5
* | sco3.2v5
* | sco5v6
*)
19665 # Note: We can NOT use -z defs as we might desire, because we do not
19666 # link with -lc, and that would cause any symbols used from libc to
19667 # always be unresolved, which means just about no library would
19668 # ever link correctly. If we're not using GNU ld we use -z text
19669 # though, which does catch some bad symbols but isn't as heavy-handed
19671 no_undefined_flag_CXX
='${wl}-z,text'
19672 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19673 archive_cmds_need_lc_CXX
=no
19674 hardcode_shlibpath_var_CXX
=no
19675 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19676 hardcode_libdir_separator_CXX
=':'
19677 link_all_deplibs_CXX
=yes
19678 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19679 runpath_var
='LD_RUN_PATH'
19681 case $cc_basename in
19683 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19684 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19685 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19686 '"$old_archive_cmds_CXX"
19687 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19688 '"$reload_cmds_CXX"
19691 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19692 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19698 case $cc_basename in
19700 # NonStop-UX NCC 3.20
19701 # FIXME: insert proper C++ library support
19705 # FIXME: insert proper C++ library support
19712 # FIXME: insert proper C++ library support
19717 # FIXME: insert proper C++ library support
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19723 $as_echo "$ld_shlibs_CXX" >&6; }
19724 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19730 ## There is no encapsulation within the following macros, do not change
19731 ## the running order or otherwise move them around unless you know exactly
19732 ## what you are doing...
19733 # Dependencies to place before and after the object being linked:
19734 predep_objects_CXX
=
19735 postdep_objects_CXX
=
19738 compiler_lib_search_path_CXX
=
19740 cat > conftest.
$ac_ext <<_LT_EOF
19744 Foo (void) { a = 0; }
19750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19751 (eval $ac_compile) 2>&5
19753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19754 test $ac_status = 0; }; then
19755 # Parse the compiler output and extract the necessary
19756 # objects, libraries and library flags.
19758 # Sentinel used to keep track of whether or not we are before
19759 # the conftest object file.
19760 pre_test_object_deps_done
=no
19762 for p
in `eval "$output_verbose_link_cmd"`; do
19766 # Some compilers place space between "-{L,R}" and the path.
19767 # Remove the space.
19768 if test $p = "-L" ||
19769 test $p = "-R"; then
19776 if test "$pre_test_object_deps_done" = no
; then
19779 # Internal compiler library paths should come after those
19780 # provided the user. The postdeps already come after the
19781 # user supplied libs so there is no need to process them.
19782 if test -z "$compiler_lib_search_path_CXX"; then
19783 compiler_lib_search_path_CXX
="${prev}${p}"
19785 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19788 # The "-l" case would never come before the object being
19789 # linked, so don't bother handling this case.
19792 if test -z "$postdeps_CXX"; then
19793 postdeps_CXX
="${prev}${p}"
19795 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19801 # This assumes that the test object file only shows up
19802 # once in the compiler output.
19803 if test "$p" = "conftest.$objext"; then
19804 pre_test_object_deps_done
=yes
19808 if test "$pre_test_object_deps_done" = no
; then
19809 if test -z "$predep_objects_CXX"; then
19810 predep_objects_CXX
="$p"
19812 predep_objects_CXX
="$predep_objects_CXX $p"
19815 if test -z "$postdep_objects_CXX"; then
19816 postdep_objects_CXX
="$p"
19818 postdep_objects_CXX
="$postdep_objects_CXX $p"
19823 *) ;; # Ignore the rest.
19831 echo "libtool.m4: error: problem compiling CXX test program"
19834 $RM -f confest.
$objext
19836 # PORTME: override above test on systems where it is broken
19839 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19840 # hack all around it, let's just trust "g++" to DTRT.
19841 predep_objects_CXX
=
19842 postdep_objects_CXX
=
19847 case `$CC -V 2>&1 | sed 5q` in
19851 # The more standards-conforming stlport4 library is
19852 # incompatible with the Cstd library. Avoid specifying
19853 # it if it's in CXXFLAGS. Ignore libCrun as
19854 # -library=stlport4 depends on it.
19855 case " $CXX $CXXFLAGS " in
19856 *" -library=stlport4 "*)
19857 solaris_use_stlport4
=yes
19861 if test "$solaris_use_stlport4" != yes; then
19862 postdeps_CXX
='-library=Cstd -library=Crun'
19869 case $cc_basename in
19871 # The more standards-conforming stlport4 library is
19872 # incompatible with the Cstd library. Avoid specifying
19873 # it if it's in CXXFLAGS. Ignore libCrun as
19874 # -library=stlport4 depends on it.
19875 case " $CXX $CXXFLAGS " in
19876 *" -library=stlport4 "*)
19877 solaris_use_stlport4
=yes
19881 # Adding this requires a known-good setup of shared libraries for
19882 # Sun compiler versions before 5.6, else PIC objects from an old
19883 # archive will be linked into the output, leading to subtle bugs.
19884 if test "$solaris_use_stlport4" != yes; then
19885 postdeps_CXX
='-library=Cstd -library=Crun'
19893 case " $postdeps_CXX " in
19894 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19896 compiler_lib_search_dirs_CXX
=
19897 if test -n "${compiler_lib_search_path_CXX}"; then
19898 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19931 lt_prog_compiler_wl_CXX
=
19932 lt_prog_compiler_pic_CXX
=
19933 lt_prog_compiler_static_CXX
=
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19936 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19938 # C++ specific cases for pic, static, wl, etc.
19939 if test "$GXX" = yes; then
19940 lt_prog_compiler_wl_CXX
='-Wl,'
19941 lt_prog_compiler_static_CXX
='-static'
19945 # All AIX code is PIC.
19946 if test "$host_cpu" = ia64
; then
19947 # AIX 5 now supports IA64 processor
19948 lt_prog_compiler_static_CXX
='-Bstatic'
19955 # see comment about AmigaOS4 .so support
19956 lt_prog_compiler_pic_CXX
='-fPIC'
19959 # FIXME: we need at least 68020 code to build shared libraries, but
19960 # adding the `-m68020' flag to GCC prevents building anything better,
19962 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19967 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19968 # PIC is the default for these OSes.
19970 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19971 # This hack is so that the source file can tell whether it is being
19972 # built for inclusion in a dll (and should export symbols for example).
19973 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19974 # (--disable-auto-import) libraries
19975 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19977 darwin
* | rhapsody
*)
19978 # PIC is the default on this platform
19979 # Common symbols not allowed in MH_DYLIB files
19980 lt_prog_compiler_pic_CXX
='-fno-common'
19983 # DJGPP does not support shared libraries at all
19984 lt_prog_compiler_pic_CXX
=
19987 # PIC is the default for Haiku.
19988 # The "-static" flag exists, but is broken.
19989 lt_prog_compiler_static_CXX
=
19992 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19993 # Instead, we relocate shared libraries at runtime.
19996 if test -d /usr
/nec
; then
19997 lt_prog_compiler_pic_CXX
=-Kconform_pic
20001 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20002 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20003 # sets the default TLS model and affects inlining.
20008 lt_prog_compiler_pic_CXX
='-fPIC'
20013 # QNX uses GNU C++, but need to define -shared option too, otherwise
20014 # it will coredump.
20015 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20018 lt_prog_compiler_pic_CXX
='-fPIC'
20024 # All AIX code is PIC.
20025 if test "$host_cpu" = ia64
; then
20026 # AIX 5 now supports IA64 processor
20027 lt_prog_compiler_static_CXX
='-Bstatic'
20029 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20033 case $cc_basename in
20035 # Green Hills C++ Compiler
20036 # _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"
20041 case $cc_basename in
20043 lt_prog_compiler_pic_CXX
='-KPIC'
20046 # Green Hills C++ Compiler
20047 lt_prog_compiler_pic_CXX
='-pic'
20053 freebsd
* | dragonfly
*)
20054 # FreeBSD uses GNU C++
20056 hpux9
* | hpux10
* | hpux11
*)
20057 case $cc_basename in
20059 lt_prog_compiler_wl_CXX
='-Wl,'
20060 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20061 if test "$host_cpu" != ia64
; then
20062 lt_prog_compiler_pic_CXX
='+Z'
20066 lt_prog_compiler_wl_CXX
='-Wl,'
20067 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20073 lt_prog_compiler_pic_CXX
='+Z'
20082 # This is c89, which is MS Visual C++ (no shared libs)
20083 # Anyone wants to do a port?
20085 irix5
* | irix6
* | nonstopux
*)
20086 case $cc_basename in
20088 lt_prog_compiler_wl_CXX
='-Wl,'
20089 lt_prog_compiler_static_CXX
='-non_shared'
20090 # CC pic flag -KPIC is the default.
20096 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20097 case $cc_basename in
20100 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20101 lt_prog_compiler_pic_CXX
='-fPIC'
20104 # old Intel C++ for x86_64 which still supported -KPIC.
20105 lt_prog_compiler_wl_CXX
='-Wl,'
20106 lt_prog_compiler_pic_CXX
='-KPIC'
20107 lt_prog_compiler_static_CXX
='-static'
20110 # Intel C++, used to be incompatible with GCC.
20111 # ICC 10 doesn't accept -KPIC any more.
20112 lt_prog_compiler_wl_CXX
='-Wl,'
20113 lt_prog_compiler_pic_CXX
='-fPIC'
20114 lt_prog_compiler_static_CXX
='-static'
20117 # Portland Group C++ compiler
20118 lt_prog_compiler_wl_CXX
='-Wl,'
20119 lt_prog_compiler_pic_CXX
='-fpic'
20120 lt_prog_compiler_static_CXX
='-Bstatic'
20124 # Make sure the PIC flag is empty. It appears that all Alpha
20125 # Linux and Compaq Tru64 Unix objects are PIC.
20126 lt_prog_compiler_pic_CXX
=
20127 lt_prog_compiler_static_CXX
='-non_shared'
20129 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20130 # IBM XL 8.0, 9.0 on PPC and BlueGene
20131 lt_prog_compiler_wl_CXX
='-Wl,'
20132 lt_prog_compiler_pic_CXX
='-qpic'
20133 lt_prog_compiler_static_CXX
='-qstaticlink'
20136 case `$CC -V 2>&1 | sed 5q` in
20139 lt_prog_compiler_pic_CXX
='-KPIC'
20140 lt_prog_compiler_static_CXX
='-Bstatic'
20141 lt_prog_compiler_wl_CXX
='-Qoption ld '
20152 case $cc_basename in
20154 lt_prog_compiler_pic_CXX
='-W c,exportall'
20163 # QNX uses GNU C++, but need to define -shared option too, otherwise
20164 # it will coredump.
20165 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20167 osf3
* | osf4
* | osf5
*)
20168 case $cc_basename in
20170 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20173 # Rational C++ 2.4.1
20174 lt_prog_compiler_pic_CXX
='-pic'
20177 # Digital/Compaq C++
20178 lt_prog_compiler_wl_CXX
='-Wl,'
20179 # Make sure the PIC flag is empty. It appears that all Alpha
20180 # Linux and Compaq Tru64 Unix objects are PIC.
20181 lt_prog_compiler_pic_CXX
=
20182 lt_prog_compiler_static_CXX
='-non_shared'
20191 case $cc_basename in
20193 # Sun C++ 4.2, 5.x and Centerline C++
20194 lt_prog_compiler_pic_CXX
='-KPIC'
20195 lt_prog_compiler_static_CXX
='-Bstatic'
20196 lt_prog_compiler_wl_CXX
='-Qoption ld '
20199 # Green Hills C++ Compiler
20200 lt_prog_compiler_pic_CXX
='-PIC'
20207 case $cc_basename in
20210 lt_prog_compiler_pic_CXX
='-pic'
20211 lt_prog_compiler_static_CXX
='-Bstatic'
20215 lt_prog_compiler_pic_CXX
='-pic'
20221 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20222 case $cc_basename in
20224 lt_prog_compiler_wl_CXX
='-Wl,'
20225 lt_prog_compiler_pic_CXX
='-KPIC'
20226 lt_prog_compiler_static_CXX
='-Bstatic'
20231 case $cc_basename in
20233 # NonStop-UX NCC 3.20
20234 lt_prog_compiler_pic_CXX
='-KPIC'
20243 lt_prog_compiler_can_build_shared_CXX
=no
20249 # For platforms which do not support PIC, -DPIC is meaningless:
20251 lt_prog_compiler_pic_CXX
=
20254 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20258 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20263 # Check to make sure the PIC flag actually works.
20265 if test -n "$lt_prog_compiler_pic_CXX"; then
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20267 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20268 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20269 $as_echo_n "(cached) " >&6
20271 lt_cv_prog_compiler_pic_works_CXX
=no
20272 ac_outfile
=conftest.
$ac_objext
20273 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20274 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20275 # Insert the option either (1) after the last *FLAGS variable, or
20276 # (2) before a word containing "conftest.", or (3) at the end.
20277 # Note that $ac_compile itself does not contain backslashes and begins
20278 # with a dollar sign (not a hyphen), so the echo should work correctly.
20279 # The option is referenced via a variable to avoid confusing sed.
20280 lt_compile
=`echo "$ac_compile" | $SED \
20281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20283 -e 's:$: $lt_compiler_flag:'`
20284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20285 (eval "$lt_compile" 2>conftest.err
)
20287 cat conftest.err
>&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 if (exit $ac_status) && test -s "$ac_outfile"; then
20290 # The compiler can only warn and ignore the option if not recognized
20291 # So say no if there are warnings other than the usual output.
20292 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20293 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20294 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20295 lt_cv_prog_compiler_pic_works_CXX
=yes
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20302 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20304 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20305 case $lt_prog_compiler_pic_CXX in
20307 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20310 lt_prog_compiler_pic_CXX
=
20311 lt_prog_compiler_can_build_shared_CXX
=no
20319 # Check to make sure the static flag actually works.
20321 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20323 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20324 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20325 $as_echo_n "(cached) " >&6
20327 lt_cv_prog_compiler_static_works_CXX
=no
20328 save_LDFLAGS
="$LDFLAGS"
20329 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20330 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20331 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20332 # The linker can only warn and ignore the option if not recognized
20333 # So say no if there are warnings
20334 if test -s conftest.err
; then
20335 # Append any errors to the config.log.
20336 cat conftest.err
1>&5
20337 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20338 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20339 if diff conftest.exp conftest.er2
>/dev
/null
; then
20340 lt_cv_prog_compiler_static_works_CXX
=yes
20343 lt_cv_prog_compiler_static_works_CXX
=yes
20347 LDFLAGS
="$save_LDFLAGS"
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20351 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20353 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20356 lt_prog_compiler_static_CXX
=
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20363 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20364 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20365 $as_echo_n "(cached) " >&6
20367 lt_cv_prog_compiler_c_o_CXX
=no
20368 $RM -r conftest
2>/dev
/null
20372 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20374 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20375 # Insert the option either (1) after the last *FLAGS variable, or
20376 # (2) before a word containing "conftest.", or (3) at the end.
20377 # Note that $ac_compile itself does not contain backslashes and begins
20378 # with a dollar sign (not a hyphen), so the echo should work correctly.
20379 lt_compile
=`echo "$ac_compile" | $SED \
20380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20382 -e 's:$: $lt_compiler_flag:'`
20383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20384 (eval "$lt_compile" 2>out
/conftest.err
)
20386 cat out
/conftest.err
>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20390 # The compiler can only warn and ignore the option if not recognized
20391 # So say no if there are warnings
20392 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20393 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20394 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20395 lt_cv_prog_compiler_c_o_CXX
=yes
20400 # SGI C++ compiler will create directory out/ii_files/ for
20401 # template instantiation
20402 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20403 $RM out
/* && rmdir out
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20410 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20415 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20416 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20417 $as_echo_n "(cached) " >&6
20419 lt_cv_prog_compiler_c_o_CXX
=no
20420 $RM -r conftest
2>/dev
/null
20424 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20426 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20427 # Insert the option either (1) after the last *FLAGS variable, or
20428 # (2) before a word containing "conftest.", or (3) at the end.
20429 # Note that $ac_compile itself does not contain backslashes and begins
20430 # with a dollar sign (not a hyphen), so the echo should work correctly.
20431 lt_compile
=`echo "$ac_compile" | $SED \
20432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20434 -e 's:$: $lt_compiler_flag:'`
20435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20436 (eval "$lt_compile" 2>out
/conftest.err
)
20438 cat out
/conftest.err
>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20442 # The compiler can only warn and ignore the option if not recognized
20443 # So say no if there are warnings
20444 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20445 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20446 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20447 lt_cv_prog_compiler_c_o_CXX
=yes
20452 # SGI C++ compiler will create directory out/ii_files/ for
20453 # template instantiation
20454 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20455 $RM out
/* && rmdir out
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20462 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20467 hard_links
="nottested"
20468 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20469 # do not overwrite the value of need_locks provided by the user
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20471 $as_echo_n "checking if we can lock with hard links... " >&6; }
20474 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20476 ln conftest.a conftest.b
2>&5 || hard_links
=no
20477 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20479 $as_echo "$hard_links" >&6; }
20480 if test "$hard_links" = no
; then
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20482 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20492 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20494 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20497 # If we're using GNU nm, then we don't want the "-C" option.
20498 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20499 # Also, AIX nm treats weak defined symbols like other global defined
20500 # symbols, whereas GNU nm marks them as "W".
20501 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20502 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'
20504 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'
20508 export_symbols_cmds_CXX
="$ltdll_cmds"
20510 cygwin
* | mingw
* | cegcc
*)
20511 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'
20514 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20517 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20520 $as_echo "$ld_shlibs_CXX" >&6; }
20521 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20523 with_gnu_ld_CXX
=$with_gnu_ld
20531 # Do we need to explicitly link libc?
20533 case "x$archive_cmds_need_lc_CXX" in
20535 # Assume -lc should be added
20536 archive_cmds_need_lc_CXX
=yes
20538 if test "$enable_shared" = yes && test "$GCC" = yes; then
20539 case $archive_cmds_CXX in
20541 # FIXME: we may have to deal with multi-command sequences.
20544 # Test whether the compiler implicitly links with -lc since on some
20545 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20546 # to ld, don't add -lc before -lgcc.
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20548 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20549 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20550 $as_echo_n "(cached) " >&6
20553 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20556 (eval $ac_compile) 2>&5
20558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20559 test $ac_status = 0; } 2>conftest.err
; then
20562 libobjs
=conftest.
$ac_objext
20564 wl
=$lt_prog_compiler_wl_CXX
20565 pic_flag
=$lt_prog_compiler_pic_CXX
20571 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20572 allow_undefined_flag_CXX
=
20573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20574 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20577 test $ac_status = 0; }
20579 lt_cv_archive_cmds_need_lc_CXX
=no
20581 lt_cv_archive_cmds_need_lc_CXX
=yes
20583 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20585 cat conftest.err
1>&5
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20591 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20592 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20663 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20665 library_names_spec
=
20666 libname_spec
='lib$name'
20670 postuninstall_cmds
=
20674 shlibpath_overrides_runpath
=unknown
20676 dynamic_linker
="$host_os ld.so"
20677 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20678 need_lib_prefix
=unknown
20679 hardcode_into_libs
=no
20681 # when you set need_version to no, make sure it does not cause -set_version
20682 # flags to be left without arguments
20683 need_version
=unknown
20688 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20689 shlibpath_var
=LIBPATH
20691 # AIX 3 has no versioning support, so we append a major version to the name.
20692 soname_spec
='${libname}${release}${shared_ext}$major'
20699 hardcode_into_libs
=yes
20700 if test "$host_cpu" = ia64
; then
20701 # AIX 5 supports IA64
20702 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20703 shlibpath_var
=LD_LIBRARY_PATH
20705 # With GCC up to 2.95.x, collect2 would create an import file
20706 # for dependence libraries. The import file would start with
20707 # the line `#! .'. This would cause the generated library to
20708 # depend on `.', always an invalid library. This was fixed in
20709 # development snapshots of GCC prior to 3.0.
20711 aix4 | aix4.
[01] | aix4.
[01].
*)
20712 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20714 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20717 can_build_shared
=no
20721 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20722 # soname into executable. Probably we can add versioning support to
20723 # collect2, so additional links can be useful in future.
20724 if test "$aix_use_runtimelinking" = yes; then
20725 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20726 # instead of lib<name>.a to let people know that these are not
20727 # typical AIX shared libraries.
20728 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730 # We preserve .a as extension for shared libraries through AIX4.2
20731 # and later when we are not doing run time linking.
20732 library_names_spec
='${libname}${release}.a $libname.a'
20733 soname_spec
='${libname}${release}${shared_ext}$major'
20735 shlibpath_var
=LIBPATH
20742 # Since July 2007 AmigaOS4 officially supports .so libraries.
20743 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20747 library_names_spec
='$libname.ixlibrary $libname.a'
20748 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20749 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'
20755 library_names_spec
='${libname}${shared_ext}'
20756 dynamic_linker
="$host_os ld.so"
20757 shlibpath_var
=LIBRARY_PATH
20763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20764 soname_spec
='${libname}${release}${shared_ext}$major'
20765 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20766 shlibpath_var
=LD_LIBRARY_PATH
20767 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20768 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20769 # the default ld.so.conf also contains /usr/contrib/lib and
20770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20771 # libtool to hard-code these into programs
20774 cygwin
* | mingw
* | pw32
* | cegcc
*)
20775 version_type
=windows
20780 case $GCC,$host_os in
20781 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20782 library_names_spec
='$libname.dll.a'
20783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20784 postinstall_cmds
='base_file=`basename \${file}`~
20785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20786 dldir=$destdir/`dirname \$dlpath`~
20787 test -d \$dldir || mkdir -p \$dldir~
20788 $install_prog $dir/$dlname \$dldir/$dlname~
20789 chmod a+x \$dldir/$dlname~
20790 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20791 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20793 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20794 dlpath=$dir/\$dldll~
20796 shlibpath_overrides_runpath
=yes
20800 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20801 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20805 # MinGW DLLs use traditional 'lib' prefix
20806 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20809 # pw32 DLLs use 'pw' prefix rather than 'lib'
20810 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20816 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20819 dynamic_linker
='Win32 ld.exe'
20820 # FIXME: first we should search . and the directory the executable is in
20824 darwin
* | rhapsody
*)
20825 dynamic_linker
="$host_os dyld"
20826 version_type
=darwin
20829 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20830 soname_spec
='${libname}${release}${major}$shared_ext'
20831 shlibpath_overrides_runpath
=yes
20832 shlibpath_var
=DYLD_LIBRARY_PATH
20833 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20835 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20842 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20843 soname_spec
='${libname}${release}${shared_ext}$major'
20844 shlibpath_var
=LD_LIBRARY_PATH
20847 freebsd
* | dragonfly
*)
20848 # DragonFly does not have aout. When/if they implement a new
20849 # versioning mechanism, adjust this.
20850 if test -x /usr
/bin
/objformat
; then
20851 objformat
=`/usr/bin/objformat`
20854 freebsd
[123]*) objformat
=aout
;;
20855 *) objformat
=elf
;;
20858 version_type
=freebsd-
$objformat
20859 case $version_type in
20861 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20866 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20870 shlibpath_var
=LD_LIBRARY_PATH
20873 shlibpath_overrides_runpath
=yes
20875 freebsd3.
[01]* | freebsdelf3.
[01]*)
20876 shlibpath_overrides_runpath
=yes
20877 hardcode_into_libs
=yes
20879 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20880 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20881 shlibpath_overrides_runpath
=no
20882 hardcode_into_libs
=yes
20884 *) # from 4.6 on, and DragonFly
20885 shlibpath_overrides_runpath
=yes
20886 hardcode_into_libs
=yes
20895 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20896 soname_spec
='${libname}${release}${shared_ext}$major'
20897 shlibpath_var
=LD_LIBRARY_PATH
20898 hardcode_into_libs
=yes
20905 dynamic_linker
="$host_os runtime_loader"
20906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20907 soname_spec
='${libname}${release}${shared_ext}$major'
20908 shlibpath_var
=LIBRARY_PATH
20909 shlibpath_overrides_runpath
=yes
20910 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20911 hardcode_into_libs
=yes
20914 hpux9
* | hpux10
* | hpux11
*)
20915 # Give a soname corresponding to the major version so that dld.sl refuses to
20916 # link against other versions.
20923 hardcode_into_libs
=yes
20924 dynamic_linker
="$host_os dld.so"
20925 shlibpath_var
=LD_LIBRARY_PATH
20926 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20928 soname_spec
='${libname}${release}${shared_ext}$major'
20929 if test "X$HPUX_IA64_MODE" = X32
; then
20930 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20932 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20934 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20938 hardcode_into_libs
=yes
20939 dynamic_linker
="$host_os dld.sl"
20940 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20941 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20943 soname_spec
='${libname}${release}${shared_ext}$major'
20944 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20945 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20949 dynamic_linker
="$host_os dld.sl"
20950 shlibpath_var
=SHLIB_PATH
20951 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20953 soname_spec
='${libname}${release}${shared_ext}$major'
20956 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20957 postinstall_cmds
='chmod 555 $lib'
20958 # or fails outright, so override atomically:
20959 install_override_mode
=555
20966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20967 soname_spec
='${libname}${release}${shared_ext}$major'
20968 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20969 shlibpath_var
=LD_LIBRARY_PATH
20970 shlibpath_overrides_runpath
=no
20971 hardcode_into_libs
=yes
20974 irix5
* | irix6
* | nonstopux
*)
20976 nonstopux
*) version_type
=nonstopux
;;
20978 if test "$lt_cv_prog_gnu_ld" = yes; then
20986 soname_spec
='${libname}${release}${shared_ext}$major'
20987 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20989 irix5
* | nonstopux
*)
20990 libsuff
= shlibsuff
=
20993 case $LD in # libtool.m4 will add one of these switches to LD
20994 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20995 libsuff
= shlibsuff
= libmagic
=32-bit;;
20996 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20997 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20998 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20999 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21000 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21004 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21005 shlibpath_overrides_runpath
=no
21006 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21007 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21008 hardcode_into_libs
=yes
21011 # No shared lib support for Linux oldld, aout, or coff.
21012 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21016 # This must be Linux ELF.
21017 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21022 soname_spec
='${libname}${release}${shared_ext}$major'
21023 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21024 shlibpath_var
=LD_LIBRARY_PATH
21025 shlibpath_overrides_runpath
=no
21027 # Some binutils ld are patched to set DT_RUNPATH
21028 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21029 $as_echo_n "(cached) " >&6
21031 lt_cv_shlibpath_overrides_runpath
=no
21032 save_LDFLAGS
=$LDFLAGS
21033 save_libdir
=$libdir
21034 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21035 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21037 /* end confdefs.h. */
21047 if ac_fn_cxx_try_link
"$LINENO"; then :
21048 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21049 lt_cv_shlibpath_overrides_runpath
=yes
21052 rm -f core conftest.err conftest.
$ac_objext \
21053 conftest
$ac_exeext conftest.
$ac_ext
21054 LDFLAGS
=$save_LDFLAGS
21055 libdir
=$save_libdir
21059 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21061 # This implies no fast_install, which is unacceptable.
21062 # Some rework will be needed to allow for fast_install
21063 # before this can be enabled.
21064 hardcode_into_libs
=yes
21066 # Append ld.so.conf contents to the search path
21067 if test -f /etc
/ld.so.conf
; then
21068 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' ' '`
21069 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21072 # We used to test for /lib/ld.so.1 and disable shared libraries on
21073 # powerpc, because MkLinux only supported shared libraries with the
21074 # GNU dynamic linker. Since this was broken with cross compilers,
21075 # most powerpc-linux boxes support dynamic linking these days and
21076 # people can always --disable-shared, the test was removed, and we
21077 # assume the GNU/Linux dynamic linker is in use.
21078 dynamic_linker
='GNU/Linux ld.so'
21085 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21087 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21088 dynamic_linker
='NetBSD (a.out) ld.so'
21090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21091 soname_spec
='${libname}${release}${shared_ext}$major'
21092 dynamic_linker
='NetBSD ld.elf_so'
21094 shlibpath_var
=LD_LIBRARY_PATH
21095 shlibpath_overrides_runpath
=yes
21096 hardcode_into_libs
=yes
21101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21102 shlibpath_var
=LD_LIBRARY_PATH
21103 shlibpath_overrides_runpath
=yes
21110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21111 soname_spec
='${libname}${release}${shared_ext}$major'
21112 shlibpath_var
=LD_LIBRARY_PATH
21113 shlibpath_overrides_runpath
=no
21114 hardcode_into_libs
=yes
21115 dynamic_linker
='ldqnx.so'
21120 sys_lib_dlsearch_path_spec
="/usr/lib"
21122 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21124 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21125 *) need_version
=no
;;
21127 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21128 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21129 shlibpath_var
=LD_LIBRARY_PATH
21130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21132 openbsd2.
[89] | openbsd2.
[89].
*)
21133 shlibpath_overrides_runpath
=no
21136 shlibpath_overrides_runpath
=yes
21140 shlibpath_overrides_runpath
=yes
21145 libname_spec
='$name'
21148 library_names_spec
='$libname${shared_ext} $libname.a'
21149 dynamic_linker
='OS/2 ld.exe'
21150 shlibpath_var
=LIBPATH
21153 osf3
* | osf4
* | osf5
*)
21157 soname_spec
='${libname}${release}${shared_ext}$major'
21158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21159 shlibpath_var
=LD_LIBRARY_PATH
21160 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21161 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21173 soname_spec
='${libname}${release}${shared_ext}$major'
21174 shlibpath_var
=LD_LIBRARY_PATH
21175 shlibpath_overrides_runpath
=yes
21176 hardcode_into_libs
=yes
21177 # ldd complains unless libraries are executable
21178 postinstall_cmds
='chmod +x $lib'
21183 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21184 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21185 shlibpath_var
=LD_LIBRARY_PATH
21186 shlibpath_overrides_runpath
=yes
21187 if test "$with_gnu_ld" = yes; then
21195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21196 soname_spec
='${libname}${release}${shared_ext}$major'
21197 shlibpath_var
=LD_LIBRARY_PATH
21198 case $host_vendor in
21200 shlibpath_overrides_runpath
=no
21202 runpath_var
=LD_RUN_PATH
21210 shlibpath_overrides_runpath
=no
21211 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21217 if test -d /usr
/nec
;then
21219 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21220 soname_spec
='$libname${shared_ext}.$major'
21221 shlibpath_var
=LD_LIBRARY_PATH
21225 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21226 version_type
=freebsd-elf
21229 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21230 soname_spec
='${libname}${release}${shared_ext}$major'
21231 shlibpath_var
=LD_LIBRARY_PATH
21232 shlibpath_overrides_runpath
=yes
21233 hardcode_into_libs
=yes
21234 if test "$with_gnu_ld" = yes; then
21235 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21237 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21240 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21244 sys_lib_dlsearch_path_spec
='/usr/lib'
21248 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21253 shlibpath_var
=LD_LIBRARY_PATH
21254 shlibpath_overrides_runpath
=no
21255 hardcode_into_libs
=yes
21260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21261 soname_spec
='${libname}${release}${shared_ext}$major'
21262 shlibpath_var
=LD_LIBRARY_PATH
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21270 $as_echo "$dynamic_linker" >&6; }
21271 test "$dynamic_linker" = no
&& can_build_shared
=no
21273 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21274 if test "$GCC" = yes; then
21275 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21278 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21279 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21281 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21282 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21323 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21324 hardcode_action_CXX
=
21325 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21326 test -n "$runpath_var_CXX" ||
21327 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21329 # We can hardcode non-existent directories.
21330 if test "$hardcode_direct_CXX" != no
&&
21331 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21332 # have to relink, otherwise we might link with an installed library
21333 # when we should be linking with a yet-to-be-installed one
21334 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21335 test "$hardcode_minus_L_CXX" != no
; then
21336 # Linking always hardcodes the temporary library directory.
21337 hardcode_action_CXX
=relink
21339 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21340 hardcode_action_CXX
=immediate
21343 # We cannot hardcode anything, or else we can only hardcode existing
21345 hardcode_action_CXX
=unsupported
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21348 $as_echo "$hardcode_action_CXX" >&6; }
21350 if test "$hardcode_action_CXX" = relink ||
21351 test "$inherit_rpath_CXX" = yes; then
21352 # Fast installation is not supported
21353 enable_fast_install
=no
21354 elif test "$shlibpath_overrides_runpath" = yes ||
21355 test "$enable_shared" = no
; then
21356 # Fast installation is not necessary
21357 enable_fast_install
=needless
21366 fi # test -n "$compiler"
21372 with_gnu_ld
=$lt_save_with_gnu_ld
21373 lt_cv_path_LDCXX
=$lt_cv_path_LD
21374 lt_cv_path_LD
=$lt_save_path_LD
21375 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21376 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21377 fi # test "$_lt_caught_CXX_error" != yes
21380 ac_cpp
='$CPP $CPPFLAGS'
21381 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21382 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21400 # Only expand once:
21406 # Identify the assembler which will work hand-in-glove with the newly
21407 # built GCC, so that we can examine its features. This is the assembler
21408 # which will be driven by the driver program.
21410 # If build != host, and we aren't building gas in-tree, we identify a
21411 # build->target assembler and hope that it will have the same features
21412 # as the host->target assembler we'll be using.
21413 gcc_cv_gas_major_version
=
21414 gcc_cv_gas_minor_version
=
21415 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21417 if test "${gcc_cv_as+set}" = set; then :
21421 if test -x "$DEFAULT_ASSEMBLER"; then
21422 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21423 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21424 && test -f ..
/gas
/Makefile \
21425 && test x
$build = x
$host; then
21426 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21427 elif test -x as
$build_exeext; then
21428 # Build using assembler in the current directory.
21429 gcc_cv_as
=.
/as
$build_exeext
21430 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21431 gcc_cv_as
="$AS_FOR_TARGET"
21433 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21434 set dummy
$AS_FOR_TARGET; ac_word
=$2
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21436 $as_echo_n "checking for $ac_word... " >&6; }
21437 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21438 $as_echo_n "(cached) " >&6
21442 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21446 for as_dir
in $PATH
21449 test -z "$as_dir" && as_dir
=.
21450 for ac_exec_ext
in '' $ac_executable_extensions; do
21451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21452 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21463 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21464 if test -n "$gcc_cv_as"; then
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21466 $as_echo "$gcc_cv_as" >&6; }
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21469 $as_echo "no" >&6; }
21476 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21478 case "$ORIGINAL_AS_FOR_TARGET" in
21479 .
/as | .
/as
$build_exeext) ;;
21480 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21485 $as_echo_n "checking what assembler to use... " >&6; }
21486 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21487 # Single tree build which includes gas. We want to prefer it
21488 # over whatever linker top-level may have detected, since
21489 # we'll use what we're building after installation anyway.
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21491 $as_echo "newly built gas" >&6; }
21493 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21494 for f
in $gcc_cv_as_bfd_srcdir/configure \
21495 $gcc_cv_as_gas_srcdir/configure \
21496 $gcc_cv_as_gas_srcdir/configure.
in \
21497 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21498 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21499 if test x
$gcc_cv_gas_version != x
; then
21503 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21504 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21505 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21506 case $gcc_cv_gas_patch_version in
21507 "") gcc_cv_gas_patch_version
="0" ;;
21509 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21510 + $gcc_cv_gas_minor_version \) \* 1000 \
21511 + $gcc_cv_gas_patch_version`
21513 in_tree_gas_is_elf
=no
21514 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21515 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21516 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21518 in_tree_gas_is_elf
=yes
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21522 $as_echo "$gcc_cv_as" >&6; }
21526 # Identify the linker which will work hand-in-glove with the newly
21527 # built GCC, so that we can examine its features. This is the linker
21528 # which will be driven by the driver program.
21530 # If build != host, and we aren't building gas in-tree, we identify a
21531 # build->target linker and hope that it will have the same features
21532 # as the host->target linker we'll be using.
21533 gcc_cv_gld_major_version
=
21534 gcc_cv_gld_minor_version
=
21535 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21536 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21538 if test "${gcc_cv_ld+set}" = set; then :
21542 if test -x "$DEFAULT_LINKER"; then
21543 gcc_cv_ld
="$DEFAULT_LINKER"
21544 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21545 && test -f ..
/ld
/Makefile \
21546 && test x
$build = x
$host; then
21547 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21548 elif test -x collect-ld
$build_exeext; then
21549 # Build using linker in the current directory.
21550 gcc_cv_ld
=.
/collect-ld
$build_exeext
21551 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21552 gcc_cv_ld
="$LD_FOR_TARGET"
21554 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21555 set dummy
$LD_FOR_TARGET; ac_word
=$2
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21557 $as_echo_n "checking for $ac_word... " >&6; }
21558 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21559 $as_echo_n "(cached) " >&6
21563 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21567 for as_dir
in $PATH
21570 test -z "$as_dir" && as_dir
=.
21571 for ac_exec_ext
in '' $ac_executable_extensions; do
21572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21573 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21584 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21585 if test -n "$gcc_cv_ld"; then
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21587 $as_echo "$gcc_cv_ld" >&6; }
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21590 $as_echo "no" >&6; }
21597 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21598 PLUGIN_LD
=`basename $gcc_cv_ld`
21600 # Check whether --with-plugin-ld was given.
21601 if test "${with_plugin_ld+set}" = set; then :
21602 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21603 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21604 PLUGIN_LD
="$withval"
21610 cat >>confdefs.h
<<_ACEOF
21611 #define PLUGIN_LD "$PLUGIN_LD"
21615 # Check to see if we are using gold instead of ld
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21617 $as_echo_n "checking whether we are using gold... " >&6; }
21619 if test x
$gcc_cv_ld != x
; then
21620 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21621 |
grep "GNU gold" > /dev
/null
; then
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21626 $as_echo "$ld_is_gold" >&6; }
21628 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21630 case "$ORIGINAL_LD_FOR_TARGET" in
21631 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21632 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21637 $as_echo_n "checking what linker to use... " >&6; }
21638 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21639 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21640 # Single tree build which includes ld. We want to prefer it
21641 # over whatever linker top-level may have detected, since
21642 # we'll use what we're building after installation anyway.
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21644 $as_echo "newly built ld" >&6; }
21646 in_tree_ld_is_elf
=no
21647 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21648 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21649 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21650 in_tree_ld_is_elf
=yes
21651 elif test "$ld_is_gold" = yes; then
21652 in_tree_ld_is_elf
=yes
21654 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
21656 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21657 if test x
$gcc_cv_gld_version != x
; then
21661 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21662 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21665 $as_echo "$gcc_cv_ld" >&6; }
21669 # Figure out what nm we will be using.
21670 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21671 if test "${gcc_cv_nm+set}" = set; then :
21675 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21676 && test -f ..
/binutils
/Makefile \
21677 && test x
$build = x
$host; then
21678 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21679 elif test -x nm
$build_exeext; then
21680 gcc_cv_nm
=.
/nm
$build_exeext
21681 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21682 gcc_cv_nm
="$NM_FOR_TARGET"
21684 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21685 set dummy
$NM_FOR_TARGET; ac_word
=$2
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21687 $as_echo_n "checking for $ac_word... " >&6; }
21688 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21689 $as_echo_n "(cached) " >&6
21693 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21697 for as_dir
in $PATH
21700 test -z "$as_dir" && as_dir
=.
21701 for ac_exec_ext
in '' $ac_executable_extensions; do
21702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21703 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21714 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21715 if test -n "$gcc_cv_nm"; then
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21717 $as_echo "$gcc_cv_nm" >&6; }
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21720 $as_echo "no" >&6; }
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21728 $as_echo_n "checking what nm to use... " >&6; }
21729 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21730 # Single tree build which includes binutils.
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21732 $as_echo "newly built nm" >&6; }
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21736 $as_echo "$gcc_cv_nm" >&6; }
21740 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21742 case "$ORIGINAL_NM_FOR_TARGET" in
21743 .
/nm | .
/nm
$build_exeext) ;;
21744 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21749 # Figure out what objdump we will be using.
21750 if test "${gcc_cv_objdump+set}" = set; then :
21754 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21755 && test -f ..
/binutils
/Makefile \
21756 && test x
$build = x
$host; then
21757 # Single tree build which includes binutils.
21758 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21759 elif test -x objdump
$build_exeext; then
21760 gcc_cv_objdump
=.
/objdump
$build_exeext
21761 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21762 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21764 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21765 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21767 $as_echo_n "checking for $ac_word... " >&6; }
21768 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21771 case $gcc_cv_objdump in
21773 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21777 for as_dir
in $PATH
21780 test -z "$as_dir" && as_dir
=.
21781 for ac_exec_ext
in '' $ac_executable_extensions; do
21782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21783 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21794 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21795 if test -n "$gcc_cv_objdump"; then
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21797 $as_echo "$gcc_cv_objdump" >&6; }
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21800 $as_echo "no" >&6; }
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21808 $as_echo_n "checking what objdump to use... " >&6; }
21809 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21810 # Single tree build which includes binutils.
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21812 $as_echo "newly built objdump" >&6; }
21813 elif test x
$gcc_cv_objdump = x
; then
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21815 $as_echo "not found" >&6; }
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21818 $as_echo "$gcc_cv_objdump" >&6; }
21821 # Figure out what readelf we will be using.
21822 if test "${gcc_cv_readelf+set}" = set; then :
21826 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21827 && test -f ..
/binutils
/Makefile \
21828 && test x
$build = x
$host; then
21829 # Single tree build which includes binutils.
21830 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21831 elif test -x readelf
$build_exeext; then
21832 gcc_cv_readelf
=.
/readelf
$build_exeext
21834 # Extract the first word of "readelf", so it can be a program name with args.
21835 set dummy readelf
; ac_word
=$2
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21837 $as_echo_n "checking for $ac_word... " >&6; }
21838 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21839 $as_echo_n "(cached) " >&6
21841 case $gcc_cv_readelf in
21843 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21847 for as_dir
in $PATH
21850 test -z "$as_dir" && as_dir
=.
21851 for ac_exec_ext
in '' $ac_executable_extensions; do
21852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21853 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21864 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21865 if test -n "$gcc_cv_readelf"; then
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21867 $as_echo "$gcc_cv_readelf" >&6; }
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21870 $as_echo "no" >&6; }
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21878 $as_echo_n "checking what readelf to use... " >&6; }
21879 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21880 # Single tree build which includes binutils.
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21882 $as_echo "newly built readelf" >&6; }
21883 elif test x
$gcc_cv_readelf = x
; then
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21885 $as_echo "not found" >&6; }
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21888 $as_echo "$gcc_cv_readelf" >&6; }
21891 # Figure out what assembler alignment features are present.
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21893 $as_echo_n "checking assembler flags... " >&6; }
21894 if test "${gcc_cv_as_flags+set}" = set; then :
21895 $as_echo_n "(cached) " >&6
21898 i
[34567]86-*-linux*)
21899 gcc_cv_as_flags
="--32"
21901 powerpc
*-*-darwin*)
21902 gcc_cv_as_flags
="-arch ppc"
21905 gcc_cv_as_flags
=" "
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21910 $as_echo "$gcc_cv_as_flags" >&6; }
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21913 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21914 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21915 $as_echo_n "(cached) " >&6
21917 gcc_cv_as_balign_and_p2align
=no
21918 if test $in_tree_gas = yes; then
21919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21920 then gcc_cv_as_balign_and_p2align
=yes
21922 elif test x
$gcc_cv_as != x
; then
21923 $as_echo '.balign 4
21924 .p2align 2' > conftest.s
21925 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21927 (eval $ac_try) 2>&5
21929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21930 test $ac_status = 0; }; }
21932 gcc_cv_as_balign_and_p2align
=yes
21934 echo "configure: failed program was" >&5
21937 rm -f conftest.o conftest.s
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21941 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21942 if test $gcc_cv_as_balign_and_p2align = yes; then
21944 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21949 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21950 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21951 $as_echo_n "(cached) " >&6
21953 gcc_cv_as_max_skip_p2align
=no
21954 if test $in_tree_gas = yes; then
21955 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21956 then gcc_cv_as_max_skip_p2align
=yes
21958 elif test x
$gcc_cv_as != x
; then
21959 $as_echo '.p2align 4,,7' > conftest.s
21960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21962 (eval $ac_try) 2>&5
21964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21965 test $ac_status = 0; }; }
21967 gcc_cv_as_max_skip_p2align
=yes
21969 echo "configure: failed program was" >&5
21972 rm -f conftest.o conftest.s
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21976 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21977 if test $gcc_cv_as_max_skip_p2align = yes; then
21979 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21984 $as_echo_n "checking assembler for .literal16... " >&6; }
21985 if test "${gcc_cv_as_literal16+set}" = set; then :
21986 $as_echo_n "(cached) " >&6
21988 gcc_cv_as_literal16
=no
21989 if test $in_tree_gas = yes; then
21990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21991 then gcc_cv_as_literal16
=yes
21993 elif test x
$gcc_cv_as != x
; then
21994 $as_echo '.literal16' > conftest.s
21995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21997 (eval $ac_try) 2>&5
21999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22000 test $ac_status = 0; }; }
22002 gcc_cv_as_literal16
=yes
22004 echo "configure: failed program was" >&5
22007 rm -f conftest.o conftest.s
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22011 $as_echo "$gcc_cv_as_literal16" >&6; }
22012 if test $gcc_cv_as_literal16 = yes; then
22014 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22019 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22020 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22021 $as_echo_n "(cached) " >&6
22023 gcc_cv_as_subsection_m1
=no
22024 if test $in_tree_gas = yes; then
22025 if test $in_tree_gas_is_elf = yes \
22026 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22027 then gcc_cv_as_subsection_m1
=yes
22029 elif test x
$gcc_cv_as != x
; then
22030 $as_echo 'conftest_label1: .word 0
22032 conftest_label2: .word 0
22033 .previous' > conftest.s
22034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22036 (eval $ac_try) 2>&5
22038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22039 test $ac_status = 0; }; }
22041 if test x
$gcc_cv_nm != x
; then
22042 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22043 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22044 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22046 else gcc_cv_as_subsection_m1
=yes
22048 rm -f conftest.nm1 conftest.nm2
22051 echo "configure: failed program was" >&5
22054 rm -f conftest.o conftest.s
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22058 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22059 if test $gcc_cv_as_subsection_m1 = yes; then
22061 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22066 $as_echo_n "checking assembler for .weak... " >&6; }
22067 if test "${gcc_cv_as_weak+set}" = set; then :
22068 $as_echo_n "(cached) " >&6
22071 if test $in_tree_gas = yes; then
22072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22073 then gcc_cv_as_weak
=yes
22075 elif test x
$gcc_cv_as != x
; then
22076 $as_echo ' .weak foobar' > conftest.s
22077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22079 (eval $ac_try) 2>&5
22081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22082 test $ac_status = 0; }; }
22086 echo "configure: failed program was" >&5
22089 rm -f conftest.o conftest.s
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22093 $as_echo "$gcc_cv_as_weak" >&6; }
22094 if test $gcc_cv_as_weak = yes; then
22096 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22101 $as_echo_n "checking assembler for .weakref... " >&6; }
22102 if test "${gcc_cv_as_weakref+set}" = set; then :
22103 $as_echo_n "(cached) " >&6
22105 gcc_cv_as_weakref
=no
22106 if test $in_tree_gas = yes; then
22107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22108 then gcc_cv_as_weakref
=yes
22110 elif test x
$gcc_cv_as != x
; then
22111 $as_echo ' .weakref foobar, barfnot' > conftest.s
22112 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22114 (eval $ac_try) 2>&5
22116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22117 test $ac_status = 0; }; }
22119 gcc_cv_as_weakref
=yes
22121 echo "configure: failed program was" >&5
22124 rm -f conftest.o conftest.s
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22128 $as_echo "$gcc_cv_as_weakref" >&6; }
22129 if test $gcc_cv_as_weakref = yes; then
22131 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22136 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22137 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22138 $as_echo_n "(cached) " >&6
22140 gcc_cv_as_nsubspa_comdat
=no
22141 if test $in_tree_gas = yes; then
22142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22143 then gcc_cv_as_nsubspa_comdat
=yes
22145 elif test x
$gcc_cv_as != x
; then
22146 $as_echo ' .SPACE $TEXT$
22147 .NSUBSPA $CODE$,COMDAT' > conftest.s
22148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22150 (eval $ac_try) 2>&5
22152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22153 test $ac_status = 0; }; }
22155 gcc_cv_as_nsubspa_comdat
=yes
22157 echo "configure: failed program was" >&5
22160 rm -f conftest.o conftest.s
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22164 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22165 if test $gcc_cv_as_nsubspa_comdat = yes; then
22167 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22171 # .hidden needs to be supported in both the assembler and the linker,
22172 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22173 # This is irritatingly difficult to feature test for; we have to check the
22174 # date string after the version number. If we've got an in-tree
22175 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22177 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22179 $as_echo_n "checking assembler for .hidden... " >&6; }
22180 if test "${gcc_cv_as_hidden+set}" = set; then :
22181 $as_echo_n "(cached) " >&6
22183 gcc_cv_as_hidden
=no
22184 if test $in_tree_gas = yes; then
22185 if test $in_tree_gas_is_elf = yes \
22186 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22187 then gcc_cv_as_hidden
=yes
22189 elif test x
$gcc_cv_as != x
; then
22190 $as_echo ' .hidden foobar
22191 foobar:' > conftest.s
22192 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22194 (eval $ac_try) 2>&5
22196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22197 test $ac_status = 0; }; }
22200 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22201 # STV_HIDDEN, so disable .hidden support if so.
22202 case "${target}" in
22203 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22204 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22205 cat > conftest.s
<<EOF
22210 .set default,hidden
22212 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22213 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22214 grep '\.hidden default' > /dev
/null
; then
22215 gcc_cv_as_hidden
=no
22217 gcc_cv_as_hidden
=yes
22220 # Assume bug is present if objdump is missing.
22221 gcc_cv_as_hidden
=no
22225 gcc_cv_as_hidden
=yes
22229 echo "configure: failed program was" >&5
22232 rm -f conftest.o conftest.s
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22236 $as_echo "$gcc_cv_as_hidden" >&6; }
22238 case "${target}" in
22240 # Darwin as has some visibility support, though with a different syntax.
22241 gcc_cv_as_hidden
=yes
22245 # gnu_indirect_function type is an extension proposed at
22246 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22247 # selection of function implementation
22248 # Check whether --enable-gnu-indirect-function was given.
22249 if test "${enable_gnu_indirect_function+set}" = set; then :
22250 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22252 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22253 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22256 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22259 if test x
$enable_gnu_indirect_function = xyes
; then
22261 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22265 if test $in_tree_ld != yes ; then
22266 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22267 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22268 if test x
"$ld_is_gold" = xyes
; then
22269 # GNU gold --version looks like this:
22271 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22273 # We extract the binutils version which is more familiar and specific
22274 # than the gold version.
22275 ld_vers
=`echo $ld_ver | sed -n \
22276 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22278 # GNU ld --version looks like this:
22280 # GNU ld (GNU Binutils) 2.21.51.20110225
22281 ld_vers
=`echo $ld_ver | sed -n \
22282 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22284 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'`
22285 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22286 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22287 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22289 case "${target}" in
22292 # Solaris 2 ld -V output looks like this for a regular version:
22294 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22296 # but test versions add stuff at the end:
22298 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22300 ld_ver
=`$gcc_cv_ld -V 2>&1`
22301 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22302 ld_vers
=`echo $ld_ver | sed -n \
22303 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22304 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22305 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22313 $as_echo_n "checking linker for .hidden support... " >&6; }
22314 if test "${gcc_cv_ld_hidden+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22317 if test $in_tree_ld = yes ; then
22318 gcc_cv_ld_hidden
=no
22319 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 \
22320 && test $in_tree_ld_is_elf = yes; then
22321 gcc_cv_ld_hidden
=yes
22324 gcc_cv_ld_hidden
=yes
22325 if test x
"$ld_is_gold" = xyes
; then
22327 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22328 if test 0"$ld_date" -lt 20020404; then
22329 if test -n "$ld_date"; then
22330 # If there was date string, but was earlier than 2002-04-04, fail
22331 gcc_cv_ld_hidden
=no
22332 elif test -z "$ld_vers"; then
22333 # If there was no date string nor ld version number, something is wrong
22334 gcc_cv_ld_hidden
=no
22336 test -z "$ld_vers_patch" && ld_vers_patch
=0
22337 if test "$ld_vers_major" -lt 2; then
22338 gcc_cv_ld_hidden
=no
22339 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22340 gcc_cv_ld_hidden
="no"
22341 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22342 gcc_cv_ld_hidden
=no
22347 case "${target}" in
22349 # Darwin ld has some visibility support.
22350 gcc_cv_ld_hidden
=yes
22352 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22353 gcc_cv_ld_hidden
=yes
22356 # .hidden support was backported to Solaris 8, starting with ld
22358 if test "$ld_vers_minor" -ge 276; then
22359 gcc_cv_ld_hidden
=yes
22361 gcc_cv_ld_hidden
=no
22364 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22365 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22366 # .symbolic was only added in Solaris 9 12/02.
22367 gcc_cv_ld_hidden
=yes
22370 gcc_cv_ld_hidden
=no
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22377 $as_echo "$gcc_cv_ld_hidden" >&6; }
22378 libgcc_visibility
=no
22381 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22382 libgcc_visibility
=yes
22384 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22389 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22390 gcc_cv_ld_ro_rw_mix
=unknown
22391 if test $in_tree_ld = yes ; then
22392 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 \
22393 && test $in_tree_ld_is_elf = yes; then
22394 gcc_cv_ld_ro_rw_mix
=read-write
22396 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22397 echo '.section myfoosect, "a"' > conftest1.s
22398 echo '.section myfoosect, "aw"' > conftest2.s
22399 echo '.byte 1' >> conftest2.s
22400 echo '.section myfoosect, "a"' > conftest3.s
22401 echo '.byte 0' >> conftest3.s
22402 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22403 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22404 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22405 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22406 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22407 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22408 | sed -e '/myfoosect/!d' -e N`
22409 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22410 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22411 gcc_cv_ld_ro_rw_mix
=read-only
22413 gcc_cv_ld_ro_rw_mix
=read-write
22417 rm -f conftest.
* conftest
[123].
*
22419 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22421 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22425 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22427 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22429 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22430 if test "${gcc_cv_as_leb128+set}" = set; then :
22431 $as_echo_n "(cached) " >&6
22433 gcc_cv_as_leb128
=no
22434 if test $in_tree_gas = yes; then
22435 if test $in_tree_gas_is_elf = yes \
22436 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22437 then gcc_cv_as_leb128
=yes
22439 elif test x
$gcc_cv_as != x
; then
22446 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22448 (eval $ac_try) 2>&5
22450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22451 test $ac_status = 0; }; }
22453 # GAS versions before 2.11 do not support uleb128,
22454 # despite appearing to.
22455 # ??? There exists an elf-specific test that will crash
22456 # the assembler. Perhaps it's better to figure out whether
22457 # arbitrary sections are supported and try the test.
22458 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22459 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22460 as_vers
=`echo $as_ver | sed -n \
22461 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22462 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22463 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22464 if test $as_major -eq 2 && test $as_minor -lt 11
22466 else gcc_cv_as_leb128
=yes
22470 echo "configure: failed program was" >&5
22473 rm -f conftest.o conftest.s
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22477 $as_echo "$gcc_cv_as_leb128" >&6; }
22478 if test $gcc_cv_as_leb128 = yes; then
22480 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22484 # Check if we have assembler support for unwind directives.
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22486 $as_echo_n "checking assembler for cfi directives... " >&6; }
22487 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22488 $as_echo_n "(cached) " >&6
22490 gcc_cv_as_cfi_directive
=no
22491 if test x
$gcc_cv_as != x
; then
22497 .cfi_escape 1, 2, 3, 4, 5
22498 .cfi_endproc' > conftest.s
22499 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22501 (eval $ac_try) 2>&5
22503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22504 test $ac_status = 0; }; }
22508 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22509 # read-only and read-write sections, we need to make sure that the
22510 # assembler used emits read-write .eh_frame sections.
22511 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22512 if test "x$gcc_cv_objdump" != x
; then
22513 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22514 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22515 gcc_cv_as_cfi_directive
=no
22518 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22519 # On Solaris/x86, make sure that GCC and gas agree on using
22520 # read-only .eh_frame sections for 64-bit.
22521 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22522 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22523 sed -e /.eh_frame
/!d
-e N | \
22524 grep READONLY
> /dev
/null
; then
22525 gcc_cv_as_cfi_directive
=yes
22527 gcc_cv_as_cfi_directive
=no
22531 gcc_cv_as_cfi_directive
=yes
22536 # no objdump, err on the side of caution
22537 gcc_cv_as_cfi_directive
=no
22540 gcc_cv_as_cfi_directive
=yes
22544 gcc_cv_as_cfi_directive
=yes
22548 echo "configure: failed program was" >&5
22551 rm -f conftest.o conftest.s
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22555 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22557 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22559 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22560 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22563 gcc_cv_as_cfi_advance_working
=no
22564 if test x
$gcc_cv_as != x
; then
22567 .cfi_adjust_cfa_offset 64
22569 .cfi_adjust_cfa_offset 128
22570 .cfi_endproc' > conftest.s
22571 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22573 (eval $ac_try) 2>&5
22575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22576 test $ac_status = 0; }; }
22579 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22580 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22581 gcc_cv_as_cfi_advance_working
=yes
22585 echo "configure: failed program was" >&5
22588 rm -f conftest.o conftest.s
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22592 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22595 # no objdump, err on the side of caution
22596 gcc_cv_as_cfi_advance_working
=no
22600 cat >>confdefs.h
<<_ACEOF
22601 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22602 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22608 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22609 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22610 $as_echo_n "(cached) " >&6
22612 gcc_cv_as_cfi_personality_directive
=no
22613 if test x
$gcc_cv_as != x
; then
22616 .cfi_personality 0, symbol
22617 .cfi_endproc' > conftest.s
22618 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22620 (eval $ac_try) 2>&5
22622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22623 test $ac_status = 0; }; }
22625 gcc_cv_as_cfi_personality_directive
=yes
22627 echo "configure: failed program was" >&5
22630 rm -f conftest.o conftest.s
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22634 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22637 cat >>confdefs.h
<<_ACEOF
22638 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22639 then echo 1; else echo 0; fi`
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22644 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22645 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22646 $as_echo_n "(cached) " >&6
22648 gcc_cv_as_cfi_sections_directive
=no
22649 if test x
$gcc_cv_as != x
; then
22651 .cfi_sections .debug_frame, .eh_frame
22653 .cfi_endproc' > conftest.s
22654 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22656 (eval $ac_try) 2>&5
22658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22659 test $ac_status = 0; }; }
22662 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22663 # Need to check that we generated the correct relocation for the
22664 # .debug_frame section. This was fixed for binutils 2.21.
22665 gcc_cv_as_cfi_sections_directive
=no
22666 if test "x$gcc_cv_objdump" != x
; then
22667 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22668 grep secrel
> /dev
/null
; then
22669 gcc_cv_as_cfi_sections_directive
=yes
22674 gcc_cv_as_cfi_sections_directive
=yes
22678 echo "configure: failed program was" >&5
22681 rm -f conftest.o conftest.s
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22685 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22689 cat >>confdefs.h
<<_ACEOF
22690 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22691 then echo 1; else echo 0; fi`
22695 # GAS versions up to and including 2.11.0 may mis-optimize
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22698 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22699 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22700 $as_echo_n "(cached) " >&6
22702 gcc_cv_as_eh_frame
=no
22703 if test $in_tree_gas = yes; then
22704 if test $in_tree_gas_is_elf = yes \
22705 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22706 then gcc_cv_as_eh_frame
=yes
22708 elif test x
$gcc_cv_as != x
; then
22715 .section .eh_frame,"aw",@progbits
22717 .4byte .LECIE1-.LSCIE1
22731 .4byte .LEFDE1-.LASFDE1
22733 .4byte .LASFDE1-__FRAME_BEGIN__
22740 .LEFDE1:' > conftest.s
22741 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22743 (eval $ac_try) 2>&5
22745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22746 test $ac_status = 0; }; }
22748 cat > conftest.lit
<<EOF
22749 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22750 0010 01000000 12000000 18000000 00000000 ................
22751 0020 08000000 04080000 0044 .........D
22753 cat > conftest.big
<<EOF
22754 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22755 0010 00000001 00000012 00000018 00000000 ................
22756 0020 00000008 04000000 0844 .........D
22758 # If the assembler didn't choke, and we can objdump,
22759 # and we got the correct data, then succeed.
22760 # The text in the here-document typically retains its unix-style line
22761 # endings, while the output of objdump will use host line endings.
22762 # Therefore, use diff -b for the comparisons.
22763 if test x
$gcc_cv_objdump != x \
22764 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22765 |
tail -3 > conftest.got \
22766 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22767 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22769 gcc_cv_as_eh_frame
=yes
22770 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22772 (eval $ac_try) 2>&5
22774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22775 test $ac_status = 0; }; }; then
22776 gcc_cv_as_eh_frame
=buggy
22778 # Uh oh, what do we do now?
22779 gcc_cv_as_eh_frame
=no
22782 echo "configure: failed program was" >&5
22785 rm -f conftest.o conftest.s
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22789 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22792 if test $gcc_cv_as_eh_frame = buggy
; then
22794 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22799 $as_echo_n "checking assembler for section merging support... " >&6; }
22800 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22801 $as_echo_n "(cached) " >&6
22803 gcc_cv_as_shf_merge
=no
22804 if test $in_tree_gas = yes; then
22805 if test $in_tree_gas_is_elf = yes \
22806 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22807 then gcc_cv_as_shf_merge
=yes
22809 elif test x
$gcc_cv_as != x
; then
22810 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22811 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22813 (eval $ac_try) 2>&5
22815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22816 test $ac_status = 0; }; }
22818 gcc_cv_as_shf_merge
=yes
22820 echo "configure: failed program was" >&5
22823 rm -f conftest.o conftest.s
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22827 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22829 if test $gcc_cv_as_shf_merge = no
; then
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22831 $as_echo_n "checking assembler for section merging support... " >&6; }
22832 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22833 $as_echo_n "(cached) " >&6
22835 gcc_cv_as_shf_merge
=no
22836 if test $in_tree_gas = yes; then
22837 if test $in_tree_gas_is_elf = yes \
22838 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22839 then gcc_cv_as_shf_merge
=yes
22841 elif test x
$gcc_cv_as != x
; then
22842 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22843 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22845 (eval $ac_try) 2>&5
22847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22848 test $ac_status = 0; }; }
22850 gcc_cv_as_shf_merge
=yes
22852 echo "configure: failed program was" >&5
22855 rm -f conftest.o conftest.s
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22859 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22863 cat >>confdefs.h
<<_ACEOF
22864 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22869 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22870 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22871 $as_echo_n "(cached) " >&6
22873 gcc_cv_as_comdat_group
=no
22874 if test $in_tree_gas = yes; then
22875 if test $in_tree_gas_is_elf = yes \
22876 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22877 then gcc_cv_as_comdat_group
=yes
22879 elif test x
$gcc_cv_as != x
; then
22880 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22881 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22883 (eval $ac_try) 2>&5
22885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22886 test $ac_status = 0; }; }
22888 gcc_cv_as_comdat_group
=yes
22890 echo "configure: failed program was" >&5
22893 rm -f conftest.o conftest.s
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22897 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22899 if test $gcc_cv_as_comdat_group = yes; then
22900 gcc_cv_as_comdat_group_percent
=no
22901 gcc_cv_as_comdat_group_group
=no
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22904 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22905 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22906 $as_echo_n "(cached) " >&6
22908 gcc_cv_as_comdat_group_percent
=no
22909 if test $in_tree_gas = yes; then
22910 if test $in_tree_gas_is_elf = yes \
22911 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22912 then gcc_cv_as_comdat_group_percent
=yes
22914 elif test x
$gcc_cv_as != x
; then
22915 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22916 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22918 (eval $ac_try) 2>&5
22920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22921 test $ac_status = 0; }; }
22923 gcc_cv_as_comdat_group_percent
=yes
22925 echo "configure: failed program was" >&5
22928 rm -f conftest.o conftest.s
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22932 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22934 if test $gcc_cv_as_comdat_group_percent = yes; then
22935 gcc_cv_as_comdat_group_group
=no
22937 case "${target}" in
22938 # Sun as uses a completely different syntax.
22940 case "${target}" in
22941 sparc
*-*-solaris2*)
22943 .group foo,".text%foo",#comdat
22944 .section ".text%foo", #alloc,#execinstr,#progbits
22949 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22951 .group foo,.text%foo,#comdat
22952 .section .text%foo, "ax", @progbits
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22959 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22960 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22961 $as_echo_n "(cached) " >&6
22963 gcc_cv_as_comdat_group_group
=no
22964 if test x
$gcc_cv_as != x
; then
22965 $as_echo "$conftest_s" > conftest.s
22966 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22968 (eval $ac_try) 2>&5
22970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22971 test $ac_status = 0; }; }
22973 gcc_cv_as_comdat_group_group
=yes
22975 echo "configure: failed program was" >&5
22978 rm -f conftest.o conftest.s
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22982 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22988 if test x
"$ld_is_gold" = xyes
; then
22990 elif test $in_tree_ld = yes ; then
22992 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 \
22993 && test $in_tree_ld_is_elf = yes; then
22996 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22998 if test 0"$ld_date" -lt 20050308; then
22999 if test -n "$ld_date"; then
23000 # If there was date string, but was earlier than 2005-03-08, fail
23002 elif test "$ld_vers_major" -lt 2; then
23004 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23009 case "${target}" in
23010 *-*-solaris2.1
[1-9]*)
23012 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23013 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23016 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23017 # least ld version 1.2267.
23018 if test "$ld_vers_major" -gt 1; then
23020 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23022 elif test "$ld_vers_minor" -ge 2267; then
23027 # Assume linkers other than GNU ld don't support COMDAT group.
23032 # Allow overriding the automatic COMDAT group tests above.
23033 # Check whether --enable-comdat was given.
23034 if test "${enable_comdat+set}" = set; then :
23035 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23038 if test $comdat_group = no
; then
23039 gcc_cv_as_comdat_group
=no
23040 gcc_cv_as_comdat_group_percent
=no
23041 gcc_cv_as_comdat_group_group
=no
23044 cat >>confdefs.h
<<_ACEOF
23045 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23046 || test $gcc_cv_as_comdat_group_percent = yes \
23047 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23052 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23053 if test "${gcc_cv_as_discriminator+set}" = set; then :
23054 $as_echo_n "(cached) " >&6
23056 gcc_cv_as_discriminator
=no
23057 if test $in_tree_gas = yes; then
23058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23059 then gcc_cv_as_discriminator
=yes
23061 elif test x
$gcc_cv_as != x
; then
23064 .loc 1 1 0 discriminator 1' > conftest.s
23065 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23067 (eval $ac_try) 2>&5
23069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23070 test $ac_status = 0; }; }
23072 gcc_cv_as_discriminator
=yes
23074 echo "configure: failed program was" >&5
23077 rm -f conftest.o conftest.s
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23081 $as_echo "$gcc_cv_as_discriminator" >&6; }
23082 if test $gcc_cv_as_discriminator = yes; then
23084 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23088 # Thread-local storage - the check is heavily parameterized.
23096 .section ".tdata","awT",@progbits
23099 ldq $27,__tls_get_addr($29) !literal!1
23100 lda $16,foo($29) !tlsgd!1
23101 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23102 ldq $27,__tls_get_addr($29) !literal!2
23103 lda $16,foo($29) !tlsldm!2
23104 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23105 ldq $1,foo($29) !gotdtprel
23106 ldah $2,foo($29) !dtprelhi
23107 lda $3,foo($2) !dtprello
23108 lda $4,foo($29) !dtprel
23109 ldq $1,foo($29) !gottprel
23110 ldah $2,foo($29) !tprelhi
23111 lda $3,foo($2) !tprello
23112 lda $4,foo($29) !tprel'
23115 tls_as_opt
=--fatal-warnings
23117 cris-
*-*|crisv32-
*-*)
23119 .section ".tdata","awT",@progbits
23126 tls_as_opt
=--fatal-warnings
23130 .section ".tdata","awT",@progbits
23133 call #gettlsoff(x)'
23142 .section ".tdata","awT",@progbits
23146 addil LT%foo-$tls_gdidx$,gp
23147 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23150 addil LT%foo-$tls_ldidx$,gp
23152 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23153 addil LR%foo-$tls_dtpoff$,%ret0
23154 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23156 addil LT%foo-$tls_ieoff$,gp
23157 ldw RT%foo-$tls_ieoff$(%r1),%t2
23160 addil LR%foo-$tls_leoff$,%t1
23161 ldo RR%foo-$tls_leoff$(%r1),%t2'
23164 tls_as_opt
=--fatal-warnings
23168 .section ".tdata","awT",%progbits
23171 .word foo(gottpoff)
23179 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23181 i
[34567]86-*-solaris2.
*)
23183 tga_func
=___tls_get_addr
23185 x86_64-
*-solaris2.1
[0-9]*)
23187 tga_func
=__tls_get_addr
23193 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23195 .section .tdata,"awt",@progbits'
23199 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23203 .section ".tdata","awT",@progbits'
23206 tls_as_opt
="--fatal-warnings"
23208 conftest_s
="$conftest_s
23212 leal foo@tlsgd(,%ebx,1), %eax
23213 leal foo@tlsldm(%ebx), %eax
23214 leal foo@dtpoff(%eax), %edx
23215 movl foo@gottpoff(%ebx), %eax
23216 subl foo@gottpoff(%ebx), %eax
23217 addl foo@gotntpoff(%ebx), %eax
23218 movl foo@indntpoff, %eax
23219 movl \$foo@tpoff, %eax
23220 subl \$foo@tpoff, %eax
23221 leal foo@ntpoff(%ecx), %eax"
23225 .section ".tdata","awT",@progbits
23229 leaq foo@TLSGD(%rip), %rdi
23230 leaq foo@TLSLD(%rip), %rdi
23231 leaq foo@DTPOFF(%rax), %rdx
23232 movq foo@GOTTPOFF(%rip), %rax
23233 movq $foo@TPOFF, %rax'
23236 tls_as_opt
=--fatal-warnings
23240 .section ".tdata","awT",@progbits
23243 addl r16 = @ltoff(@dtpmod(foo#)), gp
23244 addl r17 = @ltoff(@dtprel(foo#)), gp
23245 addl r18 = @ltoff(@tprel(foo#)), gp
23246 addl r19 = @dtprel(foo#), gp
23247 adds r21 = @dtprel(foo#), r13
23248 movl r23 = @dtprel(foo#)
23249 addl r20 = @tprel(foo#), gp
23250 adds r22 = @tprel(foo#), r13
23251 movl r24 = @tprel(foo#)'
23254 tls_as_opt
=--fatal-warnings
23258 .section .tdata,"awT",@progbits
23262 addiu $4, $28, %tlsgd(x)
23263 addiu $4, $28, %tlsldm(x)
23264 lui $4, %dtprel_hi(x)
23265 addiu $4, $4, %dtprel_lo(x)
23266 lw $4, %gottprel(x)($28)
23267 lui $4, %tprel_hi(x)
23268 addiu $4, $4, %tprel_lo(x)'
23271 tls_as_opt
='-32 --fatal-warnings'
23275 .section .tdata,"awT",@progbits
23280 move.l x@TLSGD(%a5),%a0
23281 move.l x@TLSLDM(%a5),%a0
23282 move.l x@TLSLDO(%a5),%a0
23283 move.l x@TLSIE(%a5),%a0
23284 move.l x@TLSLE(%a5),%a0'
23287 tls_as_opt
='--fatal-warnings'
23291 .section ".tdata","awT",@progbits
23299 addi 3,31,ld0@got@tlsgd
23301 addi 3,31,x1@got@tlsld
23304 addis 9,3,x2@dtprel@ha
23305 addi 9,9,x2@dtprel@l
23306 lwz 9,x3@got@tprel(31)
23309 addis 9,2,x2@tprel@ha
23310 addi 9,9,x2@tprel@l'
23313 tls_as_opt
="-a32 --fatal-warnings"
23317 .section ".tdata","awT",@progbits
23325 addi 3,2,ld0@got@tlsgd
23331 addi 3,2,x1@got@tlsld
23337 addis 9,3,x2@dtprel@ha
23338 addi 9,9,x2@dtprel@l
23341 ld 9,x3@got@dtprel(2)
23347 tls_as_opt
="-a64 --fatal-warnings"
23351 .section ".tdata","awT",@progbits
23358 .long foo@GOTNTPOFF
23359 .long foo@INDNTPOFF
23360 l %r1,foo@GOTNTPOFF(%r12)
23361 l %r1,0(%r1):tls_load:foo
23362 bas %r14,0(%r1,%r13):tls_gdcall:foo
23363 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23366 tls_as_opt
="-m31 --fatal-warnings"
23370 .section ".tdata","awT",@progbits
23377 .quad foo@GOTNTPOFF
23378 lg %r1,foo@GOTNTPOFF(%r12)
23379 larl %r1,foo@INDNTPOFF
23380 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23381 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23384 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23386 sh-
*-* | sh
[34]-*-*)
23388 .section ".tdata","awT",@progbits
23398 tls_as_opt
=--fatal-warnings
23402 sparc
*-sun-solaris2.
*)
23404 tga_func
=__tls_get_addr
23410 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23412 .section ".tdata",#alloc,#write,#tls'
23417 .section ".tdata","awT",@progbits'
23420 tls_as_opt
="-32 --fatal-warnings"
23422 conftest_s
="$conftest_s
23425 sethi %tgd_hi22(foo), %o0
23426 add %o0, %tgd_lo10(foo), %o1
23427 add %l7, %o1, %o0, %tgd_add(foo)
23428 call __tls_get_addr, %tgd_call(foo)
23429 sethi %tldm_hi22(foo), %l1
23430 add %l1, %tldm_lo10(foo), %l2
23431 add %l7, %l2, %o0, %tldm_add(foo)
23432 call __tls_get_addr, %tldm_call(foo)
23433 sethi %tldo_hix22(foo), %l3
23434 xor %l3, %tldo_lox10(foo), %l4
23435 add %o0, %l4, %l5, %tldo_add(foo)
23436 sethi %tie_hi22(foo), %o3
23437 add %o3, %tie_lo10(foo), %o3
23438 ld [%l7 + %o3], %o2, %tie_ld(foo)
23439 add %g7, %o2, %o4, %tie_add(foo)
23440 sethi %tle_hix22(foo), %l1
23441 xor %l1, %tle_lox10(foo), %o5
23442 ld [%g7 + %o5], %o1"
23446 .section ".tdata","awT",@progbits
23449 movi a8, foo@TLSFUNC
23450 movi a10, foo@TLSARG
23451 callx8.tls a8, foo@TLSCALL'
23457 if test "x$enable_tls" = xno
; then
23458 : # TLS explicitly disabled.
23459 elif test "x$enable_tls" = xyes
; then
23460 set_have_as_tls
=yes # TLS explicitly enabled.
23461 elif test -z "$tls_first_major"; then
23462 : # If we don't have a check, assume no support.
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23465 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23466 if test "${gcc_cv_as_tls+set}" = set; then :
23467 $as_echo_n "(cached) " >&6
23470 if test $in_tree_gas = yes; then
23471 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23472 then gcc_cv_as_tls
=yes
23474 elif test x
$gcc_cv_as != x
; then
23475 $as_echo "$conftest_s" > conftest.s
23476 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23478 (eval $ac_try) 2>&5
23480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23481 test $ac_status = 0; }; }
23485 echo "configure: failed program was" >&5
23488 rm -f conftest.o conftest.s
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23492 $as_echo "$gcc_cv_as_tls" >&6; }
23493 if test $gcc_cv_as_tls = yes; then
23494 set_have_as_tls
=yes
23499 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23500 # with TLS support are in use, native TLS cannot work.
23504 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23505 # gld with TLS support are in use, native TLS cannot work.
23508 # TLS was introduced in the Solaris 9 FCS release and backported to
23509 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23510 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23511 # ld and GCC don't support any longer.
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23514 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23516 # Check ld and ld.so.1 TLS support.
23517 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23518 # Assume all interesting versions of GNU ld have TLS support.
23519 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23523 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23525 min_tls_ld_vers_minor
=280
23527 # Solaris 8/SPARC ld has TLS support since version 1.272.
23528 sparc
*-*-solaris2.8
)
23529 min_tls_ld_vers_minor
=272
23531 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23533 min_tls_ld_vers_minor
=374
23535 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23536 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23537 min_tls_ld_vers_minor
=343
23540 if test "$ld_vers_major" -gt 1 || \
23541 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23548 $as_echo "$ld_tls_support" >&6; }
23551 save_LDFLAGS
="$LDFLAGS"
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23556 $as_echo_n "checking alternate thread library... " >&6; }
23558 # TLS support was backported to Solaris 8 patches, but only lives in
23559 # the alternate thread library which became the default in Solaris 9.
23560 # We want to always use that, irrespective of TLS support.
23562 # Take multilib subdir into account. There's no spec to handle
23563 # this. The 64 symlink exists since Solaris 8.
23564 lwp_dir
=/usr
/lib
/lwp
23565 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23566 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23573 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23575 cat >>confdefs.h
<<_ACEOF
23576 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23580 $as_echo "$lwp_dir" >&6; }
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23583 $as_echo_n "checking library containing $tga_func... " >&6; }
23584 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23585 # (32-bit x86) only lived in libthread, so check for that. Keep
23586 # set_have_as_tls if found, disable if not.
23587 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23589 $as_echo_n "checking for library containing $tga_func... " >&6; }
23590 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23591 $as_echo_n "(cached) " >&6
23593 ac_func_search_save_LIBS
=$LIBS
23594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23595 /* end confdefs.h. */
23597 /* Override any GCC internal prototype to avoid an error.
23598 Use char because int might match the return type of a GCC
23599 builtin and then its argument prototype would still apply. */
23607 return $tga_func ();
23612 for ac_lib
in '' thread
; do
23613 if test -z "$ac_lib"; then
23614 ac_res
="none required"
23617 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23619 if ac_fn_c_try_link
"$LINENO"; then :
23620 eval "$as_ac_Search=\$ac_res"
23622 rm -f core conftest.err conftest.
$ac_objext \
23624 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23628 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23631 eval "$as_ac_Search=no"
23633 rm conftest.
$ac_ext
23634 LIBS
=$ac_func_search_save_LIBS
23636 eval ac_res
=\$
$as_ac_Search
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23638 $as_echo "$ac_res" >&6; }
23639 eval ac_res
=\$
$as_ac_Search
23640 if test "$ac_res" != no
; then :
23641 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23647 # Clear LIBS if we cannot support TLS.
23648 if test $set_have_as_tls = no
; then
23651 # Always define LIB_TLS_SPEC, even without TLS support.
23653 cat >>confdefs.h
<<_ACEOF
23654 #define LIB_TLS_SPEC "$LIBS"
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23658 $as_echo "$LIBS" >&6; }
23661 LDFLAGS
="$save_LDFLAGS"
23664 if test $set_have_as_tls = yes ; then
23666 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23670 # Target-specific assembler checks.
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23673 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23674 gcc_cv_ld_static_dynamic
=no
23675 gcc_cv_ld_static_option
='-Bstatic'
23676 gcc_cv_ld_dynamic_option
='-Bdynamic'
23677 if test $in_tree_ld = yes ; then
23678 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
23679 gcc_cv_ld_static_dynamic
=yes
23681 elif test x
$gcc_cv_ld != x
; then
23682 # Check if linker supports -Bstatic/-Bdynamic option
23683 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23684 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23685 gcc_cv_ld_static_dynamic
=yes
23688 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23690 gcc_cv_ld_static_dynamic
=yes
23691 gcc_cv_ld_static_option
="-noso"
23692 gcc_cv_ld_dynamic_option
="-so_archive"
23694 # HP-UX ld uses -a flags to select between shared and archive.
23696 if test x
"$gnu_ld" = xno
; then
23697 gcc_cv_ld_static_dynamic
=yes
23698 gcc_cv_ld_static_option
="-aarchive_shared"
23699 gcc_cv_ld_dynamic_option
="-adefault"
23702 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23704 gcc_cv_ld_static_dynamic
=yes
23706 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23708 gcc_cv_ld_static_dynamic
=yes
23713 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23715 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23718 cat >>confdefs.h
<<_ACEOF
23719 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23723 cat >>confdefs.h
<<_ACEOF
23724 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23729 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23731 if test x
"$demangler_in_ld" = xyes
; then
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23733 $as_echo_n "checking linker --demangle support... " >&6; }
23734 gcc_cv_ld_demangle
=no
23735 if test $in_tree_ld = yes; then
23736 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 \
23737 gcc_cv_ld_demangle
=yes
23739 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23740 # Check if the GNU linker supports --demangle option
23741 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23742 gcc_cv_ld_demangle
=yes
23745 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23747 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23751 $as_echo "$gcc_cv_ld_demangle" >&6; }
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23755 $as_echo_n "checking linker plugin support... " >&6; }
23756 gcc_cv_lto_plugin
=0
23757 if test -f liblto_plugin.la
; then
23758 save_ld_ver
="$ld_ver"
23759 save_ld_vers_major
="$ld_vers_major"
23760 save_ld_vers_minor
="$ld_vers_minor"
23761 save_ld_is_gold
="$ld_is_gold"
23765 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23767 # FIXME: ld_is_gold?
23768 ld_vers_major
="$gcc_cv_gld_major_version"
23769 ld_vers_minor
="$gcc_cv_gld_minor_version"
23771 # Determine plugin linker version.
23772 # FIXME: Partial duplicate from above, generalize.
23773 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23774 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23775 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23777 ld_vers
=`echo $ld_ver | sed -n \
23778 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23780 ld_vers
=`echo $ld_ver | sed -n \
23781 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23783 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23784 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23788 # Determine plugin support.
23789 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23790 # Require GNU ld or gold 2.21+ for plugin support by default.
23791 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23792 gcc_cv_lto_plugin
=2
23793 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23794 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23795 gcc_cv_lto_plugin
=1
23799 ld_ver
="$save_ld_ver"
23800 ld_vers_major
="$save_ld_vers_major"
23801 ld_vers_minor
="$save_ld_vers_minor"
23802 ld_is_gold
="$save_ld_is_gold"
23805 cat >>confdefs.h
<<_ACEOF
23806 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23810 $as_echo "$gcc_cv_lto_plugin" >&6; }
23813 # All TARGET_ABI_OSF targets.
23814 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23816 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23817 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23818 $as_echo_n "(cached) " >&6
23820 gcc_cv_as_alpha_explicit_relocs
=no
23821 if test $in_tree_gas = yes; then
23822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23823 then gcc_cv_as_alpha_explicit_relocs
=yes
23825 elif test x
$gcc_cv_as != x
; then
23826 $as_echo ' .set nomacro
23828 extbl $3, $2, $3 !lituse_bytoff!1
23829 ldq $2, a($29) !literal!1
23830 ldq $4, b($29) !literal!2
23831 ldq_u $3, 0($2) !lituse_base!1
23832 ldq $27, f($29) !literal!5
23833 jsr $26, ($27), f !lituse_jsr!5
23834 ldah $29, 0($26) !gpdisp!3
23835 lda $0, c($29) !gprel
23836 ldah $1, d($29) !gprelhigh
23837 lda $1, d($1) !gprellow
23838 lda $29, 0($29) !gpdisp!3' > conftest.s
23839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23841 (eval $ac_try) 2>&5
23843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23844 test $ac_status = 0; }; }
23846 gcc_cv_as_alpha_explicit_relocs
=yes
23848 echo "configure: failed program was" >&5
23851 rm -f conftest.o conftest.s
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23855 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23856 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23858 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23862 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23863 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23864 $as_echo_n "(cached) " >&6
23866 gcc_cv_as_alpha_jsrdirect_relocs
=no
23867 if test $in_tree_gas = yes; then
23868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23869 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23871 elif test x
$gcc_cv_as != x
; then
23872 $as_echo ' .set nomacro
23874 ldq $27, a($29) !literal!1
23875 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23885 echo "configure: failed program was" >&5
23888 rm -f conftest.o conftest.s
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23892 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23893 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23895 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23902 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23903 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23904 $as_echo_n "(cached) " >&6
23906 gcc_cv_as_cris_no_mul_bug
=no
23907 if test $in_tree_gas = yes; then
23908 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23909 then gcc_cv_as_cris_no_mul_bug
=yes
23911 elif test x
$gcc_cv_as != x
; then
23912 $as_echo '.text' > conftest.s
23913 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23915 (eval $ac_try) 2>&5
23917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23918 test $ac_status = 0; }; }
23920 gcc_cv_as_cris_no_mul_bug
=yes
23922 echo "configure: failed program was" >&5
23925 rm -f conftest.o conftest.s
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23929 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23930 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23932 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23939 $as_echo_n "checking assembler for .register... " >&6; }
23940 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23941 $as_echo_n "(cached) " >&6
23943 gcc_cv_as_sparc_register_op
=no
23944 if test x
$gcc_cv_as != x
; then
23945 $as_echo '.register %g2, #scratch' > conftest.s
23946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23948 (eval $ac_try) 2>&5
23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951 test $ac_status = 0; }; }
23953 gcc_cv_as_sparc_register_op
=yes
23955 echo "configure: failed program was" >&5
23958 rm -f conftest.o conftest.s
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23962 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23963 if test $gcc_cv_as_sparc_register_op = yes; then
23965 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23970 $as_echo_n "checking assembler for -relax option... " >&6; }
23971 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23972 $as_echo_n "(cached) " >&6
23974 gcc_cv_as_sparc_relax
=no
23975 if test x
$gcc_cv_as != x
; then
23976 $as_echo '.text' > conftest.s
23977 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23979 (eval $ac_try) 2>&5
23981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23982 test $ac_status = 0; }; }
23984 gcc_cv_as_sparc_relax
=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_relax" >&5
23993 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23994 if test $gcc_cv_as_sparc_relax = yes; then
23996 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24001 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24002 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24003 $as_echo_n "(cached) " >&6
24005 gcc_cv_as_sparc_gotdata_op
=no
24006 if test x
$gcc_cv_as != x
; then
24012 sethi %gdop_hix22(foo), %g1
24013 xor %g1, %gdop_lox10(foo), %g1
24014 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24015 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24017 (eval $ac_try) 2>&5
24019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24020 test $ac_status = 0; }; }
24022 if test x
$gcc_cv_ld != x \
24023 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24024 if test x
$gcc_cv_objdump != x
; then
24025 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24026 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24027 gcc_cv_as_sparc_gotdata_op
=no
24029 gcc_cv_as_sparc_gotdata_op
=yes
24035 echo "configure: failed program was" >&5
24038 rm -f conftest.o conftest.s
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24042 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24043 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24045 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24050 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24051 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24052 $as_echo_n "(cached) " >&6
24054 gcc_cv_as_sparc_ua_pcrel
=no
24055 if test x
$gcc_cv_as != x
; then
24062 .uaword %r_disp32(foo)' > conftest.s
24063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24065 (eval $ac_try) 2>&5
24067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24068 test $ac_status = 0; }; }
24070 if test x
$gcc_cv_ld != x \
24071 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24072 gcc_cv_as_sparc_ua_pcrel
=yes
24076 echo "configure: failed program was" >&5
24079 rm -f conftest.o conftest.s
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24083 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24084 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24086 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24090 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24091 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24092 $as_echo_n "(cached) " >&6
24094 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24095 if test x
$gcc_cv_as != x
; then
24099 .uaword %r_disp32(foo)
24100 .byte 0x32, 0x33, 0x34
24104 .skip 4' > conftest.s
24105 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24107 (eval $ac_try) 2>&5
24109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24110 test $ac_status = 0; }; }
24112 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24113 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24114 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24115 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24116 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24117 |
grep 'DISP32' > /dev
/null
2>&1; then
24120 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24125 echo "configure: failed program was" >&5
24128 rm -f conftest.o conftest.s
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24132 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24133 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24135 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24139 fi # unaligned pcrel relocs
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24142 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24143 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24144 $as_echo_n "(cached) " >&6
24146 gcc_cv_as_sparc_offsetable_lo10
=no
24147 if test x
$gcc_cv_as != x
; then
24149 or %g1, %lo(ab) + 12, %g1
24150 or %g1, %lo(ab + 12), %g1' > conftest.s
24151 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24153 (eval $ac_try) 2>&5
24155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24156 test $ac_status = 0; }; }
24158 if test x
$gcc_cv_objdump != x \
24159 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24160 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24161 gcc_cv_as_sparc_offsetable_lo10
=yes
24164 echo "configure: failed program was" >&5
24167 rm -f conftest.o conftest.s
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24171 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24172 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24174 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24179 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24180 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24181 $as_echo_n "(cached) " >&6
24183 gcc_cv_as_sparc_fmaf
=no
24184 if test x
$gcc_cv_as != x
; then
24186 .register %g2, #scratch
24187 .register %g3, #scratch
24189 fmaddd %f0, %f2, %f4, %f6
24190 addxccc %g1, %g2, %g3
24191 fsrl32 %f2, %f4, %f8
24192 fnaddd %f10, %f12, %f14' > conftest.s
24193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24195 (eval $ac_try) 2>&5
24197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24198 test $ac_status = 0; }; }
24200 gcc_cv_as_sparc_fmaf
=yes
24202 echo "configure: failed program was" >&5
24205 rm -f conftest.o conftest.s
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24209 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24210 if test $gcc_cv_as_sparc_fmaf = yes; then
24212 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24217 i
[34567]86-*-* | x86_64-
*-*)
24220 # Full C++ conformance when using a shared libstdc++-v3 requires some
24221 # support from the Cygwin DLL, which in more recent versions exports
24222 # wrappers to aid in interposing and redirecting operators new, delete,
24223 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24224 # are configuring for a version of Cygwin that exports the wrappers.
24225 if test x
$host = x
$target; then
24226 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24227 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24228 gcc_ac_cygwin_dll_wrappers
=yes
24230 gcc_ac_cygwin_dll_wrappers
=no
24234 # Can't check presence of libc functions during cross-compile, so
24235 # we just have to assume we're building for an up-to-date target.
24236 gcc_ac_cygwin_dll_wrappers
=yes
24239 cat >>confdefs.h
<<_ACEOF
24240 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24245 cygwin
* | pe | mingw32
*)
24246 # Recent binutils allows the three-operand form of ".comm" on PE. This
24247 # definition is used unconditionally to initialise the default state of
24248 # the target option variable that governs usage of the feature.
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24250 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24251 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24252 $as_echo_n "(cached) " >&6
24254 gcc_cv_as_comm_has_align
=no
24255 if test $in_tree_gas = yes; then
24256 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24257 then gcc_cv_as_comm_has_align
=yes
24259 elif test x
$gcc_cv_as != x
; then
24260 $as_echo '.comm foo,1,32' > conftest.s
24261 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24263 (eval $ac_try) 2>&5
24265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24266 test $ac_status = 0; }; }
24268 gcc_cv_as_comm_has_align
=yes
24270 echo "configure: failed program was" >&5
24273 rm -f conftest.o conftest.s
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24277 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24280 cat >>confdefs.h
<<_ACEOF
24281 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24284 # Used for DWARF 2 in PE
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24286 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24287 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24288 $as_echo_n "(cached) " >&6
24290 gcc_cv_as_ix86_pe_secrel32
=no
24291 if test $in_tree_gas = yes; then
24292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24293 then gcc_cv_as_ix86_pe_secrel32
=yes
24295 elif test x
$gcc_cv_as != x
; then
24299 .secrel32 foo' > conftest.s
24300 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24302 (eval $ac_try) 2>&5
24304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24305 test $ac_status = 0; }; }
24307 if test x
$gcc_cv_ld != x \
24308 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24309 gcc_cv_as_ix86_pe_secrel32
=yes
24313 echo "configure: failed program was" >&5
24316 rm -f conftest.o conftest.s
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24320 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24321 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24323 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24326 # Test if the assembler supports the extended form of the .section
24327 # directive that specifies section alignment. LTO support uses this,
24328 # but normally only after installation, so we warn but don't fail the
24329 # configure if LTO is enabled but the assembler does not support it.
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24331 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24332 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24333 $as_echo_n "(cached) " >&6
24335 gcc_cv_as_section_has_align
=no
24336 if test $in_tree_gas = yes; then
24337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24338 then gcc_cv_as_section_has_align
=yes
24340 elif test x
$gcc_cv_as != x
; then
24341 $as_echo '.section lto_test,"dr0"' > conftest.s
24342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24344 (eval $ac_try) 2>&5
24346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24347 test $ac_status = 0; }; }
24349 gcc_cv_as_section_has_align
=yes
24351 echo "configure: failed program was" >&5
24354 rm -f conftest.o conftest.s
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24358 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24360 if test x
$gcc_cv_as_section_has_align != xyes
; then
24361 case ",$enable_languages," in
24363 { $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
24364 $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;}
24368 # Test if the assembler supports the section flag 'e' for specifying
24369 # an excluded section.
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24371 $as_echo_n "checking assembler for .section with e... " >&6; }
24372 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24373 $as_echo_n "(cached) " >&6
24375 gcc_cv_as_section_has_e
=no
24376 if test $in_tree_gas = yes; then
24377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24378 then gcc_cv_as_section_has_e
=yes
24380 elif test x
$gcc_cv_as != x
; then
24381 $as_echo '.section foo1,"e"
24382 .byte 0,0,0,0' > conftest.s
24383 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385 (eval $ac_try) 2>&5
24387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388 test $ac_status = 0; }; }
24390 gcc_cv_as_section_has_e
=yes
24392 echo "configure: failed program was" >&5
24395 rm -f conftest.o conftest.s
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24399 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24402 cat >>confdefs.h
<<_ACEOF
24403 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24410 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24411 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24412 $as_echo_n "(cached) " >&6
24414 gcc_cv_as_ix86_filds
=no
24415 if test x
$gcc_cv_as != x
; then
24416 $as_echo 'filds mem; fists mem' > conftest.s
24417 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24419 (eval $ac_try) 2>&5
24421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24422 test $ac_status = 0; }; }
24424 gcc_cv_as_ix86_filds
=yes
24426 echo "configure: failed program was" >&5
24429 rm -f conftest.o conftest.s
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24433 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24434 if test $gcc_cv_as_ix86_filds = yes; then
24436 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24441 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24442 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24443 $as_echo_n "(cached) " >&6
24445 gcc_cv_as_ix86_fildq
=no
24446 if test x
$gcc_cv_as != x
; then
24447 $as_echo 'fildq mem; fistpq mem' > conftest.s
24448 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24450 (eval $ac_try) 2>&5
24452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24453 test $ac_status = 0; }; }
24455 gcc_cv_as_ix86_fildq
=yes
24457 echo "configure: failed program was" >&5
24460 rm -f conftest.o conftest.s
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24464 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24465 if test $gcc_cv_as_ix86_fildq = yes; then
24467 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24472 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24473 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24474 $as_echo_n "(cached) " >&6
24476 gcc_cv_as_ix86_cmov_sun_syntax
=no
24477 if test x
$gcc_cv_as != x
; then
24478 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24479 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24481 (eval $ac_try) 2>&5
24483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24484 test $ac_status = 0; }; }
24486 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24488 echo "configure: failed program was" >&5
24491 rm -f conftest.o conftest.s
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24495 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24496 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24498 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24503 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24504 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24505 $as_echo_n "(cached) " >&6
24507 gcc_cv_as_ix86_ffreep
=no
24508 if test x
$gcc_cv_as != x
; then
24509 $as_echo 'ffreep %st(1)' > conftest.s
24510 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24512 (eval $ac_try) 2>&5
24514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24515 test $ac_status = 0; }; }
24517 gcc_cv_as_ix86_ffreep
=yes
24519 echo "configure: failed program was" >&5
24522 rm -f conftest.o conftest.s
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24526 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24527 if test $gcc_cv_as_ix86_ffreep = yes; then
24529 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24534 $as_echo_n "checking assembler for .quad directive... " >&6; }
24535 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24536 $as_echo_n "(cached) " >&6
24538 gcc_cv_as_ix86_quad
=no
24539 if test x
$gcc_cv_as != x
; then
24540 $as_echo '.quad 0' > conftest.s
24541 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24543 (eval $ac_try) 2>&5
24545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24546 test $ac_status = 0; }; }
24548 gcc_cv_as_ix86_quad
=yes
24550 echo "configure: failed program was" >&5
24553 rm -f conftest.o conftest.s
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24557 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24558 if test $gcc_cv_as_ix86_quad = yes; then
24560 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24565 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24566 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24567 $as_echo_n "(cached) " >&6
24569 gcc_cv_as_ix86_sahf
=no
24570 if test x
$gcc_cv_as != x
; then
24573 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24575 (eval $ac_try) 2>&5
24577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24578 test $ac_status = 0; }; }
24580 gcc_cv_as_ix86_sahf
=yes
24582 echo "configure: failed program was" >&5
24585 rm -f conftest.o conftest.s
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24589 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24590 if test $gcc_cv_as_ix86_sahf = yes; then
24592 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24597 $as_echo_n "checking assembler for swap suffix... " >&6; }
24598 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24601 gcc_cv_as_ix86_swap
=no
24602 if test x
$gcc_cv_as != x
; then
24603 $as_echo 'movl.s %esp, %ebp' > 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_ix86_swap
=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_ix86_swap" >&5
24620 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24621 if test $gcc_cv_as_ix86_swap = yes; then
24623 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24628 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24629 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24630 $as_echo_n "(cached) " >&6
24632 gcc_cv_as_ix86_diff_sect_delta
=no
24633 if test x
$gcc_cv_as != x
; then
24634 $as_echo '.section .rodata
24640 .L2: nop' > conftest.s
24641 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24643 (eval $ac_try) 2>&5
24645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24646 test $ac_status = 0; }; }
24648 gcc_cv_as_ix86_diff_sect_delta
=yes
24650 echo "configure: failed program was" >&5
24653 rm -f conftest.o conftest.s
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24657 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24658 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24660 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24664 # These two are used unconditionally by i386.[ch]; it is to be defined
24665 # to 1 if the feature is present, 0 otherwise.
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24667 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24668 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24669 $as_echo_n "(cached) " >&6
24671 gcc_cv_as_ix86_gotoff_in_data
=no
24672 if test $in_tree_gas = yes; then
24673 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24674 then gcc_cv_as_ix86_gotoff_in_data
=yes
24676 elif test x
$gcc_cv_as != x
; then
24681 .long .L0@GOTOFF' > conftest.s
24682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684 (eval $ac_try) 2>&5
24686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687 test $ac_status = 0; }; }
24689 gcc_cv_as_ix86_gotoff_in_data
=yes
24691 echo "configure: failed program was" >&5
24694 rm -f conftest.o conftest.s
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24698 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24701 cat >>confdefs.h
<<_ACEOF
24702 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24707 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24708 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24709 $as_echo_n "(cached) " >&6
24711 gcc_cv_as_ix86_rep_lock_prefix
=no
24712 if test x
$gcc_cv_as != x
; then
24713 $as_echo 'rep movsl
24714 lock addl %edi, (%eax,%esi)
24715 lock orl $0, (%esp)' > conftest.s
24716 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }
24723 gcc_cv_as_ix86_rep_lock_prefix
=yes
24725 echo "configure: failed program was" >&5
24728 rm -f conftest.o conftest.s
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24732 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24733 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24735 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24740 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24741 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24742 $as_echo_n "(cached) " >&6
24744 gcc_cv_as_ix86_tlsgdplt
=no
24745 if test x
$gcc_cv_as != x
; then
24746 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749 (eval $ac_try) 2>&5
24751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752 test $ac_status = 0; }; }
24754 gcc_cv_as_ix86_tlsgdplt
=yes
24756 echo "configure: failed program was" >&5
24759 rm -f conftest.o conftest.s
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24763 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24764 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24766 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24771 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24772 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24775 gcc_cv_as_ix86_tlsldmplt
=no
24776 if test x
$gcc_cv_as != x
; then
24777 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24778 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24780 (eval $ac_try) 2>&5
24782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24783 test $ac_status = 0; }; }
24785 gcc_cv_as_ix86_tlsldmplt
=yes
24787 echo "configure: failed program was" >&5
24790 rm -f conftest.o conftest.s
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24794 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24795 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24797 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24805 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24806 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24809 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24810 if test $in_tree_gas = yes; then
24811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24812 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24814 elif test x
$gcc_cv_as != x
; then
24816 addl r15 = @ltoffx(x#), gp
24818 ld8.mov r16 = [r15], x#' > conftest.s
24819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821 (eval $ac_try) 2>&5
24823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824 test $ac_status = 0; }; }
24826 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24828 echo "configure: failed program was" >&5
24831 rm -f conftest.o conftest.s
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24835 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24836 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24838 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24846 *-*-aix*) conftest_s
=' .machine "pwr5"
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24851 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24852 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24855 gcc_cv_as_machine_directive
=no
24856 if test x
$gcc_cv_as != x
; then
24857 $as_echo ' .machine ppc7400' > conftest.s
24858 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24860 (eval $ac_try) 2>&5
24862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24863 test $ac_status = 0; }; }
24865 gcc_cv_as_machine_directive
=yes
24867 echo "configure: failed program was" >&5
24870 rm -f conftest.o conftest.s
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24874 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24876 if test x
$gcc_cv_as_machine_directive != xyes
; then
24877 echo "*** This target requires an assembler supporting \".machine\"" >&2
24878 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24879 test x
$build = x
$target && exit 1
24883 *) conftest_s
=' .machine power4
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24889 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24890 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24891 $as_echo_n "(cached) " >&6
24893 gcc_cv_as_powerpc_mfcrf
=no
24894 if test $in_tree_gas = yes; then
24895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24896 then gcc_cv_as_powerpc_mfcrf
=yes
24898 elif test x
$gcc_cv_as != x
; then
24899 $as_echo "$conftest_s" > conftest.s
24900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24902 (eval $ac_try) 2>&5
24904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24905 test $ac_status = 0; }; }
24907 gcc_cv_as_powerpc_mfcrf
=yes
24909 echo "configure: failed program was" >&5
24912 rm -f conftest.o conftest.s
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24916 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24917 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24919 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24924 *-*-aix*) conftest_s
=' .machine "pwr5"
24927 *) conftest_s
=' .machine power5
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24933 $as_echo_n "checking assembler for popcntb support... " >&6; }
24934 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24935 $as_echo_n "(cached) " >&6
24937 gcc_cv_as_powerpc_popcntb
=no
24938 if test $in_tree_gas = yes; then
24939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24940 then gcc_cv_as_powerpc_popcntb
=yes
24942 elif test x
$gcc_cv_as != x
; then
24943 $as_echo "$conftest_s" > conftest.s
24944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24946 (eval $ac_try) 2>&5
24948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24949 test $ac_status = 0; }; }
24951 gcc_cv_as_powerpc_popcntb
=yes
24953 echo "configure: failed program was" >&5
24956 rm -f conftest.o conftest.s
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24960 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24961 if test $gcc_cv_as_powerpc_popcntb = yes; then
24963 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24968 *-*-aix*) conftest_s
=' .machine "pwr5x"
24971 *) conftest_s
=' .machine power5
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24977 $as_echo_n "checking assembler for fp round support... " >&6; }
24978 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24979 $as_echo_n "(cached) " >&6
24981 gcc_cv_as_powerpc_fprnd
=no
24982 if test $in_tree_gas = yes; then
24983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24984 then gcc_cv_as_powerpc_fprnd
=yes
24986 elif test x
$gcc_cv_as != x
; then
24987 $as_echo "$conftest_s" > conftest.s
24988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24990 (eval $ac_try) 2>&5
24992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24993 test $ac_status = 0; }; }
24995 gcc_cv_as_powerpc_fprnd
=yes
24997 echo "configure: failed program was" >&5
25000 rm -f conftest.o conftest.s
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25004 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25005 if test $gcc_cv_as_powerpc_fprnd = yes; then
25007 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25012 *-*-aix*) conftest_s
=' .machine "pwr6"
25015 *) conftest_s
=' .machine power6
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25021 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25022 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25023 $as_echo_n "(cached) " >&6
25025 gcc_cv_as_powerpc_mfpgpr
=no
25026 if test $in_tree_gas = yes; then
25027 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25028 then gcc_cv_as_powerpc_mfpgpr
=yes
25030 elif test x
$gcc_cv_as != x
; then
25031 $as_echo "$conftest_s" > conftest.s
25032 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25034 (eval $ac_try) 2>&5
25036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25037 test $ac_status = 0; }; }
25039 gcc_cv_as_powerpc_mfpgpr
=yes
25041 echo "configure: failed program was" >&5
25044 rm -f conftest.o conftest.s
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25048 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25049 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25051 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25056 *-*-aix*) conftest_s
=' .csect .text[PR]
25058 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25062 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25063 *) conftest_s
=' .text
25065 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25069 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25070 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25071 $as_echo_n "(cached) " >&6
25073 gcc_cv_as_powerpc_rel16
=no
25074 if test $in_tree_gas = yes; then
25075 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25076 then gcc_cv_as_powerpc_rel16
=yes
25078 elif test x
$gcc_cv_as != x
; then
25079 $as_echo "$conftest_s" > conftest.s
25080 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25082 (eval $ac_try) 2>&5
25084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25085 test $ac_status = 0; }; }
25087 gcc_cv_as_powerpc_rel16
=yes
25089 echo "configure: failed program was" >&5
25092 rm -f conftest.o conftest.s
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25096 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25097 if test $gcc_cv_as_powerpc_rel16 = yes; then
25099 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25104 *-*-aix*) conftest_s
=' .machine "pwr6"
25107 *) conftest_s
=' .machine power6
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25113 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25114 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25115 $as_echo_n "(cached) " >&6
25117 gcc_cv_as_powerpc_cmpb
=no
25118 if test $in_tree_gas = yes; then
25119 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25120 then gcc_cv_as_powerpc_cmpb
=yes
25122 elif test x
$gcc_cv_as != x
; then
25123 $as_echo "$conftest_s" > conftest.s
25124 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25126 (eval $ac_try) 2>&5
25128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25129 test $ac_status = 0; }; }
25131 gcc_cv_as_powerpc_cmpb
=yes
25133 echo "configure: failed program was" >&5
25136 rm -f conftest.o conftest.s
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25140 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25141 if test $gcc_cv_as_powerpc_cmpb = yes; then
25143 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25148 *-*-aix*) conftest_s
=' .machine "pwr6"
25151 *) conftest_s
=' .machine power6
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25157 $as_echo_n "checking assembler for decimal float support... " >&6; }
25158 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25159 $as_echo_n "(cached) " >&6
25161 gcc_cv_as_powerpc_dfp
=no
25162 if test $in_tree_gas = yes; then
25163 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25164 then gcc_cv_as_powerpc_dfp
=yes
25166 elif test x
$gcc_cv_as != x
; then
25167 $as_echo "$conftest_s" > conftest.s
25168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25170 (eval $ac_try) 2>&5
25172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25173 test $ac_status = 0; }; }
25175 gcc_cv_as_powerpc_dfp
=yes
25177 echo "configure: failed program was" >&5
25180 rm -f conftest.o conftest.s
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25184 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25185 if test $gcc_cv_as_powerpc_dfp = yes; then
25187 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25192 *-*-aix*) conftest_s
=' .machine "pwr7"
25195 *) conftest_s
=' .machine power7
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25201 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25202 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25203 $as_echo_n "(cached) " >&6
25205 gcc_cv_as_powerpc_vsx
=no
25206 if test $in_tree_gas = yes; then
25207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25208 then gcc_cv_as_powerpc_vsx
=yes
25210 elif test x
$gcc_cv_as != x
; then
25211 $as_echo "$conftest_s" > conftest.s
25212 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25214 (eval $ac_try) 2>&5
25216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25217 test $ac_status = 0; }; }
25219 gcc_cv_as_powerpc_vsx
=yes
25221 echo "configure: failed program was" >&5
25224 rm -f conftest.o conftest.s
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25228 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25229 if test $gcc_cv_as_powerpc_vsx = yes; then
25231 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25236 *-*-aix*) conftest_s
=' .machine "pwr7"
25239 *) conftest_s
=' .machine power7
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25245 $as_echo_n "checking assembler for popcntd support... " >&6; }
25246 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25247 $as_echo_n "(cached) " >&6
25249 gcc_cv_as_powerpc_popcntd
=no
25250 if test $in_tree_gas = yes; then
25251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25252 then gcc_cv_as_powerpc_popcntd
=yes
25254 elif test x
$gcc_cv_as != x
; then
25255 $as_echo "$conftest_s" > conftest.s
25256 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25258 (eval $ac_try) 2>&5
25260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25261 test $ac_status = 0; }; }
25263 gcc_cv_as_powerpc_popcntd
=yes
25265 echo "configure: failed program was" >&5
25268 rm -f conftest.o conftest.s
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25272 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25273 if test $gcc_cv_as_powerpc_popcntd = yes; then
25275 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25280 *-*-aix*) conftest_s
=' .csect .text[PR]
25282 *) conftest_s
=' .text
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25287 $as_echo_n "checking assembler for lwsync support... " >&6; }
25288 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25289 $as_echo_n "(cached) " >&6
25291 gcc_cv_as_powerpc_lwsync
=no
25292 if test $in_tree_gas = yes; then
25293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25294 then gcc_cv_as_powerpc_lwsync
=yes
25296 elif test x
$gcc_cv_as != x
; then
25297 $as_echo "$conftest_s" > conftest.s
25298 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25300 (eval $ac_try) 2>&5
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; }
25305 gcc_cv_as_powerpc_lwsync
=yes
25307 echo "configure: failed program was" >&5
25310 rm -f conftest.o conftest.s
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25314 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25315 if test $gcc_cv_as_powerpc_lwsync = yes; then
25317 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25322 *-*-aix*) conftest_s
=' .machine "476"
25325 *) conftest_s
=' .machine "476"
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25331 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25332 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25333 $as_echo_n "(cached) " >&6
25335 gcc_cv_as_powerpc_dci
=no
25336 if test $in_tree_gas = yes; then
25337 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25338 then gcc_cv_as_powerpc_dci
=yes
25340 elif test x
$gcc_cv_as != x
; then
25341 $as_echo "$conftest_s" > conftest.s
25342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25344 (eval $ac_try) 2>&5
25346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25347 test $ac_status = 0; }; }
25349 gcc_cv_as_powerpc_dci
=yes
25351 echo "configure: failed program was" >&5
25354 rm -f conftest.o conftest.s
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25358 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25359 if test $gcc_cv_as_powerpc_dci = yes; then
25361 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25366 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25367 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25368 $as_echo_n "(cached) " >&6
25370 gcc_cv_as_powerpc_gnu_attribute
=no
25371 if test $in_tree_gas = yes; then
25372 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25373 then gcc_cv_as_powerpc_gnu_attribute
=yes
25375 elif test x
$gcc_cv_as != x
; then
25376 $as_echo '.gnu_attribute 4,1' > conftest.s
25377 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25379 (eval $ac_try) 2>&5
25381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25382 test $ac_status = 0; }; }
25384 gcc_cv_as_powerpc_gnu_attribute
=yes
25386 echo "configure: failed program was" >&5
25389 rm -f conftest.o conftest.s
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25393 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25394 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25396 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25401 $as_echo_n "checking assembler for tls marker support... " >&6; }
25402 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25403 $as_echo_n "(cached) " >&6
25405 gcc_cv_as_powerpc_tls_markers
=no
25406 if test $in_tree_gas = yes; then
25407 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25408 then gcc_cv_as_powerpc_tls_markers
=yes
25410 elif test x
$gcc_cv_as != x
; then
25411 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25412 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25414 (eval $ac_try) 2>&5
25416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25417 test $ac_status = 0; }; }
25419 gcc_cv_as_powerpc_tls_markers
=yes
25421 echo "configure: failed program was" >&5
25424 rm -f conftest.o conftest.s
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25428 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25429 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25431 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25438 $as_echo_n "checking assembler for .ref support... " >&6; }
25439 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25440 $as_echo_n "(cached) " >&6
25442 gcc_cv_as_aix_ref
=no
25443 if test $in_tree_gas = yes; then
25444 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25447 elif test x
$gcc_cv_as != x
; then
25448 $as_echo ' .csect stuff[rw]
25454 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25456 (eval $ac_try) 2>&5
25458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25459 test $ac_status = 0; }; }
25461 gcc_cv_as_aix_ref
=yes
25463 echo "configure: failed program was" >&5
25466 rm -f conftest.o conftest.s
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25470 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25471 if test $gcc_cv_as_aix_ref = yes; then
25473 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25482 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25483 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25484 $as_echo_n "(cached) " >&6
25486 gcc_cv_as_mips_explicit_relocs
=no
25487 if test $in_tree_gas = yes; then
25488 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25489 then gcc_cv_as_mips_explicit_relocs
=yes
25491 elif test x
$gcc_cv_as != x
; then
25492 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25493 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25495 (eval $ac_try) 2>&5
25497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25498 test $ac_status = 0; }; }
25500 gcc_cv_as_mips_explicit_relocs
=yes
25502 echo "configure: failed program was" >&5
25505 rm -f conftest.o conftest.s
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25509 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25510 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25511 if test x
$target_cpu_default = x
25512 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25513 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25517 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25518 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25519 $as_echo_n "(cached) " >&6
25521 gcc_cv_as_mips_no_shared
=no
25522 if test $in_tree_gas = yes; then
25523 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25524 then gcc_cv_as_mips_no_shared
=yes
25526 elif test x
$gcc_cv_as != x
; then
25527 $as_echo 'nop' > conftest.s
25528 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25530 (eval $ac_try) 2>&5
25532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25533 test $ac_status = 0; }; }
25535 gcc_cv_as_mips_no_shared
=yes
25537 echo "configure: failed program was" >&5
25540 rm -f conftest.o conftest.s
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25544 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25545 if test $gcc_cv_as_mips_no_shared = yes; then
25547 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25552 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25553 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25554 $as_echo_n "(cached) " >&6
25556 gcc_cv_as_mips_gnu_attribute
=no
25557 if test $in_tree_gas = yes; then
25558 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25559 then gcc_cv_as_mips_gnu_attribute
=yes
25561 elif test x
$gcc_cv_as != x
; then
25562 $as_echo '.gnu_attribute 4,1' > conftest.s
25563 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25565 (eval $ac_try) 2>&5
25567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25568 test $ac_status = 0; }; }
25570 gcc_cv_as_mips_gnu_attribute
=yes
25572 echo "configure: failed program was" >&5
25575 rm -f conftest.o conftest.s
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25579 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25580 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25582 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25587 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25588 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25589 $as_echo_n "(cached) " >&6
25591 gcc_cv_as_mips_dtprelword
=no
25592 if test $in_tree_gas = yes; then
25593 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25594 then gcc_cv_as_mips_dtprelword
=yes
25596 elif test x
$gcc_cv_as != x
; then
25597 $as_echo '.section .tdata,"awT",@progbits
25601 .dtprelword x+0x8000' > conftest.s
25602 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25604 (eval $ac_try) 2>&5
25606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25607 test $ac_status = 0; }; }
25609 gcc_cv_as_mips_dtprelword
=yes
25611 echo "configure: failed program was" >&5
25614 rm -f conftest.o conftest.s
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25618 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25619 if test $gcc_cv_as_mips_dtprelword = yes; then
25621 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25626 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25627 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25628 $as_echo_n "(cached) " >&6
25630 gcc_cv_as_mips_dspr1_mult
=no
25631 if test x
$gcc_cv_as != x
; then
25632 $as_echo ' .set mips32r2
25640 multu $ac3,$4,$5' > conftest.s
25641 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25643 (eval $ac_try) 2>&5
25645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25646 test $ac_status = 0; }; }
25648 gcc_cv_as_mips_dspr1_mult
=yes
25650 echo "configure: failed program was" >&5
25653 rm -f conftest.o conftest.s
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25657 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25658 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25660 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25665 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25666 gcc_cv_as_ld_jalr_reloc
=no
25667 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25668 if test $in_tree_ld = yes ; then
25669 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 \
25670 && test $in_tree_ld_is_elf = yes; then
25671 gcc_cv_as_ld_jalr_reloc
=yes
25673 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25674 echo ' .ent x' > conftest.s
25675 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25676 echo ' ld $25,%call16(y)($28)' >> conftest.s
25677 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25678 echo '1: jalr $25' >> conftest.s
25679 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25680 echo '1: jalr $25' >> conftest.s
25681 echo ' .end x' >> conftest.s
25682 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25683 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25684 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25685 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25686 gcc_cv_as_ld_jalr_reloc
=yes
25692 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25693 if test x
$target_cpu_default = x
; then
25694 target_cpu_default
=MASK_RELAX_PIC_CALLS
25696 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25700 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25703 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25704 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25705 $as_echo_n "(cached) " >&6
25707 gcc_cv_ld_mips_personality_relaxation
=no
25708 if test $in_tree_ld = yes ; then
25709 if test "$gcc_cv_gld_major_version" -eq 2 \
25710 -a "$gcc_cv_gld_minor_version" -ge 21 \
25711 -o "$gcc_cv_gld_major_version" -gt 2; then
25712 gcc_cv_ld_mips_personality_relaxation
=yes
25714 elif test x
$gcc_cv_as != x \
25715 -a x
$gcc_cv_ld != x \
25716 -a x
$gcc_cv_readelf != x
; then
25717 cat > conftest.s
<<EOF
25719 .cfi_personality 0x80,indirect_ptr
25726 .section .data,"aw",@progbits
25730 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25731 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25732 if $gcc_cv_readelf -d conftest
2>&1 \
25733 |
grep TEXTREL
> /dev
/null
2>&1; then
25735 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25736 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25739 gcc_cv_ld_mips_personality_relaxation
=yes
25743 rm -f conftest.s conftest.o conftest
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25746 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25747 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25749 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25755 # Mips and HP-UX need the GNU assembler.
25756 # Linux on IA64 might be able to use the Intel assembler.
25759 mips
*-*-* |
*-*-hpux* )
25760 if test x
$gas_flag = xyes \
25761 ||
test x
"$host" != x
"$build" \
25762 ||
test ! -x "$gcc_cv_as" \
25763 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25766 echo "*** This configuration requires the GNU assembler" >&2
25772 # ??? Not all targets support dwarf2 debug_line, even within a version
25773 # of gas. Moreover, we need to emit a valid instruction to trigger any
25774 # info to the output file. So, as supported targets are added to gas 2.11,
25775 # add some instruction here to (also) show we expect this might work.
25776 # ??? Once 2.11 is released, probably need to add first known working
25777 # version to the per-target configury.
25778 case "$cpu_type" in
25779 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25780 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25790 if test x
"$insn" != x
; then
25792 .file 1 \"conftest.s\"
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25796 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25797 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25798 $as_echo_n "(cached) " >&6
25800 gcc_cv_as_dwarf2_debug_line
=no
25801 if test $in_tree_gas = yes; then
25802 if test $in_tree_gas_is_elf = yes \
25803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25804 then gcc_cv_as_dwarf2_debug_line
=yes
25806 elif test x
$gcc_cv_as != x
; then
25807 $as_echo "$conftest_s" > conftest.s
25808 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25810 (eval $ac_try) 2>&5
25812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25813 test $ac_status = 0; }; }
25815 if test x
$gcc_cv_objdump != x \
25816 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25817 |
grep debug_line
> /dev
/null
2>&1; then
25818 gcc_cv_as_dwarf2_debug_line
=yes
25821 echo "configure: failed program was" >&5
25824 rm -f conftest.o conftest.s
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25828 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25831 # The .debug_line file table must be in the exact order that
25832 # we specified the files, since these indices are also used
25833 # by DW_AT_decl_file. Approximate this test by testing if
25834 # the assembler bitches if the same index is assigned twice.
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25836 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25837 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25838 $as_echo_n "(cached) " >&6
25840 gcc_cv_as_dwarf2_file_buggy
=no
25841 if test x
$gcc_cv_as != x
; then
25842 $as_echo ' .file 1 "foo.s"
25843 .file 1 "bar.s"' > conftest.s
25844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25846 (eval $ac_try) 2>&5
25848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25849 test $ac_status = 0; }; }
25851 gcc_cv_as_dwarf2_file_buggy
=yes
25853 echo "configure: failed program was" >&5
25856 rm -f conftest.o conftest.s
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25860 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25863 if test $gcc_cv_as_dwarf2_debug_line = yes \
25864 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25866 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25871 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25872 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25873 $as_echo_n "(cached) " >&6
25875 gcc_cv_as_gdwarf2_flag
=no
25876 if test $in_tree_gas = yes; then
25877 if test $in_tree_gas_is_elf = yes \
25878 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25879 then gcc_cv_as_gdwarf2_flag
=yes
25881 elif test x
$gcc_cv_as != x
; then
25882 $as_echo "$insn" > conftest.s
25883 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25885 (eval $ac_try) 2>&5
25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25888 test $ac_status = 0; }; }
25890 gcc_cv_as_gdwarf2_flag
=yes
25892 echo "configure: failed program was" >&5
25895 rm -f conftest.o conftest.s
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25899 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25900 if test $gcc_cv_as_gdwarf2_flag = yes; then
25902 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25907 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25908 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25909 $as_echo_n "(cached) " >&6
25911 gcc_cv_as_gstabs_flag
=no
25912 if test $in_tree_gas = yes; then
25913 if test $in_tree_gas_is_elf = yes \
25914 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25915 then gcc_cv_as_gstabs_flag
=yes
25917 elif test x
$gcc_cv_as != x
; then
25918 $as_echo "$insn" > conftest.s
25919 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25921 (eval $ac_try) 2>&5
25923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25924 test $ac_status = 0; }; }
25926 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25927 # and warns about it, but still exits successfully. So check for
25929 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25931 (eval $ac_try) 2>&5
25933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25934 test $ac_status = 0; }; }
25936 else gcc_cv_as_gstabs_flag
=yes
25939 echo "configure: failed program was" >&5
25942 rm -f conftest.o conftest.s
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25946 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25947 if test $gcc_cv_as_gstabs_flag = yes; then
25949 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25954 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25955 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25956 $as_echo_n "(cached) " >&6
25958 gcc_cv_as_debug_prefix_map_flag
=no
25959 if test $in_tree_gas = yes; then
25960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25961 then gcc_cv_as_debug_prefix_map_flag
=yes
25963 elif test x
$gcc_cv_as != x
; then
25964 $as_echo "$insn" > conftest.s
25965 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25967 (eval $ac_try) 2>&5
25969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25970 test $ac_status = 0; }; }
25972 gcc_cv_as_debug_prefix_map_flag
=yes
25974 echo "configure: failed program was" >&5
25977 rm -f conftest.o conftest.s
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25981 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25982 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25984 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25990 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25991 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25992 $as_echo_n "(cached) " >&6
25994 gcc_cv_as_lcomm_with_alignment
=no
25995 if test x
$gcc_cv_as != x
; then
25996 $as_echo '.lcomm bar,4,16' > conftest.s
25997 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25999 (eval $ac_try) 2>&5
26001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26002 test $ac_status = 0; }; }
26004 gcc_cv_as_lcomm_with_alignment
=yes
26006 echo "configure: failed program was" >&5
26009 rm -f conftest.o conftest.s
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26013 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26014 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26016 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26020 # Check whether --enable-gnu-unique-object was given.
26021 if test "${enable_gnu_unique_object+set}" = set; then :
26022 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26024 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26025 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26029 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26030 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26031 $as_echo_n "(cached) " >&6
26033 gcc_cv_as_gnu_unique_object
=no
26034 if test $in_tree_gas = yes; then
26035 if test $in_tree_gas_is_elf = yes \
26036 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26037 then gcc_cv_as_gnu_unique_object
=yes
26039 elif test x
$gcc_cv_as != x
; then
26040 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26043 (eval $ac_try) 2>&5
26045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26046 test $ac_status = 0; }; }
26048 gcc_cv_as_gnu_unique_object
=yes
26050 echo "configure: failed program was" >&5
26053 rm -f conftest.o conftest.s
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26057 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26058 if test $gcc_cv_as_gnu_unique_object = yes; then
26059 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26060 if test x
$host = x
$build -a x
$host = x
$target &&
26061 ldd
--version 2>/dev
/null
&&
26062 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26063 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26064 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26065 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26066 if test "$glibcnum" -ge 2011 ; then
26067 enable_gnu_unique_object
=yes
26073 if test x
$enable_gnu_unique_object = xyes
; then
26075 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26080 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26081 if test "${gcc_cv_as_line_zero+set}" = set; then :
26082 $as_echo_n "(cached) " >&6
26084 gcc_cv_as_line_zero
=no
26085 if test $in_tree_gas = yes; then
26086 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26087 then gcc_cv_as_line_zero
=yes
26089 elif test "x$gcc_cv_as" != x
; then
26090 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26091 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26093 (eval $ac_try) 2>&5
26095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26096 test $ac_status = 0; }; } &&
26097 test "x`cat conftest.out`" = x
26099 gcc_cv_as_line_zero
=yes
26101 echo "configure: failed program was" >&5
26103 echo "configure: error output was" >&5
26104 cat conftest.out
>&5
26106 rm -f conftest.o conftest.s conftest.out
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26110 $as_echo "$gcc_cv_as_line_zero" >&6; }
26111 if test "x$gcc_cv_as_line_zero" = xyes
; then
26113 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26118 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26119 gcc_cv_ld_eh_frame_hdr
=no
26120 if test $in_tree_ld = yes ; then
26121 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 \
26122 && test $in_tree_ld_is_elf = yes; then
26123 gcc_cv_ld_eh_frame_hdr
=yes
26125 elif test x
$gcc_cv_ld != x
; then
26126 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26127 # Check if linker supports --eh-frame-hdr option
26128 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26129 gcc_cv_ld_eh_frame_hdr
=yes
26134 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26135 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26136 gcc_cv_ld_eh_frame_hdr
=yes
26143 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26145 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26149 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26152 $as_echo_n "checking linker position independent executable support... " >&6; }
26154 if test $in_tree_ld = yes ; then
26155 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 \
26156 && test $in_tree_ld_is_elf = yes; then
26159 elif test x
$gcc_cv_ld != x
; then
26160 # Check if linker supports -pie option
26161 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26165 if test x
"$gcc_cv_ld_pie" = xyes
; then
26167 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26171 $as_echo "$gcc_cv_ld_pie" >&6; }
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26174 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26175 gcc_cv_ld_eh_gc_sections
=no
26176 if test $in_tree_ld = yes ; then
26177 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 \
26178 && test $in_tree_ld_is_elf = yes; then
26179 gcc_cv_ld_eh_gc_sections
=yes
26181 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26182 cat > conftest.s
<<EOF
26185 .type _start, @function
26188 .size _start, .-_start
26189 .section .text.foo,"ax",@progbits
26190 .type foo, @function
26194 .section .gcc_except_table.foo,"a",@progbits
26197 .section .eh_frame,"a",@progbits
26200 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26201 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26202 |
grep "gc-sections option ignored" > /dev
/null
; then
26203 gcc_cv_ld_eh_gc_sections
=no
26204 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26205 |
grep gcc_except_table
> /dev
/null
; then
26206 gcc_cv_ld_eh_gc_sections
=yes
26207 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26208 if test x
$gcc_cv_as_comdat_group != xyes
; then
26209 gcc_cv_ld_eh_gc_sections
=no
26210 cat > conftest.s
<<EOF
26213 .type _start, @function
26216 .size _start, .-_start
26217 .section .gnu.linkonce.t.foo,"ax",@progbits
26218 .type foo, @function
26222 .section .gcc_except_table.foo,"a",@progbits
26225 .section .eh_frame,"a",@progbits
26228 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26229 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26230 |
grep "gc-sections option ignored" > /dev
/null
; then
26231 gcc_cv_ld_eh_gc_sections
=no
26232 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26233 |
grep gcc_except_table
> /dev
/null
; then
26234 gcc_cv_ld_eh_gc_sections
=yes
26240 rm -f conftest.s conftest.o conftest
26244 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26245 gcc_cv_ld_eh_gc_sections
=no
26248 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26250 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26254 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26257 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26258 gcc_cv_ld_eh_gc_sections_bug
=no
26259 if test $in_tree_ld = yes ; then
26260 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 \
26261 && test $in_tree_ld_is_elf = yes; then
26262 gcc_cv_ld_eh_gc_sections_bug
=yes
26264 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
26265 gcc_cv_ld_eh_gc_sections_bug
=yes
26266 cat > conftest.s
<<EOF
26269 .type _start, @function
26272 .size _start, .-_start
26273 .section .text.startup.foo,"ax",@progbits
26274 .type foo, @function
26278 .section .gcc_except_table.foo,"a",@progbits
26281 .section .eh_frame,"a",@progbits
26284 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26285 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26286 |
grep "gc-sections option ignored" > /dev
/null
; then
26288 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26289 |
grep gcc_except_table
> /dev
/null
; then
26290 gcc_cv_ld_eh_gc_sections_bug
=no
26293 rm -f conftest.s conftest.o conftest
26295 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26297 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26301 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26308 $as_echo_n "checking linker --as-needed support... " >&6; }
26309 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26310 $as_echo_n "(cached) " >&6
26312 gcc_cv_ld_as_needed
=no
26313 if test $in_tree_ld = yes ; then
26314 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 \
26315 && test $in_tree_ld_is_elf = yes; then
26316 gcc_cv_ld_as_needed
=yes
26318 elif test x
$gcc_cv_ld != x
; then
26319 # Check if linker supports --as-needed and --no-as-needed options
26320 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26321 gcc_cv_ld_as_needed
=yes
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26327 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26328 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26330 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26334 case "$target:$tm_file" in
26335 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26337 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26338 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26339 $as_echo_n "(cached) " >&6
26341 gcc_cv_ld_no_dot_syms
=no
26342 if test $in_tree_ld = yes ; then
26343 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
26344 gcc_cv_ld_no_dot_syms
=yes
26346 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26347 cat > conftest1.s
<<EOF
26351 cat > conftest2.s
<<EOF
26352 .section ".opd","aw"
26355 .type foo,@function
26357 .quad .LEfoo,.TOC.@tocbase,0
26363 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26364 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26365 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26366 gcc_cv_ld_no_dot_syms
=yes
26368 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26373 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26374 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26376 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26381 $as_echo_n "checking linker large toc support... " >&6; }
26382 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26383 $as_echo_n "(cached) " >&6
26385 gcc_cv_ld_large_toc
=no
26386 if test $in_tree_ld = yes ; then
26387 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
26388 gcc_cv_ld_large_toc
=yes
26390 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26391 cat > conftest.s
<<EOF
26392 .section ".tbss","awT",@nobits
26398 addis 9,13,ie0@got@tprel@ha
26399 ld 9,ie0@got@tprel@l(9)
26401 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26402 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26403 gcc_cv_ld_large_toc
=yes
26405 rm -f conftest conftest.o conftest.s
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26410 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26411 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26413 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26420 $as_echo_n "checking linker --build-id support... " >&6; }
26421 if test "${gcc_cv_ld_buildid+set}" = set; then :
26422 $as_echo_n "(cached) " >&6
26424 gcc_cv_ld_buildid
=no
26425 if test $in_tree_ld = yes ; then
26426 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26427 "$gcc_cv_gld_minor_version" -ge 18 -o \
26428 "$gcc_cv_gld_major_version" -gt 2 \
26429 && test $in_tree_ld_is_elf = yes; then
26430 gcc_cv_ld_buildid
=yes
26432 elif test x
$gcc_cv_ld != x
; then
26433 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26434 gcc_cv_ld_buildid
=yes
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26439 $as_echo "$gcc_cv_ld_buildid" >&6; }
26440 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26442 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26446 # Check whether --enable-linker-build-id was given.
26447 if test "${enable_linker_build_id+set}" = set; then :
26448 enableval
=$enable_linker_build_id;
26450 enable_linker_build_id
=no
26454 if test x
"$enable_linker_build_id" = xyes
; then
26455 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26457 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26461 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26465 # In binutils 2.21, GNU ld gained support for new emulations fully
26466 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26468 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26469 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26470 $as_echo_n "(cached) " >&6
26472 gcc_cv_ld_sol2_emulation
=no
26473 if test $in_tree_ld = yes ; then
26474 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26475 "$gcc_cv_gld_minor_version" -ge 21 -o \
26476 "$gcc_cv_gld_major_version" -gt 2 \
26477 && test $in_tree_ld_is_elf = yes; then
26478 gcc_cv_ld_sol2_emulation
=yes
26480 elif test x
$gcc_cv_ld != x
; then
26481 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26482 grep _sol2
> /dev
/null
; then
26483 gcc_cv_ld_sol2_emulation
=yes
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26488 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26489 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26491 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26496 $as_echo_n "checking linker --sysroot support... " >&6; }
26497 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26498 $as_echo_n "(cached) " >&6
26500 gcc_cv_ld_sysroot
=no
26501 if test $in_tree_ld = yes ; then
26502 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
26503 gcc_cv_ld_sysroot
=yes
26505 elif test x
$gcc_cv_ld != x
; then
26506 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26507 gcc_cv_ld_sysroot
=yes
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26512 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26513 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26515 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26519 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26520 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26521 && test "$prefix" != "NONE"; then
26523 cat >>confdefs.h
<<_ACEOF
26524 #define PREFIX_INCLUDE_DIR "$prefix/include"
26529 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26530 if test "x$with_headers" != x
; then
26531 target_header_dir
=$with_headers
26532 elif test "x$with_sysroot" = x
; then
26533 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26534 elif test "x$with_build_sysroot" != "x"; then
26535 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26536 elif test "x$with_sysroot" = xyes
; then
26537 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26539 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26542 target_header_dir
=${native_system_header_dir}
26545 # Test for stack protector support in target C library.
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26547 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26548 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26549 $as_echo_n "(cached) " >&6
26551 gcc_cv_libc_provides_ssp
=no
26553 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26554 # glibc 2.4 and later provides __stack_chk_fail and
26555 # either __stack_chk_guard, or TLS access to stack guard canary.
26556 if test -f $target_header_dir/features.h \
26557 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26558 $target_header_dir/features.h
> /dev
/null
; then
26559 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26560 $target_header_dir/features.h
> /dev
/null
; then
26561 gcc_cv_libc_provides_ssp
=yes
26562 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26563 $target_header_dir/features.h
> /dev
/null \
26564 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26565 $target_header_dir/features.h
> /dev
/null
; then
26566 gcc_cv_libc_provides_ssp
=yes
26567 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26568 $target_header_dir/features.h
> /dev
/null
&& \
26569 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26570 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26571 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26572 gcc_cv_libc_provides_ssp
=yes
26577 # Avoid complicated tests (see
26578 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26579 # simply assert that glibc does provide this, which is true for all
26580 # realistically usable GNU/Hurd configurations.
26581 gcc_cv_libc_provides_ssp
=yes;;
26582 *-*-darwin* |
*-*-freebsd*)
26583 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26584 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26585 gcc_cv_libc_provides_ssp
=yes
26587 echo "no __stack_chk_fail on this target"
26591 *) gcc_cv_libc_provides_ssp
=no
;;
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26595 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26597 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26599 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26603 # Test for <sys/sdt.h> on the target.
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26606 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26608 if test -f $target_header_dir/sys
/sdt.h
; then
26611 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26615 $as_echo "$have_sys_sdt_h" >&6; }
26617 # Check if TFmode long double should be used by default or not.
26618 # Some glibc targets used DFmode long double, but with glibc 2.4
26619 # and later they can use TFmode.
26621 powerpc
*-*-linux* | \
26622 sparc
*-*-linux* | \
26626 # Check whether --with-long-double-128 was given.
26627 if test "${with_long_double_128+set}" = set; then :
26628 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26630 gcc_cv_target_ldbl128
=no
26631 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26632 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26633 && gcc_cv_target_ldbl128
=yes
26639 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26641 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26646 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26647 gcc_cv_target_dl_iterate_phdr
=unknown
26650 # <link.h> needs both a dl_iterate_phdr declaration and support for
26651 # compilation with largefile support.
26652 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26653 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26654 gcc_cv_target_dl_iterate_phdr
=yes
26656 gcc_cv_target_dl_iterate_phdr
=no
26661 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26663 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26667 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26669 # Find out what GC implementation we want, or may, use.
26671 # Check whether --with-gc was given.
26672 if test "${with_gc+set}" = set; then :
26673 withval
=$with_gc; case "$withval" in
26680 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26684 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26692 echo "Using $GGC for garbage collection."
26694 # Libraries to use on the host. This will normally be set by the top
26695 # level Makefile. Here we simply capture the value for our Makefile.
26696 if test -z "${HOST_LIBS+set}"; then
26701 # Use the system's zlib library.
26703 zlibinc
="-I\$(srcdir)/../zlib"
26705 # Check whether --with-system-zlib was given.
26706 if test "${with_system_zlib+set}" = set; then :
26707 withval
=$with_system_zlib; zlibdir
=
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26717 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26718 # Check whether --enable-maintainer-mode was given.
26719 if test "${enable_maintainer_mode+set}" = set; then :
26720 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26727 $as_echo "$maintainer_mode" >&6; }
26729 if test "$maintainer_mode" = "yes"; then
26739 # Make empty files to contain the specs and options for each language.
26740 # Then add #include lines to for a compiler that has specs and/or options.
26746 # These (without "all_") are set in each config-lang.in.
26747 # `language' must be a single word so is spelled singularly.
26750 all_outputs
='Makefile'
26751 # List of language makefile fragments.
26752 all_lang_makefrags
=
26753 # Additional files for gengtype
26754 all_gtfiles
="$target_gtfiles"
26756 # These are the languages that are set in --enable-languages,
26757 # and are available in the GCC tree.
26758 all_selected_languages
=
26760 # Add the language fragments.
26761 # Languages are added via two mechanisms. Some information must be
26762 # recorded in makefile variables, these are defined in config-lang.in.
26763 # We accumulate them and plug them into the main Makefile.
26764 # The other mechanism is a set of hooks for each of the main targets
26765 # like `clean', `install', etc.
26767 language_hooks
="Make-hooks"
26769 for lang
in ${srcdir}/*/config-lang.
in
26771 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26773 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26774 if test "x$lang_alias" = x
26776 echo "$lang doesn't set \$language." 1>&2
26779 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26780 subdirs
="$subdirs $subdir"
26782 # $gcc_subdir is where the gcc integration files are to be found
26783 # for a language, both for internal compiler purposes (compiler
26784 # sources implementing front-end to GCC tree converters), and for
26785 # build infrastructure purposes (Make-lang.in, etc.)
26787 # This will be <subdir> (relative to $srcdir) if a line like
26788 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26789 # is found in <langdir>/config-lang.in, and will remain <langdir>
26792 # Except for the language alias (fetched above), the regular
26793 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26794 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26795 # only this and the language alias.
26797 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26798 if [ "$gcc_subdir" = "" ]; then
26799 gcc_subdir
="$subdir"
26802 case ",$enable_languages," in
26804 all_selected_languages
="$all_selected_languages $lang_alias"
26805 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26806 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26817 .
${srcdir}/$gcc_subdir/config-lang.
in
26818 if test "x$language" = x
26820 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26825 case ",$enable_languages," in
26826 *,$lang_alias,*) ;;
26828 for i
in $subdir_requires; do
26829 test -f "${srcdir}/$i/config-lang.in" && continue
26837 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26838 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26839 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26840 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26842 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26843 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26845 all_languages
="$all_languages $language"
26846 all_compilers
="$all_compilers $compilers"
26847 all_outputs
="$all_outputs $outputs"
26848 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26849 case ",$enable_languages," in
26852 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26861 # Pick up gtfiles for c
26863 .
${srcdir}/c-config-lang.
in
26864 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26867 for language
in $all_selected_languages
26869 check_languages
="$check_languages check-$language"
26872 # We link each language in with a set of hooks, reached indirectly via
26873 # lang.${target}. Only do so for selected languages.
26877 target_list
="all.cross start.encap rest.encap tags \
26878 install-common install-man install-info install-pdf install-html dvi \
26879 pdf html uninstall info man srcextra srcman srcinfo \
26880 mostlyclean clean distclean maintainer-clean install-plugin"
26882 for t
in $target_list
26885 for lang
in $all_selected_languages
26889 echo "lang.$t: $x" >> Make-hooks
26893 # Option include files
26896 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26897 option_includes
="option-includes.mk"
26906 echo "dir ." > .gdbinit
26907 echo "dir ${srcdir}" >> .gdbinit
26908 if test x
$gdb_needs_out_file_path = xyes
26910 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26912 if test "x$subdirs" != x
; then
26915 echo "dir ${srcdir}/$s" >> .gdbinit
26918 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26920 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26924 # Find a directory in which to install a shared libgcc.
26926 # Check whether --enable-version-specific-runtime-libs was given.
26927 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26928 enableval
=$enable_version_specific_runtime_libs;
26932 # Substitute configuration variables
26996 if test x
${build} = x
${host} ; then
26997 if test x
${host} = x
${target} ; then
26998 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27000 echo "Links are now set up to build a cross-compiler" 1>&2
27001 echo " from ${host} to ${target}." 1>&2
27004 if test x
${host} = x
${target} ; then
27005 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27006 echo " for ${target}." 1>&2
27008 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27009 echo " from ${host} to ${target}." 1>&2
27021 if test "x${CLOOGLIBS}" != "x" ; then
27023 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27027 # Check for plugin support
27028 # Check whether --enable-plugin was given.
27029 if test "${enable_plugin+set}" = set; then :
27030 enableval
=$enable_plugin; enable_plugin
=$enableval
27032 enable_plugin
=yes; default_plugin
=yes
27040 if test x
$build = x
$host; then
27041 export_sym_check
="nm${exeext} -g"
27042 elif test x
$host = x
$target; then
27043 export_sym_check
="$gcc_cv_nm -g"
27049 if test x
$build = x
$host; then
27050 export_sym_check
="objdump${exeext} -T"
27051 elif test x
$host = x
$target; then
27052 export_sym_check
="$gcc_cv_objdump -T"
27059 if test x
"$enable_plugin" = x
"yes"; then
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27062 $as_echo_n "checking for exported symbols... " >&6; }
27063 if test "x$export_sym_check" != x
; then
27064 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27065 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27066 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27067 : # No need to use a flag
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27069 $as_echo "yes" >&6; }
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27072 $as_echo "yes" >&6; }
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27074 $as_echo_n "checking for -rdynamic... " >&6; }
27075 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27076 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27077 plugin_rdynamic
=yes
27078 pluginlibs
="-rdynamic"
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27084 $as_echo "$plugin_rdynamic" >&6; }
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27088 $as_echo "unable to check" >&6; }
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27094 $as_echo_n "checking for library containing dlopen... " >&6; }
27095 if test "${ac_cv_search_dlopen+set}" = set; then :
27096 $as_echo_n "(cached) " >&6
27098 ac_func_search_save_LIBS
=$LIBS
27099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27100 /* end confdefs.h. */
27102 /* Override any GCC internal prototype to avoid an error.
27103 Use char because int might match the return type of a GCC
27104 builtin and then its argument prototype would still apply. */
27117 for ac_lib
in '' dl
; do
27118 if test -z "$ac_lib"; then
27119 ac_res
="none required"
27122 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27124 if ac_fn_c_try_link
"$LINENO"; then :
27125 ac_cv_search_dlopen
=$ac_res
27127 rm -f core conftest.err conftest.
$ac_objext \
27129 if test "${ac_cv_search_dlopen+set}" = set; then :
27133 if test "${ac_cv_search_dlopen+set}" = set; then :
27136 ac_cv_search_dlopen
=no
27138 rm conftest.
$ac_ext
27139 LIBS
=$ac_func_search_save_LIBS
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27142 $as_echo "$ac_cv_search_dlopen" >&6; }
27143 ac_res
=$ac_cv_search_dlopen
27144 if test "$ac_res" != no
; then :
27145 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27149 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27150 pluginlibs
="$pluginlibs -ldl"
27154 # Check that we can build shared objects with -fPIC -shared
27155 saved_LDFLAGS
="$LDFLAGS"
27156 saved_CFLAGS
="$CFLAGS"
27159 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27160 CFLAGS
="$CFLAGS -fPIC"
27161 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27164 CFLAGS
="$CFLAGS -fPIC"
27165 LDFLAGS
="$LDFLAGS -fPIC -shared"
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27169 $as_echo_n "checking for -fPIC -shared... " >&6; }
27170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27171 /* end confdefs.h. */
27181 if ac_fn_c_try_link
"$LINENO"; then :
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27183 $as_echo "yes" >&6; }; have_pic_shared
=yes
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27186 $as_echo "no" >&6; }; have_pic_shared
=no
27188 rm -f core conftest.err conftest.
$ac_objext \
27189 conftest
$ac_exeext conftest.
$ac_ext
27190 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27194 LDFLAGS
="$saved_LDFLAGS"
27195 CFLAGS
="$saved_CFLAGS"
27197 # If plugin support had been requested but not available, fail.
27198 if test x
"$enable_plugin" = x
"no" ; then
27199 if test x
"$default_plugin" != x
"yes"; then
27201 Building GCC with plugin support requires a host that supports
27202 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27209 if test x
"$enable_plugin" = x
"yes"; then
27211 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27216 # Check whether --enable-libquadmath-support was given.
27217 if test "${enable_libquadmath_support+set}" = set; then :
27218 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27220 ENABLE_LIBQUADMATH_SUPPORT
=yes
27223 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27225 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27230 # Specify what hash style to use by default.
27232 # Check whether --with-linker-hash-style was given.
27233 if test "${with_linker_hash_style+set}" = set; then :
27234 withval
=$with_linker_hash_style; case x
"$withval" in
27236 LINKER_HASH_STYLE
=sysv
27239 LINKER_HASH_STYLE
=gnu
27242 LINKER_HASH_STYLE
=both
27245 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27249 LINKER_HASH_STYLE
=''
27252 if test x
"${LINKER_HASH_STYLE}" != x
; then
27254 cat >>confdefs.h
<<_ACEOF
27255 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27260 # Configure the subdirectories
27261 # AC_CONFIG_SUBDIRS($subdirs)
27263 # Create the Makefile
27264 # and configure language subdirectories
27265 ac_config_files
="$ac_config_files $all_outputs"
27268 ac_config_commands
="$ac_config_commands default"
27270 cat >confcache
<<\_ACEOF
27271 # This file is a shell script that caches the results of configure
27272 # tests run on this system so they can be shared between configure
27273 # scripts and configure runs, see configure's option --config-cache.
27274 # It is not useful on other systems. If it contains results you don't
27275 # want to keep, you may remove or edit it.
27277 # config.status only pays attention to the cache file if you give it
27278 # the --recheck option to rerun configure.
27280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27282 # following values.
27286 # The following way of writing the cache mishandles newlines in values,
27287 # but we know of no workaround that is simple, portable, and efficient.
27288 # So, we kill variables containing newlines.
27289 # Ultrix sh set writes to stderr and can't be redirected directly,
27290 # and sets the high bit in the cache file unless we assign to the vars.
27292 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27293 eval ac_val
=\$
$ac_var
27297 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27301 _ | IFS | as_nl
) ;; #(
27302 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27303 *) { eval $ac_var=; unset $ac_var;} ;;
27309 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27310 *${as_nl}ac_space
=\
*)
27311 # `set' does not quote correctly, so add quotes: double-quote
27312 # substitution turns \\\\ into \\, and sed turns \\ into \.
27315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27318 # `set' quotes correctly as required by POSIX, so do not add quotes.
27319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27330 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27332 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27333 if test -w "$cache_file"; then
27334 test "x$cache_file" != "x/dev/null" &&
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27336 $as_echo "$as_me: updating cache $cache_file" >&6;}
27337 cat confcache
>$cache_file
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27340 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27345 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27346 # Let make expand exec_prefix.
27347 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27349 DEFS
=-DHAVE_CONFIG_H
27353 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27354 # 1. Remove the extension, and $U if already installed.
27355 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27356 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27357 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27358 # will be set to the directory where LIBOBJS objects are built.
27359 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27360 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27362 LIBOBJS
=$ac_libobjs
27364 LTLIBOBJS
=$ac_ltlibobjs
27369 : ${CONFIG_STATUS=./config.status}
27371 ac_clean_files_save
=$ac_clean_files
27372 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27374 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27376 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27378 # Generated by $as_me.
27379 # Run this file to recreate the current configuration.
27380 # Compiler output produced by configure, useful for debugging
27381 # configure, is in config.log if it exists.
27384 ac_cs_recheck=false
27387 SHELL=\${CONFIG_SHELL-$SHELL}
27390 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27391 ## -------------------- ##
27392 ## M4sh Initialization. ##
27393 ## -------------------- ##
27395 # Be more Bourne compatible
27396 DUALCASE
=1; export DUALCASE
# for MKS sh
27397 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27400 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27401 # is contrary to our usage. Disable this feature.
27402 alias -g '${1+"$@"}'='"$@"'
27403 setopt NO_GLOB_SUBST
27405 case `(set -o) 2>/dev/null` in #(
27417 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27418 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27419 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27420 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27421 # Prefer a ksh shell builtin over an external printf program on Solaris,
27422 # but without wasting forks for bash or zsh.
27423 if test -z "$BASH_VERSION$ZSH_VERSION" \
27424 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27425 as_echo='print
-r --'
27426 as_echo_n='print
-rn --'
27427 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27428 as_echo='printf %s
\n'
27429 as_echo_n='printf %s
'
27431 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27432 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27433 as_echo_n='/usr
/ucb
/echo -n'
27435 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27436 as_echo_n_body='eval
27440 expr "X$arg" : "X\\(.*\\)$as_nl";
27441 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27443 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27445 export as_echo_n_body
27446 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27448 export as_echo_body
27449 as_echo='sh
-c $as_echo_body as_echo
'
27452 # The user is always right.
27453 if test "${PATH_SEPARATOR+set}" != set; then
27455 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27456 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27463 # We need space, tab and new line, in precisely that order. Quoting is
27464 # there to prevent editors from complaining about space-tab.
27465 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27466 # splitting by setting IFS to empty value.)
27469 # Find who we are. Look in the path if we contain no directory separator.
27471 *[\\/]* ) as_myself=$0 ;;
27472 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27473 for as_dir in $PATH
27476 test -z "$as_dir" && as_dir=.
27477 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27483 # We did not find ourselves, most probably we were run as `sh COMMAND'
27484 # in which case we are not to be found in the path.
27485 if test "x$as_myself" = x
; then
27488 if test ! -f "$as_myself"; then
27489 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27493 # Unset variables that we do not need and which cause bugs (e.g. in
27494 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27495 # suppresses any "Segmentation fault" message there. '((' could
27496 # trigger a bug in pdksh 5.2.14.
27497 for as_var
in BASH_ENV ENV MAIL MAILPATH
27498 do eval test x\
${$as_var+set} = xset \
27499 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27512 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27515 # as_fn_error ERROR [LINENO LOG_FD]
27516 # ---------------------------------
27517 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27518 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27519 # script with status $?, using 1 if that was 0.
27522 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27524 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27525 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27527 $as_echo "$as_me: error: $1" >&2
27528 as_fn_exit
$as_status
27532 # as_fn_set_status STATUS
27533 # -----------------------
27534 # Set $? to STATUS, without forking.
27535 as_fn_set_status
()
27538 } # as_fn_set_status
27540 # as_fn_exit STATUS
27541 # -----------------
27542 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27546 as_fn_set_status
$1
27552 # Portably unset VAR.
27555 { eval $1=; unset $1;}
27557 as_unset
=as_fn_unset
27558 # as_fn_append VAR VALUE
27559 # ----------------------
27560 # Append the text in VALUE to the end of the definition contained in VAR. Take
27561 # advantage of any shell optimizations that allow amortized linear growth over
27562 # repeated appends, instead of the typical quadratic growth present in naive
27564 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27565 eval 'as_fn_append ()
27576 # as_fn_arith ARG...
27577 # ------------------
27578 # Perform arithmetic evaluation on the ARGs, and store the result in the
27579 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27580 # must be portable across $(()) and expr.
27581 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27582 eval 'as_fn_arith ()
27589 as_val
=`expr "$@" || test $? -eq 1`
27594 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27595 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27601 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27602 as_basename
=basename
27607 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27613 as_me
=`$as_basename -- "$0" ||
27614 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27615 X"$0" : 'X\(//\)$' \| \
27616 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27618 sed '/^.*\/\([^/][^/]*\)\/*$/{
27632 # Avoid depending upon Character Ranges.
27633 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27634 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27635 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27636 as_cr_digits
='0123456789'
27637 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27639 ECHO_C
= ECHO_N
= ECHO_T
=
27640 case `echo -n x` in #(((((
27642 case `echo 'xy\c'` in
27643 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27645 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27652 rm -f conf$$ conf$$.exe conf$$.
file
27653 if test -d conf$$.dir
; then
27654 rm -f conf$$.dir
/conf$$.
file
27657 mkdir conf$$.dir
2>/dev
/null
27659 if (echo >conf$$.
file) 2>/dev
/null
; then
27660 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27662 # ... but there are two gotchas:
27663 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27664 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27665 # In both cases, we have to default to `cp -p'.
27666 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27668 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27676 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27677 rmdir conf$$.dir
2>/dev
/null
27682 # Create "$as_dir" as a directory, including parents if necessary.
27687 -*) as_dir
=.
/$as_dir;;
27689 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27693 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27694 *) as_qdir
=$as_dir;;
27696 as_dirs
="'$as_qdir' $as_dirs"
27697 as_dir
=`$as_dirname -- "$as_dir" ||
27698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27699 X"$as_dir" : 'X\(//\)[^/]' \| \
27700 X"$as_dir" : 'X\(//\)$' \| \
27701 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27702 $as_echo X"$as_dir" |
27703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27707 /^X\(\/\/\)[^/].*/{
27720 test -d "$as_dir" && break
27722 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27723 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27727 if mkdir
-p .
2>/dev
/null
; then
27728 as_mkdir_p
='mkdir -p "$as_dir"'
27730 test -d .
/-p && rmdir .
/-p
27734 if test -x / >/dev
/null
2>&1; then
27735 as_test_x
='test -x'
27737 if ls -dL / >/dev
/null
2>&1; then
27744 if test -d "$1"; then
27750 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27751 ???[sx]*):;;*)false;;esac;fi
27755 as_executable_p
=$as_test_x
27757 # Sed expression to map a string onto a valid CPP name.
27758 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27760 # Sed expression to map a string onto a valid variable name.
27761 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27765 ## ----------------------------------- ##
27766 ## Main body of $CONFIG_STATUS script. ##
27767 ## ----------------------------------- ##
27769 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27772 # Save the log message, to keep $0 and so on meaningful, and to
27773 # report actual input values of CONFIG_FILES etc. instead of their
27774 # values after options handling.
27776 This file was extended by $as_me, which was
27777 generated by GNU Autoconf 2.64. Invocation command line was
27779 CONFIG_FILES = $CONFIG_FILES
27780 CONFIG_HEADERS = $CONFIG_HEADERS
27781 CONFIG_LINKS = $CONFIG_LINKS
27782 CONFIG_COMMANDS = $CONFIG_COMMANDS
27785 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27790 case $ac_config_files in *"
27791 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27794 case $ac_config_headers in *"
27795 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27800 # Files that config.status was made for.
27801 config_files="$ac_config_files"
27802 config_headers="$ac_config_headers"
27803 config_commands="$ac_config_commands"
27807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27809 \`$as_me' instantiates files and other configuration actions
27810 from templates according to the current configuration. Unless the files
27811 and actions are specified as TAGs, all are instantiated by default.
27813 Usage: $0 [OPTION]... [TAG]...
27815 -h, --help print this help, then exit
27816 -V, --version print version number and configuration settings, then exit
27817 -q, --quiet, --silent
27818 do not print progress messages
27819 -d, --debug don't remove temporary files
27820 --recheck update $as_me by reconfiguring in the same conditions
27821 --file=FILE[:TEMPLATE]
27822 instantiate the configuration file FILE
27823 --header=FILE[:TEMPLATE]
27824 instantiate the configuration header FILE
27826 Configuration files:
27829 Configuration headers:
27832 Configuration commands:
27835 Report bugs to the package provider."
27838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27841 configured by $0, generated by GNU Autoconf 2.64,
27842 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27844 Copyright (C) 2009 Free Software Foundation, Inc.
27845 This config.status script is free software; the Free Software Foundation
27846 gives unlimited permission to copy, distribute and modify it."
27851 test -n "\$AWK" || AWK=awk
27854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27855 # The default lists apply if the user does not specify any file.
27861 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27862 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27873 # Handling of the options.
27874 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27876 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27877 $as_echo "$ac_cs_version"; exit ;;
27878 --debug |
--debu |
--deb |
--de |
--d |
-d )
27880 --file |
--fil |
--fi |
--f )
27883 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27885 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27886 ac_need_defaults
=false
;;
27887 --header |
--heade |
--head |
--hea )
27890 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27892 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27893 ac_need_defaults
=false
;;
27895 # Conflict between --help and --header
27896 as_fn_error
"ambiguous option: \`$1'
27897 Try \`$0 --help' for more information.";;
27898 --help |
--hel |
-h )
27899 $as_echo "$ac_cs_usage"; exit ;;
27900 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27901 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27904 # This is an error.
27905 -*) as_fn_error
"unrecognized option: \`$1'
27906 Try \`$0 --help' for more information." ;;
27908 *) as_fn_append ac_config_targets
" $1"
27909 ac_need_defaults
=false
;;
27915 ac_configure_extra_args
=
27917 if $ac_cs_silent; then
27919 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27924 if \$ac_cs_recheck; then
27925 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27927 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27928 CONFIG_SHELL='$SHELL'
27929 export CONFIG_SHELL
27934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27938 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27939 ## Running $as_me. ##
27945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27955 # Handling of arguments.
27956 for ac_config_target
in $ac_config_targets
27958 case $ac_config_target in
27959 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27960 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27961 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27962 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27963 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27964 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27966 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27971 # If the user did not use the arguments to specify the items to instantiate,
27972 # then the envvar interface is used. Set only those that are not.
27973 # We use the long form for the default assignment because of an extremely
27974 # bizarre bug on SunOS 4.1.3.
27975 if $ac_need_defaults; then
27976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27981 # Have a temporary directory for convenience. Make it in the build tree
27982 # simply because there is no reason against having it here, and in addition,
27983 # creating and moving files from /tmp can sometimes cause problems.
27984 # Hook for its removal unless debugging.
27985 # Note that there is a small window in which the directory will not be cleaned:
27986 # after its creation but before its name has been assigned to `$tmp'.
27990 trap 'exit_status=$?
27991 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27993 trap 'as_fn_exit 1' 1 2 13 15
27995 # Create a (secure) tmp directory for tmp files.
27998 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27999 test -n "$tmp" && test -d "$tmp"
28002 tmp
=.
/conf$$
-$RANDOM
28003 (umask 077 && mkdir
"$tmp")
28004 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28006 # Set up the scripts for CONFIG_FILES section.
28007 # No need to generate them if there are no CONFIG_FILES.
28008 # This happens for instance with `./config.status config.h'.
28009 if test -n "$CONFIG_FILES"; then
28011 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28012 ac_cs_awk_getline
=:
28013 ac_cs_awk_pipe_init
=
28014 ac_cs_awk_read_file
='
28015 while ((getline aline < (F[key])) > 0)
28018 ac_cs_awk_pipe_fini
=
28020 ac_cs_awk_getline
=false
28021 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28022 ac_cs_awk_read_file
='
28024 print "cat " F[key] " &&"
28025 '$ac_cs_awk_pipe_init
28026 # The final `:' finishes the AND list.
28027 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28029 ac_cr
=`echo X | tr X '\015'`
28030 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28031 # But we know of no other shell where ac_cr would be empty at this
28032 # point, so we can use a bashism as a fallback.
28033 if test "x$ac_cr" = x
; then
28034 eval ac_cr
=\$
\'\\r
\'
28036 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28037 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28040 ac_cs_awk_cr
=$ac_cr
28043 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28046 # Create commands to substitute file output variables.
28048 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28049 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28050 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28053 } >conf$
$files.sh
&&
28054 . .
/conf$
$files.sh ||
28055 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28056 rm -f conf$
$files.sh
28059 echo "cat >conf$$subs.awk <<_ACEOF" &&
28060 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28062 } >conf$$subs.sh ||
28063 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28064 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28066 for ac_last_try in false false false false false :; do
28067 . ./conf$$subs.sh ||
28068 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28070 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28071 if test $ac_delim_n = $ac_delim_num; then
28073 elif $ac_last_try; then
28074 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28076 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28079 rm -f conf$$subs.sh
28081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28082 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28086 s/^/S["/; s
/!.
*/"]=/
28096 s/\(.\{148\}\).*/\1/
28098 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28103 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28110 s/\(.\{148\}\).*/\1/
28112 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28116 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28121 ' <conf$$subs.awk | sed '
28126 ' >>$CONFIG_STATUS || ac_write_fail=1
28127 rm -f conf$$subs.awk
28128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28130 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28131 for (key in S) S_is_set[key] = 1
28133 \$ac_cs_awk_pipe_init
28137 nfields = split(line, field, "@
")
28139 len = length(field[1])
28140 for (i = 2; i < nfields; i++) {
28142 keylen = length(key)
28143 if (S_is_set[key]) {
28145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28146 len += length(value) + length(field[++i])
28151 if (nfields == 3 && !substed) {
28153 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28154 \$ac_cs_awk_read_file
28160 \$ac_cs_awk_pipe_fini
28163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28164 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28165 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28168 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28169 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28174 # trailing colons and then remove the whole line if VPATH becomes empty
28175 # (actually we leave an empty line to preserve line numbers).
28176 if test "x
$srcdir" = x.; then
28177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28178 s/:*\$(srcdir):*/:/
28179 s/:*\${srcdir}:*/:/
28181 s/^\([^=]*=[ ]*\):*/\1/
28187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28188 fi # test -n "$CONFIG_FILES"
28190 # Set up the scripts for CONFIG_HEADERS section.
28191 # No need to generate them if there are no CONFIG_HEADERS.
28192 # This happens for instance with `./config.status Makefile'.
28193 if test -n "$CONFIG_HEADERS"; then
28194 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28198 # Transform confdefs.h into an awk script `defines.awk', embedded as
28199 # here-document in config.status, that substitutes the proper values into
28200 # config.h.in to produce config.h.
28202 # Create a delimiter string that does not exist in confdefs.h, to ease
28203 # handling of long lines.
28205 for ac_last_try in false false :; do
28206 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28207 if test -z "$ac_t"; then
28209 elif $ac_last_try; then
28210 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28212 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28216 # For the awk script, D is an array of macro values keyed by name,
28217 # likewise P contains macro parameters if any. Preserve backslash
28218 # newline sequences.
28220 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28222 s/.\{148\}/&'"$ac_delim"'/g
28225 s/^[ ]*#[ ]*define[ ][ ]*/ /
28232 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28234 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28238 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28239 D["\
1"]=" \
3\\\\\\n
"\\/p
28241 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28246 s/.\{148\}/&'"$ac_delim"'/g
28251 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28254 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28256 ' <confdefs.h | sed '
28257 s/'"$ac_delim"'/"\\\
28258 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28261 for (key in D) D_is_set[key] = 1
28264 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28266 split(line, arg, " ")
28267 if (arg[1] == "#") {
28271 defundef
= substr
(arg
[1], 2)
28274 split(mac1
, mac2
, "(") #)
28276 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28277 if (D_is_set
[macro
]) {
28278 # Preserve the white space surrounding the "#".
28279 print prefix
"define", macro P
[macro
] D
[macro
]
28282 # Replace #undef with comments. This is necessary, for example,
28283 # in the case of _POSIX_SOURCE, which is predefined and required
28284 # on some systems where configure will not decide to define it.
28285 if (defundef
== "undef") {
28286 print
"/*", prefix defundef
, macro
, "*/"
28294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28295 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28296 fi # test -n "$CONFIG_HEADERS"
28299 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28304 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28306 case $ac_mode$ac_tag in
28308 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28309 :[FH
]-) ac_tag
=-:-;;
28310 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28327 -) ac_f
="$tmp/stdin";;
28328 *) # Look for the file first in the build tree, then in the source tree
28329 # (if the path is not absolute). The absolute path cannot be DOS-style,
28330 # because $ac_f cannot contain `:'.
28334 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28336 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28338 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28339 as_fn_append ac_file_inputs
" '$ac_f'"
28342 # Let's still pretend it is `configure' which instantiates (i.e., don't
28343 # use $as_me), people would be surprised to read:
28344 # /* config.h. Generated by config.status. */
28345 configure_input
='Generated from '`
28346 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28348 if test x
"$ac_file" != x-
; then
28349 configure_input
="$ac_file. $configure_input"
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28351 $as_echo "$as_me: creating $ac_file" >&6;}
28353 # Neutralize special characters interpreted by sed in replacement strings.
28354 case $configure_input in #(
28355 *\
&* |
*\|
* |
*\\* )
28356 ac_sed_conf_input
=`$as_echo "$configure_input" |
28357 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28358 *) ac_sed_conf_input
=$configure_input;;
28362 *:-:* |
*:-) cat >"$tmp/stdin" \
28363 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28368 ac_dir
=`$as_dirname -- "$ac_file" ||
28369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28370 X"$ac_file" : 'X\(//\)[^/]' \| \
28371 X"$ac_file" : 'X\(//\)$' \| \
28372 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28373 $as_echo X"$ac_file" |
28374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28378 /^X\(\/\/\)[^/].*/{
28391 as_dir
="$ac_dir"; as_fn_mkdir_p
28395 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28397 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28398 # A ".." for each directory in $ac_dir_suffix.
28399 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28400 case $ac_top_builddir_sub in
28401 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28402 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28405 ac_abs_top_builddir
=$ac_pwd
28406 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28407 # for backward compatibility:
28408 ac_top_builddir
=$ac_top_build_prefix
28411 .
) # We are building in place.
28413 ac_top_srcdir
=$ac_top_builddir_sub
28414 ac_abs_top_srcdir
=$ac_pwd ;;
28415 [\\/]* | ?
:[\\/]* ) # Absolute name.
28416 ac_srcdir
=$srcdir$ac_dir_suffix;
28417 ac_top_srcdir
=$srcdir
28418 ac_abs_top_srcdir
=$srcdir ;;
28419 *) # Relative name.
28420 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28421 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28422 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28424 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28436 # If the template does not know about datarootdir, expand it.
28437 # FIXME: This hack should be removed a few years after 2.60.
28438 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28449 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28450 *datarootdir
*) ac_datarootdir_seen
=yes;;
28451 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28453 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28456 ac_datarootdir_hack='
28457 s&@datadir@&$datadir&g
28458 s&@docdir@&$docdir&g
28459 s&@infodir@&$infodir&g
28460 s&@localedir@&$localedir&g
28461 s&@mandir@&$mandir&g
28462 s&\\\${datarootdir}&$datarootdir&g' ;;
28466 # Neutralize VPATH when `$srcdir' = `.'.
28467 # Shell code in configure.ac might set extrasub.
28468 # FIXME: do we really want to maintain this feature?
28469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28470 ac_sed_extra="$ac_vpsub
28473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28475 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28476 s|@configure_input@|
$ac_sed_conf_input|
;t t
28477 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28478 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28479 s
&@srcdir@
&$ac_srcdir&;t t
28480 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28481 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28482 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28483 s
&@builddir@
&$ac_builddir&;t t
28484 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28485 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28486 $ac_datarootdir_hack
28488 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28489 if $ac_cs_awk_getline; then
28490 $AWK -f "$tmp/subs.
awk"
28492 $AWK -f "$tmp/subs.
awk" | $SHELL
28494 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28496 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28497 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28498 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28500 which seems to be undefined. Please make sure it is defined." >&5
28501 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28502 which seems to be undefined. Please make sure it is defined." >&2;}
28506 -) cat "$tmp/out" && rm -f "$tmp/out";;
28507 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28509 || as_fn_error "could not create $ac_file" "$LINENO" 5
28515 if test x"$ac_file" != x-; then
28517 $as_echo "/* $configure_input */" \
28518 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28519 } >"$tmp/config.h" \
28520 || as_fn_error "could not create $ac_file" "$LINENO" 5
28521 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28523 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28526 mv "$tmp/config.h" "$ac_file" \
28527 || as_fn_error "could not create $ac_file" "$LINENO" 5
28530 $as_echo "/* $configure_input */" \
28531 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28532 || as_fn_error "could not create -" "$LINENO" 5
28536 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28537 $as_echo "$as_me: executing $ac_file commands" >&6;}
28542 case $ac_file$ac_mode in
28543 "as":F) chmod +x as ;;
28544 "collect-ld":F) chmod +x collect-ld ;;
28545 "nm":F) chmod +x nm ;;
28547 case ${CONFIG_HEADERS} in
28548 *auto-host.h:config.in*)
28551 # Make sure all the subdirs exist.
28552 for d in $subdirs doc build common c-family
28554 test -d $d || mkdir $d
28564 ac_clean_files=$ac_clean_files_save
28566 test $ac_write_fail = 0 ||
28567 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28570 # configure is writing to config.log, and then calls config.status.
28571 # config.status does its own redirection, appending to config.log.
28572 # Unfortunately, on DOS this fails, as config.log is still kept open
28573 # by configure, so config.status won't be able to
write to it
; its
28574 # output is simply discarded. So we exec the FD to /dev/null,
28575 # effectively closing config.log, so it can be properly (re)opened and
28576 # appended to by config.status. When coming back to configure, we
28577 # need to make the FD available again.
28578 if test "$no_create" != yes; then
28580 ac_config_status_args
=
28581 test "$silent" = yes &&
28582 ac_config_status_args
="$ac_config_status_args --quiet"
28584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28587 # would make configure fail if this is the last instruction.
28588 $ac_cs_success || as_fn_exit $?
28590 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28592 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}