2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
621 libgcc_tm_include_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
684 ORIGINAL_NM_FOR_TARGET
686 ORIGINAL_LD_FOR_TARGET
687 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 ORIGINAL_AS_FOR_TARGET
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
765 RUNTIME_ROOT_PREFIX_DEFINE
766 NATIVE_SYSTEM_HEADER_DIR
771 ENABLE_BUILD_WITH_CXX
774 valgrind_path_defines
846 program_transform_name
857 ac_subst_files
='option_includes
860 enable_option_checking
865 enable_generated_files_in_srcdir
875 enable_gather_detailed_mem_stats
876 enable_build_with_cxx
887 with_native_system_header_dir
889 with_runtime_root_prefix
898 enable_initfini_array
899 enable_sjlj_exceptions
900 with_system_libunwind
902 enable_leading_mingw64_underscores
905 enable_win32_registry
911 enable_gnu_indirect_function
913 enable_gnu_unique_object
914 enable_linker_build_id
918 enable_maintainer_mode
919 enable_version_specific_runtime_libs
921 enable_canonical_prefixes
923 enable_libquadmath_support
924 with_linker_hash_style
926 ac_precious_vars
='build_alias
947 # Initialize some variables set by options.
949 ac_init_version
=false
950 ac_unrecognized_opts
=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
961 program_transform_name
=s
,x
,x
,
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir
='${exec_prefix}/bin'
976 sbindir
='${exec_prefix}/sbin'
977 libexecdir
='${exec_prefix}/libexec'
978 datarootdir
='${prefix}/share'
979 datadir
='${datarootdir}'
980 sysconfdir
='${prefix}/etc'
981 sharedstatedir
='${prefix}/com'
982 localstatedir
='${prefix}/var'
983 includedir
='${prefix}/include'
984 oldincludedir
='/usr/include'
985 docdir
='${datarootdir}/doc/${PACKAGE}'
986 infodir
='${datarootdir}/info'
991 libdir
='${exec_prefix}/lib'
992 localedir
='${datarootdir}/locale'
993 mandir
='${datarootdir}/man'
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\
$ac_option
1007 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1017 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1019 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1020 bindir
=$ac_optarg ;;
1022 -build |
--build |
--buil |
--bui |
--bu)
1023 ac_prev
=build_alias
;;
1024 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1025 build_alias
=$ac_optarg ;;
1027 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1028 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1029 ac_prev
=cache_file
;;
1030 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1031 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1032 cache_file
=$ac_optarg ;;
1034 --config-cache |
-C)
1035 cache_file
=config.cache
;;
1037 -datadir |
--datadir |
--datadi |
--datad)
1039 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1040 datadir
=$ac_optarg ;;
1042 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1043 |
--dataroo |
--dataro |
--datar)
1044 ac_prev
=datarootdir
;;
1045 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1046 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1047 datarootdir
=$ac_optarg ;;
1049 -disable-* |
--disable-*)
1050 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1053 as_fn_error
"invalid feature name: $ac_useropt"
1054 ac_useropt_orig
=$ac_useropt
1055 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_
$ac_useropt"
1060 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep
=', ';;
1063 eval enable_
$ac_useropt=no
;;
1065 -docdir |
--docdir |
--docdi |
--doc |
--do)
1067 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1068 docdir
=$ac_optarg ;;
1070 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1072 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1073 dvidir
=$ac_optarg ;;
1075 -enable-* |
--enable-*)
1076 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1079 as_fn_error
"invalid feature name: $ac_useropt"
1080 ac_useropt_orig
=$ac_useropt
1081 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_
$ac_useropt"
1086 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep
=', ';;
1089 eval enable_
$ac_useropt=\
$ac_optarg ;;
1091 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1092 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1093 |
--exec |
--exe |
--ex)
1094 ac_prev
=exec_prefix
;;
1095 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1096 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1097 |
--exec=* |
--exe=* |
--ex=*)
1098 exec_prefix
=$ac_optarg ;;
1100 -gas |
--gas |
--ga |
--g)
1101 # Obsolete; use --with-gas.
1104 -help |
--help |
--hel |
--he |
-h)
1105 ac_init_help
=long
;;
1106 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1107 ac_init_help
=recursive
;;
1108 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1109 ac_init_help
=short
;;
1111 -host |
--host |
--hos |
--ho)
1112 ac_prev
=host_alias
;;
1113 -host=* |
--host=* |
--hos=* |
--ho=*)
1114 host_alias
=$ac_optarg ;;
1116 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1118 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1120 htmldir
=$ac_optarg ;;
1122 -includedir |
--includedir |
--includedi |
--included |
--include \
1123 |
--includ |
--inclu |
--incl |
--inc)
1124 ac_prev
=includedir
;;
1125 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1126 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1127 includedir
=$ac_optarg ;;
1129 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1131 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1132 infodir
=$ac_optarg ;;
1134 -libdir |
--libdir |
--libdi |
--libd)
1136 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1137 libdir
=$ac_optarg ;;
1139 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1140 |
--libexe |
--libex |
--libe)
1141 ac_prev
=libexecdir
;;
1142 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1143 |
--libexe=* |
--libex=* |
--libe=*)
1144 libexecdir
=$ac_optarg ;;
1146 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1147 ac_prev
=localedir
;;
1148 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1149 localedir
=$ac_optarg ;;
1151 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1152 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1153 ac_prev
=localstatedir
;;
1154 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1155 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1156 localstatedir
=$ac_optarg ;;
1158 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1160 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1161 mandir
=$ac_optarg ;;
1163 -nfp |
--nfp |
--nf)
1164 # Obsolete; use --without-fp.
1167 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1168 |
--no-cr |
--no-c |
-n)
1171 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1172 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1175 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1176 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1177 |
--oldin |
--oldi |
--old |
--ol |
--o)
1178 ac_prev
=oldincludedir
;;
1179 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1180 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1181 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1182 oldincludedir
=$ac_optarg ;;
1184 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1186 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1187 prefix
=$ac_optarg ;;
1189 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1190 |
--program-pre |
--program-pr |
--program-p)
1191 ac_prev
=program_prefix
;;
1192 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1193 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1194 program_prefix
=$ac_optarg ;;
1196 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1197 |
--program-suf |
--program-su |
--program-s)
1198 ac_prev
=program_suffix
;;
1199 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1200 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1201 program_suffix
=$ac_optarg ;;
1203 -program-transform-name |
--program-transform-name \
1204 |
--program-transform-nam |
--program-transform-na \
1205 |
--program-transform-n |
--program-transform- \
1206 |
--program-transform |
--program-transfor \
1207 |
--program-transfo |
--program-transf \
1208 |
--program-trans |
--program-tran \
1209 |
--progr-tra |
--program-tr |
--program-t)
1210 ac_prev
=program_transform_name
;;
1211 -program-transform-name=* |
--program-transform-name=* \
1212 |
--program-transform-nam=* |
--program-transform-na=* \
1213 |
--program-transform-n=* |
--program-transform-=* \
1214 |
--program-transform=* |
--program-transfor=* \
1215 |
--program-transfo=* |
--program-transf=* \
1216 |
--program-trans=* |
--program-tran=* \
1217 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1218 program_transform_name
=$ac_optarg ;;
1220 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1222 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1223 pdfdir
=$ac_optarg ;;
1225 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1227 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1230 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1231 |
-silent |
--silent |
--silen |
--sile |
--sil)
1234 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1236 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1238 sbindir
=$ac_optarg ;;
1240 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1241 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1242 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1244 ac_prev
=sharedstatedir
;;
1245 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1246 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1247 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1249 sharedstatedir
=$ac_optarg ;;
1251 -site |
--site |
--sit)
1253 -site=* |
--site=* |
--sit=*)
1256 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1258 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1259 srcdir
=$ac_optarg ;;
1261 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1262 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1263 ac_prev
=sysconfdir
;;
1264 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1265 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1266 sysconfdir
=$ac_optarg ;;
1268 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1269 ac_prev
=target_alias
;;
1270 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1271 target_alias
=$ac_optarg ;;
1273 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1276 -version |
--version |
--versio |
--versi |
--vers |
-V)
1277 ac_init_version
=: ;;
1280 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1283 as_fn_error
"invalid package name: $ac_useropt"
1284 ac_useropt_orig
=$ac_useropt
1285 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1290 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep
=', ';;
1293 eval with_
$ac_useropt=\
$ac_optarg ;;
1295 -without-* |
--without-*)
1296 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1299 as_fn_error
"invalid package name: $ac_useropt"
1300 ac_useropt_orig
=$ac_useropt
1301 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1306 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep
=', ';;
1309 eval with_
$ac_useropt=no
;;
1312 # Obsolete; use --with-x.
1315 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1316 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1317 ac_prev
=x_includes
;;
1318 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1319 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1320 x_includes
=$ac_optarg ;;
1322 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1323 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1324 ac_prev
=x_libraries
;;
1325 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1326 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1327 x_libraries
=$ac_optarg ;;
1329 -*) as_fn_error
"unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1334 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1338 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1340 eval $ac_envvar=\
$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 if test -n "$ac_prev"; then
1355 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error
"missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1362 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 # Check all directory arguments for consistency.
1368 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val
=\$
$ac_var
1374 # Remove trailing slashes.
1377 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\
$ac_val;;
1380 # Be sure to have absolute directory names.
1382 [\\/$
]* | ?
:[\\/]* ) continue;;
1383 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1385 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1393 target
=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x
; then
1397 if test "x$build_alias" = x
; then
1398 cross_compiling
=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1407 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1409 test "$silent" = yes && exec 6>/dev
/null
1412 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di
=`ls -di .` &&
1414 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error
"working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error
"pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted
=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir
=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1452 ac_srcdir_defaulted
=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1456 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1470 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 for ac_var
in $ac_precious_vars; do
1473 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1475 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1549 --build=BUILD configure
for building on BUILD
[guessed
]
1550 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1551 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1555 if test -n "$ac_init_help"; then
1560 --disable-option-checking ignore unrecognized
--enable/--with options
1561 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1562 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1563 --enable-generated-files-in-srcdir
1564 put copies of generated files
in source dir intended
1565 for creating
source tarballs
for users without
1566 texinfo bison or flex
1567 --disable-largefile omit support
for large files
1568 --enable-werror-always enable -Werror despite compiler version
1569 --enable-checking[=LIST
]
1570 enable expensive run-time checks. With LIST
, enable
1571 only specific categories of checks. Categories are
:
1572 yes,no
,all
,none
,release. Flags are
:
1573 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1574 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1575 --enable-coverage[=LEVEL
]
1576 enable compiler
's code coverage collection. Use to
1577 measure compiler performance and locate unused parts
1578 of the compiler. With LEVEL, specify optimization.
1579 Values are opt, noopt, default is noopt
1580 --enable-gather-detailed-mem-stats
1581 enable detailed memory allocation stats gathering
1582 --enable-build-with-cxx build with C++ compiler instead of C compiler
1583 --enable-multilib enable library support for multiple ABIs
1584 --enable-__cxa_atexit enable __cxa_atexit for C++
1585 --enable-decimal-float={no,yes,bid,dpd}
1586 enable decimal float extension to C. Selecting 'bid
'
1587 or 'dpd
' choses which decimal floating point format
1589 --enable-fixed-point enable fixed-point arithmetic extension to C
1590 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1592 --enable-tls enable or disable generation of tls code overriding
1593 the assembler check for tls support
1594 --enable-objc-gc enable the use of Boehm's garbage collector with the
1595 GNU Objective-C runtime
1596 --disable-shared don
't provide a shared libgcc
1597 --enable-languages=LIST specify which front-ends to build
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-initfini-array use .init_array/.fini_array sections
1600 --enable-sjlj-exceptions
1601 arrange to use setjmp/longjmp exception handling
1602 --enable-secureplt enable -msecure-plt by default for PowerPC
1603 --enable-leading-mingw64-underscores
1604 enable leading underscores on 64 bit mingw targets
1605 --enable-cld enable -mcld by default for 32bit x86
1606 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1608 --disable-win32-registry
1609 disable lookup of installation paths in the Registry
1611 --enable-win32-registry enable registry lookup (default)
1612 --enable-win32-registry=KEY
1613 use KEY instead of GCC version as the last portion
1615 --enable-shared[=PKGS] build shared libraries [default=yes]
1616 --enable-static[=PKGS] build static libraries [default=yes]
1617 --enable-fast-install[=PKGS]
1618 optimize for fast installation [default=yes]
1619 --disable-libtool-lock avoid locking (might break parallel builds)
1620 --enable-gnu-indirect-function
1621 enable the use of the @gnu_indirect_function to
1623 --enable-comdat enable COMDAT group support
1624 --enable-gnu-unique-object
1625 enable the use of the @gnu_unique_object ELF
1626 extension on glibc systems
1627 --enable-linker-build-id
1628 compiler will always pass --build-id to linker
1629 --enable-maintainer-mode
1630 enable make rules and dependencies not useful (and
1631 sometimes confusing) to the casual installer
1632 --enable-version-specific-runtime-libs
1633 specify that runtime libraries should be installed
1634 in a compiler-specific directory
1635 --enable-canonical-prefixes
1636 enable or disable prefix canonicalization
1637 --enable-plugin enable plugin support
1638 --disable-libquadmath-support
1639 disable libquadmath support for Fortran
1642 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1643 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1644 --with-build-libsubdir=DIR Directory where to find libraries for build system
1645 --with-local-prefix=DIR specifies directory to put local include
1646 --with-gxx-include-dir=DIR
1647 specifies directory to put g++ header files
1648 --with-cpp-install-dir=DIR
1649 install the user visible C preprocessor in DIR
1650 (relative to PREFIX) as well as PREFIX/bin
1651 --with-gnu-ld arrange to work with GNU ld
1652 --with-ld arrange to use the specified ld (full pathname)
1653 --with-demangler-in-ld try to use demangler in GNU ld
1654 --with-gnu-as arrange to work with GNU as
1655 --with-as arrange to use the specified as (full pathname)
1656 --with-stabs arrange to use stabs instead of host debug format
1657 --with-dwarf2 force the default debug format to be DWARF 2
1658 --with-native-system-header-dir=dir
1659 use dir as the directory to look for standard
1660 system header files in. Defaults to /usr/include.
1661 --with-build-sysroot=sysroot
1662 use sysroot as the system root during the build
1663 --with-runtime-root-prefix=prefix
1664 prepend prefix to paths used by the compiler to
1665 name the dynamic linker and other files used at
1666 runtime. Defaults to empty (no prefix).
1667 --with-build-sysroot=SYSROOT
1668 use sysroot as the system root during the build
1669 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1670 --with-specs=SPECS add SPECS to driver command-line processing
1671 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1672 --with-bugurl=URL Direct users to URL to report a bug
1673 --with-multilib-list select multilibs (SH only)
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1677 --with-system-libunwind use installed libunwind
1678 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1680 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1681 --with-plugin-ld=[ARG
] specify the plugin linker
1682 --with-long-double-128 use
128-bit long double by default
1683 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1685 --with-system-zlib use installed libz
1686 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1687 --with-linker-hash-style={sysv
,gnu
,both
}
1688 specify the linker
hash style
1690 Some influential environment variables
:
1691 CC C compiler
command
1692 CFLAGS C compiler flags
1693 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1694 nonstandard directory
<lib dir
>
1695 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1696 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1697 you have headers
in a nonstandard directory
<include dir
>
1698 CXX C
++ compiler
command
1699 CXXFLAGS C
++ compiler flags
1701 CXXCPP C
++ preprocessor
1702 GMPLIBS How to link GMP
1703 GMPINC How to
find GMP include files
1704 PPLLIBS How to link PPL
1705 PPLINC How to
find PPL include files
1706 CLOOGLIBS How to link CLOOG
1707 CLOOGINC How to
find CLOOG include files
1709 Use these variables to override the choices made by
`configure' or to help
1710 it to find libraries and programs with nonstandard names/locations.
1712 Report bugs to the package provider.
1717 if test "$ac_init_help" = "recursive"; then
1718 # If there are subdirs, report their specific --help.
1719 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1720 test -d "$ac_dir" ||
1721 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1729 # A ".." for each directory in $ac_dir_suffix.
1730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1731 case $ac_top_builddir_sub in
1732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1736 ac_abs_top_builddir=$ac_pwd
1737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1738 # for backward compatibility:
1739 ac_top_builddir=$ac_top_build_prefix
1742 .) # We are building in place.
1744 ac_top_srcdir=$ac_top_builddir_sub
1745 ac_abs_top_srcdir=$ac_pwd ;;
1746 [\\/]* | ?:[\\/]* ) # Absolute name.
1747 ac_srcdir=$srcdir$ac_dir_suffix;
1748 ac_top_srcdir=$srcdir
1749 ac_abs_top_srcdir=$srcdir ;;
1751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1752 ac_top_srcdir=$ac_top_build_prefix$srcdir
1753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1757 cd "$ac_dir" || { ac_status=$?; continue; }
1758 # Check for guested configure.
1759 if test -f "$ac_srcdir/configure.gnu"; then
1761 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1762 elif test -f "$ac_srcdir/configure"; then
1764 $SHELL "$ac_srcdir/configure" --help=recursive
1766 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1768 cd "$ac_pwd" || { ac_status=$?; break; }
1772 test -n "$ac_init_help" && exit $ac_status
1773 if $ac_init_version; then
1776 generated by GNU Autoconf 2.64
1778 Copyright (C) 2009 Free Software Foundation, Inc.
1779 This configure script is free software; the Free Software Foundation
1780 gives unlimited permission to copy, distribute and modify it.
1785 ## ------------------------ ##
1786 ## Autoconf initialization. ##
1787 ## ------------------------ ##
1789 # ac_fn_c_try_compile LINENO
1790 # --------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_compile ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext
1796 if { { ac_try="$ac_compile"
1798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1799 *) ac_try_echo
=$ac_try;;
1801 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1805 if test -s conftest.err
; then
1806 grep -v '^ *+' conftest.err
>conftest.er1
1807 cat conftest.er1
>&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.
$ac_objext; then :
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.
$ac_ext >&5
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1825 } # ac_fn_c_try_compile
1827 # ac_fn_cxx_try_compile LINENO
1828 # ----------------------------
1829 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_cxx_try_compile
()
1832 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1833 rm -f conftest.
$ac_objext
1834 if { { ac_try
="$ac_compile"
1836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_compile") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_cxx_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest.$ac_objext; then :
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 } # ac_fn_cxx_try_compile
1865 # ac_fn_c_try_cpp LINENO
1866 # ----------------------
1867 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_cpp conftest.$ac_ext"
1873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1874 *) ac_try_echo
=$ac_try;;
1876 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1880 if test -s conftest.err
; then
1881 grep -v '^ *+' conftest.err
>conftest.er1
1882 cat conftest.er1
>&5
1883 mv -f conftest.er1 conftest.err
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } >/dev
/null
&& {
1887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1888 test ! -s conftest.err
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.
$ac_ext >&5
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1902 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1905 # the include files in INCLUDES and setting the cache variable VAR
1907 ac_fn_c_check_header_mongrel
()
1909 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1910 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1920 # Is the header compilable?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1922 $as_echo_n "checking $2 usability... " >&6; }
1923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1928 if ac_fn_c_try_compile
"$LINENO"; then :
1929 ac_header_compiler
=yes
1931 ac_header_compiler
=no
1933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1935 $as_echo "$ac_header_compiler" >&6; }
1937 # Is the header present?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1939 $as_echo_n "checking $2 presence... " >&6; }
1940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1944 if ac_fn_c_try_cpp
"$LINENO"; then :
1945 ac_header_preproc
=yes
1947 ac_header_preproc
=no
1949 rm -f conftest.err conftest.
$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1951 $as_echo "$ac_header_preproc" >&6; }
1953 # So? What about this header?
1954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1957 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1963 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1965 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1967 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1969 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1979 eval "$3=\$ac_header_compiler"
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1987 } # ac_fn_c_check_header_mongrel
1989 # ac_fn_c_try_run LINENO
1990 # ----------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1992 # that executables *can* be run.
1995 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1996 if { { ac_try
="$ac_link"
1998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>&5
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2007 { { case "(($ac_try" in
2008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2009 *) ac_try_echo
=$ac_try;;
2011 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_try") 2>&5
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; }; }; then :
2019 $as_echo "$as_me: program exited with status $ac_status" >&5
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.
$ac_ext >&5
2023 ac_retval
=$ac_status
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2031 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2032 # -------------------------------------------------------
2033 # Tests whether HEADER exists and can be compiled using the include files in
2034 # INCLUDES, setting the cache variable VAR accordingly.
2035 ac_fn_c_check_header_compile
()
2037 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2041 $as_echo_n "(cached) " >&6
2043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2048 if ac_fn_c_try_compile
"$LINENO"; then :
2053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2060 } # ac_fn_c_check_header_compile
2062 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2063 # --------------------------------------------
2064 # Tries to find the compile-time value of EXPR in a program that includes
2065 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2067 ac_fn_c_compute_int
()
2069 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2070 if test "$cross_compiling" = yes; then
2071 # Depending upon the size, compute the lo and hi bounds.
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 static int test_array [1 - 2 * !(($2) >= 0)];
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101 if ac_fn_c_try_compile
"$LINENO"; then :
2102 ac_hi
=$ac_mid; break
2104 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2105 if test $ac_lo -le $ac_mid; then
2109 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2120 static int test_array [1 - 2 * !(($2) < 0)];
2127 if ac_fn_c_try_compile
"$LINENO"; then :
2130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2136 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2143 if ac_fn_c_try_compile
"$LINENO"; then :
2144 ac_lo
=$ac_mid; break
2146 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2147 if test $ac_mid -le $ac_hi; then
2151 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2161 # Binary search between lo and hi bounds.
2162 while test "x$ac_lo" != "x$ac_hi"; do
2163 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2170 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2177 if ac_fn_c_try_compile
"$LINENO"; then :
2180 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2185 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2192 static long int longval () { return $2; }
2193 static unsigned long int ulongval () { return $2; }
2200 FILE *f = fopen ("conftest.val", "w");
2205 long int i = longval ();
2208 fprintf (f, "%ld", i);
2212 unsigned long int i = ulongval ();
2215 fprintf (f, "%lu", i);
2217 /* Do not output a trailing newline, as this causes \r\n confusion
2218 on some platforms. */
2219 return ferror (f) || fclose (f) != 0;
2225 if ac_fn_c_try_run
"$LINENO"; then :
2226 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2230 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2231 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2238 } # ac_fn_c_compute_int
2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241 # -------------------------------------------
2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
2243 # variable VAR accordingly.
2244 ac_fn_c_check_type
()
2246 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2250 $as_echo_n "(cached) " >&6
2253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2265 if ac_fn_c_try_compile
"$LINENO"; then :
2266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2278 if ac_fn_c_try_compile
"$LINENO"; then :
2283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2292 } # ac_fn_c_check_type
2294 # ac_fn_c_find_intX_t LINENO BITS VAR
2295 # -----------------------------------
2296 # Finds a signed integer type with width BITS, setting cache variable VAR
2298 ac_fn_c_find_intX_t
()
2300 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2302 $as_echo_n "checking for int$2_t... " >&6; }
2303 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2304 $as_echo_n "(cached) " >&6
2307 for ac_type
in int
$2_t 'int' 'long int' \
2308 'long long int' 'short int' 'signed char'; do
2309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $ac_includes_default
2315 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2322 if ac_fn_c_try_compile
"$LINENO"; then :
2323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2325 $ac_includes_default
2329 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2330 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2337 if ac_fn_c_try_compile
"$LINENO"; then :
2344 eval "$3=\$ac_type" ;;
2347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2351 if test "x$as_val" = x
""no
; then :
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2363 } # ac_fn_c_find_intX_t
2365 # ac_fn_c_try_link LINENO
2366 # -----------------------
2367 # Try to link conftest.$ac_ext, and return whether this succeeded.
2370 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2371 rm -f conftest.
$ac_objext conftest
$ac_exeext
2372 if { { ac_try
="$ac_link"
2374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 $as_echo "$ac_try_echo"; } >&5
2379 (eval "$ac_link") 2>conftest.err
2381 if test -s conftest.err; then
2382 grep -v '^ *+' conftest.err >conftest.er1
2383 cat conftest.er1 >&5
2384 mv -f conftest.er1 conftest.err
2386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387 test $ac_status = 0; } && {
2388 test -z "$ac_c_werror_flag" ||
2389 test ! -s conftest.err
2390 } && test -s conftest$ac_exeext && {
2391 test "$cross_compiling" = yes ||
2392 $as_test_x conftest$ac_exeext
2396 $as_echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2401 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2402 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2403 # interfere with the next link command; also delete a directory that is
2404 # left behind by Apple's compiler. We do this before executing the actions.
2405 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2406 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2409 } # ac_fn_c_try_link
2411 # ac_fn_c_find_uintX_t LINENO BITS VAR
2412 # ------------------------------------
2413 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2415 ac_fn_c_find_uintX_t ()
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2419 $as_echo_n "checking for uint$2_t... " >&6; }
2420 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2421 $as_echo_n "(cached) " >&6
2424 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2425 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2428 $ac_includes_default
2432 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2439 if ac_fn_c_try_compile "$LINENO"; then :
2444 eval "$3=\$ac_type" ;;
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 if test "x$as_val" = x""no; then :
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461 } # ac_fn_c_find_uintX_t
2463 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2464 # ----------------------------------------------
2465 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2466 ac_fn_c_check_header_preproc ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2470 $as_echo_n "checking for $2... " >&6; }
2471 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2472 $as_echo_n "(cached) " >&6
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2478 if ac_fn_c_try_cpp "$LINENO"; then :
2483 rm -f conftest.err conftest.$ac_ext
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2488 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2490 } # ac_fn_c_check_header_preproc
2492 # ac_fn_cxx_try_cpp LINENO
2493 # ------------------------
2494 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2495 ac_fn_cxx_try_cpp ()
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 if { { ac_try="$ac_cpp conftest.$ac_ext"
2500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2501 *) ac_try_echo
=$ac_try;;
2503 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504 $as_echo "$ac_try_echo"; } >&5
2505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2507 if test -s conftest.err
; then
2508 grep -v '^ *+' conftest.err
>conftest.er1
2509 cat conftest.er1
>&5
2510 mv -f conftest.er1 conftest.err
2512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2513 test $ac_status = 0; } >/dev
/null
&& {
2514 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2515 test ! -s conftest.err
2519 $as_echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.
$ac_ext >&5
2524 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2527 } # ac_fn_cxx_try_cpp
2529 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2530 # ------------------------------------------------
2531 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2532 ac_fn_cxx_check_header_preproc
()
2534 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2538 $as_echo_n "(cached) " >&6
2540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2544 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2549 rm -f conftest.err conftest.
$ac_ext
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2553 $as_echo "$ac_res" >&6; }
2554 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2556 } # ac_fn_cxx_check_header_preproc
2558 # ac_fn_c_check_func LINENO FUNC VAR
2559 # ----------------------------------
2560 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2561 ac_fn_c_check_func
()
2563 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2565 $as_echo_n "checking for $2... " >&6; }
2566 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2567 $as_echo_n "(cached) " >&6
2569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2571 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2573 #define $2 innocuous_$2
2575 /* System header to define __stub macros and hopefully few prototypes,
2576 which can conflict with char $2 (); below.
2577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2578 <limits.h> exists even on freestanding compilers. */
2581 # include <limits.h>
2583 # include <assert.h>
2588 /* Override any GCC internal prototype to avoid an error.
2589 Use char because int might match the return type of a GCC
2590 builtin and then its argument prototype would still apply. */
2595 /* The GNU C library defines this for functions which it implements
2596 to always fail with ENOSYS. Some functions are actually named
2597 something starting with __ and the normal name is an alias. */
2598 #if defined __stub_$2 || defined __stub___$2
2610 if ac_fn_c_try_link
"$LINENO"; then :
2615 rm -f core conftest.err conftest.
$ac_objext \
2616 conftest
$ac_exeext conftest.
$ac_ext
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2623 } # ac_fn_c_check_func
2625 # ac_fn_cxx_try_link LINENO
2626 # -------------------------
2627 # Try to link conftest.$ac_ext, and return whether this succeeded.
2628 ac_fn_cxx_try_link
()
2630 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2631 rm -f conftest.
$ac_objext conftest
$ac_exeext
2632 if { { ac_try
="$ac_link"
2634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638 $as_echo "$ac_try_echo"; } >&5
2639 (eval "$ac_link") 2>conftest.err
2641 if test -s conftest.err; then
2642 grep -v '^ *+' conftest.err >conftest.er1
2643 cat conftest.er1 >&5
2644 mv -f conftest.er1 conftest.err
2646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2647 test $ac_status = 0; } && {
2648 test -z "$ac_cxx_werror_flag" ||
2649 test ! -s conftest.err
2650 } && test -s conftest$ac_exeext && {
2651 test "$cross_compiling" = yes ||
2652 $as_test_x conftest$ac_exeext
2656 $as_echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2663 # interfere with the next link command; also delete a directory that is
2664 # left behind by Apple's compiler. We do this before executing the actions.
2665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2669 } # ac_fn_cxx_try_link
2670 cat >config.log <<_ACEOF
2671 This file contains any messages produced by compilers while
2672 running configure, to aid debugging if configure makes a mistake.
2674 It was created by $as_me, which was
2675 generated by GNU Autoconf 2.64. Invocation command line was
2687 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2688 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2689 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2690 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2691 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2693 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2694 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2696 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2697 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2698 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2699 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2700 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2701 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2702 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 $as_echo "PATH: $as_dir"
2727 # Keep a trace of the command line.
2728 # Strip out --no-create and --no-recursion so they do not pile up.
2729 # Strip out --silent because we don't want to record it for future runs.
2730 # Also quote any args containing shell meta-characters.
2731 # Make two passes to allow for proper duplicate-argument suppression.
2735 ac_must_keep_next=false
2741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2743 | -silent | --silent | --silen | --sile | --sil)
2746 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2749 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2751 as_fn_append ac_configure_args1 " '$ac_arg'"
2752 if test $ac_must_keep_next = true; then
2753 ac_must_keep_next=false # Got value, back to normal.
2756 *=* | --config-cache | -C | -disable-* | --disable-* \
2757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2759 | -with-* | --with-* | -without-* | --without-* | --x)
2760 case "$ac_configure_args0 " in
2761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2764 -* ) ac_must_keep_next=true ;;
2767 as_fn_append ac_configure_args " '$ac_arg'"
2772 { ac_configure_args0=; unset ac_configure_args0;}
2773 { ac_configure_args1=; unset ac_configure_args1;}
2775 # When interrupted or exit'd, cleanup temporary files, and complete
2776 # config.log. We remove comments because anyway the quotes in there
2777 # would cause problems or look ugly.
2778 # WARNING: Use '\'' to represent an apostrophe within the trap.
2779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2780 trap 'exit_status=$?
2781 # Save into config.log some information that might help in debugging.
2786 ## ---------------- ##
2787 ## Cache variables. ##
2788 ## ---------------- ##
2791 # The following way of writing the cache mishandles newlines in values,
2793 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2794 eval ac_val=\$$ac_var
2798 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2802 _ | IFS | as_nl) ;; #(
2803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2804 *) { eval $ac_var=; unset $ac_var;} ;;
2809 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2810 *${as_nl}ac_space=\ *)
2812 "s/'\''/'\''\\\\'\'''\''/g;
2813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2824 ## ----------------- ##
2825 ## Output variables. ##
2826 ## ----------------- ##
2829 for ac_var in $ac_subst_vars
2831 eval ac_val=\$$ac_var
2833 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 $as_echo "$ac_var='\''$ac_val'\''"
2839 if test -n "$ac_subst_files"; then
2841 ## ------------------- ##
2842 ## File substitutions. ##
2843 ## ------------------- ##
2846 for ac_var in $ac_subst_files
2848 eval ac_val=\$$ac_var
2850 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2852 $as_echo "$ac_var='\''$ac_val'\''"
2857 if test -s confdefs.h; then
2867 test "$ac_signal" != 0 &&
2868 $as_echo "$as_me: caught signal $ac_signal"
2869 $as_echo "$as_me: exit $exit_status"
2871 rm -f core *.core core.conftest.* &&
2872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2875 for ac_signal in 1 2 13 15; do
2876 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2881 rm -f -r conftest* confdefs.h
2883 $as_echo "/* confdefs.h */" > confdefs.h
2885 # Predefined preprocessor variables.
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_NAME "$PACKAGE_NAME"
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2899 cat >>confdefs.h <<_ACEOF
2900 #define PACKAGE_STRING "$PACKAGE_STRING"
2903 cat >>confdefs.h <<_ACEOF
2904 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2907 cat >>confdefs.h <<_ACEOF
2908 #define PACKAGE_URL "$PACKAGE_URL"
2912 # Let the site file select an alternate cache file if it wants to.
2913 # Prefer an explicitly selected file to automatically selected ones.
2916 if test -n "$CONFIG_SITE"; then
2917 ac_site_file1=$CONFIG_SITE
2918 elif test "x$prefix" != xNONE; then
2919 ac_site_file1=$prefix/share/config.site
2920 ac_site_file2=$prefix/etc/config.site
2922 ac_site_file1=$ac_default_prefix/share/config.site
2923 ac_site_file2=$ac_default_prefix/etc/config.site
2925 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2927 test "x$ac_site_file" = xNONE && continue
2928 if test -r "$ac_site_file"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2930 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2931 sed 's/^/| /' "$ac_site_file" >&5
2936 if test -r "$cache_file"; then
2937 # Some versions of bash will fail to source /dev/null (special
2938 # files actually), so we avoid doing that.
2939 if test -f "$cache_file"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2941 $as_echo "$as_me: loading cache $cache_file" >&6;}
2943 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2944 *) . "./$cache_file";;
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2949 $as_echo "$as_me: creating cache $cache_file" >&6;}
2953 # Check that the precious variables saved in the cache have kept the same
2955 ac_cache_corrupted=false
2956 for ac_var in $ac_precious_vars; do
2957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2958 eval ac_new_set=\$ac_env_${ac_var}_set
2959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2960 eval ac_new_val=\$ac_env_${ac_var}_value
2961 case $ac_old_set,$ac_new_set in
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2964 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2965 ac_cache_corrupted=: ;;
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2968 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2969 ac_cache_corrupted=: ;;
2972 if test "x$ac_old_val" != "x$ac_new_val"; then
2973 # differences in whitespace do not lead to failure.
2974 ac_old_val_w=`echo x
$ac_old_val`
2975 ac_new_val_w=`echo x
$ac_new_val`
2976 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2978 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2979 ac_cache_corrupted=:
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2982 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2983 eval $ac_var=\$ac_old_val
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2986 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2988 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2991 # Pass precious variables to config.status.
2992 if test "$ac_new_set" = set; then
2994 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2995 *) ac_arg=$ac_var=$ac_new_val ;;
2997 case " $ac_configure_args " in
2998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2999 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3003 if $ac_cache_corrupted; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3007 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3008 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3010 ## -------------------- ##
3011 ## Main body of script. ##
3012 ## -------------------- ##
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3028 gcc_version=`cat $srcdir/BASE-VER
`
3030 # Determine the host, build, and target systems
3032 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3033 for ac_t in install-sh install.sh shtool; do
3034 if test -f "$ac_dir/$ac_t"; then
3036 ac_install_sh="$ac_aux_dir/$ac_t -c"
3041 if test -z "$ac_aux_dir"; then
3042 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3045 # These three variables are undocumented and unsupported,
3046 # and are intended to be withdrawn in a future Autoconf release.
3047 # They can cause serious problems if a builder's source tree is in a directory
3048 # whose full name contains unusual characters.
3049 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3050 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3051 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3054 # Make sure we can run config.sub.
3055 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3056 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3059 $as_echo_n "checking build system type... " >&6; }
3060 if test "${ac_cv_build+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3063 ac_build_alias=$build_alias
3064 test "x$ac_build_alias" = x &&
3065 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3066 test "x$ac_build_alias" = x &&
3067 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3068 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3069 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3073 $as_echo "$ac_cv_build" >&6; }
3074 case $ac_cv_build in
3076 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3079 ac_save_IFS=$IFS; IFS='-'
3085 # Remember, the first character of IFS is used to create $*,
3086 # except with old shells:
3089 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3093 $as_echo_n "checking host system type... " >&6; }
3094 if test "${ac_cv_host+set}" = set; then :
3095 $as_echo_n "(cached) " >&6
3097 if test "x$host_alias" = x; then
3098 ac_cv_host=$ac_cv_build
3100 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3101 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3106 $as_echo "$ac_cv_host" >&6; }
3109 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3112 ac_save_IFS=$IFS; IFS='-'
3118 # Remember, the first character of IFS is used to create $*,
3119 # except with old shells:
3122 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3126 $as_echo_n "checking target system type... " >&6; }
3127 if test "${ac_cv_target+set}" = set; then :
3128 $as_echo_n "(cached) " >&6
3130 if test "x$target_alias" = x; then
3131 ac_cv_target=$ac_cv_host
3133 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3134 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3139 $as_echo "$ac_cv_target" >&6; }
3140 case $ac_cv_target in
3142 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3144 target=$ac_cv_target
3145 ac_save_IFS=$IFS; IFS='-'
3151 # Remember, the first character of IFS is used to create $*,
3152 # except with old shells:
3155 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3158 # The aliases save the names the user supplied, while $host etc.
3159 # will get canonicalized.
3160 test -n "$target_alias" &&
3161 test "$program_prefix$program_suffix$program_transform_name" = \
3163 program_prefix=${target_alias}-
3165 # Determine the noncanonical target name, for directory use.
3166 case ${build_alias} in
3167 "") build_noncanonical=${build} ;;
3168 *) build_noncanonical=${build_alias} ;;
3171 case ${host_alias} in
3172 "") host_noncanonical=${build_noncanonical} ;;
3173 *) host_noncanonical=${host_alias} ;;
3176 case ${target_alias} in
3177 "") target_noncanonical=${host_noncanonical} ;;
3178 *) target_noncanonical=${target_alias} ;;
3184 # Determine the target- and build-specific subdirectories
3186 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3187 # have matching libraries, they should use host libraries: Makefile.tpl
3188 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3189 # However, they still use the build modules, because the corresponding
3190 # host modules (e.g. bison) are only built for the host when bootstrap
3192 # - build_subdir is where we find build modules, and never changes.
3193 # - build_libsubdir is where we find build libraries, and can be overridden.
3195 # Prefix 'build-' so this never conflicts with target_subdir.
3196 build_subdir="build-${build_noncanonical}"
3198 # Check whether --with-build-libsubdir was given.
3199 if test "${with_build_libsubdir+set}" = set; then :
3200 withval=$with_build_libsubdir; build_libsubdir="$withval"
3202 build_libsubdir="$build_subdir"
3205 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3206 if ( test $srcdir = . && test -d gcc ) \
3207 || test -d $srcdir/../host-${host_noncanonical}; then
3208 host_subdir="host-${host_noncanonical}"
3213 target_subdir=${target_noncanonical}
3216 # Set program_transform_name
3217 test "$program_prefix" != NONE &&
3218 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3219 # Use a double $ so make ignores it.
3220 test "$program_suffix" != NONE &&
3221 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3222 # Double any \ or $.
3223 # By default was `s
,x
,x
', remove it if useless.
3224 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3225 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3228 # Check for bogus environment variables.
3229 # Test if LIBRARY_PATH contains the notation for the current directory
3230 # since this would lead to problems installing/building glibc.
3231 # LIBRARY_PATH contains the current directory if one of the following
3233 # - one of the terminals (":" and ";") is the first or last sign
3234 # - two terminals occur directly after each other
3235 # - the path contains an element with a dot in it
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3237 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3238 case ${LIBRARY_PATH} in
3239 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3240 library_path_setting="contains current directory"
3243 library_path_setting="ok"
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3247 $as_echo "$library_path_setting" >&6; }
3248 if test "$library_path_setting" != "ok"; then
3250 *** LIBRARY_PATH shouldn't contain the current directory when
3251 *** building gcc. Please change the environment variable
3252 *** and run configure again.
" "$LINENO" 5
3255 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3256 # since this would lead to problems installing/building glibc.
3257 # GCC_EXEC_PREFIX contains the current directory if one of the following
3259 # - one of the terminals (":" and ";") is the first or last sign
3260 # - two terminals occur directly after each other
3261 # - the path contains an element with a dot in it
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3263 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3264 case ${GCC_EXEC_PREFIX} in
3265 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3266 gcc_exec_prefix_setting="contains current directory
"
3269 gcc_exec_prefix_setting="ok
"
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3273 $as_echo "$gcc_exec_prefix_setting" >&6; }
3274 if test "$gcc_exec_prefix_setting" != "ok
"; then
3276 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3277 *** building gcc. Please change the environment variable
3278 *** and run configure again." "$LINENO" 5
3285 # Specify the local prefix
3288 # Check whether --with-local-prefix was given.
3289 if test "${with_local_prefix+set}" = set; then :
3290 withval=$with_local_prefix; case "${withval}" in
3291 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3293 *) local_prefix=$with_local_prefix ;;
3298 # Default local prefix if it is empty
3299 if test x$local_prefix = x; then
3300 local_prefix=/usr/local
3303 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3304 # passed in by the toplevel make and thus we'd get different behavior
3305 # depending on where we built the sources.
3306 gcc_gxx_include_dir
=
3307 # Specify the g++ header file directory
3309 # Check whether --with-gxx-include-dir was given.
3310 if test "${with_gxx_include_dir+set}" = set; then :
3311 withval
=$with_gxx_include_dir; case "${withval}" in
3312 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3314 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3319 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3320 if test x
${gcc_gxx_include_dir} = x
; then
3321 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3322 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3324 libstdcxx_incdir
='include/c++/$(version)'
3325 if test x
$host != x
$target; then
3326 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3328 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3333 # Check whether --with-cpp_install_dir was given.
3334 if test "${with_cpp_install_dir+set}" = set; then :
3335 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3336 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3337 elif test x
$withval != xno
; then
3338 cpp_install_dir
=$withval
3343 # We would like to our source tree to be readonly. However when releases or
3344 # pre-releases are generated, the flex/bison generated files as well as the
3345 # various formats of manuals need to be included along with the rest of the
3346 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3350 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3351 # Check whether --enable-generated-files-in-srcdir was given.
3352 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3353 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3355 generated_files_in_srcdir
=no
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3360 $as_echo "$generated_files_in_srcdir" >&6; }
3362 if test "$generated_files_in_srcdir" = "yes"; then
3369 # -------------------
3370 # Find default linker
3371 # -------------------
3375 # Check whether --with-gnu-ld was given.
3376 if test "${with_gnu_ld+set}" = set; then :
3377 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3383 # With pre-defined ld
3385 # Check whether --with-ld was given.
3386 if test "${with_ld+set}" = set; then :
3387 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3390 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3391 if test ! -x "$DEFAULT_LINKER"; then
3392 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3393 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3397 cat >>confdefs.h
<<_ACEOF
3398 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3403 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3405 cat >>confdefs.h
<<_ACEOF
3406 #define HAVE_GNU_LD $gnu_ld
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3411 $as_echo_n "checking whether a default linker was specified... " >&6; }
3412 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3413 if test x
"$gnu_ld_flag" = x
"no"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3415 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3425 # With demangler in GNU ld
3427 # Check whether --with-demangler-in-ld was given.
3428 if test "${with_demangler_in_ld+set}" = set; then :
3429 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3435 # ----------------------
3436 # Find default assembler
3437 # ----------------------
3441 # Check whether --with-gnu-as was given.
3442 if test "${with_gnu_as+set}" = set; then :
3443 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3450 # Check whether --with-as was given.
3451 if test "${with_as+set}" = set; then :
3452 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3455 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3456 if test ! -x "$DEFAULT_ASSEMBLER"; then
3457 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3458 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3462 cat >>confdefs.h
<<_ACEOF
3463 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3468 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3470 cat >>confdefs.h
<<_ACEOF
3471 #define HAVE_GNU_AS $gnu_as
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3476 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3477 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3478 if test x
"$gas_flag" = x
"no"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3480 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3483 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3494 # If a non-executable a.out is present (e.g. created by GNU as above even if
3495 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3496 # file, even when creating an executable, so an execution test fails.
3497 # Remove possible default executable files to avoid this.
3499 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3500 # Autoconf includes it.
3501 rm -f a.out a.exe b.out
3503 # Find the native compiler
3505 ac_cpp
='$CPP $CPPFLAGS'
3506 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3509 if test -n "$ac_tool_prefix"; then
3510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3511 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if test "${ac_cv_prog_CC+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3517 if test -n "$CC"; then
3518 ac_cv_prog_CC
="$CC" # Let the user override the test.
3520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir
=.
3525 for ac_exec_ext
in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 if test -n "$CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540 $as_echo "$CC" >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3548 if test -z "$ac_cv_prog_CC"; then
3550 # Extract the first word of "gcc", so it can be a program name with args.
3551 set dummy gcc
; ac_word
=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3557 if test -n "$ac_ct_CC"; then
3558 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir
=.
3565 for ac_exec_ext
in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_ac_ct_CC
="gcc"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3578 if test -n "$ac_ct_CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3580 $as_echo "$ac_ct_CC" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3586 if test "x$ac_ct_CC" = x
; then
3589 case $cross_compiling:$ac_tool_warned in
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3593 ac_tool_warned
=yes ;;
3601 if test -z "$CC"; then
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3604 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if test "${ac_cv_prog_CC+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC
="$CC" # Let the user override the test.
3613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir
=.
3618 for ac_exec_ext
in '' $ac_executable_extensions; do
3619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3620 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 if test -n "$CC"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 $as_echo "$CC" >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3642 if test -z "$CC"; then
3643 # Extract the first word of "cc", so it can be a program name with args.
3644 set dummy cc
; ac_word
=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if test "${ac_cv_prog_CC+set}" = set; then :
3648 $as_echo_n "(cached) " >&6
3650 if test -n "$CC"; then
3651 ac_cv_prog_CC
="$CC" # Let the user override the test.
3654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir
=.
3659 for ac_exec_ext
in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3662 ac_prog_rejected
=yes
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 if test $ac_prog_rejected = yes; then
3674 # We found a bogon in the path, so make sure we never use it.
3675 set dummy
$ac_cv_prog_CC
3677 if test $# != 0; then
3678 # We chose a different compiler from the bogus one.
3679 # However, it has the same basename, so the bogon will be chosen
3680 # first if we set CC to just the basename; use the full file name.
3682 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3688 if test -n "$CC"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690 $as_echo "$CC" >&6; }
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3698 if test -z "$CC"; then
3699 if test -n "$ac_tool_prefix"; then
3700 for ac_prog
in cl.exe
3702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3703 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 $as_echo_n "checking for $ac_word... " >&6; }
3706 if test "${ac_cv_prog_CC+set}" = set; then :
3707 $as_echo_n "(cached) " >&6
3709 if test -n "$CC"; then
3710 ac_cv_prog_CC
="$CC" # Let the user override the test.
3712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3716 test -z "$as_dir" && as_dir
=.
3717 for ac_exec_ext
in '' $ac_executable_extensions; do
3718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3719 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 if test -n "$CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732 $as_echo "$CC" >&6; }
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3739 test -n "$CC" && break
3742 if test -z "$CC"; then
3744 for ac_prog
in cl.exe
3746 # Extract the first word of "$ac_prog", so it can be a program name with args.
3747 set dummy
$ac_prog; ac_word
=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3751 $as_echo_n "(cached) " >&6
3753 if test -n "$ac_ct_CC"; then
3754 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3760 test -z "$as_dir" && as_dir
=.
3761 for ac_exec_ext
in '' $ac_executable_extensions; do
3762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3763 ac_cv_prog_ac_ct_CC
="$ac_prog"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3774 if test -n "$ac_ct_CC"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776 $as_echo "$ac_ct_CC" >&6; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3783 test -n "$ac_ct_CC" && break
3786 if test "x$ac_ct_CC" = x
; then
3789 case $cross_compiling:$ac_tool_warned in
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793 ac_tool_warned
=yes ;;
3802 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804 as_fn_error
"no acceptable C compiler found in \$PATH
3805 See \`config.log' for more details." "$LINENO" 5; }
3807 # Provide some information about the compiler.
3808 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3811 for ac_option
in --version -v -V -qversion; do
3812 { { ac_try
="$ac_compiler $ac_option >&5"
3814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3821 if test -s conftest.err; then
3823 ... rest of stderr output deleted ...
3824 10q' conftest.err >conftest.er1
3825 cat conftest.er1 >&5
3826 rm -f conftest.er1 conftest.err
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3843 ac_clean_files_save=$ac_clean_files
3844 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3845 # Try to create an executable without -o first, disregard a.out.
3846 # It will help us diagnose broken compilers, and finding out an intuition
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3849 $as_echo_n "checking for C compiler default output file name... " >&6; }
3850 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3852 # The possible output files:
3853 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3856 for ac_file in $ac_files
3859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3860 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3865 if { { ac_try="$ac_link_default"
3867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3868 *) ac_try_echo
=$ac_try;;
3870 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872 (eval "$ac_link_default") 2>&5
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }; then :
3876 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3877 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3878 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3879 # so that the user can short-circuit this test for compilers unknown to
3881 for ac_file
in $ac_files ''
3883 test -f "$ac_file" ||
continue
3885 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3888 # We found the default executable, but exeext='' is most
3892 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3894 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3896 # We set ac_cv_exeext here because the later test for it is not
3897 # safe: cross compilers may not add the suffix if given an `-o'
3898 # argument, so we may need to know it at that point already.
3899 # Even if this section looks crufty: it has the advantage of
3906 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3912 $as_echo "$ac_file" >&6; }
3913 if test -z "$ac_file"; then :
3914 $as_echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.
$ac_ext >&5
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 { as_fn_set_status
77
3920 as_fn_error
"C compiler cannot create executables
3921 See \`config.log' for more details." "$LINENO" 5; }; }
3923 ac_exeext
=$ac_cv_exeext
3925 # Check that the compiler produces executables we can run. If not, either
3926 # the compiler is broken, or we cross compile.
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3928 $as_echo_n "checking whether the C compiler works... " >&6; }
3929 # If not cross compiling, check that we can run a simple program.
3930 if test "$cross_compiling" != yes; then
3931 if { ac_try
='./$ac_file'
3932 { { case "(($ac_try" in
3933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 $as_echo "$ac_try_echo"; } >&5
3938 (eval "$ac_try") 2>&5
3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }; }; then
3944 if test "$cross_compiling" = maybe; then
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error "cannot run C compiled programs.
3950 If you meant to cross compile
, use \
`--host'.
3951 See \`config.log
' for more details." "$LINENO" 5; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956 $as_echo "yes" >&6; }
3958 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3959 ac_clean_files=$ac_clean_files_save
3960 # Check that the compiler produces executables we can run. If not, either
3961 # the compiler is broken, or we cross compile.
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3963 $as_echo_n "checking whether we are cross compiling... " >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3965 $as_echo "$cross_compiling" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3968 $as_echo_n "checking for suffix of executables... " >&6; }
3969 if { { ac_try="$ac_link"
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976 (eval "$ac_link") 2>&5
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }; then :
3980 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3981 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3982 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3984 for ac_file
in conftest.exe conftest conftest.
*; do
3985 test -f "$ac_file" ||
continue
3987 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3988 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3997 See \`config.log' for more details." "$LINENO" 5; }
3999 rm -f conftest
$ac_cv_exeext
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4001 $as_echo "$ac_cv_exeext" >&6; }
4003 rm -f conftest.
$ac_ext
4004 EXEEXT
=$ac_cv_exeext
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4007 $as_echo_n "checking for suffix of object files... " >&6; }
4008 if test "${ac_cv_objext+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4022 rm -f conftest.o conftest.obj
4023 if { { ac_try
="$ac_compile"
4025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029 $as_echo "$ac_try_echo"; } >&5
4030 (eval "$ac_compile") 2>&5
4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }; then :
4034 for ac_file in conftest.o conftest.obj conftest.*; do
4035 test -f "$ac_file" || continue;
4037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4043 $as_echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error "cannot compute suffix of object files
: cannot compile
4049 See \
`config.log' for more details." "$LINENO" 5; }
4051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4054 $as_echo "$ac_cv_objext" >&6; }
4055 OBJEXT=$ac_cv_objext
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4058 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4059 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4076 if ac_fn_c_try_compile "$LINENO"; then :
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4086 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4087 if test $ac_compiler_gnu = yes; then
4092 ac_test_CFLAGS=${CFLAGS+set}
4093 ac_save_CFLAGS=$CFLAGS
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4095 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4096 if test "${ac_cv_prog_cc_g+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4099 ac_save_c_werror_flag=$ac_c_werror_flag
4100 ac_c_werror_flag=yes
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4114 if ac_fn_c_try_compile "$LINENO"; then :
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4129 if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_c_werror_flag=$ac_save_c_werror_flag
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4145 if ac_fn_c_try_compile "$LINENO"; then :
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_c_werror_flag=$ac_save_c_werror_flag
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4156 $as_echo "$ac_cv_prog_cc_g" >&6; }
4157 if test "$ac_test_CFLAGS" = set; then
4158 CFLAGS=$ac_save_CFLAGS
4159 elif test $ac_cv_prog_cc_g = yes; then
4160 if test "$GCC" = yes; then
4166 if test "$GCC" = yes; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4173 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4174 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4177 ac_cv_prog_cc_c89=no
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4183 #include <sys/types.h>
4184 #include <sys/stat.h>
4185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4186 struct buf { int x; };
4187 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4188 static char *e (p, i)
4194 static char *f (char * (*g) (char **, int), char **p, ...)
4199 s = g (p, va_arg (v,int));
4204 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4205 function prototypes and stuff, but not '\xHH' hex character constants.
4206 These don't provoke an error unfortunately, instead are silently treated
4207 as 'x'. The following induces an error, until -std is added to get
4208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4209 array size at least. It's necessary to write '\x00'==0 to get something
4210 that's true only with -std. */
4211 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4213 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4214 inside strings and character constants. */
4216 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4218 int test (int i, double x);
4219 struct s1 {int (*f) (int a);};
4220 struct s2 {int (*f) (double a);};
4221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4227 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4232 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4233 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4235 CC="$ac_save_CC $ac_arg"
4236 if ac_fn_c_try_compile "$LINENO"; then :
4237 ac_cv_prog_cc_c89=$ac_arg
4239 rm -f core conftest.err conftest.$ac_objext
4240 test "x$ac_cv_prog_cc_c89" != "xno" && break
4242 rm -f conftest.$ac_ext
4247 case "x$ac_cv_prog_cc_c89" in
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4250 $as_echo "none needed" >&6; } ;;
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4253 $as_echo "unsupported" >&6; } ;;
4255 CC="$CC $ac_cv_prog_cc_c89"
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4257 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4259 if test "x$ac_cv_prog_cc_c89" != xno; then :
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 if test "x$CC" != xcc; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4271 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4274 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4276 set dummy $CC; ac_cc=`$as_echo "$2" |
4277 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4278 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4279 $as_echo_n "(cached) " >&6
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4292 # Make sure it works both with $CC and with simple cc.
4293 # We do the test twice because some compilers refuse to overwrite an
4294 # existing .o file with -o, though they will create one.
4295 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4297 if { { case "(($ac_try" in
4298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4299 *) ac_try_echo
=$ac_try;;
4301 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302 $as_echo "$ac_try_echo"; } >&5
4303 (eval "$ac_try") 2>&5
4305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306 test $ac_status = 0; } &&
4307 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; };
4318 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4319 if test "x$CC" != xcc; then
4320 # Test first that cc exists at all.
4321 if { ac_try='cc -c conftest.$ac_ext >&5'
4322 { { case "(($ac_try" in
4323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4324 *) ac_try_echo
=$ac_try;;
4326 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; }; }; then
4332 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4334 if { { case "(($ac_try" in
4335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 $as_echo "$ac_try_echo"; } >&5
4340 (eval "$ac_try") 2>&5
4342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; } &&
4344 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4346 *) ac_try_echo
=$ac_try;;
4348 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350 (eval "$ac_try") 2>&5
4352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; };
4358 # cc exists but doesn't like -o.
4359 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4364 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4366 rm -f core conftest
*
4369 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4371 $as_echo "yes" >&6; }
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4376 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4380 # expand $ac_aux_dir to an absolute path
4381 am_aux_dir
=`cd $ac_aux_dir && pwd`
4383 # FIXME: we rely on the cache variable name because
4384 # there is no other way.
4386 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4387 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4388 if test "$am_t" != yes; then
4389 # Losing compiler, so override with the script.
4390 # FIXME: It is wrong to rewrite CC.
4391 # But if we don't then we get into trouble of one sort or another.
4392 # A longer-term fix would be to have automake use am__CC in this case,
4393 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4394 CC
="$am_aux_dir/compile $CC"
4399 ac_cpp
='$CXXCPP $CPPFLAGS'
4400 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4403 if test -z "$CXX"; then
4404 if test -n "$CCC"; then
4407 if test -n "$ac_tool_prefix"; then
4408 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4411 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413 $as_echo_n "checking for $ac_word... " >&6; }
4414 if test "${ac_cv_prog_CXX+set}" = set; then :
4415 $as_echo_n "(cached) " >&6
4417 if test -n "$CXX"; then
4418 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4424 test -z "$as_dir" && as_dir
=.
4425 for ac_exec_ext
in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 if test -n "$CXX"; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4440 $as_echo "$CXX" >&6; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4447 test -n "$CXX" && break
4450 if test -z "$CXX"; then
4452 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4454 # Extract the first word of "$ac_prog", so it can be a program name with args.
4455 set dummy
$ac_prog; ac_word
=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4461 if test -n "$ac_ct_CXX"; then
4462 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir
=.
4469 for ac_exec_ext
in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4482 if test -n "$ac_ct_CXX"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4484 $as_echo "$ac_ct_CXX" >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4491 test -n "$ac_ct_CXX" && break
4494 if test "x$ac_ct_CXX" = x
; then
4497 case $cross_compiling:$ac_tool_warned in
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501 ac_tool_warned
=yes ;;
4509 # Provide some information about the compiler.
4510 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4513 for ac_option
in --version -v -V -qversion; do
4514 { { ac_try
="$ac_compiler $ac_option >&5"
4516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520 $as_echo "$ac_try_echo"; } >&5
4521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4523 if test -s conftest.err; then
4525 ... rest of stderr output deleted ...
4526 10q' conftest.err >conftest.er1
4527 cat conftest.er1 >&5
4528 rm -f conftest.er1 conftest.err
4530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531 test $ac_status = 0; }
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4535 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4536 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4553 if ac_fn_cxx_try_compile "$LINENO"; then :
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4563 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4564 if test $ac_compiler_gnu = yes; then
4569 ac_test_CXXFLAGS=${CXXFLAGS+set}
4570 ac_save_CXXFLAGS=$CXXFLAGS
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4572 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4573 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4576 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4577 ac_cxx_werror_flag=yes
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4592 ac_cv_prog_cxx_g=yes
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4609 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4622 if ac_fn_cxx_try_compile "$LINENO"; then :
4623 ac_cv_prog_cxx_g=yes
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4633 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4634 if test "$ac_test_CXXFLAGS" = set; then
4635 CXXFLAGS=$ac_save_CXXFLAGS
4636 elif test $ac_cv_prog_cxx_g = yes; then
4637 if test "$GXX" = yes; then
4643 if test "$GXX" = yes; then
4650 ac_cpp='$CPP $CPPFLAGS'
4651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4666 if test -n "$GNATBIND"; then
4667 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 GNATBIND=$ac_cv_prog_GNATBIND
4687 if test -n "$GNATBIND"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4689 $as_echo "$GNATBIND" >&6; }
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4697 if test -z "$ac_cv_prog_GNATBIND"; then
4698 ac_ct_GNATBIND=$GNATBIND
4699 # Extract the first word of "gnatbind", so it can be a program name with args.
4700 set dummy gnatbind; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4706 if test -n "$ac_ct_GNATBIND"; then
4707 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4727 if test -n "$ac_ct_GNATBIND"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4729 $as_echo "$ac_ct_GNATBIND" >&6; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4735 if test "x$ac_ct_GNATBIND" = x; then
4738 case $cross_compiling:$ac_tool_warned in
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742 ac_tool_warned=yes ;;
4744 GNATBIND=$ac_ct_GNATBIND
4747 GNATBIND="$ac_cv_prog_GNATBIND"
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4752 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4758 if test -n "$GNATMAKE"; then
4759 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 GNATMAKE=$ac_cv_prog_GNATMAKE
4779 if test -n "$GNATMAKE"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4781 $as_echo "$GNATMAKE" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4789 if test -z "$ac_cv_prog_GNATMAKE"; then
4790 ac_ct_GNATMAKE=$GNATMAKE
4791 # Extract the first word of "gnatmake", so it can be a program name with args.
4792 set dummy gnatmake; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4798 if test -n "$ac_ct_GNATMAKE"; then
4799 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4819 if test -n "$ac_ct_GNATMAKE"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4821 $as_echo "$ac_ct_GNATMAKE" >&6; }
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4827 if test "x$ac_ct_GNATMAKE" = x; then
4830 case $cross_compiling:$ac_tool_warned in
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4836 GNATMAKE=$ac_ct_GNATMAKE
4839 GNATMAKE="$ac_cv_prog_GNATMAKE"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4843 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4844 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4847 cat >conftest.adb <<EOF
4848 procedure conftest is begin null; end conftest;
4850 acx_cv_cc_gcc_supports_ada=no
4851 # There is a bug in old released versions of GCC which causes the
4852 # driver to exit successfully when the appropriate language module
4853 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4854 # Therefore we must check for the error message as well as an
4855 # unsuccessful exit.
4856 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4857 # given a .adb file, but produce no object file. So we must check
4858 # if an object file was really produced to guard against this.
4859 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4860 if test x"$errors" = x && test -f conftest.$ac_objext; then
4861 acx_cv_cc_gcc_supports_ada=yes
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4866 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4868 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4875 # autoconf is lame and doesn't give us any substitution variable for this.
4876 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4877 NO_MINUS_C_MINUS_O=yes
4879 OUTPUT_OPTION='-o $@'
4884 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4885 # optimizations to be activated explicitly by the toplevel.
4887 */prev-gcc/xgcc*) ;;
4888 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4892 # -------------------------
4893 # Check C compiler features
4894 # -------------------------
4898 ac_cpp='$CPP $CPPFLAGS'
4899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4903 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4904 # On Suns, sometimes $CPP names a directory.
4905 if test -n "$CPP" && test -d "$CPP"; then
4908 if test -z "$CPP"; then
4909 if test "${ac_cv_prog_CPP+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4912 # Double quotes because CPP needs to be expanded
4913 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4916 for ac_c_preproc_warn_flag in '' yes
4918 # Use a header file that comes with gcc, so configuring glibc
4919 # with a fresh cross-compiler works.
4920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 # <limits.h> exists even on freestanding compilers.
4922 # On the NeXT, cc -E runs the code through the compiler's parser,
4923 # not just through cpp. "Syntax error" is here to catch this case.
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4927 # include <limits.h>
4929 # include <assert.h>
4933 if ac_fn_c_try_cpp "$LINENO"; then :
4936 # Broken: fails on valid input.
4939 rm -f conftest.err conftest.$ac_ext
4941 # OK, works on sane cases. Now check whether nonexistent headers
4942 # can be detected and how.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 #include <ac_nonexistent.h>
4947 if ac_fn_c_try_cpp "$LINENO"; then :
4948 # Broken: success on invalid input.
4951 # Passes both tests.
4955 rm -f conftest.err conftest.$ac_ext
4958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959 rm -f conftest.err conftest.
$ac_ext
4960 if $ac_preproc_ok; then :
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4973 $as_echo "$CPP" >&6; }
4975 for ac_c_preproc_warn_flag
in '' yes
4977 # Use a header file that comes with gcc, so configuring glibc
4978 # with a fresh cross-compiler works.
4979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980 # <limits.h> exists even on freestanding compilers.
4981 # On the NeXT, cc -E runs the code through the compiler's parser,
4982 # not just through cpp. "Syntax error" is here to catch this case.
4983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4986 # include <limits.h>
4988 # include <assert.h>
4992 if ac_fn_c_try_cpp
"$LINENO"; then :
4995 # Broken: fails on valid input.
4998 rm -f conftest.err conftest.
$ac_ext
5000 # OK, works on sane cases. Now check whether nonexistent headers
5001 # can be detected and how.
5002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #include <ac_nonexistent.h>
5006 if ac_fn_c_try_cpp
"$LINENO"; then :
5007 # Broken: success on invalid input.
5010 # Passes both tests.
5014 rm -f conftest.err conftest.
$ac_ext
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.err conftest.
$ac_ext
5019 if $ac_preproc_ok; then :
5022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5024 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5025 See \`config.log' for more details." "$LINENO" 5; }
5029 ac_cpp
='$CPP $CPPFLAGS'
5030 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5036 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5037 if test "${ac_cv_path_GREP+set}" = set; then :
5038 $as_echo_n "(cached) " >&6
5040 if test -z "$GREP"; then
5041 ac_path_GREP_found
=false
5042 # Loop through the user's path and test for each of PROGNAME-LIST
5043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5044 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5047 test -z "$as_dir" && as_dir
=.
5048 for ac_prog
in grep ggrep
; do
5049 for ac_exec_ext
in '' $ac_executable_extensions; do
5050 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5051 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5052 # Check for GNU ac_path_GREP and select it if it is found.
5053 # Check for GNU $ac_path_GREP
5054 case `"$ac_path_GREP" --version 2>&1` in
5056 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5059 $as_echo_n 0123456789 >"conftest.in"
5062 cat "conftest.in" "conftest.in" >"conftest.tmp"
5063 mv "conftest.tmp" "conftest.in"
5064 cp "conftest.in" "conftest.nl"
5065 $as_echo 'GREP' >> "conftest.nl"
5066 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5067 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5068 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5069 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5070 # Best one so far, save it but keep looking for a better one
5071 ac_cv_path_GREP
="$ac_path_GREP"
5072 ac_path_GREP_max
=$ac_count
5074 # 10*(2^10) chars as input seems more than enough
5075 test $ac_count -gt 10 && break
5077 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5080 $ac_path_GREP_found && break 3
5085 if test -z "$ac_cv_path_GREP"; then
5086 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5089 ac_cv_path_GREP
=$GREP
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5094 $as_echo "$ac_cv_path_GREP" >&6; }
5095 GREP
="$ac_cv_path_GREP"
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5099 $as_echo_n "checking for egrep... " >&6; }
5100 if test "${ac_cv_path_EGREP+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5103 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5104 then ac_cv_path_EGREP
="$GREP -E"
5106 if test -z "$EGREP"; then
5107 ac_path_EGREP_found
=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5113 test -z "$as_dir" && as_dir
=.
5114 for ac_prog
in egrep; do
5115 for ac_exec_ext
in '' $ac_executable_extensions; do
5116 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5117 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5118 # Check for GNU ac_path_EGREP and select it if it is found.
5119 # Check for GNU $ac_path_EGREP
5120 case `"$ac_path_EGREP" --version 2>&1` in
5122 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5125 $as_echo_n 0123456789 >"conftest.in"
5128 cat "conftest.in" "conftest.in" >"conftest.tmp"
5129 mv "conftest.tmp" "conftest.in"
5130 cp "conftest.in" "conftest.nl"
5131 $as_echo 'EGREP' >> "conftest.nl"
5132 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5133 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5134 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5135 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5136 # Best one so far, save it but keep looking for a better one
5137 ac_cv_path_EGREP
="$ac_path_EGREP"
5138 ac_path_EGREP_max
=$ac_count
5140 # 10*(2^10) chars as input seems more than enough
5141 test $ac_count -gt 10 && break
5143 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5146 $ac_path_EGREP_found && break 3
5151 if test -z "$ac_cv_path_EGREP"; then
5152 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5155 ac_cv_path_EGREP
=$EGREP
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5161 $as_echo "$ac_cv_path_EGREP" >&6; }
5162 EGREP
="$ac_cv_path_EGREP"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5166 $as_echo_n "checking for ANSI C header files... " >&6; }
5167 if test "${ac_cv_header_stdc+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5185 if ac_fn_c_try_compile
"$LINENO"; then :
5186 ac_cv_header_stdc
=yes
5188 ac_cv_header_stdc
=no
5190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5192 if test $ac_cv_header_stdc = yes; then
5193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5200 $EGREP "memchr" >/dev
/null
2>&1; then :
5203 ac_cv_header_stdc
=no
5209 if test $ac_cv_header_stdc = yes; then
5210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5217 $EGREP "free" >/dev
/null
2>&1; then :
5220 ac_cv_header_stdc
=no
5226 if test $ac_cv_header_stdc = yes; then
5227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5228 if test "$cross_compiling" = yes; then :
5231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5235 #if ((' ' & 0x0FF) == 0x020)
5236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5239 # define ISLOWER(c) \
5240 (('a' <= (c) && (c) <= 'i') \
5241 || ('j' <= (c) && (c) <= 'r') \
5242 || ('s' <= (c) && (c) <= 'z'))
5243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5251 for (i = 0; i < 256; i++)
5252 if (XOR (islower (i), ISLOWER (i))
5253 || toupper (i) != TOUPPER (i))
5258 if ac_fn_c_try_run
"$LINENO"; then :
5261 ac_cv_header_stdc
=no
5263 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5264 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5270 $as_echo "$ac_cv_header_stdc" >&6; }
5271 if test $ac_cv_header_stdc = yes; then
5273 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5278 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5279 inttypes.h stdint.h unistd.h
5281 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5282 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5284 eval as_val
=\$
$as_ac_Header
5285 if test "x$as_val" = x
""yes; then :
5286 cat >>confdefs.h
<<_ACEOF
5287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5296 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5297 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5304 if test "$MINIX" = yes; then
5306 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5309 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5312 $as_echo "#define _MINIX 1" >>confdefs.h
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5318 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5319 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5325 # define __EXTENSIONS__ 1
5326 $ac_includes_default
5335 if ac_fn_c_try_compile
"$LINENO"; then :
5336 ac_cv_safe_to_define___extensions__
=yes
5338 ac_cv_safe_to_define___extensions__
=no
5340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5343 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5344 test $ac_cv_safe_to_define___extensions__ = yes &&
5345 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5347 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5349 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5351 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5353 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5357 ac_cpp
='$CPP $CPPFLAGS'
5358 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5362 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5363 # On Suns, sometimes $CPP names a directory.
5364 if test -n "$CPP" && test -d "$CPP"; then
5367 if test -z "$CPP"; then
5368 if test "${ac_cv_prog_CPP+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5371 # Double quotes because CPP needs to be expanded
5372 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5375 for ac_c_preproc_warn_flag
in '' yes
5377 # Use a header file that comes with gcc, so configuring glibc
5378 # with a fresh cross-compiler works.
5379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380 # <limits.h> exists even on freestanding compilers.
5381 # On the NeXT, cc -E runs the code through the compiler's parser,
5382 # not just through cpp. "Syntax error" is here to catch this case.
5383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5386 # include <limits.h>
5388 # include <assert.h>
5392 if ac_fn_c_try_cpp
"$LINENO"; then :
5395 # Broken: fails on valid input.
5398 rm -f conftest.err conftest.
$ac_ext
5400 # OK, works on sane cases. Now check whether nonexistent headers
5401 # can be detected and how.
5402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <ac_nonexistent.h>
5406 if ac_fn_c_try_cpp
"$LINENO"; then :
5407 # Broken: success on invalid input.
5410 # Passes both tests.
5414 rm -f conftest.err conftest.
$ac_ext
5417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5418 rm -f conftest.err conftest.
$ac_ext
5419 if $ac_preproc_ok; then :
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5432 $as_echo "$CPP" >&6; }
5434 for ac_c_preproc_warn_flag
in '' yes
5436 # Use a header file that comes with gcc, so configuring glibc
5437 # with a fresh cross-compiler works.
5438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5439 # <limits.h> exists even on freestanding compilers.
5440 # On the NeXT, cc -E runs the code through the compiler's parser,
5441 # not just through cpp. "Syntax error" is here to catch this case.
5442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5445 # include <limits.h>
5447 # include <assert.h>
5451 if ac_fn_c_try_cpp
"$LINENO"; then :
5454 # Broken: fails on valid input.
5457 rm -f conftest.err conftest.
$ac_ext
5459 # OK, works on sane cases. Now check whether nonexistent headers
5460 # can be detected and how.
5461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 #include <ac_nonexistent.h>
5465 if ac_fn_c_try_cpp
"$LINENO"; then :
5466 # Broken: success on invalid input.
5469 # Passes both tests.
5473 rm -f conftest.err conftest.
$ac_ext
5476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5477 rm -f conftest.err conftest.
$ac_ext
5478 if $ac_preproc_ok; then :
5481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5483 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5484 See \`config.log' for more details." "$LINENO" 5; }
5488 ac_cpp
='$CPP $CPPFLAGS'
5489 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5494 $as_echo_n "checking for inline... " >&6; }
5495 if test "${ac_cv_c_inline+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5499 for ac_kw
in inline __inline__ __inline
; do
5500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5504 static $ac_kw foo_t static_foo () {return 0; }
5505 $ac_kw foo_t foo () {return 0; }
5509 if ac_fn_c_try_compile
"$LINENO"; then :
5510 ac_cv_c_inline
=$ac_kw
5512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5513 test "$ac_cv_c_inline" != no
&& break
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5518 $as_echo "$ac_cv_c_inline" >&6; }
5520 case $ac_cv_c_inline in
5523 case $ac_cv_c_inline in
5525 *) ac_val
=$ac_cv_c_inline;;
5527 cat >>confdefs.h
<<_ACEOF
5529 #define inline $ac_val
5536 # Check whether --enable-largefile was given.
5537 if test "${enable_largefile+set}" = set; then :
5538 enableval
=$enable_largefile;
5541 if test "$enable_largefile" != no
; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5544 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5545 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5546 $as_echo_n "(cached) " >&6
5548 ac_cv_sys_largefile_CC
=no
5549 if test "$GCC" != yes; then
5552 # IRIX 6.2 and later do not support large files by default,
5553 # so use the C compiler's -n32 option if that helps.
5554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <sys/types.h>
5557 /* Check that off_t can represent 2**63 - 1 correctly.
5558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5559 since some C++ compilers masquerading as C compilers
5560 incorrectly reject 9223372036854775807. */
5561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5563 && LARGE_OFF_T % 2147483647 == 1)
5573 if ac_fn_c_try_compile
"$LINENO"; then :
5576 rm -f core conftest.err conftest.
$ac_objext
5578 if ac_fn_c_try_compile
"$LINENO"; then :
5579 ac_cv_sys_largefile_CC
=' -n32'; break
5581 rm -f core conftest.err conftest.
$ac_objext
5585 rm -f conftest.
$ac_ext
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5589 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5590 if test "$ac_cv_sys_largefile_CC" != no
; then
5591 CC
=$CC$ac_cv_sys_largefile_CC
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5595 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5596 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5597 $as_echo_n "(cached) " >&6
5600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #include <sys/types.h>
5603 /* Check that off_t can represent 2**63 - 1 correctly.
5604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5605 since some C++ compilers masquerading as C compilers
5606 incorrectly reject 9223372036854775807. */
5607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5609 && LARGE_OFF_T % 2147483647 == 1)
5619 if ac_fn_c_try_compile
"$LINENO"; then :
5620 ac_cv_sys_file_offset_bits
=no
; break
5622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #define _FILE_OFFSET_BITS 64
5626 #include <sys/types.h>
5627 /* Check that off_t can represent 2**63 - 1 correctly.
5628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5629 since some C++ compilers masquerading as C compilers
5630 incorrectly reject 9223372036854775807. */
5631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5633 && LARGE_OFF_T % 2147483647 == 1)
5643 if ac_fn_c_try_compile
"$LINENO"; then :
5644 ac_cv_sys_file_offset_bits
=64; break
5646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5647 ac_cv_sys_file_offset_bits
=unknown
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5652 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5653 case $ac_cv_sys_file_offset_bits in #(
5656 cat >>confdefs.h
<<_ACEOF
5657 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5662 if test $ac_cv_sys_file_offset_bits = unknown
; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5664 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5665 if test "${ac_cv_sys_large_files+set}" = set; then :
5666 $as_echo_n "(cached) " >&6
5669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <sys/types.h>
5672 /* Check that off_t can represent 2**63 - 1 correctly.
5673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5674 since some C++ compilers masquerading as C compilers
5675 incorrectly reject 9223372036854775807. */
5676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5678 && LARGE_OFF_T % 2147483647 == 1)
5688 if ac_fn_c_try_compile
"$LINENO"; then :
5689 ac_cv_sys_large_files
=no
; break
5691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #define _LARGE_FILES 1
5695 #include <sys/types.h>
5696 /* Check that off_t can represent 2**63 - 1 correctly.
5697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5698 since some C++ compilers masquerading as C compilers
5699 incorrectly reject 9223372036854775807. */
5700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5702 && LARGE_OFF_T % 2147483647 == 1)
5712 if ac_fn_c_try_compile
"$LINENO"; then :
5713 ac_cv_sys_large_files
=1; break
5715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5716 ac_cv_sys_large_files
=unknown
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5721 $as_echo "$ac_cv_sys_large_files" >&6; }
5722 case $ac_cv_sys_large_files in #(
5725 cat >>confdefs.h
<<_ACEOF
5726 #define _LARGE_FILES $ac_cv_sys_large_files
5735 # sizeof(char) is 1 by definition.
5736 # The cast to long int works around a bug in the HP C Compiler
5737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5739 # This bug is HP SR number 8606223364.
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5741 $as_echo_n "checking size of void *... " >&6; }
5742 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5745 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5748 if test "$ac_cv_type_void_p" = yes; then
5749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5751 { as_fn_set_status
77
5752 as_fn_error
"cannot compute sizeof (void *)
5753 See \`config.log' for more details." "$LINENO" 5; }; }
5755 ac_cv_sizeof_void_p
=0
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5761 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5765 cat >>confdefs.h
<<_ACEOF
5766 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5770 # The cast to long int works around a bug in the HP C Compiler
5771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5773 # This bug is HP SR number 8606223364.
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5775 $as_echo_n "checking size of short... " >&6; }
5776 if test "${ac_cv_sizeof_short+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5779 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5782 if test "$ac_cv_type_short" = yes; then
5783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5785 { as_fn_set_status
77
5786 as_fn_error
"cannot compute sizeof (short)
5787 See \`config.log' for more details." "$LINENO" 5; }; }
5789 ac_cv_sizeof_short
=0
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5795 $as_echo "$ac_cv_sizeof_short" >&6; }
5799 cat >>confdefs.h
<<_ACEOF
5800 #define SIZEOF_SHORT $ac_cv_sizeof_short
5804 # The cast to long int works around a bug in the HP C Compiler
5805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5807 # This bug is HP SR number 8606223364.
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5809 $as_echo_n "checking size of int... " >&6; }
5810 if test "${ac_cv_sizeof_int+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5813 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5816 if test "$ac_cv_type_int" = yes; then
5817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5819 { as_fn_set_status
77
5820 as_fn_error
"cannot compute sizeof (int)
5821 See \`config.log' for more details." "$LINENO" 5; }; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5829 $as_echo "$ac_cv_sizeof_int" >&6; }
5833 cat >>confdefs.h
<<_ACEOF
5834 #define SIZEOF_INT $ac_cv_sizeof_int
5838 # The cast to long int works around a bug in the HP C Compiler
5839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5841 # This bug is HP SR number 8606223364.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5843 $as_echo_n "checking size of long... " >&6; }
5844 if test "${ac_cv_sizeof_long+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5847 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5850 if test "$ac_cv_type_long" = yes; then
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 { as_fn_set_status
77
5854 as_fn_error
"cannot compute sizeof (long)
5855 See \`config.log' for more details." "$LINENO" 5; }; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5863 $as_echo "$ac_cv_sizeof_long" >&6; }
5867 cat >>confdefs.h
<<_ACEOF
5868 #define SIZEOF_LONG $ac_cv_sizeof_long
5872 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5873 if test "x$ac_cv_type_long_long" = x
""yes; then :
5875 cat >>confdefs.h
<<_ACEOF
5876 #define HAVE_LONG_LONG 1
5879 # The cast to long int works around a bug in the HP C Compiler
5880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5882 # This bug is HP SR number 8606223364.
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5884 $as_echo_n "checking size of long long... " >&6; }
5885 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5886 $as_echo_n "(cached) " >&6
5888 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5891 if test "$ac_cv_type_long_long" = yes; then
5892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5894 { as_fn_set_status
77
5895 as_fn_error
"cannot compute sizeof (long long)
5896 See \`config.log' for more details." "$LINENO" 5; }; }
5898 ac_cv_sizeof_long_long
=0
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5904 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5908 cat >>confdefs.h
<<_ACEOF
5909 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5915 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5916 if test "x$ac_cv_type___int64" = x
""yes; then :
5918 cat >>confdefs.h
<<_ACEOF
5919 #define HAVE___INT64 1
5922 # The cast to long int works around a bug in the HP C Compiler
5923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5925 # This bug is HP SR number 8606223364.
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5927 $as_echo_n "checking size of __int64... " >&6; }
5928 if test "${ac_cv_sizeof___int64+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5931 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5934 if test "$ac_cv_type___int64" = yes; then
5935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5937 { as_fn_set_status
77
5938 as_fn_error
"cannot compute sizeof (__int64)
5939 See \`config.log' for more details." "$LINENO" 5; }; }
5941 ac_cv_sizeof___int64
=0
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5947 $as_echo "$ac_cv_sizeof___int64" >&6; }
5951 cat >>confdefs.h
<<_ACEOF
5952 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5958 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5959 case $ac_cv_c_int8_t in #(
5963 cat >>confdefs.h
<<_ACEOF
5964 #define int8_t $ac_cv_c_int8_t
5969 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5970 case $ac_cv_c_int16_t in #(
5974 cat >>confdefs.h
<<_ACEOF
5975 #define int16_t $ac_cv_c_int16_t
5980 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5981 case $ac_cv_c_int32_t in #(
5985 cat >>confdefs.h
<<_ACEOF
5986 #define int32_t $ac_cv_c_int32_t
5991 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5992 case $ac_cv_c_int64_t in #(
5996 cat >>confdefs.h
<<_ACEOF
5997 #define int64_t $ac_cv_c_int64_t
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6004 $as_echo_n "checking for long long int... " >&6; }
6005 if test "${ac_cv_type_long_long_int+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6011 /* For now, do not test the preprocessor; as of 2007 there are too many
6012 implementations with broken preprocessors. Perhaps this can
6013 be revisited in 2012. In the meantime, code should not expect
6014 #if to work with literals wider than 32 bits. */
6015 /* Test literals. */
6016 long long int ll = 9223372036854775807ll;
6017 long long int nll = -9223372036854775807LL;
6018 unsigned long long int ull = 18446744073709551615ULL;
6019 /* Test constant expressions. */
6020 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6022 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6028 /* Test availability of runtime routines for shift and division. */
6029 long long int llmax = 9223372036854775807ll;
6030 unsigned long long int ullmax = 18446744073709551615ull;
6031 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6032 | (llmax / ll) | (llmax % ll)
6033 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6034 | (ullmax / ull) | (ullmax % ull));
6040 if ac_fn_c_try_link
"$LINENO"; then :
6041 if test "$cross_compiling" = yes; then :
6042 ac_cv_type_long_long_int
=yes
6044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6049 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6050 # define LLONG_MAX (HALF - 1 + HALF)
6055 long long int n = 1;
6059 long long int m = n << i;
6062 if (LLONG_MAX / 2 < m)
6070 if ac_fn_c_try_run
"$LINENO"; then :
6071 ac_cv_type_long_long_int
=yes
6073 ac_cv_type_long_long_int
=no
6075 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6076 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6080 ac_cv_type_long_long_int
=no
6082 rm -f core conftest.err conftest.
$ac_objext \
6083 conftest
$ac_exeext conftest.
$ac_ext
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6086 $as_echo "$ac_cv_type_long_long_int" >&6; }
6087 if test $ac_cv_type_long_long_int = yes; then
6089 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6095 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6096 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6098 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6101 test $ac_cv_type_long_long_int = yes \
6102 && ac_type
='long long int' \
6103 || ac_type
='long int'
6105 cat >>confdefs.h
<<_ACEOF
6106 #define intmax_t $ac_type
6113 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6114 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6116 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6119 for ac_type
in 'int' 'long int' 'long long int'; do
6120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6122 $ac_includes_default
6126 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6133 if ac_fn_c_try_compile
"$LINENO"; then :
6135 cat >>confdefs.h
<<_ACEOF
6136 #define intptr_t $ac_type
6141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6142 test -z "$ac_type" && break
6147 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6148 case $ac_cv_c_uint8_t in #(
6152 $as_echo "#define _UINT8_T 1" >>confdefs.h
6155 cat >>confdefs.h
<<_ACEOF
6156 #define uint8_t $ac_cv_c_uint8_t
6161 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6162 case $ac_cv_c_uint16_t in #(
6167 cat >>confdefs.h
<<_ACEOF
6168 #define uint16_t $ac_cv_c_uint16_t
6173 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6174 case $ac_cv_c_uint32_t in #(
6178 $as_echo "#define _UINT32_T 1" >>confdefs.h
6181 cat >>confdefs.h
<<_ACEOF
6182 #define uint32_t $ac_cv_c_uint32_t
6187 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6188 case $ac_cv_c_uint64_t in #(
6192 $as_echo "#define _UINT64_T 1" >>confdefs.h
6195 cat >>confdefs.h
<<_ACEOF
6196 #define uint64_t $ac_cv_c_uint64_t
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6203 $as_echo_n "checking for unsigned long long int... " >&6; }
6204 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6210 /* For now, do not test the preprocessor; as of 2007 there are too many
6211 implementations with broken preprocessors. Perhaps this can
6212 be revisited in 2012. In the meantime, code should not expect
6213 #if to work with literals wider than 32 bits. */
6214 /* Test literals. */
6215 long long int ll = 9223372036854775807ll;
6216 long long int nll = -9223372036854775807LL;
6217 unsigned long long int ull = 18446744073709551615ULL;
6218 /* Test constant expressions. */
6219 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6221 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6227 /* Test availability of runtime routines for shift and division. */
6228 long long int llmax = 9223372036854775807ll;
6229 unsigned long long int ullmax = 18446744073709551615ull;
6230 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6231 | (llmax / ll) | (llmax % ll)
6232 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6233 | (ullmax / ull) | (ullmax % ull));
6239 if ac_fn_c_try_link
"$LINENO"; then :
6240 ac_cv_type_unsigned_long_long_int
=yes
6242 ac_cv_type_unsigned_long_long_int
=no
6244 rm -f core conftest.err conftest.
$ac_objext \
6245 conftest
$ac_exeext conftest.
$ac_ext
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6248 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6249 if test $ac_cv_type_unsigned_long_long_int = yes; then
6251 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6257 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6258 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6260 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6263 test $ac_cv_type_unsigned_long_long_int = yes \
6264 && ac_type
='unsigned long long int' \
6265 || ac_type
='unsigned long int'
6267 cat >>confdefs.h
<<_ACEOF
6268 #define uintmax_t $ac_type
6275 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6276 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6278 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6281 for ac_type
in 'unsigned int' 'unsigned long int' \
6282 'unsigned long long int'; do
6283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 $ac_includes_default
6289 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6296 if ac_fn_c_try_compile
"$LINENO"; then :
6298 cat >>confdefs.h
<<_ACEOF
6299 #define uintptr_t $ac_type
6304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6305 test -z "$ac_type" && break
6323 # ---------------------
6324 # Warnings and checking
6325 # ---------------------
6327 # Check $CC warning features (if it's GCC).
6328 # We want to use -pedantic, but we don't want warnings about
6331 # * overlong strings
6332 # So, we only use -pedantic if we can disable those warnings.
6335 save_CFLAGS
="$CFLAGS"
6336 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6337 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6340 $as_echo_n "checking whether $CC supports $option... " >&6; }
6341 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6342 $as_echo_n "(cached) " >&6
6345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6356 if ac_fn_c_try_compile
"$LINENO"; then :
6357 eval "$as_acx_Woption=yes"
6359 eval "$as_acx_Woption=no"
6361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6364 eval ac_res
=\$
$as_acx_Woption
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6366 $as_echo "$ac_res" >&6; }
6367 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6368 loose_warn
="$loose_warn${loose_warn:+ }$option"
6371 CFLAGS
="$save_CFLAGS"
6374 save_CFLAGS
="$CFLAGS"
6375 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6376 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6379 $as_echo_n "checking whether $CC supports $option... " >&6; }
6380 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6381 $as_echo_n "(cached) " >&6
6384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6395 if ac_fn_c_try_compile
"$LINENO"; then :
6396 eval "$as_acx_Woption=yes"
6398 eval "$as_acx_Woption=no"
6400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6403 eval ac_res
=\$
$as_acx_Woption
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6405 $as_echo "$ac_res" >&6; }
6406 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6407 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6410 CFLAGS
="$save_CFLAGS"
6413 save_CFLAGS
="$CFLAGS"
6414 for option
in -Wmissing-format-attribute; do
6415 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6418 $as_echo_n "checking whether $CC supports $option... " >&6; }
6419 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6420 $as_echo_n "(cached) " >&6
6423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6434 if ac_fn_c_try_compile
"$LINENO"; then :
6435 eval "$as_acx_Woption=yes"
6437 eval "$as_acx_Woption=no"
6439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6442 eval ac_res
=\$
$as_acx_Woption
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6444 $as_echo "$ac_res" >&6; }
6445 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6446 strict_warn
="$strict_warn${strict_warn:+ }$option"
6449 CFLAGS
="$save_CFLAGS"
6452 save_CFLAGS
="$CFLAGS"
6453 for option
in -Wold-style-definition -Wc++-compat; do
6454 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6457 $as_echo_n "checking whether $CC supports $option... " >&6; }
6458 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6459 $as_echo_n "(cached) " >&6
6462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6473 if ac_fn_c_try_compile
"$LINENO"; then :
6474 eval "$as_acx_Woption=yes"
6476 eval "$as_acx_Woption=no"
6478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6481 eval ac_res
=\$
$as_acx_Woption
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6483 $as_echo "$ac_res" >&6; }
6484 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6485 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6488 CFLAGS
="$save_CFLAGS"
6490 if test "$GCC" = yes; then :
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6492 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6493 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
6496 save_CFLAGS
="$CFLAGS"
6497 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6509 if ac_fn_c_try_compile
"$LINENO"; then :
6510 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6512 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6515 CFLAGS
="$save_CFLAGS"
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6518 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6519 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6520 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6525 # Check whether --enable-werror-always was given.
6526 if test "${enable_werror_always+set}" = set; then :
6527 enableval
=$enable_werror_always;
6529 enable_werror_always
=no
6532 if test $enable_werror_always = yes; then :
6533 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6538 # The above macros do nothing if the compiler is not GCC. However, the
6539 # Makefile has more goo to add other flags, so these variables are used
6540 # to enable warnings only for GCC.
6543 if test "x$GCC" = "xyes"; then
6544 warn_cflags
='$(GCC_WARN_CFLAGS)'
6545 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6550 # Enable expensive internal checks
6552 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6556 # Check whether --enable-checking was given.
6557 if test "${enable_checking+set}" = set; then :
6558 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6561 # Determine the default checks.
6562 if test x
$is_release = x
; then
6563 ac_checking_flags
=yes
6565 ac_checking_flags
=release
6569 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6570 for check
in release
$ac_checking_flags
6573 # these set all the flags to specific states
6574 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6575 ac_fold_checking
= ; ac_gc_checking
=1 ;
6576 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6577 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6578 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6579 ac_types_checking
=1 ;;
6580 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6581 ac_fold_checking
= ; ac_gc_checking
= ;
6582 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6583 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6584 ac_tree_checking
= ; ac_valgrind_checking
= ;
6585 ac_types_checking
= ;;
6586 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6587 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6588 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6589 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6590 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6591 ac_types_checking
=1 ;;
6592 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6593 ac_fold_checking
= ; ac_gc_checking
= ;
6594 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6595 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6596 ac_tree_checking
= ; ac_valgrind_checking
= ;
6597 ac_types_checking
= ;;
6598 # these enable particular checks
6599 assert
) ac_assert_checking
=1 ;;
6600 df
) ac_df_checking
=1 ;;
6601 fold) ac_fold_checking
=1 ;;
6602 gc
) ac_gc_checking
=1 ;;
6603 gcac
) ac_gc_always_collect
=1 ;;
6604 gimple
) ac_gimple_checking
=1 ;;
6605 misc
) ac_checking
=1 ;;
6606 rtl
) ac_rtl_checking
=1 ;;
6607 rtlflag
) ac_rtlflag_checking
=1 ;;
6608 runtime
) ac_runtime_checking
=1 ;;
6609 tree
) ac_tree_checking
=1 ;;
6610 types
) ac_types_checking
=1 ;;
6611 valgrind
) ac_valgrind_checking
=1 ;;
6612 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6618 if test x
$ac_checking != x
; then
6620 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6622 nocommon_flag
=-fno-common
6625 if test x
$ac_df_checking != x
; then
6627 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6630 if test x
$ac_assert_checking != x
; then
6632 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6635 if test x
$ac_gimple_checking != x
; then
6637 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6641 if test x
$ac_runtime_checking != x
; then
6643 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6646 if test x
$ac_tree_checking != x
; then
6648 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6650 TREEBROWSER
=tree-browser.o
6652 if test x
$ac_types_checking != x
; then
6654 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6658 if test x
$ac_rtl_checking != x
; then
6660 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6663 if test x
$ac_rtlflag_checking != x
; then
6665 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6668 if test x
$ac_gc_checking != x
; then
6670 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6673 if test x
$ac_gc_always_collect != x
; then
6675 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6678 if test x
$ac_fold_checking != x
; then
6680 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6683 valgrind_path_defines
=
6686 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6687 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6695 if test x
$ac_valgrind_checking != x
; then
6696 # It is certainly possible that there's valgrind but no valgrind.h.
6697 # GCC relies on making annotations so we must have both.
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6699 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 #include <valgrind/memcheck.h>
6703 #ifndef VALGRIND_DISCARD
6704 #error VALGRIND_DISCARD not defined
6707 if ac_fn_c_try_cpp
"$LINENO"; then :
6708 gcc_cv_header_valgrind_memcheck_h
=yes
6710 gcc_cv_header_valgrind_memcheck_h
=no
6712 rm -f conftest.err conftest.
$ac_ext
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6714 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6716 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <memcheck.h>
6720 #ifndef VALGRIND_DISCARD
6721 #error VALGRIND_DISCARD not defined
6724 if ac_fn_c_try_cpp
"$LINENO"; then :
6725 gcc_cv_header_memcheck_h
=yes
6727 gcc_cv_header_memcheck_h
=no
6729 rm -f conftest.err conftest.
$ac_ext
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6731 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6733 # Prepare PATH_SEPARATOR.
6734 # The user is always right.
6735 if test "${PATH_SEPARATOR+set}" != set; then
6736 echo "#! /bin/sh" >conf$$.sh
6737 echo "exit 0" >>conf$$.sh
6739 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6747 # Find out how to test for executable files. Don't use a zero-byte file,
6748 # as systems may use methods other than mode bits to determine executability.
6749 cat >conf$$.
file <<_ASEOF
6753 chmod +x conf$$.
file
6754 if test -x conf$$.
file >/dev
/null
2>&1; then
6755 ac_executable_p
="test -x"
6757 ac_executable_p
="test -f"
6761 # Extract the first word of "valgrind", so it can be a program name with args.
6762 set dummy valgrind
; ac_word
=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6766 $as_echo_n "(cached) " >&6
6768 case "$valgrind_path" in
6770 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6773 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6774 for ac_dir
in $PATH; do
6776 test -z "$ac_dir" && ac_dir
=.
6777 for ac_exec_ext
in '' $ac_executable_extensions; do
6778 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6779 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6780 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6790 valgrind_path
="$ac_cv_path_valgrind_path"
6791 if test -n "$valgrind_path"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6793 $as_echo "$valgrind_path" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6799 if test "x$valgrind_path" = "x" \
6800 ||
(test $have_valgrind_h = no \
6801 && test $gcc_cv_header_memcheck_h = no \
6802 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6803 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6805 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6806 valgrind_command
="$valgrind_path -q"
6808 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6810 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6812 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6815 if test $gcc_cv_header_memcheck_h = yes; then
6817 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6824 # Enable code coverage collection
6825 # Check whether --enable-coverage was given.
6826 if test "${enable_coverage+set}" = set; then :
6827 enableval
=$enable_coverage; case "${enableval}" in
6829 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6832 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6835 # a.k.a. --disable-coverage
6839 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6848 # Check whether --enable-gather-detailed-mem-stats was given.
6849 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6850 enableval
=$enable_gather_detailed_mem_stats;
6852 enable_gather_detailed_mem_stats
=no
6855 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6857 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6861 # -------------------------------
6862 # Miscenalleous configure options
6863 # -------------------------------
6865 # See if we are building gcc with C++.
6866 # Check whether --enable-build-with-cxx was given.
6867 if test "${enable_build_with_cxx+set}" = set; then :
6868 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6870 ENABLE_BUILD_WITH_CXX
=no
6874 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6876 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6882 # Check whether --with-stabs was given.
6883 if test "${with_stabs+set}" = set; then :
6884 withval
=$with_stabs; stabs
="$with_stabs"
6890 # Determine whether or not multilibs are enabled.
6891 # Check whether --enable-multilib was given.
6892 if test "${enable_multilib+set}" = set; then :
6893 enableval
=$enable_multilib;
6900 # Enable __cxa_atexit for C++.
6901 # Check whether --enable-__cxa_atexit was given.
6902 if test "${enable___cxa_atexit+set}" = set; then :
6903 enableval
=$enable___cxa_atexit;
6907 # Enable C extension for decimal float if target supports it.
6909 # Check whether --enable-decimal-float was given.
6910 if test "${enable_decimal_float+set}" = set; then :
6911 enableval
=$enable_decimal_float;
6912 case $enable_decimal_float in
6913 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6914 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6915 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6921 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6922 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6924 enable_decimal_float
=yes
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6928 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6929 enable_decimal_float
=no
6936 # x86's use BID format instead of DPD
6937 case x
$enable_decimal_float in
6940 i?
86*-*-* | x86_64
*-*-*)
6941 enable_decimal_float
=bid
6944 enable_decimal_float
=dpd
6947 default_decimal_float
=$enable_decimal_float
6950 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6951 # dependency on libdecnumber.
6952 default_decimal_float
=dpd
6959 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6961 cat >>confdefs.h
<<_ACEOF
6962 #define ENABLE_DECIMAL_FLOAT $dfp
6966 # Use default_decimal_float for dependency.
6967 enable_decimal_float
=$default_decimal_float
6969 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6971 cat >>confdefs.h
<<_ACEOF
6972 #define ENABLE_DECIMAL_BID_FORMAT $bid
6976 # Enable C extension for fixed-point arithmetic.
6977 # Check whether --enable-fixed-point was given.
6978 if test "${enable_fixed_point+set}" = set; then :
6979 enableval
=$enable_fixed_point;
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6987 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6988 enable_fixed_point
=no
6991 enable_fixed_point
=yes
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6997 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6998 enable_fixed_point
=no
7006 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7008 cat >>confdefs.h
<<_ACEOF
7009 #define ENABLE_FIXED_POINT $fixedpoint
7014 # Pass with no value to take the default
7015 # Pass with a value to specify a thread package
7016 # Check whether --enable-threads was given.
7017 if test "${enable_threads+set}" = set; then :
7018 enableval
=$enable_threads;
7024 # Check whether --enable-tls was given.
7025 if test "${enable_tls+set}" = set; then :
7026 enableval
=$enable_tls;
7029 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7030 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7038 # Check whether --enable-objc-gc was given.
7039 if test "${enable_objc_gc+set}" = set; then :
7040 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7051 # Check whether --with-dwarf2 was given.
7052 if test "${with_dwarf2+set}" = set; then :
7053 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7059 # Check whether --enable-shared was given.
7060 if test "${enable_shared+set}" = set; then :
7061 enableval
=$enable_shared;
7062 case $enable_shared in
7066 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7067 for pkg
in $enableval; do
7068 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7082 # The use of native_system_header_dir here is for the value (optionally)
7083 # configured here. Uses of NATIVE_SYSTEM_HEADER_DIR in this file refer
7084 # to the make variable defined in Makefile or in target make fragments.
7086 # Check whether --with-native-system-header-dir was given.
7087 if test "${with_native_system_header_dir+set}" = set; then :
7088 withval
=$with_native_system_header_dir;
7089 case ${with_native_system_header_dir} in
7090 yes|no
) as_fn_error
"bad value ${withval} given for native system include directory" "$LINENO" 5 ;;
7092 *) as_fn_error
"${withval} should be an absolute directory" "$LINENO" 5 ;;
7094 native_system_header_dir
="${withval}"
7097 native_system_header_dir
=/usr
/include
7100 NATIVE_SYSTEM_HEADER_DIR
=$native_system_header_dir
7104 # Check whether --with-build-sysroot was given.
7105 if test "${with_build_sysroot+set}" = set; then :
7106 withval
=$with_build_sysroot;
7111 # Check whether --with-runtime-root-prefix was given.
7112 if test "${with_runtime_root_prefix+set}" = set; then :
7113 withval
=$with_runtime_root_prefix;
7114 case ${with_runtime_root_prefix} in
7115 yes|no
) as_fn_error
"bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7117 *) as_fn_error
"${withval} should be an absolute directory" "$LINENO" 5 ;;
7119 RUNTIME_ROOT_PREFIX_DEFINE
="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7122 RUNTIME_ROOT_PREFIX_DEFINE
=""
7128 # Check whether --with-build-sysroot was given.
7129 if test "${with_build_sysroot+set}" = set; then :
7130 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7131 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7134 SYSROOT_CFLAGS_FOR_TARGET
=
7140 # Check whether --with-sysroot was given.
7141 if test "${with_sysroot+set}" = set; then :
7142 withval
=$with_sysroot;
7143 case ${with_sysroot} in
7144 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7145 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7148 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7149 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7151 if test "x$prefix" = xNONE
; then
7152 test_prefix
=/usr
/local
7156 if test "x$exec_prefix" = xNONE
; then
7157 test_exec_prefix
=$test_prefix
7159 test_exec_prefix
=$exec_prefix
7161 case ${TARGET_SYSTEM_ROOT} in
7162 "${test_prefix}"|
"${test_prefix}/"*|\
7163 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7164 '${prefix}'|
'${prefix}/'*|\
7165 '${exec_prefix}'|
'${exec_prefix}/'*)
7166 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7167 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7174 TARGET_SYSTEM_ROOT_DEFINE
=
7175 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7184 # Check whether --with-specs was given.
7185 if test "${with_specs+set}" = set; then :
7186 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7196 # Check whether --with-pkgversion was given.
7197 if test "${with_pkgversion+set}" = set; then :
7198 withval
=$with_pkgversion; case "$withval" in
7199 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7201 *) PKGVERSION
="($withval) " ;;
7212 # Check whether --with-bugurl was given.
7213 if test "${with_bugurl+set}" = set; then :
7214 withval
=$with_bugurl; case "$withval" in
7215 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7218 *) BUGURL
="$withval"
7222 BUGURL
="http://gcc.gnu.org/bugs.html"
7232 REPORT_BUGS_TO
="<$BUGURL>"
7233 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7240 # Sanity check enable_languages in case someone does not run the toplevel
7241 # configure # script.
7242 # Check whether --enable-languages was given.
7243 if test "${enable_languages+set}" = set; then :
7244 enableval
=$enable_languages; case ,${enable_languages}, in
7246 # go safe -- we cannot be much sure without the toplevel
7248 # analysis of which target libs are present and usable
7252 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7257 enable_languages
=c
,${enable_languages}
7266 # Check whether --with-multilib-list was given.
7267 if test "${with_multilib_list+set}" = set; then :
7268 withval
=$with_multilib_list; :
7270 with_multilib_list
=default
7274 # -------------------------
7275 # Checks for other programs
7276 # -------------------------
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7279 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7281 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7282 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7283 $as_echo_n "(cached) " >&6
7285 cat >conftest.
make <<\_ACEOF
7288 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7290 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7291 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7293 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7295 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7299 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7301 $as_echo "yes" >&6; }
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 SET_MAKE
="MAKE=${MAKE-make}"
7310 # Find some useful tools
7311 for ac_prog
in gawk mawk nawk
awk
7313 # Extract the first word of "$ac_prog", so it can be a program name with args.
7314 set dummy
$ac_prog; ac_word
=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if test "${ac_cv_prog_AWK+set}" = set; then :
7318 $as_echo_n "(cached) " >&6
7320 if test -n "$AWK"; then
7321 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7327 test -z "$as_dir" && as_dir
=.
7328 for ac_exec_ext
in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_prog_AWK
="$ac_prog"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 if test -n "$AWK"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7343 $as_echo "$AWK" >&6; }
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7350 test -n "$AWK" && break
7353 # We need awk to create options.c and options.h.
7354 # Bail out if it's missing.
7356 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7360 $as_echo_n "checking whether ln -s works... " >&6; }
7361 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7362 $as_echo_n "(cached) " >&6
7364 rm -f conftestdata_t
7365 echo >conftestdata_f
7366 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7368 gcc_cv_prog_LN_S
="ln -s"
7370 if ln conftestdata_f conftestdata_t
2>/dev
/null
7374 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7376 gcc_cv_prog_LN_S
="cp -p"
7382 rm -f conftestdata_f conftestdata_t
7385 LN_S
="$gcc_cv_prog_LN_S"
7386 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7388 $as_echo "yes" >&6; }
7390 if test "$gcc_cv_prog_LN_S" = "ln"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7392 $as_echo "no, using ln" >&6; }
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7395 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7400 $as_echo_n "checking whether ln works... " >&6; }
7401 if test "${acx_cv_prog_LN+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7404 rm -f conftestdata_t
7405 echo >conftestdata_f
7406 if ln conftestdata_f conftestdata_t
2>/dev
/null
7412 rm -f conftestdata_f conftestdata_t
7415 if test $acx_cv_prog_LN = no
; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7418 $as_echo "no, using $LN" >&6; }
7420 LN
="$acx_cv_prog_LN"
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7422 $as_echo "yes" >&6; }
7425 if test -n "$ac_tool_prefix"; then
7426 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7427 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7433 if test -n "$RANLIB"; then
7434 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir
=.
7441 for ac_exec_ext
in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 RANLIB
=$ac_cv_prog_RANLIB
7454 if test -n "$RANLIB"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7456 $as_echo "$RANLIB" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7464 if test -z "$ac_cv_prog_RANLIB"; then
7465 ac_ct_RANLIB
=$RANLIB
7466 # Extract the first word of "ranlib", so it can be a program name with args.
7467 set dummy 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_ac_ct_RANLIB+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7473 if test -n "$ac_ct_RANLIB"; then
7474 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_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_ac_ct_RANLIB
="ranlib"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7494 if test -n "$ac_ct_RANLIB"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7496 $as_echo "$ac_ct_RANLIB" >&6; }
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7502 if test "x$ac_ct_RANLIB" = x
; then
7505 case $cross_compiling:$ac_tool_warned in
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned
=yes ;;
7511 RANLIB
=$ac_ct_RANLIB
7514 RANLIB
="$ac_cv_prog_RANLIB"
7519 # By default, the Darwin ranlib will not treat common symbols as
7520 # definitions when building the archive table of contents. Other
7521 # ranlibs do that; pass an option to the Darwin ranlib that makes
7522 # it behave similarly.
7530 # Find a good install program. We prefer a C program (faster),
7531 # so one script is as good as another. But avoid the broken or
7532 # incompatible versions:
7533 # SysV /etc/install, /usr/sbin/install
7534 # SunOS /usr/etc/install
7535 # IRIX /sbin/install
7537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7539 # ./install, which can be erroneously created by make from ./install.sh.
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7541 $as_echo_n "checking for a BSD compatible install... " >&6; }
7542 if test -z "$INSTALL"; then
7543 if test "${ac_cv_path_install+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7546 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7547 for ac_dir
in $PATH; do
7548 # Account for people who put trailing slashes in PATH elements.
7550 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7552 # OSF1 and SCO ODT 3.0 have their own names for install.
7553 for ac_prog
in ginstall scoinst
install; do
7554 if test -f $ac_dir/$ac_prog; then
7555 if test $ac_prog = install &&
7556 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7557 # AIX install. It has an incompatible calling convention.
7558 # OSF/1 installbsd also uses dspmsg, but is usable.
7561 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7572 if test "${ac_cv_path_install+set}" = set; then
7573 INSTALL
="$ac_cv_path_install"
7575 # As a last resort, use the slow shell script. We don't cache a
7576 # path for INSTALL within a source directory, because that will
7577 # break other packages using the cache if that directory is
7578 # removed, or if the path is relative.
7579 INSTALL
="$ac_install_sh"
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7583 $as_echo "$INSTALL" >&6; }
7585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7586 # It thinks the first close brace ends the variable substitution.
7587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7589 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7592 # See if cmp has --ignore-initial.
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7594 $as_echo_n "checking for cmp's capabilities... " >&6; }
7595 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7600 gcc_cv_prog_cmp_skip
=slowcompare
7601 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7602 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7605 gcc_cv_prog_cmp_skip
=gnucompare
7608 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7609 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7610 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7613 gcc_cv_prog_cmp_skip
=fastcompare
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7621 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7622 make_compare_target
=$gcc_cv_prog_cmp_skip
7626 # See if we have the mktemp command.
7627 # Extract the first word of "mktemp", so it can be a program name with args.
7628 set dummy mktemp
; ac_word
=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7634 if test -n "$have_mktemp_command"; then
7635 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir
=.
7642 for ac_exec_ext
in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_prog_have_mktemp_command
="yes"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7655 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7656 if test -n "$have_mktemp_command"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7658 $as_echo "$have_mktemp_command" >&6; }
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7666 # See if makeinfo has been installed and is modern enough
7667 # that we can use it.
7669 # Extract the first word of "makeinfo", so it can be a program name with args.
7670 set dummy makeinfo
; ac_word
=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7676 if test -n "$MAKEINFO"; then
7677 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir
=.
7684 for ac_exec_ext
in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_prog_MAKEINFO
="makeinfo"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 MAKEINFO
=$ac_cv_prog_MAKEINFO
7697 if test -n "$MAKEINFO"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7699 $as_echo "$MAKEINFO" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7706 if test -n "$MAKEINFO"; then
7707 # Found it, now check the version.
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7709 $as_echo_n "checking for modern makeinfo... " >&6; }
7710 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7713 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7714 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7716 case $ac_prog_version in
7717 '') gcc_cv_prog_makeinfo_modern
=no
;;
7718 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7719 *) gcc_cv_prog_makeinfo_modern
=no
;;
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7724 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7726 gcc_cv_prog_makeinfo_modern
=no
7728 if test $gcc_cv_prog_makeinfo_modern = no
; then
7729 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7732 if test $gcc_cv_prog_makeinfo_modern = no
; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7734 *** Makeinfo is missing or too old.
7735 *** Info documentation will not be built." >&5
7736 $as_echo "$as_me: WARNING:
7737 *** Makeinfo is missing or too old.
7738 *** Info documentation will not be built." >&2;}
7745 # Is pod2man recent enough to regenerate manpages?
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7747 $as_echo_n "checking for recent Pod::Man... " >&6; }
7748 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7750 $as_echo "yes" >&6; }
7751 GENERATED_MANPAGES
=generated-manpages
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7759 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7764 # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy
$ac_prog; ac_word
=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if test "${ac_cv_prog_FLEX+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7771 if test -n "$FLEX"; then
7772 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7778 test -z "$as_dir" && as_dir
=.
7779 for ac_exec_ext
in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_prog_FLEX
="$ac_prog"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 FLEX
=$ac_cv_prog_FLEX
7792 if test -n "$FLEX"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7794 $as_echo "$FLEX" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7801 test -n "$FLEX" && break
7803 test -n "$FLEX" || FLEX
="$MISSING flex"
7807 for ac_prog
in bison
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy
$ac_prog; ac_word
=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_BISON+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7816 if test -n "$BISON"; then
7817 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir
=.
7824 for ac_exec_ext
in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_BISON
="$ac_prog"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 BISON
=$ac_cv_prog_BISON
7837 if test -n "$BISON"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7839 $as_echo "$BISON" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7846 test -n "$BISON" && break
7848 test -n "$BISON" || BISON
="$MISSING bison"
7851 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7852 # check for build == host before using them.
7855 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7856 && test -d ..
/binutils
; then
7857 NM
='${objdir}/../binutils/nm-new'
7859 # Extract the first word of "nm", so it can be a program name with args.
7860 set dummy nm
; ac_word
=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if test "${ac_cv_prog_NM+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7866 if test -n "$NM"; then
7867 ac_cv_prog_NM
="$NM" # Let the user override the test.
7869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7873 test -z "$as_dir" && as_dir
=.
7874 for ac_exec_ext
in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7888 if test -n "$NM"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7890 $as_echo "$NM" >&6; }
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7900 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7901 && test -d ..
/binutils
; then
7902 AR
='${objdir}/../binutils/ar'
7904 # Extract the first word of "ar", so it can be a program name with args.
7905 set dummy
ar; ac_word
=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if test "${ac_cv_prog_AR+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
7911 if test -n "$AR"; then
7912 ac_cv_prog_AR
="$AR" # Let the user override the test.
7914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7918 test -z "$as_dir" && as_dir
=.
7919 for ac_exec_ext
in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7933 if test -n "$AR"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7935 $as_echo "$AR" >&6; }
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7945 # --------------------
7946 # Checks for C headers
7947 # --------------------
7949 # Need to reject headers which give warnings, so that the -Werror bootstrap
7950 # works later. *sigh* This needs to come before all header checks.
7952 ac_c_preproc_warn_flag
=yes
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7955 $as_echo_n "checking for ANSI C header files... " >&6; }
7956 if test "${ac_cv_header_stdc+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
7959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7974 if ac_fn_c_try_compile
"$LINENO"; then :
7975 ac_cv_header_stdc
=yes
7977 ac_cv_header_stdc
=no
7979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7981 if test $ac_cv_header_stdc = yes; then
7982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7989 $EGREP "memchr" >/dev
/null
2>&1; then :
7992 ac_cv_header_stdc
=no
7998 if test $ac_cv_header_stdc = yes; then
7999 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8006 $EGREP "free" >/dev
/null
2>&1; then :
8009 ac_cv_header_stdc
=no
8015 if test $ac_cv_header_stdc = yes; then
8016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8017 if test "$cross_compiling" = yes; then :
8020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8024 #if ((' ' & 0x0FF) == 0x020)
8025 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8026 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8028 # define ISLOWER(c) \
8029 (('a' <= (c) && (c) <= 'i') \
8030 || ('j' <= (c) && (c) <= 'r') \
8031 || ('s' <= (c) && (c) <= 'z'))
8032 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8035 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8040 for (i = 0; i < 256; i++)
8041 if (XOR (islower (i), ISLOWER (i))
8042 || toupper (i) != TOUPPER (i))
8047 if ac_fn_c_try_run
"$LINENO"; then :
8050 ac_cv_header_stdc
=no
8052 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8053 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8059 $as_echo "$ac_cv_header_stdc" >&6; }
8060 if test $ac_cv_header_stdc = yes; then
8062 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8067 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8068 if test "${ac_cv_header_time+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 #include <sys/types.h>
8074 #include <sys/time.h>
8080 if ((struct tm *) 0)
8086 if ac_fn_c_try_compile
"$LINENO"; then :
8087 ac_cv_header_time
=yes
8089 ac_cv_header_time
=no
8091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8094 $as_echo "$ac_cv_header_time" >&6; }
8095 if test $ac_cv_header_time = yes; then
8097 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8102 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8103 if test "${gcc_cv_header_string+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8109 #include <strings.h>
8118 if ac_fn_c_try_compile
"$LINENO"; then :
8119 gcc_cv_header_string
=yes
8121 gcc_cv_header_string
=no
8123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8126 $as_echo "$gcc_cv_header_string" >&6; }
8127 if test $gcc_cv_header_string = yes; then
8129 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8134 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8135 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8140 #include <sys/types.h>
8141 #include <sys/wait.h>
8143 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8146 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8154 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8159 if ac_fn_c_try_compile
"$LINENO"; then :
8160 ac_cv_header_sys_wait_h
=yes
8162 ac_cv_header_sys_wait_h
=no
8164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8167 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8168 if test $ac_cv_header_sys_wait_h = yes; then
8170 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8174 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8175 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8176 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8177 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8179 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8180 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8181 eval as_val
=\$
$as_ac_Header
8182 if test "x$as_val" = x
""yes; then :
8183 cat >>confdefs.h
<<_ACEOF
8184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8191 # Check for thread headers.
8192 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8193 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8199 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8200 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8207 # These tests can't be done till we know if we have limits.h.
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8209 $as_echo_n "checking for CHAR_BIT... " >&6; }
8210 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8215 #ifdef HAVE_LIMITS_H
8222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8223 $EGREP "found" >/dev
/null
2>&1; then :
8224 gcc_cv_decl_char_bit
=yes
8226 gcc_cv_decl_char_bit
=no
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8233 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8234 if test $gcc_cv_decl_char_bit = no
; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8236 $as_echo_n "checking number of bits in a byte... " >&6; }
8237 if test "${gcc_cv_c_nbby+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8242 while test $i -lt 65; do
8243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8250 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8251 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8257 if ac_fn_c_try_compile
"$LINENO"; then :
8258 gcc_cv_c_nbby
=$i; break
8260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8263 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8267 $as_echo "$gcc_cv_c_nbby" >&6; }
8268 if test $gcc_cv_c_nbby = failed
; then
8269 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8272 cat >>confdefs.h
<<_ACEOF
8273 #define CHAR_BIT $gcc_cv_c_nbby
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8279 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8280 if test "${ac_cv_c_bigendian+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8283 ac_cv_c_bigendian
=unknown
8284 # See if we're dealing with a universal compiler.
8285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 #ifndef __APPLE_CC__
8288 not a universal capable compiler
8293 if ac_fn_c_try_compile
"$LINENO"; then :
8295 # Check for potential -arch flags. It is not universal unless
8296 # there are at least two -arch flags with different values.
8299 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8300 if test -n "$ac_prev"; then
8302 i?
86 | x86_64 | ppc | ppc64
)
8303 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8306 ac_cv_c_bigendian
=universal
8312 elif test "x$ac_word" = "x-arch"; then
8317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8318 if test $ac_cv_c_bigendian = unknown
; then
8319 # See if sys/param.h defines the BYTE_ORDER macro.
8320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 #include <sys/types.h>
8323 #include <sys/param.h>
8328 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8329 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8338 if ac_fn_c_try_compile
"$LINENO"; then :
8339 # It does; now see whether it defined to BIG_ENDIAN or not.
8340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8342 #include <sys/types.h>
8343 #include <sys/param.h>
8348 #if BYTE_ORDER != BIG_ENDIAN
8356 if ac_fn_c_try_compile
"$LINENO"; then :
8357 ac_cv_c_bigendian
=yes
8359 ac_cv_c_bigendian
=no
8361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8365 if test $ac_cv_c_bigendian = unknown
; then
8366 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8374 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8382 if ac_fn_c_try_compile
"$LINENO"; then :
8383 # It does; now see whether it defined to _BIG_ENDIAN or not.
8384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8399 if ac_fn_c_try_compile
"$LINENO"; then :
8400 ac_cv_c_bigendian
=yes
8402 ac_cv_c_bigendian
=no
8404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8408 if test $ac_cv_c_bigendian = unknown
; then
8409 # Compile a test program.
8410 if test "$cross_compiling" = yes; then :
8411 # Try to guess by grepping values from an object file.
8412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 short int ascii_mm[] =
8415 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8416 short int ascii_ii[] =
8417 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8418 int use_ascii (int i) {
8419 return ascii_mm[i] + ascii_ii[i];
8421 short int ebcdic_ii[] =
8422 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8423 short int ebcdic_mm[] =
8424 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8425 int use_ebcdic (int i) {
8426 return ebcdic_mm[i] + ebcdic_ii[i];
8433 return use_ascii (foo) == use_ebcdic (foo);
8438 if ac_fn_c_try_compile
"$LINENO"; then :
8439 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8440 ac_cv_c_bigendian
=yes
8442 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8443 if test "$ac_cv_c_bigendian" = unknown
; then
8444 ac_cv_c_bigendian
=no
8446 # finding both strings is unlikely to happen, but who knows?
8447 ac_cv_c_bigendian
=unknown
8451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 $ac_includes_default
8460 /* Are we little or big endian? From Harbison&Steele. */
8464 char c[sizeof (long int)];
8467 return u.c[sizeof (long int) - 1] == 1;
8473 if ac_fn_c_try_run
"$LINENO"; then :
8474 ac_cv_c_bigendian
=no
8476 ac_cv_c_bigendian
=yes
8478 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8479 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8485 $as_echo "$ac_cv_c_bigendian" >&6; }
8486 case $ac_cv_c_bigendian in #(
8488 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8494 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8498 as_fn_error
"unknown endianness
8499 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8503 # ----------------------
8504 # Checks for C++ headers
8505 # ----------------------
8508 ac_cpp
='$CXXCPP $CPPFLAGS'
8509 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8510 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8511 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8513 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8514 if test -z "$CXXCPP"; then
8515 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8518 # Double quotes because CXXCPP needs to be expanded
8519 for CXXCPP
in "$CXX -E" "/lib/cpp"
8522 for ac_cxx_preproc_warn_flag
in '' yes
8524 # Use a header file that comes with gcc, so configuring glibc
8525 # with a fresh cross-compiler works.
8526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8527 # <limits.h> exists even on freestanding compilers.
8528 # On the NeXT, cc -E runs the code through the compiler's parser,
8529 # not just through cpp. "Syntax error" is here to catch this case.
8530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8533 # include <limits.h>
8535 # include <assert.h>
8539 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8542 # Broken: fails on valid input.
8545 rm -f conftest.err conftest.
$ac_ext
8547 # OK, works on sane cases. Now check whether nonexistent headers
8548 # can be detected and how.
8549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #include <ac_nonexistent.h>
8553 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8554 # Broken: success on invalid input.
8557 # Passes both tests.
8561 rm -f conftest.err conftest.
$ac_ext
8564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8565 rm -f conftest.err conftest.
$ac_ext
8566 if $ac_preproc_ok; then :
8571 ac_cv_prog_CXXCPP
=$CXXCPP
8574 CXXCPP
=$ac_cv_prog_CXXCPP
8576 ac_cv_prog_CXXCPP
=$CXXCPP
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8579 $as_echo "$CXXCPP" >&6; }
8581 for ac_cxx_preproc_warn_flag
in '' yes
8583 # Use a header file that comes with gcc, so configuring glibc
8584 # with a fresh cross-compiler works.
8585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8586 # <limits.h> exists even on freestanding compilers.
8587 # On the NeXT, cc -E runs the code through the compiler's parser,
8588 # not just through cpp. "Syntax error" is here to catch this case.
8589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8592 # include <limits.h>
8594 # include <assert.h>
8598 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8601 # Broken: fails on valid input.
8604 rm -f conftest.err conftest.
$ac_ext
8606 # OK, works on sane cases. Now check whether nonexistent headers
8607 # can be detected and how.
8608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 #include <ac_nonexistent.h>
8612 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8613 # Broken: success on invalid input.
8616 # Passes both tests.
8620 rm -f conftest.err conftest.
$ac_ext
8623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8624 rm -f conftest.err conftest.
$ac_ext
8625 if $ac_preproc_ok; then :
8628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8631 See \`config.log' for more details." >&5
8632 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8633 See \`config.log' for more details." >&2;}; }
8637 ac_cpp
='$CPP $CPPFLAGS'
8638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8644 ac_cpp
='$CXXCPP $CPPFLAGS'
8645 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8652 for ac_header
in unordered_map
8654 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8655 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8656 cat >>confdefs.h
<<_ACEOF
8657 #define HAVE_UNORDERED_MAP 1
8663 for ac_header
in tr1/unordered_map
8665 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8666 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8667 cat >>confdefs.h
<<_ACEOF
8668 #define HAVE_TR1_UNORDERED_MAP 1
8674 for ac_header
in ext
/hash_map
8676 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8677 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8678 cat >>confdefs.h
<<_ACEOF
8679 #define HAVE_EXT_HASH_MAP 1
8687 ac_cpp
='$CPP $CPPFLAGS'
8688 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8698 # These libraries may be used by collect2.
8699 # We may need a special search path to get them linked.
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8701 $as_echo_n "checking for collect2 libraries... " >&6; }
8702 if test "${gcc_cv_collect2_libs+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
8706 for libs
in '' -lld -lmld \
8707 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8708 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8729 if ac_fn_c_try_link
"$LINENO"; then :
8730 gcc_cv_collect2_libs
="$libs"; break
8732 rm -f core conftest.err conftest.
$ac_objext \
8733 conftest
$ac_exeext conftest.
$ac_ext
8736 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8739 $as_echo "$gcc_cv_collect2_libs" >&6; }
8740 case $gcc_cv_collect2_libs in
8742 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8746 # When building Ada code on Alpha, we need exc_resume which is usually in
8747 # -lexc. So test for it.
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8751 $as_echo_n "checking for library containing exc_resume... " >&6; }
8752 if test "${ac_cv_search_exc_resume+set}" = set; then :
8753 $as_echo_n "(cached) " >&6
8755 ac_func_search_save_LIBS
=$LIBS
8756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8759 /* Override any GCC internal prototype to avoid an error.
8760 Use char because int might match the return type of a GCC
8761 builtin and then its argument prototype would still apply. */
8769 return exc_resume ();
8774 for ac_lib
in '' exc
; do
8775 if test -z "$ac_lib"; then
8776 ac_res
="none required"
8779 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8781 if ac_fn_c_try_link
"$LINENO"; then :
8782 ac_cv_search_exc_resume
=$ac_res
8784 rm -f core conftest.err conftest.
$ac_objext \
8786 if test "${ac_cv_search_exc_resume+set}" = set; then :
8790 if test "${ac_cv_search_exc_resume+set}" = set; then :
8793 ac_cv_search_exc_resume
=no
8796 LIBS
=$ac_func_search_save_LIBS
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8799 $as_echo "$ac_cv_search_exc_resume" >&6; }
8800 ac_res
=$ac_cv_search_exc_resume
8801 if test "$ac_res" != no
; then :
8802 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8810 # Some systems put ldexp and frexp in libm instead of libc; assume
8811 # they're both in the same place. jcf-dump needs them.
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8815 $as_echo_n "checking for library containing ldexp... " >&6; }
8816 if test "${ac_cv_search_ldexp+set}" = set; then :
8817 $as_echo_n "(cached) " >&6
8819 ac_func_search_save_LIBS
=$LIBS
8820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8823 /* Override any GCC internal prototype to avoid an error.
8824 Use char because int might match the return type of a GCC
8825 builtin and then its argument prototype would still apply. */
8838 for ac_lib
in '' m
; do
8839 if test -z "$ac_lib"; then
8840 ac_res
="none required"
8843 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8845 if ac_fn_c_try_link
"$LINENO"; then :
8846 ac_cv_search_ldexp
=$ac_res
8848 rm -f core conftest.err conftest.
$ac_objext \
8850 if test "${ac_cv_search_ldexp+set}" = set; then :
8854 if test "${ac_cv_search_ldexp+set}" = set; then :
8857 ac_cv_search_ldexp
=no
8860 LIBS
=$ac_func_search_save_LIBS
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8863 $as_echo "$ac_cv_search_ldexp" >&6; }
8864 ac_res
=$ac_cv_search_ldexp
8865 if test "$ac_res" != no
; then :
8866 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8874 # Use <inttypes.h> only if it exists,
8875 # doesn't clash with <sys/types.h>, and declares intmax_t.
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8877 $as_echo_n "checking for inttypes.h... " >&6; }
8878 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8883 #include <sys/types.h>
8884 #include <inttypes.h>
8893 if ac_fn_c_try_compile
"$LINENO"; then :
8894 gcc_cv_header_inttypes_h
=yes
8896 gcc_cv_header_inttypes_h
=no
8898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8902 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8903 if test $gcc_cv_header_inttypes_h = yes; then
8905 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8911 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8912 sysconf strsignal getrusage nl_langinfo \
8913 gettimeofday mbstowcs wcswidth mmap setlocale \
8914 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
8916 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8917 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8918 eval as_val
=\$
$as_ac_var
8919 if test "x$as_val" = x
""yes; then :
8920 cat >>confdefs.h
<<_ACEOF
8921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8928 if test x
$ac_cv_func_mbstowcs = xyes
; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8930 $as_echo_n "checking whether mbstowcs works... " >&6; }
8931 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
8934 if test "$cross_compiling" = yes; then :
8935 gcc_cv_func_mbstowcs_works
=yes
8937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8946 if ac_fn_c_try_run
"$LINENO"; then :
8947 gcc_cv_func_mbstowcs_works
=yes
8949 gcc_cv_func_mbstowcs_works
=no
8951 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8952 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8957 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8958 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8960 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8965 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8966 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8970 cat >>confdefs.h
<<_ACEOF
8976 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8977 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8981 cat >>confdefs.h
<<_ACEOF
8982 #define caddr_t char *
8989 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8990 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8991 gcc_header_sys_mman_h
=yes
8993 gcc_header_sys_mman_h
=no
8996 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8997 if test "x$ac_cv_func_mmap" = x
""yes; then :
9003 if test "$gcc_header_sys_mman_h" != yes \
9004 ||
test "$gcc_func_mmap" != yes; then
9005 gcc_cv_func_mmap_file
=no
9006 gcc_cv_func_mmap_dev_zero
=no
9007 gcc_cv_func_mmap_anon
=no
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9010 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9011 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9014 # Add a system to this blacklist if
9015 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9016 # memory area containing the same data that you'd get if you applied
9017 # read() to the same fd. The only system known to have a problem here
9018 # is VMS, where text files have record structure.
9021 gcc_cv_func_mmap_file
=no
;;
9023 gcc_cv_func_mmap_file
=yes;;
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9027 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9029 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9030 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9033 # Add a system to this blacklist if it has mmap() but /dev/zero
9034 # does not exist, or if mmapping /dev/zero does not give anonymous
9035 # zeroed pages with both the following properties:
9036 # 1. If you map N consecutive pages in with one call, and then
9037 # unmap any subset of those pages, the pages that were not
9038 # explicitly unmapped remain accessible.
9039 # 2. If you map two adjacent blocks of memory and then unmap them
9040 # both at once, they must both go away.
9041 # Systems known to be in this category are Windows (all variants),
9044 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9045 gcc_cv_func_mmap_dev_zero
=no
;;
9047 gcc_cv_func_mmap_dev_zero
=yes;;
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9051 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9053 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9055 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9056 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9057 $as_echo_n "(cached) " >&6
9059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9061 #include <sys/types.h>
9062 #include <sys/mman.h>
9065 #ifndef MAP_ANONYMOUS
9066 #define MAP_ANONYMOUS MAP_ANON
9072 int n = MAP_ANONYMOUS;
9077 if ac_fn_c_try_compile
"$LINENO"; then :
9078 gcc_cv_decl_map_anon
=yes
9080 gcc_cv_decl_map_anon
=no
9082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9085 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9087 if test $gcc_cv_decl_map_anon = no
; then
9088 gcc_cv_func_mmap_anon
=no
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9091 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9092 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9095 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9096 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9097 # doesn't give anonymous zeroed pages with the same properties listed
9098 # above for use of /dev/zero.
9099 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9101 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9102 gcc_cv_func_mmap_anon
=no
;;
9104 gcc_cv_func_mmap_anon
=yes;;
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9108 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9112 if test $gcc_cv_func_mmap_file = yes; then
9114 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9117 if test $gcc_cv_func_mmap_dev_zero = yes; then
9119 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9122 if test $gcc_cv_func_mmap_anon = yes; then
9124 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9131 # Under VMS, vfork works very differently than on Unix. The standard test
9132 # won't work, and it isn't easily adaptable. It makes more sense to
9134 ac_cv_func_vfork_works
=yes
9137 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9138 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9142 cat >>confdefs.h
<<_ACEOF
9148 for ac_header
in vfork.h
9150 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9151 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9152 cat >>confdefs.h
<<_ACEOF
9153 #define HAVE_VFORK_H 1
9159 for ac_func
in fork vfork
9161 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9162 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9163 eval as_val
=\$
$as_ac_var
9164 if test "x$as_val" = x
""yes; then :
9165 cat >>confdefs.h
<<_ACEOF
9166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9172 if test "x$ac_cv_func_fork" = xyes
; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9174 $as_echo_n "checking for working fork... " >&6; }
9175 if test "${ac_cv_func_fork_works+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
9178 if test "$cross_compiling" = yes; then :
9179 ac_cv_func_fork_works
=cross
9181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9183 $ac_includes_default
9188 /* By Ruediger Kuhlmann. */
9195 if ac_fn_c_try_run
"$LINENO"; then :
9196 ac_cv_func_fork_works
=yes
9198 ac_cv_func_fork_works
=no
9200 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9201 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9206 $as_echo "$ac_cv_func_fork_works" >&6; }
9209 ac_cv_func_fork_works
=$ac_cv_func_fork
9211 if test "x$ac_cv_func_fork_works" = xcross
; then
9213 *-*-amigaos* |
*-*-msdosdjgpp*)
9214 # Override, as these systems have only a dummy fork() stub
9215 ac_cv_func_fork_works
=no
9218 ac_cv_func_fork_works
=yes
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9222 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9224 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9225 if test "x$ac_cv_func_vfork" = xyes
; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9227 $as_echo_n "checking for working vfork... " >&6; }
9228 if test "${ac_cv_func_vfork_works+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9231 if test "$cross_compiling" = yes; then :
9232 ac_cv_func_vfork_works
=cross
9234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 /* Thanks to Paul Eggert for this test. */
9237 $ac_includes_default
9238 #include <sys/wait.h>
9242 /* On some sparc systems, changes by the child to local and incoming
9243 argument registers are propagated back to the parent. The compiler
9244 is told about this with #include <vfork.h>, but some compilers
9245 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9246 static variable whose address is put into a register that is
9247 clobbered by the vfork. */
9250 sparc_address_test (int arg)
9252 sparc_address_test (arg) int arg;
9273 pid_t parent = getpid ();
9276 sparc_address_test (0);
9281 /* Here is another test for sparc vfork register problems. This
9282 test uses lots of local variables, at least as many local
9283 variables as main has allocated so far including compiler
9284 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9285 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9286 reuse the register of parent for one of the local variables,
9287 since it will think that parent can't possibly be used any more
9288 in this routine. Assigning to the local variable will thus
9289 munge parent in the parent process. */
9291 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9292 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9293 /* Convince the compiler that p..p7 are live; otherwise, it might
9294 use the same hardware register for all 8 local variables. */
9295 if (p != p1 || p != p2 || p != p3 || p != p4
9296 || p != p5 || p != p6 || p != p7)
9299 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9300 from child file descriptors. If the child closes a descriptor
9301 before it execs or exits, this munges the parent's descriptor
9302 as well. Test for this by closing stdout in the child. */
9303 _exit(close(fileno(stdout)) != 0);
9308 while (wait(&status) != child)
9311 /* Was there some problem with vforking? */
9314 /* Did the child fail? (This shouldn't happen.) */
9317 /* Did the vfork/compiler bug occur? */
9318 || parent != getpid()
9320 /* Did the file descriptor bug occur? */
9321 || fstat(fileno(stdout), &st) != 0
9326 if ac_fn_c_try_run
"$LINENO"; then :
9327 ac_cv_func_vfork_works
=yes
9329 ac_cv_func_vfork_works
=no
9331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9337 $as_echo "$ac_cv_func_vfork_works" >&6; }
9340 if test "x$ac_cv_func_fork_works" = xcross
; then
9341 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9343 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9346 if test "x$ac_cv_func_vfork_works" = xyes
; then
9348 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9352 $as_echo "#define vfork fork" >>confdefs.h
9355 if test "x$ac_cv_func_fork_works" = xyes
; then
9357 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9363 if test "X$prefix" = "XNONE"; then
9364 acl_final_prefix
="$ac_default_prefix"
9366 acl_final_prefix
="$prefix"
9368 if test "X$exec_prefix" = "XNONE"; then
9369 acl_final_exec_prefix
='${prefix}'
9371 acl_final_exec_prefix
="$exec_prefix"
9373 acl_save_prefix
="$prefix"
9374 prefix
="$acl_final_prefix"
9375 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9376 prefix
="$acl_save_prefix"
9379 # Check whether --with-gnu-ld was given.
9380 if test "${with_gnu_ld+set}" = set; then :
9381 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9386 # Prepare PATH_SEPARATOR.
9387 # The user is always right.
9388 if test "${PATH_SEPARATOR+set}" != set; then
9389 echo "#! /bin/sh" >conf$$.sh
9390 echo "exit 0" >>conf$$.sh
9392 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9400 if test "$GCC" = yes; then
9401 # Check if gcc -print-prog-name=ld gives a path.
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9403 $as_echo_n "checking for ld used by GCC... " >&6; }
9406 # gcc leaves a trailing carriage return which upsets mingw
9407 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9409 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9412 # Accept absolute paths.
9413 [\\/]* |
[A-Za-z
]:[\\/]*)
9414 re_direlt
='/[^/][^/]*/\.\./'
9415 # Canonicalize the path of ld
9416 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9417 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9418 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9420 test -z "$LD" && LD
="$ac_prog"
9423 # If it fails, then pretend we aren't using GCC.
9427 # If it is relative, then search for the first ld in PATH.
9431 elif test "$with_gnu_ld" = yes; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9433 $as_echo_n "checking for GNU ld... " >&6; }
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9436 $as_echo_n "checking for non-GNU ld... " >&6; }
9438 if test "${acl_cv_path_LD+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9441 if test -z "$LD"; then
9442 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9443 for ac_dir
in $PATH; do
9444 test -z "$ac_dir" && ac_dir
=.
9445 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9446 acl_cv_path_LD
="$ac_dir/$ac_prog"
9447 # Check to see if the program is GNU ld. I'd rather use --version,
9448 # but apparently some GNU ld's only accept -v.
9449 # Break only if it was the GNU/non-GNU ld that we prefer.
9450 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9451 test "$with_gnu_ld" != no
&& break
9453 test "$with_gnu_ld" != yes && break
9459 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9463 LD
="$acl_cv_path_LD"
9464 if test -n "$LD"; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9466 $as_echo "$LD" >&6; }
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 $as_echo "no" >&6; }
9471 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9473 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9474 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9477 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9478 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9479 acl_cv_prog_gnu_ld
=yes
9481 acl_cv_prog_gnu_ld
=no
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9485 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9486 with_gnu_ld
=$acl_cv_prog_gnu_ld
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9491 $as_echo_n "checking for shared library run path origin... " >&6; }
9492 if test "${acl_cv_rpath+set}" = set; then :
9493 $as_echo_n "(cached) " >&6
9496 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9497 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9504 $as_echo "$acl_cv_rpath" >&6; }
9506 libext
="$acl_cv_libext"
9507 shlibext
="$acl_cv_shlibext"
9508 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9509 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9510 hardcode_direct
="$acl_cv_hardcode_direct"
9511 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9512 # Check whether --enable-rpath was given.
9513 if test "${enable_rpath+set}" = set; then :
9514 enableval
=$enable_rpath; :
9528 acl_save_prefix
="$prefix"
9529 prefix
="$acl_final_prefix"
9530 acl_save_exec_prefix
="$exec_prefix"
9531 exec_prefix
="$acl_final_exec_prefix"
9533 eval additional_includedir
=\"$includedir\"
9534 eval additional_libdir
=\"$libdir\"
9536 exec_prefix
="$acl_save_exec_prefix"
9537 prefix
="$acl_save_prefix"
9540 # Check whether --with-libiconv-prefix was given.
9541 if test "${with_libiconv_prefix+set}" = set; then :
9542 withval
=$with_libiconv_prefix;
9543 if test "X$withval" = "Xno"; then
9546 if test "X$withval" = "X"; then
9548 acl_save_prefix
="$prefix"
9549 prefix
="$acl_final_prefix"
9550 acl_save_exec_prefix
="$exec_prefix"
9551 exec_prefix
="$acl_final_exec_prefix"
9553 eval additional_includedir
=\"$includedir\"
9554 eval additional_libdir
=\"$libdir\"
9556 exec_prefix
="$acl_save_exec_prefix"
9557 prefix
="$acl_save_prefix"
9560 additional_includedir
="$withval/include"
9561 additional_libdir
="$withval/lib"
9572 names_already_handled
=
9573 names_next_round
='iconv '
9574 while test -n "$names_next_round"; do
9575 names_this_round
="$names_next_round"
9577 for name
in $names_this_round; do
9579 for n
in $names_already_handled; do
9580 if test "$n" = "$name"; then
9585 if test -z "$already_handled"; then
9586 names_already_handled
="$names_already_handled $name"
9587 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9588 eval value
=\"\
$HAVE_LIB$uppername\"
9589 if test -n "$value"; then
9590 if test "$value" = yes; then
9591 eval value
=\"\
$LIB$uppername\"
9592 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9593 eval value
=\"\
$LTLIB$uppername\"
9594 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9603 if test $use_additional = yes; then
9604 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9605 found_dir
="$additional_libdir"
9606 found_so
="$additional_libdir/lib$name.$shlibext"
9607 if test -f "$additional_libdir/lib$name.la"; then
9608 found_la
="$additional_libdir/lib$name.la"
9611 if test -f "$additional_libdir/lib$name.$libext"; then
9612 found_dir
="$additional_libdir"
9613 found_a
="$additional_libdir/lib$name.$libext"
9614 if test -f "$additional_libdir/lib$name.la"; then
9615 found_la
="$additional_libdir/lib$name.la"
9620 if test "X$found_dir" = "X"; then
9621 for x
in $LDFLAGS $LTLIBICONV; do
9623 acl_save_prefix
="$prefix"
9624 prefix
="$acl_final_prefix"
9625 acl_save_exec_prefix
="$exec_prefix"
9626 exec_prefix
="$acl_final_exec_prefix"
9628 exec_prefix
="$acl_save_exec_prefix"
9629 prefix
="$acl_save_prefix"
9633 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9634 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9636 found_so
="$dir/lib$name.$shlibext"
9637 if test -f "$dir/lib$name.la"; then
9638 found_la
="$dir/lib$name.la"
9641 if test -f "$dir/lib$name.$libext"; then
9643 found_a
="$dir/lib$name.$libext"
9644 if test -f "$dir/lib$name.la"; then
9645 found_la
="$dir/lib$name.la"
9651 if test "X$found_dir" != "X"; then
9656 if test "X$found_dir" != "X"; then
9657 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9658 if test "X$found_so" != "X"; then
9659 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9660 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9663 for x
in $ltrpathdirs; do
9664 if test "X$x" = "X$found_dir"; then
9669 if test -z "$haveit"; then
9670 ltrpathdirs
="$ltrpathdirs $found_dir"
9672 if test "$hardcode_direct" = yes; then
9673 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9675 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9676 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9678 for x
in $rpathdirs; do
9679 if test "X$x" = "X$found_dir"; then
9684 if test -z "$haveit"; then
9685 rpathdirs
="$rpathdirs $found_dir"
9689 for x
in $LDFLAGS $LIBICONV; do
9691 acl_save_prefix
="$prefix"
9692 prefix
="$acl_final_prefix"
9693 acl_save_exec_prefix
="$exec_prefix"
9694 exec_prefix
="$acl_final_exec_prefix"
9696 exec_prefix
="$acl_save_exec_prefix"
9697 prefix
="$acl_save_prefix"
9699 if test "X$x" = "X-L$found_dir"; then
9704 if test -z "$haveit"; then
9705 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9707 if test "$hardcode_minus_L" != no
; then
9708 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9710 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9716 if test "X$found_a" != "X"; then
9717 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9719 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9722 additional_includedir
=
9723 case "$found_dir" in
9725 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9726 additional_includedir
="$basedir/include"
9729 if test "X$additional_includedir" != "X"; then
9730 if test "X$additional_includedir" != "X/usr/include"; then
9732 if test "X$additional_includedir" = "X/usr/local/include"; then
9733 if test -n "$GCC"; then
9735 linux
*) haveit
=yes;;
9739 if test -z "$haveit"; then
9740 for x
in $CPPFLAGS $INCICONV; do
9742 acl_save_prefix
="$prefix"
9743 prefix
="$acl_final_prefix"
9744 acl_save_exec_prefix
="$exec_prefix"
9745 exec_prefix
="$acl_final_exec_prefix"
9747 exec_prefix
="$acl_save_exec_prefix"
9748 prefix
="$acl_save_prefix"
9750 if test "X$x" = "X-I$additional_includedir"; then
9755 if test -z "$haveit"; then
9756 if test -d "$additional_includedir"; then
9757 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9763 if test -n "$found_la"; then
9764 save_libdir
="$libdir"
9766 */* |
*\\*) .
"$found_la" ;;
9767 *) .
"./$found_la" ;;
9769 libdir
="$save_libdir"
9770 for dep
in $dependency_libs; do
9773 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9774 if test "X$additional_libdir" != "X/usr/lib"; then
9776 if test "X$additional_libdir" = "X/usr/local/lib"; then
9777 if test -n "$GCC"; then
9779 linux
*) haveit
=yes;;
9783 if test -z "$haveit"; then
9785 for x
in $LDFLAGS $LIBICONV; do
9787 acl_save_prefix
="$prefix"
9788 prefix
="$acl_final_prefix"
9789 acl_save_exec_prefix
="$exec_prefix"
9790 exec_prefix
="$acl_final_exec_prefix"
9792 exec_prefix
="$acl_save_exec_prefix"
9793 prefix
="$acl_save_prefix"
9795 if test "X$x" = "X-L$additional_libdir"; then
9800 if test -z "$haveit"; then
9801 if test -d "$additional_libdir"; then
9802 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9806 for x
in $LDFLAGS $LTLIBICONV; do
9808 acl_save_prefix
="$prefix"
9809 prefix
="$acl_final_prefix"
9810 acl_save_exec_prefix
="$exec_prefix"
9811 exec_prefix
="$acl_final_exec_prefix"
9813 exec_prefix
="$acl_save_exec_prefix"
9814 prefix
="$acl_save_prefix"
9816 if test "X$x" = "X-L$additional_libdir"; then
9821 if test -z "$haveit"; then
9822 if test -d "$additional_libdir"; then
9823 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9830 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9831 if test "$enable_rpath" != no
; then
9833 for x
in $rpathdirs; do
9834 if test "X$x" = "X$dir"; then
9839 if test -z "$haveit"; then
9840 rpathdirs
="$rpathdirs $dir"
9843 for x
in $ltrpathdirs; do
9844 if test "X$x" = "X$dir"; then
9849 if test -z "$haveit"; then
9850 ltrpathdirs
="$ltrpathdirs $dir"
9855 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9858 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9861 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9862 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9868 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9869 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9875 if test "X$rpathdirs" != "X"; then
9876 if test -n "$hardcode_libdir_separator"; then
9878 for found_dir
in $rpathdirs; do
9879 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9881 acl_save_libdir
="$libdir"
9883 eval flag
=\"$hardcode_libdir_flag_spec\"
9884 libdir
="$acl_save_libdir"
9885 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9887 for found_dir
in $rpathdirs; do
9888 acl_save_libdir
="$libdir"
9890 eval flag
=\"$hardcode_libdir_flag_spec\"
9891 libdir
="$acl_save_libdir"
9892 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9896 if test "X$ltrpathdirs" != "X"; then
9897 for found_dir
in $ltrpathdirs; do
9898 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9908 am_save_CPPFLAGS
="$CPPFLAGS"
9910 for element
in $INCICONV; do
9912 for x
in $CPPFLAGS; do
9914 acl_save_prefix
="$prefix"
9915 prefix
="$acl_final_prefix"
9916 acl_save_exec_prefix
="$exec_prefix"
9917 exec_prefix
="$acl_final_exec_prefix"
9919 exec_prefix
="$acl_save_exec_prefix"
9920 prefix
="$acl_save_prefix"
9922 if test "X$x" = "X$element"; then
9927 if test -z "$haveit"; then
9928 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9934 $as_echo_n "checking for iconv... " >&6; }
9935 if test "${am_cv_func_iconv+set}" = set; then :
9936 $as_echo_n "(cached) " >&6
9939 am_cv_func_iconv
="no, consider installing GNU libiconv"
9941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9948 iconv_t cd = iconv_open("","");
9949 iconv(cd,NULL,NULL,NULL,NULL);
9955 if ac_fn_c_try_link
"$LINENO"; then :
9956 am_cv_func_iconv
=yes
9958 rm -f core conftest.err conftest.
$ac_objext \
9959 conftest
$ac_exeext conftest.
$ac_ext
9960 if test "$am_cv_func_iconv" != yes; then
9961 am_save_LIBS
="$LIBS"
9962 LIBS
="$LIBS $LIBICONV"
9963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9970 iconv_t cd = iconv_open("","");
9971 iconv(cd,NULL,NULL,NULL,NULL);
9977 if ac_fn_c_try_link
"$LINENO"; then :
9979 am_cv_func_iconv
=yes
9981 rm -f core conftest.err conftest.
$ac_objext \
9982 conftest
$ac_exeext conftest.
$ac_ext
9983 LIBS
="$am_save_LIBS"
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9988 $as_echo "$am_cv_func_iconv" >&6; }
9989 if test "$am_cv_func_iconv" = yes; then
9991 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9994 if test "$am_cv_lib_iconv" = yes; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9996 $as_echo_n "checking how to link with libiconv... " >&6; }
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9998 $as_echo "$LIBICONV" >&6; }
10000 CPPFLAGS
="$am_save_CPPFLAGS"
10007 if test "$am_cv_func_iconv" = yes; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10009 $as_echo_n "checking for iconv declaration... " >&6; }
10010 if test "${am_cv_proto_iconv+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h. */
10017 #include <stdlib.h>
10023 #if defined(__STDC__) || defined(__cplusplus)
10024 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10037 if ac_fn_c_try_compile
"$LINENO"; then :
10038 am_cv_proto_iconv_arg1
=""
10040 am_cv_proto_iconv_arg1
="const"
10042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10043 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);"
10046 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10048 }$am_cv_proto_iconv" >&5
10050 }$am_cv_proto_iconv" >&6; }
10052 cat >>confdefs.h
<<_ACEOF
10053 #define ICONV_CONST $am_cv_proto_iconv_arg1
10058 # Until we have in-tree GNU iconv:
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10064 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10065 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070 #include <locale.h>
10079 if ac_fn_c_try_link
"$LINENO"; then :
10080 am_cv_val_LC_MESSAGES
=yes
10082 am_cv_val_LC_MESSAGES
=no
10084 rm -f core conftest.err conftest.
$ac_objext \
10085 conftest
$ac_exeext conftest.
$ac_ext
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10088 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10089 if test $am_cv_val_LC_MESSAGES = yes; then
10091 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10098 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10099 if test "${am_cv_langinfo_codeset+set}" = set; then :
10100 $as_echo_n "(cached) " >&6
10102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104 #include <langinfo.h>
10108 char* cs = nl_langinfo(CODESET);
10113 if ac_fn_c_try_link
"$LINENO"; then :
10114 am_cv_langinfo_codeset
=yes
10116 am_cv_langinfo_codeset
=no
10118 rm -f core conftest.err conftest.
$ac_objext \
10119 conftest
$ac_exeext conftest.
$ac_ext
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10123 $as_echo "$am_cv_langinfo_codeset" >&6; }
10124 if test $am_cv_langinfo_codeset = yes; then
10126 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10131 # We will need to find libiberty.h and ansidecl.h
10132 saved_CFLAGS
="$CFLAGS"
10133 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10134 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10135 strsignal strstr strverscmp \
10136 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10137 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
10139 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10141 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10142 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10143 $as_echo_n "(cached) " >&6
10145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10148 #define $ac_tr_decl 1
10150 #include "ansidecl.h"
10151 #include "system.h"
10157 char *(*pfn) = (char *(*)) $ac_func ;
10163 if ac_fn_c_try_compile
"$LINENO"; then :
10164 eval "gcc_cv_have_decl_$ac_func=yes"
10166 eval "gcc_cv_have_decl_$ac_func=no"
10168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10171 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10173 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10174 #define $ac_tr_decl 1
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10180 #define $ac_tr_decl 0
10188 for ac_func
in getrlimit setrlimit getrusage
10190 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10192 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10193 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10194 $as_echo_n "(cached) " >&6
10196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10199 #define $ac_tr_decl 1
10201 #include "ansidecl.h"
10202 #include "system.h"
10203 #ifdef HAVE_SYS_RESOURCE_H
10204 #include <sys/resource.h>
10212 char *(*pfn) = (char *(*)) $ac_func ;
10218 if ac_fn_c_try_compile
"$LINENO"; then :
10219 eval "gcc_cv_have_decl_$ac_func=yes"
10221 eval "gcc_cv_have_decl_$ac_func=no"
10223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10226 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10228 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10229 #define $ac_tr_decl 1
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10235 #define $ac_tr_decl 0
10243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10246 #include "ansidecl.h"
10247 #include "system.h"
10248 #ifdef HAVE_SYS_RESOURCE_H
10249 #include <sys/resource.h>
10260 if ac_fn_c_try_compile
"$LINENO"; then :
10264 $as_echo "#define rlim_t long" >>confdefs.h
10267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10269 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10270 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10271 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10272 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10273 for ac_func
in ldgetname
10275 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10277 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10278 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10279 $as_echo_n "(cached) " >&6
10281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10284 #define $ac_tr_decl 1
10286 #include "ansidecl.h"
10287 #include "system.h"
10288 #ifdef HAVE_LDFCN_H
10299 char *(*pfn) = (char *(*)) $ac_func ;
10305 if ac_fn_c_try_compile
"$LINENO"; then :
10306 eval "gcc_cv_have_decl_$ac_func=yes"
10308 eval "gcc_cv_have_decl_$ac_func=no"
10310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10313 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10315 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10316 #define $ac_tr_decl 1
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10322 #define $ac_tr_decl 0
10330 for ac_func
in times
10332 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10334 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10335 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10336 $as_echo_n "(cached) " >&6
10338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10341 #define $ac_tr_decl 1
10343 #include "ansidecl.h"
10344 #include "system.h"
10345 #ifdef HAVE_SYS_TIMES_H
10346 #include <sys/times.h>
10354 char *(*pfn) = (char *(*)) $ac_func ;
10360 if ac_fn_c_try_compile
"$LINENO"; then :
10361 eval "gcc_cv_have_decl_$ac_func=yes"
10363 eval "gcc_cv_have_decl_$ac_func=no"
10365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10368 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10370 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10371 #define $ac_tr_decl 1
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10377 #define $ac_tr_decl 0
10385 for ac_func
in sigaltstack
10387 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10389 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10390 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10391 $as_echo_n "(cached) " >&6
10393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10396 #define $ac_tr_decl 1
10398 #include "ansidecl.h"
10399 #include "system.h"
10400 #include <signal.h>
10407 char *(*pfn) = (char *(*)) $ac_func ;
10413 if ac_fn_c_try_compile
"$LINENO"; then :
10414 eval "gcc_cv_have_decl_$ac_func=yes"
10416 eval "gcc_cv_have_decl_$ac_func=no"
10418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10421 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10423 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10424 #define $ac_tr_decl 1
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10430 #define $ac_tr_decl 0
10438 # More time-related stuff.
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10440 $as_echo_n "checking for struct tms... " >&6; }
10441 if test "${ac_cv_struct_tms+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
10445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10448 #include "ansidecl.h"
10449 #include "system.h"
10450 #ifdef HAVE_SYS_TIMES_H
10451 #include <sys/times.h>
10462 if ac_fn_c_try_compile
"$LINENO"; then :
10463 ac_cv_struct_tms
=yes
10465 ac_cv_struct_tms
=no
10467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10470 $as_echo "$ac_cv_struct_tms" >&6; }
10471 if test $ac_cv_struct_tms = yes; then
10473 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10477 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10478 # revisit after autoconf 2.50.
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10480 $as_echo_n "checking for clock_t... " >&6; }
10481 if test "${gcc_cv_type_clock_t+set}" = set; then :
10482 $as_echo_n "(cached) " >&6
10485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10488 #include "ansidecl.h"
10489 #include "system.h"
10499 if ac_fn_c_try_compile
"$LINENO"; then :
10500 gcc_cv_type_clock_t
=yes
10502 gcc_cv_type_clock_t
=no
10504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10507 $as_echo "$gcc_cv_type_clock_t" >&6; }
10508 if test $gcc_cv_type_clock_t = yes; then
10510 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10514 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10515 CFLAGS
="$saved_CFLAGS"
10517 # Check whether --enable-initfini-array was given.
10518 if test "${enable_initfini_array+set}" = set; then :
10519 enableval
=$enable_initfini_array;
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10523 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10524 if test "${gcc_cv_initfini_array+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10527 if test "$cross_compiling" = yes; then :
10528 gcc_cv_initfini_array
=no
10530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10534 int main (void) { return x; }
10535 int foo (void) { x = 0; }
10536 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10538 if ac_fn_c_try_run
"$LINENO"; then :
10539 gcc_cv_initfini_array
=yes
10541 gcc_cv_initfini_array
=no
10543 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10544 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10549 $as_echo "$gcc_cv_initfini_array" >&6; }
10550 enable_initfini_array
=$gcc_cv_initfini_array
10554 if test $enable_initfini_array = yes; then
10556 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10560 # mkdir takes a single argument on some systems.
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10562 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10563 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
10566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10569 #include <sys/types.h>
10570 #ifdef HAVE_SYS_STAT_H
10571 # include <sys/stat.h>
10573 #ifdef HAVE_UNISTD_H
10574 # include <unistd.h>
10576 #ifdef HAVE_DIRECT_H
10577 # include <direct.h>
10587 if ac_fn_c_try_compile
"$LINENO"; then :
10588 gcc_cv_mkdir_takes_one_arg
=no
10590 gcc_cv_mkdir_takes_one_arg
=yes
10592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10595 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10596 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10598 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10609 # With Setjmp/Longjmp based exception handling.
10610 # Check whether --enable-sjlj-exceptions was given.
10611 if test "${enable_sjlj_exceptions+set}" = set; then :
10612 enableval
=$enable_sjlj_exceptions; case $target in
10614 if test $enableval != yes; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10616 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10621 force_sjlj_exceptions
=yes
10625 force_sjlj_exceptions
=yes
10629 force_sjlj_exceptions
=no
10634 if test $force_sjlj_exceptions = yes; then
10635 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10637 cat >>confdefs.h
<<_ACEOF
10638 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10643 # For platforms with the unwind ABI which includes an unwind library,
10644 # libunwind, we can choose to use the system libunwind.
10645 # config.gcc also contains tests of with_system_libunwind.
10648 # Check whether --with-system-libunwind was given.
10649 if test "${with_system_libunwind+set}" = set; then :
10650 withval
=$with_system_libunwind;
10653 # If system-libunwind was not specifically set, pick a default setting.
10654 if test x
$with_system_libunwind = x
; then
10656 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10657 *) with_system_libunwind
=no
;;
10660 # Based on system-libunwind and target, do we have ipinfo?
10661 if test x
$with_system_libunwind = xyes
; then
10663 ia64-
*-*) have_unwind_getipinfo
=no
;;
10664 *) have_unwind_getipinfo
=yes ;;
10667 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10670 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10671 *) have_unwind_getipinfo
=yes ;;
10676 if test x
$have_unwind_getipinfo = xyes
; then
10678 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10683 # --------------------------------------------------------
10684 # Build, host, and target specific configuration fragments
10685 # --------------------------------------------------------
10687 # Collect build-machine-specific information.
10688 .
${srcdir}/config.build
10690 # Collect host-machine-specific information.
10691 .
${srcdir}/config.
host
10695 # Collect target-machine-specific information.
10696 .
${srcdir}/config.gcc
10698 extra_objs
="${host_extra_objs} ${extra_objs}"
10699 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10701 # Default the target-machine variables that were not explicitly set.
10702 if test x
"$tm_file" = x
10703 then tm_file
=$cpu_type/$cpu_type.h
; fi
10705 if test x
"$extra_headers" = x
10706 then extra_headers
=; fi
10708 if test x
$md_file = x
10709 then md_file
=$cpu_type/$cpu_type.md
; fi
10711 if test x
$out_file = x
10712 then out_file
=$cpu_type/$cpu_type.c
; fi
10714 if test x
"$tmake_file" = x
10715 then tmake_file
=$cpu_type/t-
$cpu_type
10718 if test x
"$dwarf2" = xyes
10719 then tm_file
="$tm_file tm-dwarf2.h"
10722 # Say what files are being used for the output code and MD file.
10723 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10724 echo "Using \`$srcdir/config/$md_file' as machine description file."
10726 # If any of the xm_file variables contain nonexistent files, warn
10727 # about them and drop them.
10730 for x
in $build_xm_file; do
10731 if test -f $srcdir/config
/$x
10733 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10734 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10737 build_xm_file
="$bx"
10740 for x
in $host_xm_file; do
10741 if test -f $srcdir/config
/$x
10743 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10744 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10750 for x
in $xm_file; do
10751 if test -f $srcdir/config
/$x
10753 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10754 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10760 for f
in $tm_file; do
10763 if test $count = ax
; then
10764 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10766 echo "Using the following target machine macro files:"
10767 for f
in $tm_file; do
10768 echo " $srcdir/config/$f"
10772 if test x
$need_64bit_hwint = xyes
; then
10774 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10778 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10780 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10785 for f
in $host_xm_file; do
10788 if test $count = a
; then
10790 elif test $count = ax
; then
10791 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10793 echo "Using the following host machine macro files:"
10794 for f
in $host_xm_file; do
10795 echo " $srcdir/config/$f"
10798 echo "Using ${out_host_hook_obj} for host machine hooks."
10800 if test "$host_xm_file" != "$build_xm_file"; then
10802 for f
in $build_xm_file; do
10805 if test $count = a
; then
10807 elif test $count = ax
; then
10808 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10810 echo "Using the following build machine macro files:"
10811 for f
in $build_xm_file; do
10812 echo " $srcdir/config/$f"
10818 powerpc
*-*-darwin*)
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10820 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10821 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10822 $as_echo_n "(cached) " >&6
10824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 #include <sys/cdefs.h>
10828 #include <sys/signal.h>
10829 #include <ucontext.h>
10830 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10833 if ac_fn_c_try_compile
"$LINENO"; then :
10834 gcc_cv_mcontext_underscores
=no
10836 gcc_cv_mcontext_underscores
=yes
10838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10841 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10842 if test $gcc_cv_mcontext_underscores = yes; then
10844 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10854 # Check if a valid thread package
10855 case ${enable_threads} in
10858 target_thread_file
='single'
10862 target_thread_file
='single'
10864 aix | dce | lynx | mipssde | nks | posix | posix95 | rtems | \
10865 single | tpf | vxworks | win32
)
10866 target_thread_file
=${enable_threads}
10869 echo "${enable_threads} is an unknown thread package" 1>&2
10874 if test x
${thread_file} = x
; then
10875 # No thread file set by target-specific clauses in config.gcc,
10876 # so use file chosen by default logic above
10877 thread_file
=${target_thread_file}
10880 # Make gthr-default.h if we have a thread file.
10882 if test $thread_file != single
; then
10883 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10884 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10885 rm -f gthr-default.h-t
10887 mv -f gthr-default.h-t gthr-default.h
10889 gthread_flags
=-DHAVE_GTHR_DEFAULT
10898 if test x
$enable___cxa_atexit = xyes || \
10899 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10900 if test x
$host = x
$target; then
10902 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10903 # keyed to flag_use_cxa_atexit
10908 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10909 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10912 echo "__cxa_atexit can't be enabled on this target"
10918 # We can't check for __cxa_atexit when building a cross, so assume
10922 if test x
$use_cxa_atexit = xyes
; then
10924 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10929 # Look for a file containing extra machine modes.
10930 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10931 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10934 cat >>confdefs.h
<<_ACEOF
10935 #define EXTRA_MODES_FILE "config/$extra_modes"
10940 # Convert extra_options into a form suitable for Makefile use.
10943 for f
in $extra_options; do
10944 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10945 all_opt_files
="$all_opt_files $srcdir/config/$f"
10949 # auto-host.h is the file containing items generated by autoconf and is
10950 # the first file included by config.h.
10951 # If host=build, it is correct to have bconfig include auto-host.h
10952 # as well. If host!=build, we are in error and need to do more
10953 # work to find out the build config parameters.
10954 if test x
$host = x
$build
10956 build_auto
=auto-host.h
10958 # We create a subdir, then run autoconf in the subdir.
10959 # To prevent recursion we set host and build for the new
10960 # invocation of configure to the build for this invocation
10967 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10968 *) realsrcdir
=..
/${srcdir};;
10970 saved_CFLAGS
="${CFLAGS}"
10971 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10972 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10973 ${realsrcdir}/configure \
10974 --enable-languages=${enable_languages-all} \
10975 --target=$target_alias --host=$build_alias --build=$build_alias
10976 CFLAGS
="${saved_CFLAGS}"
10978 # We just finished tests for the build machine, so rename
10979 # the file auto-build.h in the gcc directory.
10980 mv auto-host.h ..
/auto-build.h
10983 build_auto
=auto-build.h
10987 tm_file
="${tm_file} defaults.h"
10988 tm_p_file
="${tm_p_file} tm-preds.h"
10989 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10990 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10991 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10992 # put this back in temporarily.
10993 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10999 # Compile in configure arguments.
11000 if test -f configargs.h
; then
11001 # Being re-configured.
11002 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11003 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11005 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11008 # Double all backslashes and backslash all quotes to turn
11009 # gcc_config_arguments into a C string.
11010 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11011 $gcc_config_arguments
11013 gcc_config_arguments_str
=`cat conftest.out`
11016 cat > configargs.h
<<EOF
11017 /* Generated automatically. */
11018 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11019 static const char thread_model[] = "$thread_file";
11021 static const struct {
11022 const char *name, *value;
11023 } configure_default_options[] = $configure_default_options;
11026 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11027 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11028 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11029 if test -f $srcdir/REVISION
; then
11030 gcc_REVISION
=`cat $srcdir/REVISION`
11034 cat > plugin-version.h
<<EOF
11035 #include "configargs.h"
11037 static char basever[] = "$gcc_BASEVER";
11038 static char datestamp[] = "$gcc_DATESTAMP";
11039 static char devphase[] = "$gcc_DEVPHASE";
11040 static char revision[] = "$gcc_REVISION";
11042 /* FIXME plugins: We should make the version information more precise.
11043 One way to do is to add a checksum. */
11045 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11046 devphase, revision,
11047 configuration_arguments};
11050 # Internationalization
11051 # If we haven't got the data from the intl directory,
11052 # assume NLS is disabled.
11061 if test -f ..
/intl
/config.intl
; then
11062 . ..
/intl
/config.intl
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11065 $as_echo_n "checking whether NLS is requested... " >&6; }
11066 if test x
"$USE_NLS" != xyes
; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; }
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11071 $as_echo "yes" >&6; }
11073 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11077 $as_echo_n "checking for catalogs to be installed... " >&6; }
11078 # Look for .po and .gmo files in the source directory.
11081 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11082 # If there aren't any .gmo files the shell will give us the
11083 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11085 case "$cat" in *\
**)
11088 # The quadruple backslash is collapsed to a double backslash
11089 # by the backticks, then collapsed again by the double quotes,
11090 # leaving us with one backslash in the sed expression (right
11091 # before the dot that mustn't act as a wildcard).
11092 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11093 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11094 # The user is allowed to set LINGUAS to a list of languages to
11095 # install catalogs for. If it's empty that means "all of them."
11096 if test "x$LINGUAS" = x
; then
11097 CATALOGS
="$CATALOGS $cat"
11098 XLINGUAS
="$XLINGUAS $lang"
11100 case "$LINGUAS" in *$lang*)
11101 CATALOGS
="$CATALOGS $cat"
11102 XLINGUAS
="$XLINGUAS $lang"
11107 LINGUAS
="$XLINGUAS"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11109 $as_echo "$LINGUAS" >&6; }
11122 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11123 # -liconv on the link line twice.
11124 case "$LIBINTL" in *$LIBICONV*)
11128 # Check whether --enable-secureplt was given.
11129 if test "${enable_secureplt+set}" = set; then :
11130 enableval
=$enable_secureplt;
11134 # Check whether --enable-leading-mingw64-underscores was given.
11135 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11136 enableval
=$enable_leading_mingw64_underscores;
11139 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11141 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11145 # Check whether --enable-cld was given.
11146 if test "${enable_cld+set}" = set; then :
11147 enableval
=$enable_cld;
11153 # Check whether --enable-frame-pointer was given.
11154 if test "${enable_frame_pointer+set}" = set; then :
11155 enableval
=$enable_frame_pointer;
11159 linux
* | darwin
[8912]*)
11160 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11162 enable_frame_pointer
=no
11165 enable_frame_pointer
=yes
11172 # Windows32 Registry support for specifying GCC installation paths.
11173 # Check whether --enable-win32-registry was given.
11174 if test "${enable_win32_registry+set}" = set; then :
11175 enableval
=$enable_win32_registry;
11180 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11181 if test "x$enable_win32_registry" != xno
; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11183 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11184 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11187 ac_func_search_save_LIBS
=$LIBS
11188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11197 char RegOpenKeyExA ();
11201 return RegOpenKeyExA ();
11206 for ac_lib
in '' advapi32
; do
11207 if test -z "$ac_lib"; then
11208 ac_res
="none required"
11211 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11213 if ac_fn_c_try_link
"$LINENO"; then :
11214 ac_cv_search_RegOpenKeyExA
=$ac_res
11216 rm -f core conftest.err conftest.
$ac_objext \
11218 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11222 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11225 ac_cv_search_RegOpenKeyExA
=no
11227 rm conftest.
$ac_ext
11228 LIBS
=$ac_func_search_save_LIBS
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11231 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11232 ac_res
=$ac_cv_search_RegOpenKeyExA
11233 if test "$ac_res" != no
; then :
11234 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11237 enable_win32_registry
=no
11242 if test "x$enable_win32_registry" != xno
; then
11244 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11247 if test "x$enable_win32_registry" != xyes \
11248 && test "x$enable_win32_registry" != x
; then
11250 cat >>confdefs.h
<<_ACEOF
11251 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11259 # Get an absolute path to the GCC top-level source directory
11260 holddir
=`${PWDCMD-pwd}`
11262 topdir
=`${PWDCMD-pwd}`
11265 # Conditionalize the makefile for this host machine.
11267 for f
in ${host_xmake_file}
11269 if test -f ${srcdir}/config
/$f
11271 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11275 # Conditionalize the makefile for this target machine.
11277 for f
in ${tmake_file}
11279 if test -f ${srcdir}/config
/$f
11281 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11284 tmake_file
="${tmake_file_}"
11286 out_object_file
=`basename $out_file .c`.o
11288 tm_file_list
="options.h"
11289 tm_include_list
="options.h insn-constants.h"
11290 for f
in $tm_file; do
11293 f
=`echo $f | sed 's/^..//'`
11294 tm_file_list
="${tm_file_list} $f"
11295 tm_include_list
="${tm_include_list} $f"
11298 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11299 tm_include_list
="${tm_include_list} $f"
11302 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11303 tm_include_list
="${tm_include_list} config/$f"
11308 libgcc_tm_file_list
=
11309 libgcc_tm_include_list
=
11310 for f
in $libgcc_tm_file; do
11311 libgcc_tm_file_list
="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11312 libgcc_tm_include_list
="${libgcc_tm_include_list} ../libgcc/config/$f"
11317 for f
in $tm_p_file; do
11320 tm_p_file_list
="${tm_p_file_list} $f"
11321 tm_p_include_list
="${tm_p_include_list} $f"
11324 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11325 tm_p_include_list
="${tm_p_include_list} config/$f"
11331 for f
in $xm_file; do
11334 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11335 xm_include_list
="${xm_include_list} $f"
11338 xm_file_list
="${xm_file_list} $f"
11339 xm_include_list
="${xm_include_list} $f"
11342 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11343 xm_include_list
="${xm_include_list} config/$f"
11349 host_xm_include_list
=
11350 for f
in $host_xm_file; do
11353 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11354 host_xm_include_list
="${host_xm_include_list} $f"
11357 host_xm_file_list
="${host_xm_file_list} $f"
11358 host_xm_include_list
="${host_xm_include_list} $f"
11361 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11362 host_xm_include_list
="${host_xm_include_list} config/$f"
11367 build_xm_file_list
=
11368 for f
in $build_xm_file; do
11371 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11372 build_xm_include_list
="${build_xm_include_list} $f"
11374 auto-build.h | auto-host.h
)
11375 build_xm_file_list
="${build_xm_file_list} $f"
11376 build_xm_include_list
="${build_xm_include_list} $f"
11379 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11380 build_xm_include_list
="${build_xm_include_list} config/$f"
11385 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11386 # cross-compiler which does not use the native headers and libraries.
11387 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11390 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11392 if test "x$with_build_sysroot" != x
; then
11393 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11395 # This value is used, even on a native system, because
11396 # CROSS_SYSTEM_HEADER_DIR is just
11397 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11398 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11401 if test x
$host != x
$target
11403 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11405 SYSTEM_HEADER_DIR
=$build_system_header_dir
11406 case "$host","$target" in
11407 # Darwin crosses can use the host system's libraries and headers,
11408 # because of the fat library support. Of course, it must be the
11409 # same version of Darwin on both sides. Allow the user to
11410 # just say --target=foo-darwin without a version number to mean
11411 # "the version on this system".
11412 *-*-darwin*,*-*-darwin*)
11413 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11414 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11415 if test $hostos = $targetos -o $targetos = darwin
; then
11417 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11422 i?
86-*-*,x86_64-
*-* \
11423 | powerpc
*-*-*,powerpc64
*-*-*)
11424 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11429 if test "x$with_headers" = x
; then
11436 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11437 SYSTEM_HEADER_DIR
=$build_system_header_dir
11440 # If this is a cross-compiler that does not
11441 # have its own set of headers then define
11444 # If this is using newlib, without having the headers available now,
11445 # then define inhibit_libc in LIBGCC2_CFLAGS.
11446 # This prevents libgcc2 from containing any code which requires libc
11448 : ${inhibit_libc=false}
11449 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11450 test x
$with_newlib = xyes
; } &&
11451 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11456 # When building gcc with a cross-compiler, we need to adjust things so
11457 # that the generator programs are still built with the native compiler.
11458 # Also, we cannot run fixincludes.
11460 # These are the normal (build=host) settings:
11461 CC_FOR_BUILD
='$(CC)'
11462 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11463 BUILD_LDFLAGS
='$(LDFLAGS)'
11464 STMP_FIXINC
=stmp-fixinc
11466 # And these apply if build != host, or we are generating coverage data
11467 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11469 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11470 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11473 # Expand extra_headers to include complete path.
11474 # This substitutes for lots of t-* files.
11475 extra_headers_list
=
11476 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11477 for file in ${extra_headers} ; do
11478 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11481 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11482 if test x
"$use_gcc_tgmath" = xyes
11483 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11486 # Define collect2 in Makefile.
11487 case $host_can_use_collect2 in
11489 *) collect2
='collect2$(exeext)' ;;
11493 # Add a definition of USE_COLLECT2 if system wants one.
11494 case $use_collect2 in
11495 no
) use_collect2
= ;;
11498 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11499 xm_defines
="${xm_defines} USE_COLLECT2"
11500 case $host_can_use_collect2 in
11502 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11509 cat >>confdefs.h
<<_ACEOF
11510 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11514 # ---------------------------
11515 # Assembler & linker features
11516 # ---------------------------
11518 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11519 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11520 # However when ld-new is first executed from the build tree, libtool will
11521 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11522 # to the build tree. While doing this we need to use the previous-stage
11523 # linker, or we have an infinite loop. The presence of a shell script as
11524 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11525 # the gcc/collect-ld script. So we need to know how libtool works, or
11526 # exec-tool will fail.
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11532 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11537 macro_version
='2.2.7a'
11538 macro_revision
='1.3134'
11552 ltmain
="$ac_aux_dir/ltmain.sh"
11554 # Backslashify metacharacters that are still active within
11555 # double-quoted strings.
11556 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11558 # Same as above, but do not quote variable references.
11559 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11561 # Sed substitution to delay expansion of an escaped shell variable in a
11562 # double_quote_subst'ed string.
11563 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11565 # Sed substitution to delay expansion of an escaped single quote.
11566 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11568 # Sed substitution to avoid accidental globbing in evaled expressions
11569 no_glob_subst
='s/\*/\\\*/g'
11571 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11572 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11573 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11576 $as_echo_n "checking how to print strings... " >&6; }
11577 # Test print first, because it will be a builtin if present.
11578 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11579 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11581 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11584 # Use this function as a fallback that always works.
11585 func_fallback_echo ()
11587 eval 'cat <<_LTECHO_EOF
11591 ECHO='func_fallback_echo
'
11594 # func_echo_all arg...
11595 # Invoke $ECHO with all args, space-separated.
11602 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11603 $as_echo "printf" >&6; } ;;
11604 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11605 $as_echo "print -r" >&6; } ;;
11606 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11607 $as_echo "cat" >&6; } ;;
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11624 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11625 if test "${ac_cv_path_SED+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11629 for ac_i in 1 2 3 4 5 6 7; do
11630 ac_script="$ac_script$as_nl$ac_script"
11632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11633 { ac_script=; unset ac_script;}
11634 if test -z "$SED"; then
11635 ac_path_SED_found=false
11636 # Loop through the user's path and
test for each of PROGNAME-LIST
11637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11638 for as_dir
in $PATH
11641 test -z "$as_dir" && as_dir
=.
11642 for ac_prog
in sed gsed
; do
11643 for ac_exec_ext
in '' $ac_executable_extensions; do
11644 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11645 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11646 # Check for GNU ac_path_SED and select it if it is found.
11647 # Check for GNU $ac_path_SED
11648 case `"$ac_path_SED" --version 2>&1` in
11650 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11653 $as_echo_n 0123456789 >"conftest.in"
11656 cat "conftest.in" "conftest.in" >"conftest.tmp"
11657 mv "conftest.tmp" "conftest.in"
11658 cp "conftest.in" "conftest.nl"
11659 $as_echo '' >> "conftest.nl"
11660 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11661 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11662 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11663 if test $ac_count -gt ${ac_path_SED_max-0}; then
11664 # Best one so far, save it but keep looking for a better one
11665 ac_cv_path_SED
="$ac_path_SED"
11666 ac_path_SED_max
=$ac_count
11668 # 10*(2^10) chars as input seems more than enough
11669 test $ac_count -gt 10 && break
11671 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11674 $ac_path_SED_found && break 3
11679 if test -z "$ac_cv_path_SED"; then
11680 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11683 ac_cv_path_SED
=$SED
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11688 $as_echo "$ac_cv_path_SED" >&6; }
11689 SED
="$ac_cv_path_SED"
11692 test -z "$SED" && SED
=sed
11693 Xsed
="$SED -e 1s/^X//"
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11706 $as_echo_n "checking for fgrep... " >&6; }
11707 if test "${ac_cv_path_FGREP+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11710 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11711 then ac_cv_path_FGREP
="$GREP -F"
11713 if test -z "$FGREP"; then
11714 ac_path_FGREP_found
=false
11715 # Loop through the user's path and test for each of PROGNAME-LIST
11716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11717 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11720 test -z "$as_dir" && as_dir
=.
11721 for ac_prog
in fgrep
; do
11722 for ac_exec_ext
in '' $ac_executable_extensions; do
11723 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11724 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11725 # Check for GNU ac_path_FGREP and select it if it is found.
11726 # Check for GNU $ac_path_FGREP
11727 case `"$ac_path_FGREP" --version 2>&1` in
11729 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11732 $as_echo_n 0123456789 >"conftest.in"
11735 cat "conftest.in" "conftest.in" >"conftest.tmp"
11736 mv "conftest.tmp" "conftest.in"
11737 cp "conftest.in" "conftest.nl"
11738 $as_echo 'FGREP' >> "conftest.nl"
11739 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11740 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11741 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11742 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11743 # Best one so far, save it but keep looking for a better one
11744 ac_cv_path_FGREP
="$ac_path_FGREP"
11745 ac_path_FGREP_max
=$ac_count
11747 # 10*(2^10) chars as input seems more than enough
11748 test $ac_count -gt 10 && break
11750 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11753 $ac_path_FGREP_found && break 3
11758 if test -z "$ac_cv_path_FGREP"; then
11759 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11762 ac_cv_path_FGREP
=$FGREP
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11768 $as_echo "$ac_cv_path_FGREP" >&6; }
11769 FGREP
="$ac_cv_path_FGREP"
11772 test -z "$GREP" && GREP
=grep
11792 # Check whether --with-gnu-ld was given.
11793 if test "${with_gnu_ld+set}" = set; then :
11794 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11800 if test "$GCC" = yes; then
11801 # Check if gcc -print-prog-name=ld gives a path.
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11803 $as_echo_n "checking for ld used by $CC... " >&6; }
11806 # gcc leaves a trailing carriage return which upsets mingw
11807 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11809 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11812 # Accept absolute paths.
11814 re_direlt
='/[^/][^/]*/\.\./'
11815 # Canonicalize the pathname of ld
11816 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11817 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11818 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11820 test -z "$LD" && LD
="$ac_prog"
11823 # If it fails, then pretend we aren't using GCC.
11827 # If it is relative, then search for the first ld in PATH.
11828 with_gnu_ld
=unknown
11831 elif test "$with_gnu_ld" = yes; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11833 $as_echo_n "checking for GNU ld... " >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11836 $as_echo_n "checking for non-GNU ld... " >&6; }
11838 if test "${lt_cv_path_LD+set}" = set; then :
11839 $as_echo_n "(cached) " >&6
11841 if test -z "$LD"; then
11842 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11843 for ac_dir
in $PATH; do
11845 test -z "$ac_dir" && ac_dir
=.
11846 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11847 lt_cv_path_LD
="$ac_dir/$ac_prog"
11848 # Check to see if the program is GNU ld. I'd rather use --version,
11849 # but apparently some variants of GNU ld only accept -v.
11850 # Break only if it was the GNU/non-GNU ld that we prefer.
11851 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11852 *GNU
* |
*'with BFD'*)
11853 test "$with_gnu_ld" != no
&& break
11856 test "$with_gnu_ld" != yes && break
11863 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11867 LD
="$lt_cv_path_LD"
11868 if test -n "$LD"; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11870 $as_echo "$LD" >&6; }
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11875 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11877 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11878 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
11881 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11882 case `$LD -v 2>&1 </dev/null` in
11883 *GNU
* |
*'with BFD'*)
11884 lt_cv_prog_gnu_ld
=yes
11887 lt_cv_prog_gnu_ld
=no
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11892 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11893 with_gnu_ld
=$lt_cv_prog_gnu_ld
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11904 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11905 if test "${lt_cv_path_NM+set}" = set; then :
11906 $as_echo_n "(cached) " >&6
11908 if test -n "$NM"; then
11909 # Let the user override the test.
11910 lt_cv_path_NM
="$NM"
11912 lt_nm_to_check
="${ac_tool_prefix}nm"
11913 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11914 lt_nm_to_check
="$lt_nm_to_check nm"
11916 for lt_tmp_nm
in $lt_nm_to_check; do
11917 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11918 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
11920 test -z "$ac_dir" && ac_dir
=.
11921 tmp_nm
="$ac_dir/$lt_tmp_nm"
11922 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
11923 # Check to see if the nm accepts a BSD-compat flag.
11924 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11925 # nm: unknown option "B" ignored
11926 # Tru64's nm complains that /dev/null is an invalid object file
11927 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11928 */dev
/null
* |
*'Invalid file or object type'*)
11929 lt_cv_path_NM
="$tmp_nm -B"
11933 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11935 lt_cv_path_NM
="$tmp_nm -p"
11939 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11940 continue # so that we can try to find one that supports BSD flags
11949 : ${lt_cv_path_NM=no}
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11953 $as_echo "$lt_cv_path_NM" >&6; }
11954 if test "$lt_cv_path_NM" != "no"; then
11955 NM
="$lt_cv_path_NM"
11957 # Didn't find any BSD compatible name lister, look for dumpbin.
11958 if test -n "$DUMPBIN"; then :
11959 # Let the user override the test.
11961 if test -n "$ac_tool_prefix"; then
11962 for ac_prog
in dumpbin
"link -dump"
11964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11965 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11971 if test -n "$DUMPBIN"; then
11972 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
11974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11975 for as_dir
in $PATH
11978 test -z "$as_dir" && as_dir
=.
11979 for ac_exec_ext
in '' $ac_executable_extensions; do
11980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11981 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
11982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 DUMPBIN
=$ac_cv_prog_DUMPBIN
11992 if test -n "$DUMPBIN"; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11994 $as_echo "$DUMPBIN" >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
12001 test -n "$DUMPBIN" && break
12004 if test -z "$DUMPBIN"; then
12005 ac_ct_DUMPBIN
=$DUMPBIN
12006 for ac_prog
in dumpbin
"link -dump"
12008 # Extract the first word of "$ac_prog", so it can be a program name with args.
12009 set dummy
$ac_prog; ac_word
=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
12015 if test -n "$ac_ct_DUMPBIN"; then
12016 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12019 for as_dir
in $PATH
12022 test -z "$as_dir" && as_dir
=.
12023 for ac_exec_ext
in '' $ac_executable_extensions; do
12024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12025 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12036 if test -n "$ac_ct_DUMPBIN"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12038 $as_echo "$ac_ct_DUMPBIN" >&6; }
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12045 test -n "$ac_ct_DUMPBIN" && break
12048 if test "x$ac_ct_DUMPBIN" = x
; then
12051 case $cross_compiling:$ac_tool_warned in
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12055 ac_tool_warned
=yes ;;
12057 DUMPBIN
=$ac_ct_DUMPBIN
12061 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12063 DUMPBIN
="$DUMPBIN -symbols"
12071 if test "$DUMPBIN" != ":"; then
12075 test -z "$NM" && NM
=nm
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12083 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12084 if test "${lt_cv_nm_interface+set}" = set; then :
12085 $as_echo_n "(cached) " >&6
12087 lt_cv_nm_interface
="BSD nm"
12088 echo "int some_variable = 0;" > conftest.
$ac_ext
12089 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12090 (eval "$ac_compile" 2>conftest.err
)
12091 cat conftest.err
>&5
12092 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12093 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12094 cat conftest.err
>&5
12095 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12096 cat conftest.out
>&5
12097 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12098 lt_cv_nm_interface
="MS dumpbin"
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12103 $as_echo "$lt_cv_nm_interface" >&6; }
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12106 $as_echo_n "checking whether ln -s works... " >&6; }
12108 if test "$LN_S" = "ln -s"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12110 $as_echo "yes" >&6; }
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12113 $as_echo "no, using $LN_S" >&6; }
12116 # find the maximum length of command line arguments
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12118 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12119 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12120 $as_echo_n "(cached) " >&6
12127 # On DJGPP, this test can blow up pretty badly due to problems in libc
12128 # (any single argument exceeding 2000 bytes causes a buffer overrun
12129 # during glob expansion). Even if it were fixed, the result of this
12130 # check would be larger than it should be.
12131 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12135 # Under GNU Hurd, this test is not required because there is
12136 # no limit to the length of command line arguments.
12137 # Libtool will interpret -1 as no limit whatsoever
12138 lt_cv_sys_max_cmd_len
=-1;
12141 cygwin
* | mingw
* | cegcc
*)
12142 # On Win9x/ME, this test blows up -- it succeeds, but takes
12143 # about 5 minutes as the teststring grows exponentially.
12144 # Worse, since 9x/ME are not pre-emptively multitasking,
12145 # you end up with a "frozen" computer, even though with patience
12146 # the test eventually succeeds (with a max line length of 256k).
12147 # Instead, let's just punt: use the minimum linelength reported by
12148 # all of the supported platforms: 8192 (on NT/2K/XP).
12149 lt_cv_sys_max_cmd_len
=8192;
12153 # On MiNT this can take a long time and run out of memory.
12154 lt_cv_sys_max_cmd_len
=8192;
12158 # On AmigaOS with pdksh, this test takes hours, literally.
12159 # So we just punt and use a minimum line length of 8192.
12160 lt_cv_sys_max_cmd_len
=8192;
12163 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12164 # This has been around since 386BSD, at least. Likely further.
12165 if test -x /sbin
/sysctl
; then
12166 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12167 elif test -x /usr
/sbin
/sysctl
; then
12168 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12170 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12172 # And add a safety zone
12173 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12174 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12178 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12179 lt_cv_sys_max_cmd_len
=196608
12183 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12184 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12185 # nice to cause kernel panics so lets avoid the loop below.
12186 # First set a reasonable default.
12187 lt_cv_sys_max_cmd_len
=16384
12189 if test -x /sbin
/sysconfig
; then
12190 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12191 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12196 lt_cv_sys_max_cmd_len
=102400
12198 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12199 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12200 if test -n "$kargmax"; then
12201 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12203 lt_cv_sys_max_cmd_len
=32768
12207 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12208 if test -n "$lt_cv_sys_max_cmd_len"; then
12209 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12210 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12212 # Make teststring a little bigger before we do anything with it.
12213 # a 1K string should be a reasonable start.
12214 for i
in 1 2 3 4 5 6 7 8 ; do
12215 teststring
=$teststring$teststring
12217 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12218 # If test is not a shell built-in, we'll probably end up computing a
12219 # maximum length that is only half of the actual maximum length, but
12221 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12222 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12223 test $i != 17 # 1/2 MB should be enough
12226 teststring
=$teststring$teststring
12228 # Only check the string length outside the loop.
12229 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12231 # Add a significant safety factor because C++ compilers can tack on
12232 # massive amounts of additional arguments before passing them to the
12233 # linker. It appears as though 1/2 is a usable value.
12234 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12241 if test -n $lt_cv_sys_max_cmd_len ; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12243 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12246 $as_echo "none" >&6; }
12248 max_cmd_len
=$lt_cv_sys_max_cmd_len
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12260 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12261 # Try some XSI features
12263 ( _lt_dummy
="a/b/c"
12264 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12266 && eval 'test $(( 1 + 1 )) -eq 2 \
12267 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12270 $as_echo "$xsi_shell" >&6; }
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12274 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12276 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12278 && lt_shell_append=yes
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12280 $as_echo "$lt_shell_append" >&6; }
12283 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12293 # test EBCDIC or ASCII
12294 case `echo X|tr X '\101'` in
12295 A) # ASCII based system
12296 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12297 lt_SP2NL='tr \040 \012'
12298 lt_NL2SP='tr \015\012 \040\040'
12300 *) # EBCDIC based system
12301 lt_SP2NL='tr \100 \n'
12302 lt_NL2SP='tr \r\n \100\100'
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12315 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12316 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12317 $as_echo_n "(cached
) " >&6
12319 lt_cv_ld_reload_flag='-r'
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12322 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12323 reload_flag=$lt_cv_ld_reload_flag
12324 case $reload_flag in
12326 *) reload_flag=" $reload_flag" ;;
12328 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12331 if test "$GCC" = yes; then
12332 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12334 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12347 if test -n "$ac_tool_prefix"; then
12348 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12349 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12351 $as_echo_n "checking
for $ac_word...
" >&6; }
12352 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12353 $as_echo_n "(cached
) " >&6
12355 if test -n "$OBJDUMP"; then
12356 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12365 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12375 OBJDUMP=$ac_cv_prog_OBJDUMP
12376 if test -n "$OBJDUMP"; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12378 $as_echo "$OBJDUMP" >&6; }
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12381 $as_echo "no
" >&6; }
12386 if test -z "$ac_cv_prog_OBJDUMP"; then
12387 ac_ct_OBJDUMP=$OBJDUMP
12388 # Extract the first word of "objdump
", so it can be a program name with args.
12389 set dummy objdump; ac_word=$2
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12391 $as_echo_n "checking
for $ac_word...
" >&6; }
12392 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12393 $as_echo_n "(cached
) " >&6
12395 if test -n "$ac_ct_OBJDUMP"; then
12396 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12406 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12415 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12416 if test -n "$ac_ct_OBJDUMP"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12418 $as_echo "$ac_ct_OBJDUMP" >&6; }
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12421 $as_echo "no
" >&6; }
12424 if test "x
$ac_ct_OBJDUMP" = x; then
12427 case $cross_compiling:$ac_tool_warned in
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12430 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12431 ac_tool_warned=yes ;;
12433 OBJDUMP=$ac_ct_OBJDUMP
12436 OBJDUMP="$ac_cv_prog_OBJDUMP"
12439 test -z "$OBJDUMP" && OBJDUMP=objdump
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12450 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12451 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12452 $as_echo_n "(cached
) " >&6
12454 lt_cv_file_magic_cmd='$MAGIC_CMD'
12455 lt_cv_file_magic_test_file=
12456 lt_cv_deplibs_check_method='unknown'
12457 # Need to set the preceding variable on all platforms that support
12458 # interlibrary dependencies.
12459 # 'none' -- dependencies not supported.
12460 # `unknown' -- same as none, but documents that we really don't know.
12461 # 'pass_all' -- all dependencies passed with no checks.
12462 # 'test_compile' -- check by making test program.
12463 # 'file_magic [[regex]]' -- check by looking for files in library path
12464 # which responds to the $file_magic_cmd with a given extended regex.
12465 # If you have `file' or equivalent on your system and you're not sure
12466 # whether `pass_all' will *always* work, you probably want this one.
12470 lt_cv_deplibs_check_method=pass_all
12474 lt_cv_deplibs_check_method=pass_all
12478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12479 lt_cv_file_magic_cmd='/usr/bin/file -L'
12480 lt_cv_file_magic_test_file=/shlib/libc.so
12484 # func_win32_libid is a shell function defined in ltmain.sh
12485 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12486 lt_cv_file_magic_cmd='func_win32_libid'
12490 # Base MSYS/MinGW do not provide the 'file' command needed by
12491 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12492 # unless we find 'file', for example because we are cross-compiling.
12493 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12494 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12495 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12496 lt_cv_file_magic_cmd='func_win32_libid'
12498 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12499 lt_cv_file_magic_cmd='$OBJDUMP -f'
12504 # use the weaker test based on 'objdump'. See mingw*.
12505 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12506 lt_cv_file_magic_cmd='$OBJDUMP -f'
12509 darwin* | rhapsody*)
12510 lt_cv_deplibs_check_method=pass_all
12513 freebsd* | dragonfly*)
12514 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12517 # Not sure whether the presence of OpenBSD here was a mistake.
12518 # Let's accept both of them until this is cleared up.
12519 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12520 lt_cv_file_magic_cmd=/usr/bin/file
12521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12525 lt_cv_deplibs_check_method=pass_all
12530 lt_cv_deplibs_check_method=pass_all
12534 lt_cv_deplibs_check_method=pass_all
12537 hpux10.20* | hpux11*)
12538 lt_cv_file_magic_cmd=/usr/bin/file
12541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12545 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]'
12546 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12550 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12556 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12560 irix5* | irix6* | nonstopux*)
12562 *-32|*"-32 ") libmagic=32-bit;;
12563 *-n32|*"-n32 ") libmagic=N32;;
12564 *-64|*"-64 ") libmagic=64-bit;;
12565 *) libmagic=never-match;;
12567 lt_cv_deplibs_check_method=pass_all
12570 # This must be Linux ELF.
12571 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12572 lt_cv_deplibs_check_method=pass_all
12576 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12585 lt_cv_file_magic_cmd=/usr/bin/file
12586 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12590 lt_cv_deplibs_check_method=pass_all
12594 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12601 osf3* | osf4* | osf5*)
12602 lt_cv_deplibs_check_method=pass_all
12606 lt_cv_deplibs_check_method=pass_all
12610 lt_cv_deplibs_check_method=pass_all
12613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12614 lt_cv_deplibs_check_method=pass_all
12618 case $host_vendor in
12620 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]'
12621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12624 lt_cv_deplibs_check_method=pass_all
12627 lt_cv_file_magic_cmd='/bin/file'
12628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12631 lt_cv_file_magic_cmd='/bin/file'
12632 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12633 lt_cv_file_magic_test_file=/lib/libc.so
12636 lt_cv_deplibs_check_method=pass_all
12639 lt_cv_deplibs_check_method=pass_all
12645 lt_cv_deplibs_check_method=pass_all
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12651 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12652 file_magic_cmd=$lt_cv_file_magic_cmd
12653 deplibs_check_method=$lt_cv_deplibs_check_method
12654 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12667 if test -n "$ac_tool_prefix"; then
12668 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12669 set dummy ${ac_tool_prefix}ar; ac_word=$2
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12671 $as_echo_n "checking
for $ac_word...
" >&6; }
12672 if test "${ac_cv_prog_AR+set}" = set; then :
12673 $as_echo_n "(cached
) " >&6
12675 if test -n "$AR"; then
12676 ac_cv_prog_AR="$AR" # Let the user override the test.
12678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679 for as_dir in $PATH
12682 test -z "$as_dir" && as_dir=.
12683 for ac_exec_ext in '' $ac_executable_extensions; do
12684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12685 ac_cv_prog_AR="${ac_tool_prefix}ar"
12686 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12696 if test -n "$AR"; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12698 $as_echo "$AR" >&6; }
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12701 $as_echo "no
" >&6; }
12706 if test -z "$ac_cv_prog_AR"; then
12708 # Extract the first word of "ar", so it can be a program name with args.
12709 set dummy ar; ac_word=$2
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12711 $as_echo_n "checking
for $ac_word...
" >&6; }
12712 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12713 $as_echo_n "(cached
) " >&6
12715 if test -n "$ac_ct_AR"; then
12716 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719 for as_dir in $PATH
12722 test -z "$as_dir" && as_dir=.
12723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12725 ac_cv_prog_ac_ct_AR="ar"
12726 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12735 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12736 if test -n "$ac_ct_AR"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12738 $as_echo "$ac_ct_AR" >&6; }
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12741 $as_echo "no
" >&6; }
12744 if test "x
$ac_ct_AR" = x; then
12747 case $cross_compiling:$ac_tool_warned in
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12750 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12751 ac_tool_warned=yes ;;
12756 AR="$ac_cv_prog_AR"
12759 test -z "$AR" && AR=ar
12760 test -z "$AR_FLAGS" && AR_FLAGS=cru
12772 if test -n "$ac_tool_prefix"; then
12773 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12774 set dummy ${ac_tool_prefix}strip; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12776 $as_echo_n "checking
for $ac_word...
" >&6; }
12777 if test "${ac_cv_prog_STRIP+set}" = set; then :
12778 $as_echo_n "(cached
) " >&6
12780 if test -n "$STRIP"; then
12781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12790 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12800 STRIP=$ac_cv_prog_STRIP
12801 if test -n "$STRIP"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12803 $as_echo "$STRIP" >&6; }
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12806 $as_echo "no
" >&6; }
12811 if test -z "$ac_cv_prog_STRIP"; then
12813 # Extract the first word of "strip
", so it can be a program name with args.
12814 set dummy strip; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12816 $as_echo_n "checking
for $ac_word...
" >&6; }
12817 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12818 $as_echo_n "(cached
) " >&6
12820 if test -n "$ac_ct_STRIP"; then
12821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12830 ac_cv_prog_ac_ct_STRIP="strip
"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12841 if test -n "$ac_ct_STRIP"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12843 $as_echo "$ac_ct_STRIP" >&6; }
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12846 $as_echo "no
" >&6; }
12849 if test "x
$ac_ct_STRIP" = x; then
12852 case $cross_compiling:$ac_tool_warned in
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12855 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12856 ac_tool_warned=yes ;;
12861 STRIP="$ac_cv_prog_STRIP"
12864 test -z "$STRIP" && STRIP=:
12871 if test -n "$ac_tool_prefix"; then
12872 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
12873 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12875 $as_echo_n "checking
for $ac_word...
" >&6; }
12876 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12877 $as_echo_n "(cached
) " >&6
12879 if test -n "$RANLIB"; then
12880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12889 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12899 RANLIB=$ac_cv_prog_RANLIB
12900 if test -n "$RANLIB"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12902 $as_echo "$RANLIB" >&6; }
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12905 $as_echo "no
" >&6; }
12910 if test -z "$ac_cv_prog_RANLIB"; then
12911 ac_ct_RANLIB=$RANLIB
12912 # Extract the first word of "ranlib
", so it can be a program name with args.
12913 set dummy ranlib; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12915 $as_echo_n "checking
for $ac_word...
" >&6; }
12916 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12917 $as_echo_n "(cached
) " >&6
12919 if test -n "$ac_ct_RANLIB"; then
12920 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
12928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12929 ac_cv_prog_ac_ct_RANLIB="ranlib
"
12930 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12939 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12940 if test -n "$ac_ct_RANLIB"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
12942 $as_echo "$ac_ct_RANLIB" >&6; }
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12945 $as_echo "no
" >&6; }
12948 if test "x
$ac_ct_RANLIB" = x; then
12951 case $cross_compiling:$ac_tool_warned in
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12954 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12955 ac_tool_warned=yes ;;
12957 RANLIB=$ac_ct_RANLIB
12960 RANLIB="$ac_cv_prog_RANLIB"
12963 test -z "$RANLIB" && RANLIB=:
12970 # Determine commands to create old-style static archives.
12971 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12972 old_postinstall_cmds='chmod 644 $oldlib'
12973 old_postuninstall_cmds=
12975 if test -n "$RANLIB"; then
12978 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
12981 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
12984 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12989 lock_old_archive_extraction=yes ;;
12991 lock_old_archive_extraction=no ;;
13032 # If no C compiler was specified, use CC.
13035 # If no C compiler flags were specified, use CFLAGS.
13036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13038 # Allow CC to be a program name with arguments.
13042 # Check for command to grab the raw symbol name followed by C symbol from nm.
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13044 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13045 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13046 $as_echo_n "(cached
) " >&6
13049 # These are sane defaults that work on at least a few old systems.
13050 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13052 # Character class describing NM global symbol codes.
13053 symcode='[BCDEGRST]'
13055 # Regexp to match symbols that can be accessed directly from C.
13056 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13058 # Define system-specific variables.
13063 cygwin* | mingw* | pw32* | cegcc*)
13064 symcode='[ABCDGISTW]'
13067 if test "$host_cpu" = ia64; then
13068 symcode='[ABCDEGRST]'
13071 irix* | nonstopux*)
13072 symcode='[BCDEGRST]'
13075 symcode='[BCDEGQRST]'
13086 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13094 # If we're using GNU nm, then use its standard symbol codes.
13095 case `$NM -V 2>&1` in
13096 *GNU* | *'with BFD'*)
13097 symcode='[ABCDGIRSTW]' ;;
13100 # Transform an extracted symbol line into a proper C declaration.
13101 # Some systems (esp. on ia64) link data and code symbols differently,
13102 # so use this general approach.
13103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13105 # Transform an extracted symbol line into symbol name and symbol address
13106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13107 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'"
13109 # Handle CRLF in mingw tool chain
13113 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13117 # Try without a prefix underscore, then with it.
13118 for ac_symprfx in "" "_
"; do
13120 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13121 symxfrm="\\1 $ac_symprfx\\2 \\2"
13123 # Write the raw and C identifiers.
13124 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13125 # Fake it for dumpbin and say T for any non-static function
13126 # and D for any global variable.
13127 # Also find C++ and __fastcall symbols from MSVC++,
13128 # which start with @ or ?.
13129 lt_cv_sys_global_symbol_pipe="$AWK '"\
13130 " {last_section=section; section=\$ 3};"\
13131 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13132 " \$ 0!~/External *\|/{next};"\
13133 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13134 " {if(hide[section]) next};"\
13135 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13136 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13137 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13138 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13139 " ' prfx
=^
$ac_symprfx"
13141 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13144 # Check to see that the pipe works correctly.
13148 cat > conftest.$ac_ext <<_LT_EOF
13153 void nm_test_func(void);
13154 void nm_test_func(void){}
13158 int main(){nm_test_var='a';nm_test_func();return(0);}
13161 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13162 (eval $ac_compile) 2>&5
13164 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13165 test $ac_status = 0; }; then
13166 # Now try to grab the symbols.
13168 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13169 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13171 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13172 test $ac_status = 0; } && test -s "$nlist"; then
13173 # Try sorting and uniquifying the output.
13174 if sort "$nlist" | uniq > "$nlist"T; then
13175 mv -f "$nlist"T "$nlist"
13180 # Make sure that we snagged all the symbols we need.
13181 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13182 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13183 cat <<_LT_EOF > conftest.$ac_ext
13189 # Now generate the symbol file.
13190 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13192 cat <<_LT_EOF >> conftest.$ac_ext
13194 /* The mapping between symbol names and symbols. */
13199 lt__PROGRAM__LTX_preloaded_symbols[] =
13201 { "@PROGRAM@
", (void *) 0 },
13203 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13204 cat <<\_LT_EOF >> conftest.$ac_ext
13208 /* This works around a problem in FreeBSD linker */
13209 #ifdef FREEBSD_WORKAROUND
13210 static const void *lt_preloaded_setup() {
13211 return lt__PROGRAM__LTX_preloaded_symbols;
13219 # Now try linking the two files.
13220 mv conftest.$ac_objext conftstm.$ac_objext
13221 lt_save_LIBS="$LIBS"
13222 lt_save_CFLAGS="$CFLAGS"
13223 LIBS="conftstm.
$ac_objext"
13224 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13225 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13226 (eval $ac_link) 2>&5
13228 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13229 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13232 LIBS="$lt_save_LIBS"
13233 CFLAGS="$lt_save_CFLAGS"
13235 echo "cannot
find nm_test_func
in $nlist" >&5
13238 echo "cannot
find nm_test_var
in $nlist" >&5
13241 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13244 echo "$progname: failed program was
:" >&5
13245 cat conftest.$ac_ext >&5
13247 rm -rf conftest* conftst*
13249 # Do not use the global_symbol_pipe unless it works.
13250 if test "$pipe_works" = yes; then
13253 lt_cv_sys_global_symbol_pipe=
13259 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13260 lt_cv_sys_global_symbol_to_cdecl=
13262 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13264 $as_echo "failed
" >&6; }
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13267 $as_echo "ok
" >&6; }
13291 # Check whether --enable-libtool-lock was given.
13292 if test "${enable_libtool_lock+set}" = set; then :
13293 enableval=$enable_libtool_lock;
13296 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13298 # Some flags need to be propagated to the compiler or linker for good
13302 # Find out which ABI we are using.
13303 echo 'int i;' > conftest.$ac_ext
13304 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13305 (eval $ac_compile) 2>&5
13307 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13308 test $ac_status = 0; }; then
13309 case `/usr/bin/file conftest.$ac_objext` in
13311 HPUX_IA64_MODE="32"
13314 HPUX_IA64_MODE="64"
13321 # Find out which ABI we are using.
13322 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13323 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13324 (eval $ac_compile) 2>&5
13326 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13327 test $ac_status = 0; }; then
13328 if test "$lt_cv_prog_gnu_ld" = yes; then
13329 case `/usr/bin/file conftest.$ac_objext` in
13331 LD="${LD-ld} -melf32bsmip"
13334 LD="${LD-ld} -melf32bmipn32"
13337 LD="${LD-ld} -melf64bmip"
13341 case `/usr/bin/file conftest.$ac_objext` in
13357 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13358 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13359 # Find out which ABI we are using.
13360 echo 'int i;' > conftest.$ac_ext
13361 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13362 (eval $ac_compile) 2>&5
13364 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13365 test $ac_status = 0; }; then
13366 case `/usr/bin/file conftest.o` in
13369 x86_64-*kfreebsd*-gnu)
13370 LD="${LD-ld} -m elf_i386_fbsd
"
13373 LD="${LD-ld} -m elf_i386
"
13375 ppc64-*linux*|powerpc64-*linux*)
13376 LD="${LD-ld} -m elf32ppclinux
"
13379 LD="${LD-ld} -m elf_s390
"
13382 LD="${LD-ld} -m elf32_sparc
"
13388 x86_64-*kfreebsd*-gnu)
13389 LD="${LD-ld} -m elf_x86_64_fbsd
"
13392 LD="${LD-ld} -m elf_x86_64
"
13394 ppc*-*linux*|powerpc*-*linux*)
13395 LD="${LD-ld} -m elf64ppc
"
13397 s390*-*linux*|s390*-*tpf*)
13398 LD="${LD-ld} -m elf64_s390
"
13401 LD="${LD-ld} -m elf64_sparc
"
13411 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13412 SAVE_CFLAGS="$CFLAGS"
13413 CFLAGS="$CFLAGS -belf"
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13415 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13416 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13417 $as_echo_n "(cached
) " >&6
13420 ac_cpp='$CPP $CPPFLAGS'
13421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13436 if ac_fn_c_try_link "$LINENO"; then :
13437 lt_cv_cc_needs_belf=yes
13439 lt_cv_cc_needs_belf=no
13441 rm -f core conftest.err conftest.$ac_objext \
13442 conftest$ac_exeext conftest.$ac_ext
13444 ac_cpp='$CPP $CPPFLAGS'
13445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13451 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13452 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13453 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13454 CFLAGS="$SAVE_CFLAGS"
13458 # Find out which ABI we are using.
13459 echo 'int i;' > conftest.$ac_ext
13460 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13461 (eval $ac_compile) 2>&5
13463 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13464 test $ac_status = 0; }; then
13465 case `/usr/bin/file conftest.o` in
13467 case $lt_cv_prog_gnu_ld in
13468 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13470 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13482 need_locks="$enable_libtool_lock"
13486 rhapsody* | darwin*)
13487 if test -n "$ac_tool_prefix"; then
13488 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13489 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13491 $as_echo_n "checking
for $ac_word...
" >&6; }
13492 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13493 $as_echo_n "(cached
) " >&6
13495 if test -n "$DSYMUTIL"; then
13496 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499 for as_dir in $PATH
13502 test -z "$as_dir" && as_dir=.
13503 for ac_exec_ext in '' $ac_executable_extensions; do
13504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13505 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13506 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13515 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13516 if test -n "$DSYMUTIL"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13518 $as_echo "$DSYMUTIL" >&6; }
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13521 $as_echo "no
" >&6; }
13526 if test -z "$ac_cv_prog_DSYMUTIL"; then
13527 ac_ct_DSYMUTIL=$DSYMUTIL
13528 # Extract the first word of "dsymutil
", so it can be a program name with args.
13529 set dummy dsymutil; ac_word=$2
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13531 $as_echo_n "checking
for $ac_word...
" >&6; }
13532 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13533 $as_echo_n "(cached
) " >&6
13535 if test -n "$ac_ct_DSYMUTIL"; then
13536 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539 for as_dir in $PATH
13542 test -z "$as_dir" && as_dir=.
13543 for ac_exec_ext in '' $ac_executable_extensions; do
13544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13545 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13546 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13555 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13556 if test -n "$ac_ct_DSYMUTIL"; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13558 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13561 $as_echo "no
" >&6; }
13564 if test "x
$ac_ct_DSYMUTIL" = x; then
13567 case $cross_compiling:$ac_tool_warned in
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13570 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13571 ac_tool_warned=yes ;;
13573 DSYMUTIL=$ac_ct_DSYMUTIL
13576 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13579 if test -n "$ac_tool_prefix"; then
13580 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13581 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13583 $as_echo_n "checking
for $ac_word...
" >&6; }
13584 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13585 $as_echo_n "(cached
) " >&6
13587 if test -n "$NMEDIT"; then
13588 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13597 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13607 NMEDIT=$ac_cv_prog_NMEDIT
13608 if test -n "$NMEDIT"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13610 $as_echo "$NMEDIT" >&6; }
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13613 $as_echo "no
" >&6; }
13618 if test -z "$ac_cv_prog_NMEDIT"; then
13619 ac_ct_NMEDIT=$NMEDIT
13620 # Extract the first word of "nmedit
", so it can be a program name with args.
13621 set dummy nmedit; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13623 $as_echo_n "checking
for $ac_word...
" >&6; }
13624 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13625 $as_echo_n "(cached
) " >&6
13627 if test -n "$ac_ct_NMEDIT"; then
13628 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13637 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13647 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13648 if test -n "$ac_ct_NMEDIT"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13650 $as_echo "$ac_ct_NMEDIT" >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13653 $as_echo "no
" >&6; }
13656 if test "x
$ac_ct_NMEDIT" = x; then
13659 case $cross_compiling:$ac_tool_warned in
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13662 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13663 ac_tool_warned=yes ;;
13665 NMEDIT=$ac_ct_NMEDIT
13668 NMEDIT="$ac_cv_prog_NMEDIT"
13671 if test -n "$ac_tool_prefix"; then
13672 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13673 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13675 $as_echo_n "checking
for $ac_word...
" >&6; }
13676 if test "${ac_cv_prog_LIPO+set}" = set; then :
13677 $as_echo_n "(cached
) " >&6
13679 if test -n "$LIPO"; then
13680 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13683 for as_dir in $PATH
13686 test -z "$as_dir" && as_dir=.
13687 for ac_exec_ext in '' $ac_executable_extensions; do
13688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13689 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13690 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13699 LIPO=$ac_cv_prog_LIPO
13700 if test -n "$LIPO"; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13702 $as_echo "$LIPO" >&6; }
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13705 $as_echo "no
" >&6; }
13710 if test -z "$ac_cv_prog_LIPO"; then
13712 # Extract the first word of "lipo
", so it can be a program name with args.
13713 set dummy lipo; ac_word=$2
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13715 $as_echo_n "checking
for $ac_word...
" >&6; }
13716 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13717 $as_echo_n "(cached
) " >&6
13719 if test -n "$ac_ct_LIPO"; then
13720 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13726 test -z "$as_dir" && as_dir=.
13727 for ac_exec_ext in '' $ac_executable_extensions; do
13728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13729 ac_cv_prog_ac_ct_LIPO="lipo
"
13730 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13739 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13740 if test -n "$ac_ct_LIPO"; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13742 $as_echo "$ac_ct_LIPO" >&6; }
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13745 $as_echo "no
" >&6; }
13748 if test "x
$ac_ct_LIPO" = x; then
13751 case $cross_compiling:$ac_tool_warned in
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13754 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13755 ac_tool_warned=yes ;;
13760 LIPO="$ac_cv_prog_LIPO"
13763 if test -n "$ac_tool_prefix"; then
13764 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13765 set dummy ${ac_tool_prefix}otool; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13767 $as_echo_n "checking
for $ac_word...
" >&6; }
13768 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13769 $as_echo_n "(cached
) " >&6
13771 if test -n "$OTOOL"; then
13772 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13781 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13791 OTOOL=$ac_cv_prog_OTOOL
13792 if test -n "$OTOOL"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13794 $as_echo "$OTOOL" >&6; }
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13797 $as_echo "no
" >&6; }
13802 if test -z "$ac_cv_prog_OTOOL"; then
13804 # Extract the first word of "otool
", so it can be a program name with args.
13805 set dummy otool; ac_word=$2
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13807 $as_echo_n "checking
for $ac_word...
" >&6; }
13808 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13809 $as_echo_n "(cached
) " >&6
13811 if test -n "$ac_ct_OTOOL"; then
13812 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815 for as_dir in $PATH
13818 test -z "$as_dir" && as_dir=.
13819 for ac_exec_ext in '' $ac_executable_extensions; do
13820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13821 ac_cv_prog_ac_ct_OTOOL="otool
"
13822 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13831 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13832 if test -n "$ac_ct_OTOOL"; then
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13834 $as_echo "$ac_ct_OTOOL" >&6; }
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13837 $as_echo "no
" >&6; }
13840 if test "x
$ac_ct_OTOOL" = x; then
13843 case $cross_compiling:$ac_tool_warned in
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13846 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13847 ac_tool_warned=yes ;;
13852 OTOOL="$ac_cv_prog_OTOOL"
13855 if test -n "$ac_tool_prefix"; then
13856 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
13857 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13859 $as_echo_n "checking
for $ac_word...
" >&6; }
13860 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13861 $as_echo_n "(cached
) " >&6
13863 if test -n "$OTOOL64"; then
13864 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13867 for as_dir in $PATH
13870 test -z "$as_dir" && as_dir=.
13871 for ac_exec_ext in '' $ac_executable_extensions; do
13872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13873 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
13874 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13883 OTOOL64=$ac_cv_prog_OTOOL64
13884 if test -n "$OTOOL64"; then
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
13886 $as_echo "$OTOOL64" >&6; }
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13889 $as_echo "no
" >&6; }
13894 if test -z "$ac_cv_prog_OTOOL64"; then
13895 ac_ct_OTOOL64=$OTOOL64
13896 # Extract the first word of "otool64
", so it can be a program name with args.
13897 set dummy otool64; ac_word=$2
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13899 $as_echo_n "checking
for $ac_word...
" >&6; }
13900 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13901 $as_echo_n "(cached
) " >&6
13903 if test -n "$ac_ct_OTOOL64"; then
13904 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13913 ac_cv_prog_ac_ct_OTOOL64="otool64
"
13914 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13923 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13924 if test -n "$ac_ct_OTOOL64"; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
13926 $as_echo "$ac_ct_OTOOL64" >&6; }
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13929 $as_echo "no
" >&6; }
13932 if test "x
$ac_ct_OTOOL64" = x; then
13935 case $cross_compiling:$ac_tool_warned in
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13938 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13939 ac_tool_warned=yes ;;
13941 OTOOL64=$ac_ct_OTOOL64
13944 OTOOL64="$ac_cv_prog_OTOOL64"
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
13974 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
13975 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13976 $as_echo_n "(cached
) " >&6
13978 lt_cv_apple_cc_single_mod=no
13979 if test -z "${LT_MULTI_MODULE}"; then
13980 # By default we will add the -single_module flag. You can override
13981 # by either setting the environment variable LT_MULTI_MODULE
13982 # non-empty at configure time, or by adding -multi_module to the
13984 rm -rf libconftest.dylib*
13985 echo "int foo
(void
){return 1;}" > conftest.c
13986 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13987 -dynamiclib -Wl,-single_module conftest.c
" >&5
13988 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13989 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13991 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13992 lt_cv_apple_cc_single_mod=yes
13994 cat conftest.err >&5
13996 rm -rf libconftest.dylib*
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14001 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14003 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14004 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14005 $as_echo_n "(cached
) " >&6
14007 lt_cv_ld_exported_symbols_list=no
14008 save_LDFLAGS=$LDFLAGS
14009 echo "_main
" > conftest.sym
14010 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14022 if ac_fn_c_try_link "$LINENO"; then :
14023 lt_cv_ld_exported_symbols_list=yes
14025 lt_cv_ld_exported_symbols_list=no
14027 rm -f core conftest.err conftest.$ac_objext \
14028 conftest$ac_exeext conftest.$ac_ext
14029 LDFLAGS="$save_LDFLAGS"
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14033 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14035 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14036 if test "${lt_cv_ld_force_load+set}" = set; then :
14037 $as_echo_n "(cached
) " >&6
14039 lt_cv_ld_force_load=no
14040 cat > conftest.c << _LT_EOF
14041 int forced_loaded() { return 2;}
14043 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14044 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14045 echo "$AR cru libconftest.a conftest.o
" >&5
14046 $AR cru libconftest.a conftest.o 2>&5
14047 cat > conftest.c << _LT_EOF
14048 int main() { return 0;}
14050 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14051 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14053 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14054 lt_cv_ld_force_load=yes
14056 cat conftest.err >&5
14058 rm -f conftest.err libconftest.a conftest conftest.c
14059 rm -rf conftest.dSYM
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14063 $as_echo "$lt_cv_ld_force_load" >&6; }
14065 rhapsody* | darwin1.[012])
14066 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14068 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14069 darwin*) # darwin 5.x on
14070 # if running on 10.5 or later, the deployment target defaults
14071 # to the OS version, if on x86, and 10.4, the deployment
14072 # target defaults to 10.4. Don't you love it?
14073 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14074 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14075 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14077 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14079 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14083 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14084 _lt_dar_single_mod='$single_module'
14086 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14087 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14089 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14091 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14092 _lt_dsymutil='~$DSYMUTIL $lib || :'
14099 for ac_header in dlfcn.h
14101 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14102 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_DLFCN_H 1
14121 enable_win32_dll=no
14124 # Check whether --enable-shared was given.
14125 if test "${enable_shared+set}" = set; then :
14126 enableval=$enable_shared; p=${PACKAGE-default}
14128 yes) enable_shared=yes ;;
14129 no) enable_shared=no ;;
14132 # Look at the argument we got. We use all the common list separators.
14133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14134 for pkg in $enableval; do
14136 if test "X
$pkg" = "X
$p"; then
14155 # Check whether --enable-static was given.
14156 if test "${enable_static+set}" = set; then :
14157 enableval=$enable_static; p=${PACKAGE-default}
14159 yes) enable_static=yes ;;
14160 no) enable_static=no ;;
14163 # Look at the argument we got. We use all the common list separators.
14164 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14165 for pkg in $enableval; do
14167 if test "X
$pkg" = "X
$p"; then
14187 # Check whether --with-pic was given.
14188 if test "${with_pic+set}" = set; then :
14189 withval=$with_pic; p=${PACKAGE-default}
14191 yes|no) pic_mode="$withval" ;;
14194 # Look at the argument we got. We use all the common list separators.
14195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14196 for pkg in $withval; do
14198 if test "X
$pkg" = "X
$p"; then
14210 test -z "$pic_mode" && pic_mode=default
14218 # Check whether --enable-fast-install was given.
14219 if test "${enable_fast_install+set}" = set; then :
14220 enableval=$enable_fast_install; p=${PACKAGE-default}
14222 yes) enable_fast_install=yes ;;
14223 no) enable_fast_install=no ;;
14225 enable_fast_install=no
14226 # Look at the argument we got. We use all the common list separators.
14227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14228 for pkg in $enableval; do
14230 if test "X
$pkg" = "X
$p"; then
14231 enable_fast_install=yes
14238 enable_fast_install=yes
14251 # This can be used to rebuild libtool when needed
14252 LIBTOOL_DEPS="$ltmain"
14254 # Always use our own libtool.
14255 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14282 test -z "$LN_S" && LN_S="ln -s"
14297 if test -n "${ZSH_VERSION+set}" ; then
14298 setopt NO_GLOB_SUBST
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14302 $as_echo_n "checking
for objdir...
" >&6; }
14303 if test "${lt_cv_objdir+set}" = set; then :
14304 $as_echo_n "(cached
) " >&6
14306 rm -f .libs 2>/dev/null
14307 mkdir .libs 2>/dev/null
14308 if test -d .libs; then
14311 # MS-DOS does not allow filenames that begin with a dot.
14314 rmdir .libs 2>/dev/null
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14317 $as_echo "$lt_cv_objdir" >&6; }
14318 objdir=$lt_cv_objdir
14324 cat >>confdefs.h <<_ACEOF
14325 #define LT_OBJDIR "$lt_cv_objdir/"
14333 # AIX sometimes has problems with the GCC collect2 program. For some
14334 # reason, if we set the COLLECT_NAMES environment variable, the problems
14335 # vanish in a puff of smoke.
14336 if test "X
${COLLECT_NAMES+set}" != Xset; then
14338 export COLLECT_NAMES
14343 # Global variables:
14345 can_build_shared=yes
14347 # All known linkers require a `.a' archive for static linking (except MSVC,
14348 # which needs '.lib').
14351 with_gnu_ld="$lt_cv_prog_gnu_ld"
14354 old_CFLAGS="$CFLAGS"
14356 # Set sane defaults for various variables
14357 test -z "$CC" && CC=cc
14358 test -z "$LTCC" && LTCC=$CC
14359 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14360 test -z "$LD" && LD=ld
14361 test -z "$ac_objext" && ac_objext=o
14363 for cc_temp in $compiler""; do
14365 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14366 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14371 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14374 # Only perform the check for file, if the check method requires it
14375 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14376 case $deplibs_check_method in
14378 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14380 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14381 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14382 $as_echo_n "(cached
) " >&6
14386 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14389 lt_save_MAGIC_CMD="$MAGIC_CMD"
14390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14391 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14392 for ac_dir in $ac_dummy; do
14394 test -z "$ac_dir" && ac_dir=.
14395 if test -f $ac_dir/${ac_tool_prefix}file; then
14396 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14397 if test -n "$file_magic_test_file"; then
14398 case $deplibs_check_method in
14400 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14402 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14403 $EGREP "$file_magic_regex" > /dev/null; then
14408 *** Warning: the command libtool uses to detect shared libraries,
14409 *** $file_magic_cmd, produces output that libtool cannot recognize.
14410 *** The result is that libtool may fail to recognize shared libraries
14411 *** as such. This will affect the creation of libtool libraries that
14412 *** depend on shared libraries, but programs linked with such libtool
14413 *** libraries will work regardless of this problem. Nevertheless, you
14414 *** may want to report the problem to your system manager and/or to
14415 *** bug-libtool@gnu.org
14425 MAGIC_CMD="$lt_save_MAGIC_CMD"
14430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14431 if test -n "$MAGIC_CMD"; then
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14433 $as_echo "$MAGIC_CMD" >&6; }
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14436 $as_echo "no
" >&6; }
14443 if test -z "$lt_cv_path_MAGIC_CMD"; then
14444 if test -n "$ac_tool_prefix"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14446 $as_echo_n "checking
for file...
" >&6; }
14447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14448 $as_echo_n "(cached
) " >&6
14452 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14455 lt_save_MAGIC_CMD="$MAGIC_CMD"
14456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14457 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14458 for ac_dir in $ac_dummy; do
14460 test -z "$ac_dir" && ac_dir=.
14461 if test -f $ac_dir/file; then
14462 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14463 if test -n "$file_magic_test_file"; then
14464 case $deplibs_check_method in
14466 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14468 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14469 $EGREP "$file_magic_regex" > /dev/null; then
14474 *** Warning: the command libtool uses to detect shared libraries,
14475 *** $file_magic_cmd, produces output that libtool cannot recognize.
14476 *** The result is that libtool may fail to recognize shared libraries
14477 *** as such. This will affect the creation of libtool libraries that
14478 *** depend on shared libraries, but programs linked with such libtool
14479 *** libraries will work regardless of this problem. Nevertheless, you
14480 *** may want to report the problem to your system manager and/or to
14481 *** bug-libtool@gnu.org
14491 MAGIC_CMD="$lt_save_MAGIC_CMD"
14496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14497 if test -n "$MAGIC_CMD"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14499 $as_echo "$MAGIC_CMD" >&6; }
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14502 $as_echo "no
" >&6; }
14515 # Use C for the default configuration in the libtool script
14519 ac_cpp='$CPP $CPPFLAGS'
14520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14525 # Source file extension for C test sources.
14528 # Object file extension for compiled C test sources.
14532 # Code to be used in simple compile tests
14533 lt_simple_compile_test_code="int some_variable
= 0;"
14535 # Code to be used in simple link tests
14536 lt_simple_link_test_code='int main(){return(0);}'
14544 # If no C compiler was specified, use CC.
14547 # If no C compiler flags were specified, use CFLAGS.
14548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14550 # Allow CC to be a program name with arguments.
14553 # Save the default compiler, since it gets overwritten when the other
14554 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14555 compiler_DEFAULT=$CC
14557 # save warnings/boilerplate of simple test code
14558 ac_outfile=conftest.$ac_objext
14559 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14560 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14561 _lt_compiler_boilerplate=`cat conftest.err`
14564 ac_outfile=conftest.$ac_objext
14565 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14566 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14567 _lt_linker_boilerplate=`cat conftest.err`
14572 ## There is no encapsulation within the following macros, do not change
14573 ## the running order or otherwise move them around unless you know exactly
14574 ## what you are doing...
14575 if test -n "$compiler"; then
14577 lt_prog_compiler_no_builtin_flag=
14579 if test "$GCC" = yes; then
14580 case $cc_basename in
14582 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14584 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14588 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14589 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14590 $as_echo_n "(cached
) " >&6
14592 lt_cv_prog_compiler_rtti_exceptions=no
14593 ac_outfile=conftest.$ac_objext
14594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14595 lt_compiler_flag="-fno-rtti -fno-exceptions"
14596 # Insert the option either (1) after the last *FLAGS variable, or
14597 # (2) before a word containing "conftest.
", or (3) at the end.
14598 # Note that $ac_compile itself does not contain backslashes and begins
14599 # with a dollar sign (not a hyphen), so the echo should work correctly.
14600 # The option is referenced via a variable to avoid confusing sed.
14601 lt_compile=`echo "$ac_compile" | $SED \
14602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14604 -e 's:$: $lt_compiler_flag:'`
14605 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14606 (eval "$lt_compile" 2>conftest.err)
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14610 if (exit $ac_status) && test -s "$ac_outfile"; then
14611 # The compiler can only warn and ignore the option if not recognized
14612 # So say no if there are warnings other than the usual output.
14613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14615 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14616 lt_cv_prog_compiler_rtti_exceptions=yes
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14623 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14625 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14626 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14638 lt_prog_compiler_wl=
14639 lt_prog_compiler_pic=
14640 lt_prog_compiler_static=
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14643 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14645 if test "$GCC" = yes; then
14646 lt_prog_compiler_wl='-Wl,'
14647 lt_prog_compiler_static='-static'
14651 # All AIX code is PIC.
14652 if test "$host_cpu" = ia64; then
14653 # AIX 5 now supports IA64 processor
14654 lt_prog_compiler_static='-Bstatic'
14661 # see comment about AmigaOS4 .so support
14662 lt_prog_compiler_pic='-fPIC'
14665 # FIXME: we need at least 68020 code to build shared libraries, but
14666 # adding the `-m68020' flag to GCC prevents building anything better,
14668 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14673 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14674 # PIC is the default for these OSes.
14677 mingw* | cygwin* | pw32* | os2* | cegcc*)
14678 # This hack is so that the source file can tell whether it is being
14679 # built for inclusion in a dll (and should export symbols for example).
14680 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14681 # (--disable-auto-import) libraries
14682 lt_prog_compiler_pic='-DDLL_EXPORT'
14685 darwin* | rhapsody*)
14686 # PIC is the default on this platform
14687 # Common symbols not allowed in MH_DYLIB files
14688 lt_prog_compiler_pic='-fno-common'
14692 # PIC is the default for Haiku.
14693 # The "-static" flag exists, but is broken.
14694 lt_prog_compiler_static=
14698 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14699 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14700 # sets the default TLS model and affects inlining.
14706 lt_prog_compiler_pic='-fPIC'
14712 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14713 # Instead, we relocate shared libraries at runtime.
14717 # Just because we use GCC doesn't mean we suddenly get shared libraries
14718 # on systems that don't support them.
14719 lt_prog_compiler_can_build_shared=no
14724 # QNX uses GNU C++, but need to define -shared option too, otherwise
14725 # it will coredump.
14726 lt_prog_compiler_pic='-fPIC -shared'
14730 if test -d /usr/nec; then
14731 lt_prog_compiler_pic=-Kconform_pic
14736 lt_prog_compiler_pic='-fPIC'
14740 case $cc_basename in
14741 nvcc*) # Cuda Compiler Driver 2.2
14742 lt_prog_compiler_wl='-Xlinker '
14743 lt_prog_compiler_pic='-Xcompiler -fPIC'
14747 # PORTME Check for flag to pass linker flags through the system compiler.
14750 lt_prog_compiler_wl='-Wl,'
14751 if test "$host_cpu" = ia64; then
14752 # AIX 5 now supports IA64 processor
14753 lt_prog_compiler_static='-Bstatic'
14755 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14759 mingw* | cygwin* | pw32* | os2* | cegcc*)
14760 # This hack is so that the source file can tell whether it is being
14761 # built for inclusion in a dll (and should export symbols for example).
14762 lt_prog_compiler_pic='-DDLL_EXPORT'
14765 hpux9* | hpux10* | hpux11*)
14766 lt_prog_compiler_wl='-Wl,'
14767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14768 # not for PA HP-UX.
14774 lt_prog_compiler_pic='+Z'
14777 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14778 lt_prog_compiler_static='${wl}-a ${wl}archive'
14781 irix5* | irix6* | nonstopux*)
14782 lt_prog_compiler_wl='-Wl,'
14783 # PIC (with -KPIC) is the default.
14784 lt_prog_compiler_static='-non_shared'
14787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14788 case $cc_basename in
14789 # old Intel for x86_64 which still supported -KPIC.
14791 lt_prog_compiler_wl='-Wl,'
14792 lt_prog_compiler_pic='-KPIC'
14793 lt_prog_compiler_static='-static'
14795 # icc used to be incompatible with GCC.
14796 # ICC 10 doesn't accept -KPIC any more.
14798 lt_prog_compiler_wl='-Wl,'
14799 lt_prog_compiler_pic='-fPIC'
14800 lt_prog_compiler_static='-static'
14802 # Lahey Fortran 8.1.
14804 lt_prog_compiler_wl='-Wl,'
14805 lt_prog_compiler_pic='--shared'
14806 lt_prog_compiler_static='--static'
14808 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14809 # Portland Group compilers (*not* the Pentium gcc compiler,
14810 # which looks to be a dead project)
14811 lt_prog_compiler_wl='-Wl,'
14812 lt_prog_compiler_pic='-fpic'
14813 lt_prog_compiler_static='-Bstatic'
14816 lt_prog_compiler_wl='-Wl,'
14817 # All Alpha code is PIC.
14818 lt_prog_compiler_static='-non_shared'
14820 xl* | bgxl* | bgf* | mpixl*)
14821 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14822 lt_prog_compiler_wl='-Wl,'
14823 lt_prog_compiler_pic='-qpic'
14824 lt_prog_compiler_static='-qstaticlink'
14827 case `$CC -V 2>&1 | sed 5q` in
14828 *Sun\ F* | *Sun*Fortran*)
14829 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14830 lt_prog_compiler_pic='-KPIC'
14831 lt_prog_compiler_static='-Bstatic'
14832 lt_prog_compiler_wl=''
14836 lt_prog_compiler_pic='-KPIC'
14837 lt_prog_compiler_static='-Bstatic'
14838 lt_prog_compiler_wl='-Wl,'
14846 lt_prog_compiler_pic='-KPIC'
14847 lt_prog_compiler_static='-Bstatic'
14851 # QNX uses GNU C++, but need to define -shared option too, otherwise
14852 # it will coredump.
14853 lt_prog_compiler_pic='-fPIC -shared'
14856 osf3* | osf4* | osf5*)
14857 lt_prog_compiler_wl='-Wl,'
14858 # All OSF/1 code is PIC.
14859 lt_prog_compiler_static='-non_shared'
14863 lt_prog_compiler_static='-non_shared'
14867 lt_prog_compiler_pic='-KPIC'
14868 lt_prog_compiler_static='-Bstatic'
14869 case $cc_basename in
14870 f77* | f90* | f95*)
14871 lt_prog_compiler_wl='-Qoption ld ';;
14873 lt_prog_compiler_wl='-Wl,';;
14878 lt_prog_compiler_wl='-Qoption ld '
14879 lt_prog_compiler_pic='-PIC'
14880 lt_prog_compiler_static='-Bstatic'
14883 sysv4 | sysv4.2uw2* | sysv4.3*)
14884 lt_prog_compiler_wl='-Wl,'
14885 lt_prog_compiler_pic='-KPIC'
14886 lt_prog_compiler_static='-Bstatic'
14890 if test -d /usr/nec ;then
14891 lt_prog_compiler_pic='-Kconform_pic'
14892 lt_prog_compiler_static='-Bstatic'
14896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14897 lt_prog_compiler_wl='-Wl,'
14898 lt_prog_compiler_pic='-KPIC'
14899 lt_prog_compiler_static='-Bstatic'
14903 lt_prog_compiler_wl='-Wl,'
14904 lt_prog_compiler_can_build_shared=no
14908 lt_prog_compiler_pic='-pic'
14909 lt_prog_compiler_static='-Bstatic'
14913 lt_prog_compiler_can_build_shared=no
14919 # For platforms which do not support PIC, -DPIC is meaningless:
14921 lt_prog_compiler_pic=
14924 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
14928 $as_echo "$lt_prog_compiler_pic" >&6; }
14936 # Check to make sure the PIC flag actually works.
14938 if test -n "$lt_prog_compiler_pic"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14940 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
14941 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14942 $as_echo_n "(cached
) " >&6
14944 lt_cv_prog_compiler_pic_works=no
14945 ac_outfile=conftest.$ac_objext
14946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14947 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14948 # Insert the option either (1) after the last *FLAGS variable, or
14949 # (2) before a word containing "conftest.
", or (3) at the end.
14950 # Note that $ac_compile itself does not contain backslashes and begins
14951 # with a dollar sign (not a hyphen), so the echo should work correctly.
14952 # The option is referenced via a variable to avoid confusing sed.
14953 lt_compile=`echo "$ac_compile" | $SED \
14954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14956 -e 's:$: $lt_compiler_flag:'`
14957 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14958 (eval "$lt_compile" 2>conftest.err)
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14962 if (exit $ac_status) && test -s "$ac_outfile"; then
14963 # The compiler can only warn and ignore the option if not recognized
14964 # So say no if there are warnings other than the usual output.
14965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14968 lt_cv_prog_compiler_pic_works=yes
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
14975 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14977 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14978 case $lt_prog_compiler_pic in
14980 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14983 lt_prog_compiler_pic=
14984 lt_prog_compiler_can_build_shared=no
14995 # Check to make sure the static flag actually works.
14997 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14999 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15000 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15001 $as_echo_n "(cached
) " >&6
15003 lt_cv_prog_compiler_static_works=no
15004 save_LDFLAGS="$LDFLAGS"
15005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15006 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15008 # The linker can only warn and ignore the option if not recognized
15009 # So say no if there are warnings
15010 if test -s conftest.err; then
15011 # Append any errors to the config.log.
15012 cat conftest.err 1>&5
15013 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15015 if diff conftest.exp conftest.er2 >/dev/null; then
15016 lt_cv_prog_compiler_static_works=yes
15019 lt_cv_prog_compiler_static_works=yes
15023 LDFLAGS="$save_LDFLAGS"
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15027 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15029 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15032 lt_prog_compiler_static=
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15042 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15044 $as_echo_n "(cached
) " >&6
15046 lt_cv_prog_compiler_c_o=no
15047 $RM -r conftest 2>/dev/null
15051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15053 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15054 # Insert the option either (1) after the last *FLAGS variable, or
15055 # (2) before a word containing "conftest.
", or (3) at the end.
15056 # Note that $ac_compile itself does not contain backslashes and begins
15057 # with a dollar sign (not a hyphen), so the echo should work correctly.
15058 lt_compile=`echo "$ac_compile" | $SED \
15059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15061 -e 's:$: $lt_compiler_flag:'`
15062 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15063 (eval "$lt_compile" 2>out/conftest.err)
15065 cat out/conftest.err >&5
15066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15069 # The compiler can only warn and ignore the option if not recognized
15070 # So say no if there are warnings
15071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15074 lt_cv_prog_compiler_c_o=yes
15079 # SGI C++ compiler will create directory out/ii_files/ for
15080 # template instantiation
15081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15082 $RM out/* && rmdir out
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15097 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15098 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15099 $as_echo_n "(cached
) " >&6
15101 lt_cv_prog_compiler_c_o=no
15102 $RM -r conftest 2>/dev/null
15106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15108 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15109 # Insert the option either (1) after the last *FLAGS variable, or
15110 # (2) before a word containing "conftest.
", or (3) at the end.
15111 # Note that $ac_compile itself does not contain backslashes and begins
15112 # with a dollar sign (not a hyphen), so the echo should work correctly.
15113 lt_compile=`echo "$ac_compile" | $SED \
15114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15116 -e 's:$: $lt_compiler_flag:'`
15117 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15118 (eval "$lt_compile" 2>out/conftest.err)
15120 cat out/conftest.err >&5
15121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15124 # The compiler can only warn and ignore the option if not recognized
15125 # So say no if there are warnings
15126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15129 lt_cv_prog_compiler_c_o=yes
15134 # SGI C++ compiler will create directory out/ii_files/ for
15135 # template instantiation
15136 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15137 $RM out/* && rmdir out
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15144 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15149 hard_links="nottested
"
15150 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15151 # do not overwrite the value of need_locks provided by the user
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15153 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15158 ln conftest.a conftest.b 2>&5 || hard_links=no
15159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15161 $as_echo "$hard_links" >&6; }
15162 if test "$hard_links" = no; then
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15164 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15177 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15180 allow_undefined_flag=
15181 always_export_symbols=no
15183 archive_expsym_cmds=
15184 compiler_needs_object=no
15185 enable_shared_with_static_runtimes=no
15186 export_dynamic_flag_spec=
15187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15188 hardcode_automatic=no
15190 hardcode_direct_absolute=no
15191 hardcode_libdir_flag_spec=
15192 hardcode_libdir_flag_spec_ld=
15193 hardcode_libdir_separator=
15194 hardcode_minus_L=no
15195 hardcode_shlibpath_var=unsupported
15197 link_all_deplibs=unknown
15199 module_expsym_cmds=
15200 old_archive_from_new_cmds=
15201 old_archive_from_expsyms_cmds=
15202 thread_safe_flag_spec=
15203 whole_archive_flag_spec=
15204 # include_expsyms should be a list of space-separated symbols to be *always*
15205 # included in the symbol list
15207 # exclude_expsyms can be an extended regexp of symbols to exclude
15208 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15209 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15210 # as well as any symbol that contains `d'.
15211 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15212 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15213 # platforms (ab)use it in PIC code, but their linkers get confused if
15214 # the symbol is explicitly referenced. Since portable code cannot
15215 # rely on this symbol name, it's probably fine to never include it in
15216 # preloaded symbol tables.
15217 # Exclude shared library initialization/finalization symbols.
15218 extract_expsyms_cmds=
15221 cygwin* | mingw* | pw32* | cegcc*)
15222 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15223 # When not using gcc, we currently assume that we are using
15224 # Microsoft Visual C++.
15225 if test "$GCC" != yes; then
15230 # we just hope/assume this is gcc and not c89 (= MSVC++)
15240 # On some targets, GNU ld is compatible enough with the native linker
15241 # that we're better off using the native interface for both.
15242 lt_use_gnu_ld_interface=no
15243 if test "$with_gnu_ld" = yes; then
15246 # The AIX port of GNU ld has always aspired to compatibility
15247 # with the native linker. However, as the warning in the GNU ld
15248 # block says, versions before 2.19.5* couldn't really create working
15249 # shared libraries, regardless of the interface used.
15250 case `$LD -v 2>&1` in
15251 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15252 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15253 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15255 lt_use_gnu_ld_interface=yes
15260 lt_use_gnu_ld_interface=yes
15265 if test "$lt_use_gnu_ld_interface" = yes; then
15266 # If archive_cmds runs LD, not CC, wlarc should be empty
15269 # Set some defaults for GNU ld with shared library support. These
15270 # are reset later if shared libraries are not supported. Putting them
15271 # here allows them to be overridden if necessary.
15272 runpath_var=LD_RUN_PATH
15273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15274 export_dynamic_flag_spec='${wl}--export-dynamic'
15275 # ancient GNU ld didn't support --whole-archive et. al.
15276 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15277 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15279 whole_archive_flag_spec=
15281 supports_anon_versioning=no
15282 case `$LD -v 2>&1` in
15283 *GNU\ gold*) supports_anon_versioning=yes ;;
15284 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15285 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15286 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15287 *\ 2.11.*) ;; # other 2.11 versions
15288 *) supports_anon_versioning=yes ;;
15291 # See if GNU ld supports shared libraries.
15294 # On AIX/PPC, the GNU linker is very broken
15295 if test "$host_cpu" != ia64; then
15299 *** Warning: the GNU linker, at least up to release 2.19, is reported
15300 *** to be unable to reliably create shared libraries on AIX.
15301 *** Therefore, libtool is disabling shared libraries support. If you
15302 *** really care for shared libraries, you may want to install binutils
15303 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15304 *** You will then need to restart the configuration process.
15313 # see comment about AmigaOS4 .so support
15314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15315 archive_expsym_cmds=''
15318 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)'
15319 hardcode_libdir_flag_spec
='-L$libdir'
15320 hardcode_minus_L
=yes
15326 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15327 allow_undefined_flag
=unsupported
15328 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15329 # support --undefined. This deserves some investigation. FIXME
15330 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15336 cygwin
* | mingw
* | pw32
* | cegcc
*)
15337 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15338 # as there is no search path for DLLs.
15339 hardcode_libdir_flag_spec
='-L$libdir'
15340 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15341 allow_undefined_flag
=unsupported
15342 always_export_symbols
=no
15343 enable_shared_with_static_runtimes
=yes
15344 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15346 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15347 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15348 # If the export-symbols file already is a .def file (1st line
15349 # is EXPORTS), use it as is; otherwise, prepend...
15350 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15351 cp $export_symbols $output_objdir/$soname.def;
15353 echo EXPORTS > $output_objdir/$soname.def;
15354 cat $export_symbols >> $output_objdir/$soname.def;
15356 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15363 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15364 link_all_deplibs
=yes
15369 hardcode_shlibpath_var
=no
15370 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15371 export_dynamic_flag_spec
='${wl}-E'
15372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15373 # Instead, shared libraries are loaded at an image base (0x10000000 by
15374 # default) and relocated if they conflict, which is a slow very memory
15375 # consuming and fragmenting process. To avoid this, we pick a random,
15376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15378 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15379 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'
15382 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15384 if test "$host_os" = linux-dietlibc
; then
15385 case $cc_basename in
15386 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15389 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15390 && test "$tmp_diet" = no
15393 tmp_sharedflag
='-shared'
15394 case $cc_basename,$host_cpu in
15395 pgcc
*) # Portland Group C compiler
15396 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'
15397 tmp_addflag
=' $pic_flag'
15399 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15400 # Portland Group f77 and f90 compilers
15401 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'
15402 tmp_addflag
=' $pic_flag -Mnomain' ;;
15403 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15404 tmp_addflag
=' -i_dynamic' ;;
15405 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15406 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15407 ifc
* | ifort
*) # Intel Fortran compiler
15408 tmp_addflag
=' -nofor_main' ;;
15409 lf95
*) # Lahey Fortran 8.1
15410 whole_archive_flag_spec
=
15411 tmp_sharedflag
='--shared' ;;
15412 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15413 tmp_sharedflag
='-qmkshrobj'
15415 nvcc
*) # Cuda Compiler Driver 2.2
15416 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'
15417 compiler_needs_object
=yes
15420 case `$CC -V 2>&1 | sed 5q` in
15421 *Sun\ C
*) # Sun C 5.9
15422 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'
15423 compiler_needs_object
=yes
15424 tmp_sharedflag
='-G' ;;
15425 *Sun\ F
*) # Sun Fortran 8.3
15426 tmp_sharedflag
='-G' ;;
15428 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15430 if test "x$supports_anon_versioning" = xyes
; then
15431 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15433 echo "local: *; };" >> $output_objdir/$libname.ver~
15434 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15437 case $cc_basename in
15438 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15439 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15440 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15441 hardcode_libdir_flag_spec
=
15442 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15443 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15444 if test "x$supports_anon_versioning" = xyes
; then
15445 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15446 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15447 echo "local: *; };" >> $output_objdir/$libname.ver~
15448 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15458 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15459 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15462 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15463 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15468 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15472 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15473 *** create shared libraries on Solaris systems. Therefore, libtool
15474 *** is disabling shared libraries support. We urge you to upgrade GNU
15475 *** binutils to release 2.9.1 or newer. Another option is to modify
15476 *** your PATH or compiler configuration so that the native linker is
15477 *** used, and then restart.
15480 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15481 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15482 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15488 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15489 case `$LD -v 2>&1` in
15490 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15494 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15495 *** reliably create shared libraries on SCO systems. Therefore, libtool
15496 *** is disabling shared libraries support. We urge you to upgrade GNU
15497 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15498 *** your PATH or compiler configuration so that the native linker is
15499 *** used, and then restart.
15504 # For security reasons, it is highly recommended that you always
15505 # use absolute paths for naming shared libraries, and exclude the
15506 # DT_RUNPATH tag from executables and libraries. But doing so
15507 # requires that you compile everything twice, which is a pain.
15508 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15509 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15510 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15520 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15522 hardcode_direct
=yes
15523 hardcode_shlibpath_var
=no
15527 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15528 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15529 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15536 if test "$ld_shlibs" = no
; then
15538 hardcode_libdir_flag_spec
=
15539 export_dynamic_flag_spec
=
15540 whole_archive_flag_spec
=
15543 # PORTME fill in a description of your system's linker (not GNU ld)
15546 allow_undefined_flag
=unsupported
15547 always_export_symbols
=yes
15548 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'
15549 # Note: this linker hardcodes the directories in LIBPATH if there
15550 # are no directories specified by -L.
15551 hardcode_minus_L
=yes
15552 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15553 # Neither direct hardcoding nor static linking is supported with a
15555 hardcode_direct
=unsupported
15560 if test "$host_cpu" = ia64
; then
15561 # On IA64, the linker does run time linking by default, so we don't
15562 # have to do anything special.
15563 aix_use_runtimelinking
=no
15564 exp_sym_flag
='-Bexport'
15567 # If we're using GNU nm, then we don't want the "-C" option.
15568 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15569 # Also, AIX nm treats weak defined symbols like other global
15570 # defined symbols, whereas GNU nm marks them as "W".
15571 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15572 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'
15574 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'
15576 aix_use_runtimelinking
=no
15578 # Test if we are trying to use run time linking or normal
15579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15580 # need to do runtime linking.
15581 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15582 for ld_flag
in $LDFLAGS; do
15583 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15584 aix_use_runtimelinking
=yes
15591 exp_sym_flag
='-bexport'
15592 no_entry_flag
='-bnoentry'
15595 # When large executables or shared objects are built, AIX ld can
15596 # have problems creating the table of contents. If linking a library
15597 # or program results in "error TOC overflow" add -mminimal-toc to
15598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15602 hardcode_direct
=yes
15603 hardcode_direct_absolute
=yes
15604 hardcode_libdir_separator
=':'
15605 link_all_deplibs
=yes
15606 file_list_spec
='${wl}-f,'
15608 if test "$GCC" = yes; then
15609 case $host_os in aix4.
[012]|aix4.
[012].
*)
15610 # We only want to do this on AIX 4.2 and lower, the check
15611 # below for broken collect2 doesn't work under 4.3+
15612 collect2name
=`${CC} -print-prog-name=collect2`
15613 if test -f "$collect2name" &&
15614 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15616 # We have reworked collect2
15619 # We have old collect2
15620 hardcode_direct
=unsupported
15621 # It fails to find uninstalled libraries when the uninstalled
15622 # path is not listed in the libpath. Setting hardcode_minus_L
15623 # to unsupported forces relinking
15624 hardcode_minus_L
=yes
15625 hardcode_libdir_flag_spec
='-L$libdir'
15626 hardcode_libdir_separator
=
15630 shared_flag
='-shared'
15631 if test "$aix_use_runtimelinking" = yes; then
15632 shared_flag
="$shared_flag "'${wl}-G'
15636 if test "$host_cpu" = ia64
; then
15637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15638 # chokes on -Wl,-G. The following line is correct:
15641 if test "$aix_use_runtimelinking" = yes; then
15642 shared_flag
='${wl}-G'
15644 shared_flag
='${wl}-bM:SRE'
15649 export_dynamic_flag_spec
='${wl}-bexpall'
15650 # It seems that -bexpall does not export symbols beginning with
15651 # underscore (_), so it is better to generate a list of symbols to export.
15652 always_export_symbols
=yes
15653 if test "$aix_use_runtimelinking" = yes; then
15654 # Warning - without using the other runtime loading flags (-brtl),
15655 # -berok will link without error, but may produce a broken library.
15656 allow_undefined_flag
='-berok'
15657 # Determine the default libpath from the value encoded in an
15658 # empty executable.
15659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15670 if ac_fn_c_try_link
"$LINENO"; then :
15672 lt_aix_libpath_sed
='
15673 /Import File Strings/,/^$/ {
15679 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15680 # Check for a 64-bit object if we didn't find anything.
15681 if test -z "$aix_libpath"; then
15682 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15685 rm -f core conftest.err conftest.
$ac_objext \
15686 conftest
$ac_exeext conftest.
$ac_ext
15687 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15689 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15690 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"
15692 if test "$host_cpu" = ia64
; then
15693 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15694 allow_undefined_flag
="-z nodefs"
15695 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"
15697 # Determine the default libpath from the value encoded in an
15698 # empty executable.
15699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15710 if ac_fn_c_try_link
"$LINENO"; then :
15712 lt_aix_libpath_sed
='
15713 /Import File Strings/,/^$/ {
15719 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15720 # Check for a 64-bit object if we didn't find anything.
15721 if test -z "$aix_libpath"; then
15722 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15725 rm -f core conftest.err conftest.
$ac_objext \
15726 conftest
$ac_exeext conftest.
$ac_ext
15727 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15729 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15730 # Warning - without using the other run time loading flags,
15731 # -berok will link without error, but may produce a broken library.
15732 no_undefined_flag
=' ${wl}-bernotok'
15733 allow_undefined_flag
=' ${wl}-berok'
15734 if test "$with_gnu_ld" = yes; then
15735 # We only use this code for GNU lds that support --whole-archive.
15736 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15738 # Exported symbols can be pulled into shared objects from archives
15739 whole_archive_flag_spec
='$convenience'
15741 archive_cmds_need_lc
=yes
15742 # This is similar to how AIX traditionally builds its shared libraries.
15743 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'
15751 # see comment about AmigaOS4 .so support
15752 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15753 archive_expsym_cmds
=''
15756 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)'
15757 hardcode_libdir_flag_spec
='-L$libdir'
15758 hardcode_minus_L
=yes
15764 export_dynamic_flag_spec
=-rdynamic
15767 cygwin
* | mingw
* | pw32
* | cegcc
*)
15768 # When not using gcc, we currently assume that we are using
15769 # Microsoft Visual C++.
15770 # hardcode_libdir_flag_spec is actually meaningless, as there is
15771 # no search path for DLLs.
15772 hardcode_libdir_flag_spec
=' '
15773 allow_undefined_flag
=unsupported
15774 # Tell ltmain to make .lib files, not .a files.
15776 # Tell ltmain to make .dll files, not .so files.
15778 # FIXME: Setting linknames here is a bad hack.
15779 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15780 # The linker will automatically build a .lib file if we build a DLL.
15781 old_archive_from_new_cmds
='true'
15782 # FIXME: Should let the user specify the lib program.
15783 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15784 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15785 enable_shared_with_static_runtimes
=yes
15788 darwin
* | rhapsody
*)
15791 archive_cmds_need_lc
=no
15793 hardcode_automatic
=yes
15794 hardcode_shlibpath_var
=unsupported
15795 if test "$lt_cv_ld_force_load" = "yes"; then
15796 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\"`'
15798 whole_archive_flag_spec
=''
15800 link_all_deplibs
=yes
15801 allow_undefined_flag
="$_lt_dar_allow_undefined"
15802 case $cc_basename in
15803 ifort
*) _lt_dar_can_shared
=yes ;;
15804 *) _lt_dar_can_shared
=$GCC ;;
15806 if test "$_lt_dar_can_shared" = "yes"; then
15807 output_verbose_link_cmd
=func_echo_all
15808 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15809 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15810 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}"
15811 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}"
15820 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15821 hardcode_libdir_flag_spec
='-L$libdir'
15822 hardcode_shlibpath_var
=no
15825 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15826 # support. Future versions do this automatically, but an explicit c++rt0.o
15827 # does not break anything, and helps significantly (at the cost of a little
15830 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15831 hardcode_libdir_flag_spec
='-R$libdir'
15832 hardcode_direct
=yes
15833 hardcode_shlibpath_var
=no
15836 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15838 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15839 hardcode_direct
=yes
15840 hardcode_minus_L
=yes
15841 hardcode_shlibpath_var
=no
15844 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15845 freebsd
* | dragonfly
*)
15846 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15847 hardcode_libdir_flag_spec
='-R$libdir'
15848 hardcode_direct
=yes
15849 hardcode_shlibpath_var
=no
15853 if test "$GCC" = yes; then
15854 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'
15856 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'
15858 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15859 hardcode_libdir_separator
=:
15860 hardcode_direct
=yes
15862 # hardcode_minus_L: Not really in the search PATH,
15863 # but as the default location of the library.
15864 hardcode_minus_L
=yes
15865 export_dynamic_flag_spec
='${wl}-E'
15869 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15870 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15872 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15874 if test "$with_gnu_ld" = no
; then
15875 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15876 hardcode_libdir_flag_spec_ld
='+b $libdir'
15877 hardcode_libdir_separator
=:
15878 hardcode_direct
=yes
15879 hardcode_direct_absolute
=yes
15880 export_dynamic_flag_spec
='${wl}-E'
15881 # hardcode_minus_L: Not really in the search PATH,
15882 # but as the default location of the library.
15883 hardcode_minus_L
=yes
15888 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15891 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15894 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15897 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15903 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15906 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15910 # Older versions of the 11.00 compiler do not understand -b yet
15911 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15913 $as_echo_n "checking if $CC understands -b... " >&6; }
15914 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15915 $as_echo_n "(cached) " >&6
15917 lt_cv_prog_compiler__b
=no
15918 save_LDFLAGS
="$LDFLAGS"
15919 LDFLAGS
="$LDFLAGS -b"
15920 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15921 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15922 # The linker can only warn and ignore the option if not recognized
15923 # So say no if there are warnings
15924 if test -s conftest.err
; then
15925 # Append any errors to the config.log.
15926 cat conftest.err
1>&5
15927 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
15928 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15929 if diff conftest.exp conftest.er2
>/dev
/null
; then
15930 lt_cv_prog_compiler__b
=yes
15933 lt_cv_prog_compiler__b
=yes
15937 LDFLAGS
="$save_LDFLAGS"
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15941 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15943 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
15944 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15946 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15952 if test "$with_gnu_ld" = no
; then
15953 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15954 hardcode_libdir_separator
=:
15959 hardcode_shlibpath_var
=no
15962 hardcode_direct
=yes
15963 hardcode_direct_absolute
=yes
15964 export_dynamic_flag_spec
='${wl}-E'
15966 # hardcode_minus_L: Not really in the search PATH,
15967 # but as the default location of the library.
15968 hardcode_minus_L
=yes
15974 irix5
* | irix6
* | nonstopux
*)
15975 if test "$GCC" = yes; then
15976 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'
15977 # Try to use the -exported_symbol ld option, if it does not
15978 # work, assume that -exports_file does not work either and
15979 # implicitly export all symbols.
15980 save_LDFLAGS
="$LDFLAGS"
15981 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15986 if ac_fn_c_try_link
"$LINENO"; then :
15987 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'
15990 rm -f core conftest.err conftest.
$ac_objext \
15991 conftest
$ac_exeext conftest.
$ac_ext
15992 LDFLAGS
="$save_LDFLAGS"
15994 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'
15995 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'
15997 archive_cmds_need_lc
='no'
15998 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15999 hardcode_libdir_separator
=:
16001 link_all_deplibs
=yes
16005 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16006 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16008 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16010 hardcode_libdir_flag_spec
='-R$libdir'
16011 hardcode_direct
=yes
16012 hardcode_shlibpath_var
=no
16016 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16017 hardcode_direct
=yes
16018 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16019 hardcode_libdir_separator
=:
16020 hardcode_shlibpath_var
=no
16027 if test -f /usr
/libexec
/ld.so
; then
16028 hardcode_direct
=yes
16029 hardcode_shlibpath_var
=no
16030 hardcode_direct_absolute
=yes
16031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16032 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16033 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16034 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16035 export_dynamic_flag_spec
='${wl}-E'
16038 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16039 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16040 hardcode_libdir_flag_spec
='-R$libdir'
16043 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16044 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16054 hardcode_libdir_flag_spec
='-L$libdir'
16055 hardcode_minus_L
=yes
16056 allow_undefined_flag
=unsupported
16057 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'
16058 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16062 if test "$GCC" = yes; then
16063 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16064 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'
16066 allow_undefined_flag
=' -expect_unresolved \*'
16067 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'
16069 archive_cmds_need_lc
='no'
16070 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16071 hardcode_libdir_separator
=:
16074 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16075 if test "$GCC" = yes; then
16076 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16077 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'
16078 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16080 allow_undefined_flag
=' -expect_unresolved \*'
16081 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'
16082 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~
16083 $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'
16085 # Both c and cxx compiler support -rpath directly
16086 hardcode_libdir_flag_spec
='-rpath $libdir'
16088 archive_cmds_need_lc
='no'
16089 hardcode_libdir_separator
=:
16093 no_undefined_flag
=' -z defs'
16094 if test "$GCC" = yes; then
16096 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16097 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16098 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16100 case `$CC -V 2>&1` in
16103 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16104 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16105 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16109 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16110 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16111 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16115 hardcode_libdir_flag_spec
='-R$libdir'
16116 hardcode_shlibpath_var
=no
16118 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16120 # The compiler driver will combine and reorder linker options,
16121 # but understands `-z linker_flag'. GCC discards it without `$wl',
16122 # but is careful enough not to reorder.
16123 # Supported since Solaris 2.6 (maybe 2.5.1?)
16124 if test "$GCC" = yes; then
16125 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16127 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16131 link_all_deplibs
=yes
16135 if test "x$host_vendor" = xsequent
; then
16136 # Use $CC to link under sequent, because it throws in some extra .o
16137 # files that make .init and .fini sections work.
16138 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16140 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16142 hardcode_libdir_flag_spec
='-L$libdir'
16143 hardcode_direct
=yes
16144 hardcode_minus_L
=yes
16145 hardcode_shlibpath_var
=no
16149 case $host_vendor in
16151 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16152 hardcode_direct
=yes # is this really true???
16155 ## LD is ld it makes a PLAMLIB
16156 ## CC just makes a GrossModule.
16157 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16158 reload_cmds
='$CC -r -o $output$reload_objs'
16162 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16163 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16166 runpath_var
='LD_RUN_PATH'
16167 hardcode_shlibpath_var
=no
16171 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16172 hardcode_shlibpath_var
=no
16173 export_dynamic_flag_spec
='-Bexport'
16177 if test -d /usr
/nec
; then
16178 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16179 hardcode_shlibpath_var
=no
16180 runpath_var
=LD_RUN_PATH
16181 hardcode_runpath_var
=yes
16186 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16187 no_undefined_flag
='${wl}-z,text'
16188 archive_cmds_need_lc
=no
16189 hardcode_shlibpath_var
=no
16190 runpath_var
='LD_RUN_PATH'
16192 if test "$GCC" = yes; then
16193 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16194 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16196 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16197 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16201 sysv5
* | sco3.2v5
* | sco5v6
*)
16202 # Note: We can NOT use -z defs as we might desire, because we do not
16203 # link with -lc, and that would cause any symbols used from libc to
16204 # always be unresolved, which means just about no library would
16205 # ever link correctly. If we're not using GNU ld we use -z text
16206 # though, which does catch some bad symbols but isn't as heavy-handed
16208 no_undefined_flag
='${wl}-z,text'
16209 allow_undefined_flag
='${wl}-z,nodefs'
16210 archive_cmds_need_lc
=no
16211 hardcode_shlibpath_var
=no
16212 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16213 hardcode_libdir_separator
=':'
16214 link_all_deplibs
=yes
16215 export_dynamic_flag_spec
='${wl}-Bexport'
16216 runpath_var
='LD_RUN_PATH'
16218 if test "$GCC" = yes; then
16219 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16220 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16222 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16223 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16229 hardcode_libdir_flag_spec
='-L$libdir'
16230 hardcode_shlibpath_var
=no
16238 if test x
$host_vendor = xsni
; then
16240 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16241 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16248 $as_echo "$ld_shlibs" >&6; }
16249 test "$ld_shlibs" = no
&& can_build_shared
=no
16251 with_gnu_ld
=$with_gnu_ld
16268 # Do we need to explicitly link libc?
16270 case "x$archive_cmds_need_lc" in
16272 # Assume -lc should be added
16273 archive_cmds_need_lc
=yes
16275 if test "$enable_shared" = yes && test "$GCC" = yes; then
16276 case $archive_cmds in
16278 # FIXME: we may have to deal with multi-command sequences.
16281 # Test whether the compiler implicitly links with -lc since on some
16282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16283 # to ld, don't add -lc before -lgcc.
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16285 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16286 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16287 $as_echo_n "(cached) " >&6
16290 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16293 (eval $ac_compile) 2>&5
16295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16296 test $ac_status = 0; } 2>conftest.err
; then
16299 libobjs
=conftest.
$ac_objext
16301 wl
=$lt_prog_compiler_wl
16302 pic_flag
=$lt_prog_compiler_pic
16308 lt_save_allow_undefined_flag
=$allow_undefined_flag
16309 allow_undefined_flag
=
16310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16311 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16314 test $ac_status = 0; }
16316 lt_cv_archive_cmds_need_lc
=no
16318 lt_cv_archive_cmds_need_lc
=yes
16320 allow_undefined_flag
=$lt_save_allow_undefined_flag
16322 cat conftest.err
1>&5
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16328 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16329 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16493 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16495 if test "$GCC" = yes; then
16497 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16498 *) lt_awk_arg
="/^libraries:/" ;;
16501 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16502 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16504 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16505 case $lt_search_path_spec in
16507 # if the path contains ";" then we assume it to be the separator
16508 # otherwise default to the standard path separator (i.e. ":") - it is
16509 # assumed that no part of a normal pathname contains ";" but that should
16510 # okay in the real world where ";" in dirpaths is itself problematic.
16511 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16514 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16517 # Ok, now we have the path, separated by spaces, we can step through it
16518 # and add multilib dir if necessary.
16519 lt_tmp_lt_search_path_spec
=
16520 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16521 for lt_sys_path
in $lt_search_path_spec; do
16522 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16523 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16525 test -d "$lt_sys_path" && \
16526 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16529 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16530 BEGIN {RS=" "; FS="/|\n";} {
16533 for (lt_i = NF; lt_i > 0; lt_i--) {
16534 if ($lt_i != "" && $lt_i != ".") {
16535 if ($lt_i == "..") {
16538 if (lt_count == 0) {
16539 lt_foo="/" $lt_i lt_foo;
16546 if (lt_foo != "") { lt_freq[lt_foo]++; }
16547 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16549 # AWK program above erroneously prepends '/' to C:/dos/paths
16552 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16553 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16555 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16557 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16559 library_names_spec
=
16560 libname_spec
='lib$name'
16564 postuninstall_cmds
=
16568 shlibpath_overrides_runpath
=unknown
16570 dynamic_linker
="$host_os ld.so"
16571 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16572 need_lib_prefix
=unknown
16573 hardcode_into_libs
=no
16575 # when you set need_version to no, make sure it does not cause -set_version
16576 # flags to be left without arguments
16577 need_version
=unknown
16582 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16583 shlibpath_var
=LIBPATH
16585 # AIX 3 has no versioning support, so we append a major version to the name.
16586 soname_spec
='${libname}${release}${shared_ext}$major'
16593 hardcode_into_libs
=yes
16594 if test "$host_cpu" = ia64
; then
16595 # AIX 5 supports IA64
16596 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16597 shlibpath_var
=LD_LIBRARY_PATH
16599 # With GCC up to 2.95.x, collect2 would create an import file
16600 # for dependence libraries. The import file would start with
16601 # the line `#! .'. This would cause the generated library to
16602 # depend on `.', always an invalid library. This was fixed in
16603 # development snapshots of GCC prior to 3.0.
16605 aix4 | aix4.
[01] | aix4.
[01].
*)
16606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16608 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16611 can_build_shared
=no
16615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16616 # soname into executable. Probably we can add versioning support to
16617 # collect2, so additional links can be useful in future.
16618 if test "$aix_use_runtimelinking" = yes; then
16619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16620 # instead of lib<name>.a to let people know that these are not
16621 # typical AIX shared libraries.
16622 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624 # We preserve .a as extension for shared libraries through AIX4.2
16625 # and later when we are not doing run time linking.
16626 library_names_spec
='${libname}${release}.a $libname.a'
16627 soname_spec
='${libname}${release}${shared_ext}$major'
16629 shlibpath_var
=LIBPATH
16636 # Since July 2007 AmigaOS4 officially supports .so libraries.
16637 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16641 library_names_spec
='$libname.ixlibrary $libname.a'
16642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16643 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'
16649 library_names_spec
='${libname}${shared_ext}'
16650 dynamic_linker
="$host_os ld.so"
16651 shlibpath_var
=LIBRARY_PATH
16657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16658 soname_spec
='${libname}${release}${shared_ext}$major'
16659 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16660 shlibpath_var
=LD_LIBRARY_PATH
16661 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16662 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16663 # the default ld.so.conf also contains /usr/contrib/lib and
16664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16665 # libtool to hard-code these into programs
16668 cygwin
* | mingw
* | pw32
* | cegcc
*)
16669 version_type
=windows
16674 case $GCC,$host_os in
16675 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16676 library_names_spec
='$libname.dll.a'
16677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16678 postinstall_cmds
='base_file=`basename \${file}`~
16679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16680 dldir=$destdir/`dirname \$dlpath`~
16681 test -d \$dldir || mkdir -p \$dldir~
16682 $install_prog $dir/$dlname \$dldir/$dlname~
16683 chmod a+x \$dldir/$dlname~
16684 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16685 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16687 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16688 dlpath=$dir/\$dldll~
16690 shlibpath_overrides_runpath
=yes
16694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16695 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16697 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16700 # MinGW DLLs use traditional 'lib' prefix
16701 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16704 # pw32 DLLs use 'pw' prefix rather than 'lib'
16705 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16711 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16714 dynamic_linker
='Win32 ld.exe'
16715 # FIXME: first we should search . and the directory the executable is in
16719 darwin
* | rhapsody
*)
16720 dynamic_linker
="$host_os dyld"
16721 version_type
=darwin
16724 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16725 soname_spec
='${libname}${release}${major}$shared_ext'
16726 shlibpath_overrides_runpath
=yes
16727 shlibpath_var
=DYLD_LIBRARY_PATH
16728 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16730 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16731 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16738 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16739 soname_spec
='${libname}${release}${shared_ext}$major'
16740 shlibpath_var
=LD_LIBRARY_PATH
16743 freebsd
* | dragonfly
*)
16744 # DragonFly does not have aout. When/if they implement a new
16745 # versioning mechanism, adjust this.
16746 if test -x /usr
/bin
/objformat
; then
16747 objformat
=`/usr/bin/objformat`
16750 freebsd
[123]*) objformat
=aout
;;
16751 *) objformat
=elf
;;
16754 version_type
=freebsd-
$objformat
16755 case $version_type in
16757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16762 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16766 shlibpath_var
=LD_LIBRARY_PATH
16769 shlibpath_overrides_runpath
=yes
16771 freebsd3.
[01]* | freebsdelf3.
[01]*)
16772 shlibpath_overrides_runpath
=yes
16773 hardcode_into_libs
=yes
16775 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16776 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16777 shlibpath_overrides_runpath
=no
16778 hardcode_into_libs
=yes
16780 *) # from 4.6 on, and DragonFly
16781 shlibpath_overrides_runpath
=yes
16782 hardcode_into_libs
=yes
16791 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16792 soname_spec
='${libname}${release}${shared_ext}$major'
16793 shlibpath_var
=LD_LIBRARY_PATH
16794 hardcode_into_libs
=yes
16801 dynamic_linker
="$host_os runtime_loader"
16802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16803 soname_spec
='${libname}${release}${shared_ext}$major'
16804 shlibpath_var
=LIBRARY_PATH
16805 shlibpath_overrides_runpath
=yes
16806 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16807 hardcode_into_libs
=yes
16810 hpux9
* | hpux10
* | hpux11
*)
16811 # Give a soname corresponding to the major version so that dld.sl refuses to
16812 # link against other versions.
16819 hardcode_into_libs
=yes
16820 dynamic_linker
="$host_os dld.so"
16821 shlibpath_var
=LD_LIBRARY_PATH
16822 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824 soname_spec
='${libname}${release}${shared_ext}$major'
16825 if test "X$HPUX_IA64_MODE" = X32
; then
16826 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16828 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16830 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16834 hardcode_into_libs
=yes
16835 dynamic_linker
="$host_os dld.sl"
16836 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16837 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839 soname_spec
='${libname}${release}${shared_ext}$major'
16840 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16841 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16845 dynamic_linker
="$host_os dld.sl"
16846 shlibpath_var
=SHLIB_PATH
16847 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16849 soname_spec
='${libname}${release}${shared_ext}$major'
16852 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16853 postinstall_cmds
='chmod 555 $lib'
16854 # or fails outright, so override atomically:
16855 install_override_mode
=555
16862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16863 soname_spec
='${libname}${release}${shared_ext}$major'
16864 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16865 shlibpath_var
=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath
=no
16867 hardcode_into_libs
=yes
16870 irix5
* | irix6
* | nonstopux
*)
16872 nonstopux
*) version_type
=nonstopux
;;
16874 if test "$lt_cv_prog_gnu_ld" = yes; then
16882 soname_spec
='${libname}${release}${shared_ext}$major'
16883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16885 irix5
* | nonstopux
*)
16886 libsuff
= shlibsuff
=
16889 case $LD in # libtool.m4 will add one of these switches to LD
16890 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16891 libsuff
= shlibsuff
= libmagic
=32-bit;;
16892 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16893 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16894 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16895 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16896 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16900 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16901 shlibpath_overrides_runpath
=no
16902 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16903 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16904 hardcode_into_libs
=yes
16907 # No shared lib support for Linux oldld, aout, or coff.
16908 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16912 # This must be Linux ELF.
16913 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec
='${libname}${release}${shared_ext}$major'
16919 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16920 shlibpath_var
=LD_LIBRARY_PATH
16921 shlibpath_overrides_runpath
=no
16923 # Some binutils ld are patched to set DT_RUNPATH
16924 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16925 $as_echo_n "(cached) " >&6
16927 lt_cv_shlibpath_overrides_runpath
=no
16928 save_LDFLAGS
=$LDFLAGS
16929 save_libdir
=$libdir
16930 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16931 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16933 /* end confdefs.h. */
16943 if ac_fn_c_try_link
"$LINENO"; then :
16944 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16945 lt_cv_shlibpath_overrides_runpath
=yes
16948 rm -f core conftest.err conftest.
$ac_objext \
16949 conftest
$ac_exeext conftest.
$ac_ext
16950 LDFLAGS
=$save_LDFLAGS
16951 libdir
=$save_libdir
16955 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16957 # This implies no fast_install, which is unacceptable.
16958 # Some rework will be needed to allow for fast_install
16959 # before this can be enabled.
16960 hardcode_into_libs
=yes
16962 # Append ld.so.conf contents to the search path
16963 if test -f /etc
/ld.so.conf
; then
16964 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' ' '`
16965 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16968 # We used to test for /lib/ld.so.1 and disable shared libraries on
16969 # powerpc, because MkLinux only supported shared libraries with the
16970 # GNU dynamic linker. Since this was broken with cross compilers,
16971 # most powerpc-linux boxes support dynamic linking these days and
16972 # people can always --disable-shared, the test was removed, and we
16973 # assume the GNU/Linux dynamic linker is in use.
16974 dynamic_linker
='GNU/Linux ld.so'
16981 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16982 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16983 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16984 dynamic_linker
='NetBSD (a.out) ld.so'
16986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16987 soname_spec
='${libname}${release}${shared_ext}$major'
16988 dynamic_linker
='NetBSD ld.elf_so'
16990 shlibpath_var
=LD_LIBRARY_PATH
16991 shlibpath_overrides_runpath
=yes
16992 hardcode_into_libs
=yes
16997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 shlibpath_var
=LD_LIBRARY_PATH
16999 shlibpath_overrides_runpath
=yes
17006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec
='${libname}${release}${shared_ext}$major'
17008 shlibpath_var
=LD_LIBRARY_PATH
17009 shlibpath_overrides_runpath
=no
17010 hardcode_into_libs
=yes
17011 dynamic_linker
='ldqnx.so'
17016 sys_lib_dlsearch_path_spec
="/usr/lib"
17018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17020 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17021 *) need_version
=no
;;
17023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17024 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17025 shlibpath_var
=LD_LIBRARY_PATH
17026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17028 openbsd2.
[89] | openbsd2.
[89].
*)
17029 shlibpath_overrides_runpath
=no
17032 shlibpath_overrides_runpath
=yes
17036 shlibpath_overrides_runpath
=yes
17041 libname_spec
='$name'
17044 library_names_spec
='$libname${shared_ext} $libname.a'
17045 dynamic_linker
='OS/2 ld.exe'
17046 shlibpath_var
=LIBPATH
17049 osf3
* | osf4
* | osf5
*)
17053 soname_spec
='${libname}${release}${shared_ext}$major'
17054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 shlibpath_var
=LD_LIBRARY_PATH
17056 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17057 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec
='${libname}${release}${shared_ext}$major'
17070 shlibpath_var
=LD_LIBRARY_PATH
17071 shlibpath_overrides_runpath
=yes
17072 hardcode_into_libs
=yes
17073 # ldd complains unless libraries are executable
17074 postinstall_cmds
='chmod +x $lib'
17079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17080 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17081 shlibpath_var
=LD_LIBRARY_PATH
17082 shlibpath_overrides_runpath
=yes
17083 if test "$with_gnu_ld" = yes; then
17091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec
='${libname}${release}${shared_ext}$major'
17093 shlibpath_var
=LD_LIBRARY_PATH
17094 case $host_vendor in
17096 shlibpath_overrides_runpath
=no
17098 runpath_var
=LD_RUN_PATH
17106 shlibpath_overrides_runpath
=no
17107 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17113 if test -d /usr
/nec
;then
17115 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17116 soname_spec
='$libname${shared_ext}.$major'
17117 shlibpath_var
=LD_LIBRARY_PATH
17121 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17122 version_type
=freebsd-elf
17125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17126 soname_spec
='${libname}${release}${shared_ext}$major'
17127 shlibpath_var
=LD_LIBRARY_PATH
17128 shlibpath_overrides_runpath
=yes
17129 hardcode_into_libs
=yes
17130 if test "$with_gnu_ld" = yes; then
17131 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17133 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17136 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17140 sys_lib_dlsearch_path_spec
='/usr/lib'
17144 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 shlibpath_var
=LD_LIBRARY_PATH
17150 shlibpath_overrides_runpath
=no
17151 hardcode_into_libs
=yes
17156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17157 soname_spec
='${libname}${release}${shared_ext}$major'
17158 shlibpath_var
=LD_LIBRARY_PATH
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17166 $as_echo "$dynamic_linker" >&6; }
17167 test "$dynamic_linker" = no
&& can_build_shared
=no
17169 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17170 if test "$GCC" = yes; then
17171 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17174 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17175 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17177 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17178 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17273 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17275 if test -n "$hardcode_libdir_flag_spec" ||
17276 test -n "$runpath_var" ||
17277 test "X$hardcode_automatic" = "Xyes" ; then
17279 # We can hardcode non-existent directories.
17280 if test "$hardcode_direct" != no
&&
17281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17282 # have to relink, otherwise we might link with an installed library
17283 # when we should be linking with a yet-to-be-installed one
17284 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17285 test "$hardcode_minus_L" != no
; then
17286 # Linking always hardcodes the temporary library directory.
17287 hardcode_action
=relink
17289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17290 hardcode_action
=immediate
17293 # We cannot hardcode anything, or else we can only hardcode existing
17295 hardcode_action
=unsupported
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17298 $as_echo "$hardcode_action" >&6; }
17300 if test "$hardcode_action" = relink ||
17301 test "$inherit_rpath" = yes; then
17302 # Fast installation is not supported
17303 enable_fast_install
=no
17304 elif test "$shlibpath_overrides_runpath" = yes ||
17305 test "$enable_shared" = no
; then
17306 # Fast installation is not necessary
17307 enable_fast_install
=needless
17315 if test "x$enable_dlopen" != xyes
; then
17316 enable_dlopen
=unknown
17317 enable_dlopen_self
=unknown
17318 enable_dlopen_self_static
=unknown
17325 lt_cv_dlopen
="load_add_on"
17327 lt_cv_dlopen_self
=yes
17330 mingw
* | pw32
* | cegcc
*)
17331 lt_cv_dlopen
="LoadLibrary"
17336 lt_cv_dlopen
="dlopen"
17341 # if libdl is installed we need to link against it
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17345 $as_echo_n "(cached) " >&6
17347 ac_check_lib_save_LIBS
=$LIBS
17349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h. */
17352 /* Override any GCC internal prototype to avoid an error.
17353 Use char because int might match the return type of a GCC
17354 builtin and then its argument prototype would still apply. */
17367 if ac_fn_c_try_link
"$LINENO"; then :
17368 ac_cv_lib_dl_dlopen
=yes
17370 ac_cv_lib_dl_dlopen
=no
17372 rm -f core conftest.err conftest.
$ac_objext \
17373 conftest
$ac_exeext conftest.
$ac_ext
17374 LIBS
=$ac_check_lib_save_LIBS
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17378 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17379 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17382 lt_cv_dlopen
="dyld"
17384 lt_cv_dlopen_self
=yes
17391 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17392 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17393 lt_cv_dlopen
="shl_load"
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17396 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17397 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17398 $as_echo_n "(cached) " >&6
17400 ac_check_lib_save_LIBS
=$LIBS
17402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17403 /* end confdefs.h. */
17405 /* Override any GCC internal prototype to avoid an error.
17406 Use char because int might match the return type of a GCC
17407 builtin and then its argument prototype would still apply. */
17415 return shl_load ();
17420 if ac_fn_c_try_link
"$LINENO"; then :
17421 ac_cv_lib_dld_shl_load
=yes
17423 ac_cv_lib_dld_shl_load
=no
17425 rm -f core conftest.err conftest.
$ac_objext \
17426 conftest
$ac_exeext conftest.
$ac_ext
17427 LIBS
=$ac_check_lib_save_LIBS
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17430 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17431 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17432 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17434 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17435 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17436 lt_cv_dlopen
="dlopen"
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17439 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17441 $as_echo_n "(cached) " >&6
17443 ac_check_lib_save_LIBS
=$LIBS
17445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17448 /* Override any GCC internal prototype to avoid an error.
17449 Use char because int might match the return type of a GCC
17450 builtin and then its argument prototype would still apply. */
17463 if ac_fn_c_try_link
"$LINENO"; then :
17464 ac_cv_lib_dl_dlopen
=yes
17466 ac_cv_lib_dl_dlopen
=no
17468 rm -f core conftest.err conftest.
$ac_objext \
17469 conftest
$ac_exeext conftest.
$ac_ext
17470 LIBS
=$ac_check_lib_save_LIBS
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17473 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17474 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17475 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17478 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17479 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17480 $as_echo_n "(cached) " >&6
17482 ac_check_lib_save_LIBS
=$LIBS
17483 LIBS
="-lsvld $LIBS"
17484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17487 /* Override any GCC internal prototype to avoid an error.
17488 Use char because int might match the return type of a GCC
17489 builtin and then its argument prototype would still apply. */
17502 if ac_fn_c_try_link
"$LINENO"; then :
17503 ac_cv_lib_svld_dlopen
=yes
17505 ac_cv_lib_svld_dlopen
=no
17507 rm -f core conftest.err conftest.
$ac_objext \
17508 conftest
$ac_exeext conftest.
$ac_ext
17509 LIBS
=$ac_check_lib_save_LIBS
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17512 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17513 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17514 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17517 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17518 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17519 $as_echo_n "(cached) " >&6
17521 ac_check_lib_save_LIBS
=$LIBS
17523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17526 /* Override any GCC internal prototype to avoid an error.
17527 Use char because int might match the return type of a GCC
17528 builtin and then its argument prototype would still apply. */
17536 return dld_link ();
17541 if ac_fn_c_try_link
"$LINENO"; then :
17542 ac_cv_lib_dld_dld_link
=yes
17544 ac_cv_lib_dld_dld_link
=no
17546 rm -f core conftest.err conftest.
$ac_objext \
17547 conftest
$ac_exeext conftest.
$ac_ext
17548 LIBS
=$ac_check_lib_save_LIBS
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17551 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17552 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17553 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17574 if test "x$lt_cv_dlopen" != xno
; then
17580 case $lt_cv_dlopen in
17582 save_CPPFLAGS
="$CPPFLAGS"
17583 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17585 save_LDFLAGS
="$LDFLAGS"
17586 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17589 LIBS
="$lt_cv_dlopen_libs $LIBS"
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17592 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17593 if test "${lt_cv_dlopen_self+set}" = set; then :
17594 $as_echo_n "(cached) " >&6
17596 if test "$cross_compiling" = yes; then :
17597 lt_cv_dlopen_self
=cross
17599 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17600 lt_status
=$lt_dlunknown
17601 cat > conftest.
$ac_ext <<_LT_EOF
17602 #line 17602 "configure"
17603 #include "confdefs.h"
17612 # define LT_DLGLOBAL RTLD_GLOBAL
17615 # define LT_DLGLOBAL DL_GLOBAL
17617 # define LT_DLGLOBAL 0
17621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17622 find out it does not work in some platform. */
17623 #ifndef LT_DLLAZY_OR_NOW
17625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17628 # define LT_DLLAZY_OR_NOW DL_LAZY
17631 # define LT_DLLAZY_OR_NOW RTLD_NOW
17634 # define LT_DLLAZY_OR_NOW DL_NOW
17636 # define LT_DLLAZY_OR_NOW 0
17643 /* When -fvisbility=hidden is used, assume the code has been annotated
17644 correspondingly for the symbols needed. */
17645 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17646 void fnord () __attribute__((visibility("default")));
17649 void fnord () { int i=42; }
17652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17653 int status = $lt_dlunknown;
17657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17661 else puts (dlerror ());
17663 /* dlclose (self); */
17671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17672 (eval $ac_link) 2>&5
17674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17675 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17676 (.
/conftest
; exit; ) >&5 2>/dev
/null
17678 case x
$lt_status in
17679 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17680 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17681 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17684 # compilation failed
17685 lt_cv_dlopen_self
=no
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17693 $as_echo "$lt_cv_dlopen_self" >&6; }
17695 if test "x$lt_cv_dlopen_self" = xyes
; then
17696 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17698 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17699 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17700 $as_echo_n "(cached) " >&6
17702 if test "$cross_compiling" = yes; then :
17703 lt_cv_dlopen_self_static
=cross
17705 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17706 lt_status
=$lt_dlunknown
17707 cat > conftest.
$ac_ext <<_LT_EOF
17708 #line 17708 "configure"
17709 #include "confdefs.h"
17718 # define LT_DLGLOBAL RTLD_GLOBAL
17721 # define LT_DLGLOBAL DL_GLOBAL
17723 # define LT_DLGLOBAL 0
17727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17728 find out it does not work in some platform. */
17729 #ifndef LT_DLLAZY_OR_NOW
17731 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17734 # define LT_DLLAZY_OR_NOW DL_LAZY
17737 # define LT_DLLAZY_OR_NOW RTLD_NOW
17740 # define LT_DLLAZY_OR_NOW DL_NOW
17742 # define LT_DLLAZY_OR_NOW 0
17749 /* When -fvisbility=hidden is used, assume the code has been annotated
17750 correspondingly for the symbols needed. */
17751 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17752 void fnord () __attribute__((visibility("default")));
17755 void fnord () { int i=42; }
17758 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17759 int status = $lt_dlunknown;
17763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17766 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17767 else puts (dlerror ());
17769 /* dlclose (self); */
17777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17778 (eval $ac_link) 2>&5
17780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17781 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17782 (.
/conftest
; exit; ) >&5 2>/dev
/null
17784 case x
$lt_status in
17785 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17786 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17787 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17790 # compilation failed
17791 lt_cv_dlopen_self_static
=no
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17799 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17802 CPPFLAGS
="$save_CPPFLAGS"
17803 LDFLAGS
="$save_LDFLAGS"
17808 case $lt_cv_dlopen_self in
17809 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17810 *) enable_dlopen_self
=unknown
;;
17813 case $lt_cv_dlopen_self_static in
17814 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17815 *) enable_dlopen_self_static
=unknown
;;
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17838 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17839 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17840 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17841 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17843 $as_echo "yes" >&6; }
17845 # FIXME - insert some real tests, host_os isn't really good enough
17848 if test -n "$STRIP" ; then
17849 striplib
="$STRIP -x"
17850 old_striplib
="$STRIP -S"
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17852 $as_echo "yes" >&6; }
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855 $as_echo "no" >&6; }
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17860 $as_echo "no" >&6; }
17876 # Report which library types will actually be built
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17878 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17880 $as_echo "$can_build_shared" >&6; }
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17883 $as_echo_n "checking whether to build shared libraries... " >&6; }
17884 test "$can_build_shared" = "no" && enable_shared
=no
17886 # On AIX, shared libraries and static libraries use the same namespace, and
17887 # are all built from PIC.
17890 test "$enable_shared" = yes && enable_static
=no
17891 if test -n "$RANLIB"; then
17892 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17893 postinstall_cmds
='$RANLIB $lib'
17898 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17899 test "$enable_shared" = yes && enable_static
=no
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17904 $as_echo "$enable_shared" >&6; }
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17907 $as_echo_n "checking whether to build static libraries... " >&6; }
17908 # Make sure either enable_shared or enable_static is yes.
17909 test "$enable_shared" = yes || enable_static
=yes
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17911 $as_echo "$enable_static" >&6; }
17918 ac_cpp
='$CPP $CPPFLAGS'
17919 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17920 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17921 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17925 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17926 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17927 (test "X$CXX" != "Xg++"))) ; then
17929 ac_cpp
='$CXXCPP $CPPFLAGS'
17930 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17931 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17932 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17934 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17935 if test -z "$CXXCPP"; then
17936 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17937 $as_echo_n "(cached) " >&6
17939 # Double quotes because CXXCPP needs to be expanded
17940 for CXXCPP
in "$CXX -E" "/lib/cpp"
17942 ac_preproc_ok
=false
17943 for ac_cxx_preproc_warn_flag
in '' yes
17945 # Use a header file that comes with gcc, so configuring glibc
17946 # with a fresh cross-compiler works.
17947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17948 # <limits.h> exists even on freestanding compilers.
17949 # On the NeXT, cc -E runs the code through the compiler's parser,
17950 # not just through cpp. "Syntax error" is here to catch this case.
17951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17952 /* end confdefs.h. */
17954 # include <limits.h>
17956 # include <assert.h>
17960 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17963 # Broken: fails on valid input.
17966 rm -f conftest.err conftest.
$ac_ext
17968 # OK, works on sane cases. Now check whether nonexistent headers
17969 # can be detected and how.
17970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17972 #include <ac_nonexistent.h>
17974 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17975 # Broken: success on invalid input.
17978 # Passes both tests.
17982 rm -f conftest.err conftest.
$ac_ext
17985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17986 rm -f conftest.err conftest.
$ac_ext
17987 if $ac_preproc_ok; then :
17992 ac_cv_prog_CXXCPP
=$CXXCPP
17995 CXXCPP
=$ac_cv_prog_CXXCPP
17997 ac_cv_prog_CXXCPP
=$CXXCPP
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18000 $as_echo "$CXXCPP" >&6; }
18001 ac_preproc_ok
=false
18002 for ac_cxx_preproc_warn_flag
in '' yes
18004 # Use a header file that comes with gcc, so configuring glibc
18005 # with a fresh cross-compiler works.
18006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18007 # <limits.h> exists even on freestanding compilers.
18008 # On the NeXT, cc -E runs the code through the compiler's parser,
18009 # not just through cpp. "Syntax error" is here to catch this case.
18010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18013 # include <limits.h>
18015 # include <assert.h>
18019 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18022 # Broken: fails on valid input.
18025 rm -f conftest.err conftest.
$ac_ext
18027 # OK, works on sane cases. Now check whether nonexistent headers
18028 # can be detected and how.
18029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18031 #include <ac_nonexistent.h>
18033 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18034 # Broken: success on invalid input.
18037 # Passes both tests.
18041 rm -f conftest.err conftest.
$ac_ext
18044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18045 rm -f conftest.err conftest.
$ac_ext
18046 if $ac_preproc_ok; then :
18049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18051 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18052 See \`config.log' for more details." "$LINENO" 5; }
18056 ac_cpp
='$CPP $CPPFLAGS'
18057 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18058 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18059 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18062 _lt_caught_CXX_error
=yes
18066 ac_cpp
='$CXXCPP $CPPFLAGS'
18067 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18068 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18071 archive_cmds_need_lc_CXX
=no
18072 allow_undefined_flag_CXX
=
18073 always_export_symbols_CXX
=no
18074 archive_expsym_cmds_CXX
=
18075 compiler_needs_object_CXX
=no
18076 export_dynamic_flag_spec_CXX
=
18077 hardcode_direct_CXX
=no
18078 hardcode_direct_absolute_CXX
=no
18079 hardcode_libdir_flag_spec_CXX
=
18080 hardcode_libdir_flag_spec_ld_CXX
=
18081 hardcode_libdir_separator_CXX
=
18082 hardcode_minus_L_CXX
=no
18083 hardcode_shlibpath_var_CXX
=unsupported
18084 hardcode_automatic_CXX
=no
18085 inherit_rpath_CXX
=no
18087 module_expsym_cmds_CXX
=
18088 link_all_deplibs_CXX
=unknown
18089 old_archive_cmds_CXX
=$old_archive_cmds
18090 reload_flag_CXX
=$reload_flag
18091 reload_cmds_CXX
=$reload_cmds
18092 no_undefined_flag_CXX
=
18093 whole_archive_flag_spec_CXX
=
18094 enable_shared_with_static_runtimes_CXX
=no
18096 # Source file extension for C++ test sources.
18099 # Object file extension for compiled C++ test sources.
18103 # No sense in running all these tests if we already determined that
18104 # the CXX compiler isn't working. Some variables (like enable_shared)
18105 # are currently assumed to apply to all compilers on this platform,
18106 # and will be corrupted by setting them based on a non-working compiler.
18107 if test "$_lt_caught_CXX_error" != yes; then
18108 # Code to be used in simple compile tests
18109 lt_simple_compile_test_code
="int some_variable = 0;"
18111 # Code to be used in simple link tests
18112 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18114 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18121 # If no C compiler was specified, use CC.
18124 # If no C compiler flags were specified, use CFLAGS.
18125 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18127 # Allow CC to be a program name with arguments.
18131 # save warnings/boilerplate of simple test code
18132 ac_outfile
=conftest.
$ac_objext
18133 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18134 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18135 _lt_compiler_boilerplate
=`cat conftest.err`
18138 ac_outfile
=conftest.
$ac_objext
18139 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18140 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18141 _lt_linker_boilerplate
=`cat conftest.err`
18145 # Allow CC to be a program name with arguments.
18150 lt_save_with_gnu_ld
=$with_gnu_ld
18151 lt_save_path_LD
=$lt_cv_path_LD
18152 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18153 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18155 $as_unset lt_cv_prog_gnu_ld
18157 if test -n "${lt_cv_path_LDCXX+set}"; then
18158 lt_cv_path_LD
=$lt_cv_path_LDCXX
18160 $as_unset lt_cv_path_LD
18162 test -z "${LDCXX+set}" || LD
=$LDCXX
18166 for cc_temp
in $compiler""; do
18168 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18169 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18174 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18177 if test -n "$compiler"; then
18178 # We don't want -fno-exception when compiling C++ code, so set the
18179 # no_builtin_flag separately
18180 if test "$GXX" = yes; then
18181 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18183 lt_prog_compiler_no_builtin_flag_CXX
=
18186 if test "$GXX" = yes; then
18187 # Set up default GNU C++ configuration
18191 # Check whether --with-gnu-ld was given.
18192 if test "${with_gnu_ld+set}" = set; then :
18193 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18199 if test "$GCC" = yes; then
18200 # Check if gcc -print-prog-name=ld gives a path.
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18202 $as_echo_n "checking for ld used by $CC... " >&6; }
18205 # gcc leaves a trailing carriage return which upsets mingw
18206 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18208 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18211 # Accept absolute paths.
18213 re_direlt
='/[^/][^/]*/\.\./'
18214 # Canonicalize the pathname of ld
18215 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18216 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18217 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18219 test -z "$LD" && LD
="$ac_prog"
18222 # If it fails, then pretend we aren't using GCC.
18226 # If it is relative, then search for the first ld in PATH.
18227 with_gnu_ld
=unknown
18230 elif test "$with_gnu_ld" = yes; then
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18232 $as_echo_n "checking for GNU ld... " >&6; }
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18235 $as_echo_n "checking for non-GNU ld... " >&6; }
18237 if test "${lt_cv_path_LD+set}" = set; then :
18238 $as_echo_n "(cached) " >&6
18240 if test -z "$LD"; then
18241 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18242 for ac_dir
in $PATH; do
18244 test -z "$ac_dir" && ac_dir
=.
18245 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18246 lt_cv_path_LD
="$ac_dir/$ac_prog"
18247 # Check to see if the program is GNU ld. I'd rather use --version,
18248 # but apparently some variants of GNU ld only accept -v.
18249 # Break only if it was the GNU/non-GNU ld that we prefer.
18250 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18251 *GNU
* |
*'with BFD'*)
18252 test "$with_gnu_ld" != no
&& break
18255 test "$with_gnu_ld" != yes && break
18262 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18266 LD
="$lt_cv_path_LD"
18267 if test -n "$LD"; then
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18269 $as_echo "$LD" >&6; }
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18272 $as_echo "no" >&6; }
18274 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18276 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18277 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18278 $as_echo_n "(cached) " >&6
18280 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18281 case `$LD -v 2>&1 </dev/null` in
18282 *GNU
* |
*'with BFD'*)
18283 lt_cv_prog_gnu_ld
=yes
18286 lt_cv_prog_gnu_ld
=no
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18291 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18292 with_gnu_ld
=$lt_cv_prog_gnu_ld
18300 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18301 # archiving commands below assume that GNU ld is being used.
18302 if test "$with_gnu_ld" = yes; then
18303 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18304 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'
18306 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18307 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18309 # If archive_cmds runs LD, not CC, wlarc should be empty
18310 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18311 # investigate it a little bit more. (MM)
18314 # ancient GNU ld didn't support --whole-archive et. al.
18315 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18316 $GREP 'no-whole-archive' > /dev
/null
; then
18317 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18319 whole_archive_flag_spec_CXX
=
18325 # A generic and very simple default shared library creation
18326 # command for GNU C++ for the case where it uses the native
18327 # linker, instead of GNU ld. If possible, this setting should
18328 # overridden to take advantage of the native linker features on
18329 # the platform it is being used on.
18330 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18333 # Commands to make compiler produce verbose output that lists
18334 # what "hidden" libraries, object files and flags are used when
18335 # linking a shared library.
18336 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18344 # PORTME: fill in a description of your system's C++ link characteristics
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18346 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18350 # FIXME: insert proper C++ library support
18354 if test "$host_cpu" = ia64
; then
18355 # On IA64, the linker does run time linking by default, so we don't
18356 # have to do anything special.
18357 aix_use_runtimelinking
=no
18358 exp_sym_flag
='-Bexport'
18361 aix_use_runtimelinking
=no
18363 # Test if we are trying to use run time linking or normal
18364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18365 # need to do runtime linking.
18366 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18367 for ld_flag
in $LDFLAGS; do
18370 aix_use_runtimelinking
=yes
18378 exp_sym_flag
='-bexport'
18379 no_entry_flag
='-bnoentry'
18382 # When large executables or shared objects are built, AIX ld can
18383 # have problems creating the table of contents. If linking a library
18384 # or program results in "error TOC overflow" add -mminimal-toc to
18385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18388 archive_cmds_CXX
=''
18389 hardcode_direct_CXX
=yes
18390 hardcode_direct_absolute_CXX
=yes
18391 hardcode_libdir_separator_CXX
=':'
18392 link_all_deplibs_CXX
=yes
18393 file_list_spec_CXX
='${wl}-f,'
18395 if test "$GXX" = yes; then
18396 case $host_os in aix4.
[012]|aix4.
[012].
*)
18397 # We only want to do this on AIX 4.2 and lower, the check
18398 # below for broken collect2 doesn't work under 4.3+
18399 collect2name
=`${CC} -print-prog-name=collect2`
18400 if test -f "$collect2name" &&
18401 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18403 # We have reworked collect2
18406 # We have old collect2
18407 hardcode_direct_CXX
=unsupported
18408 # It fails to find uninstalled libraries when the uninstalled
18409 # path is not listed in the libpath. Setting hardcode_minus_L
18410 # to unsupported forces relinking
18411 hardcode_minus_L_CXX
=yes
18412 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18413 hardcode_libdir_separator_CXX
=
18416 shared_flag
='-shared'
18417 if test "$aix_use_runtimelinking" = yes; then
18418 shared_flag
="$shared_flag "'${wl}-G'
18422 if test "$host_cpu" = ia64
; then
18423 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18424 # chokes on -Wl,-G. The following line is correct:
18427 if test "$aix_use_runtimelinking" = yes; then
18428 shared_flag
='${wl}-G'
18430 shared_flag
='${wl}-bM:SRE'
18435 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18436 # It seems that -bexpall does not export symbols beginning with
18437 # underscore (_), so it is better to generate a list of symbols to
18439 always_export_symbols_CXX
=yes
18440 if test "$aix_use_runtimelinking" = yes; then
18441 # Warning - without using the other runtime loading flags (-brtl),
18442 # -berok will link without error, but may produce a broken library.
18443 allow_undefined_flag_CXX
='-berok'
18444 # Determine the default libpath from the value encoded in an empty
18446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18457 if ac_fn_cxx_try_link
"$LINENO"; then :
18459 lt_aix_libpath_sed
='
18460 /Import File Strings/,/^$/ {
18466 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18467 # Check for a 64-bit object if we didn't find anything.
18468 if test -z "$aix_libpath"; then
18469 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18472 rm -f core conftest.err conftest.
$ac_objext \
18473 conftest
$ac_exeext conftest.
$ac_ext
18474 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18476 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18478 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"
18480 if test "$host_cpu" = ia64
; then
18481 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18482 allow_undefined_flag_CXX
="-z nodefs"
18483 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"
18485 # Determine the default libpath from the value encoded in an
18486 # empty executable.
18487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18488 /* end confdefs.h. */
18498 if ac_fn_cxx_try_link
"$LINENO"; then :
18500 lt_aix_libpath_sed
='
18501 /Import File Strings/,/^$/ {
18507 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18508 # Check for a 64-bit object if we didn't find anything.
18509 if test -z "$aix_libpath"; then
18510 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18513 rm -f core conftest.err conftest.
$ac_objext \
18514 conftest
$ac_exeext conftest.
$ac_ext
18515 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18517 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18518 # Warning - without using the other run time loading flags,
18519 # -berok will link without error, but may produce a broken library.
18520 no_undefined_flag_CXX
=' ${wl}-bernotok'
18521 allow_undefined_flag_CXX
=' ${wl}-berok'
18522 if test "$with_gnu_ld" = yes; then
18523 # We only use this code for GNU lds that support --whole-archive.
18524 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18526 # Exported symbols can be pulled into shared objects from archives
18527 whole_archive_flag_spec_CXX
='$convenience'
18529 archive_cmds_need_lc_CXX
=yes
18530 # This is similar to how AIX traditionally builds its shared
18532 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'
18538 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18539 allow_undefined_flag_CXX
=unsupported
18540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18541 # support --undefined. This deserves some investigation. FIXME
18542 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18549 case $cc_basename in
18551 # FIXME: insert proper C++ library support
18557 cygwin
* | mingw
* | pw32
* | cegcc
*)
18558 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18559 # as there is no search path for DLLs.
18560 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18561 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18562 allow_undefined_flag_CXX
=unsupported
18563 always_export_symbols_CXX
=no
18564 enable_shared_with_static_runtimes_CXX
=yes
18566 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18567 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'
18568 # If the export-symbols file already is a .def file (1st line
18569 # is EXPORTS), use it as is; otherwise, prepend...
18570 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18571 cp $export_symbols $output_objdir/$soname.def;
18573 echo EXPORTS > $output_objdir/$soname.def;
18574 cat $export_symbols >> $output_objdir/$soname.def;
18576 $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'
18581 darwin
* | rhapsody
*)
18584 archive_cmds_need_lc_CXX
=no
18585 hardcode_direct_CXX
=no
18586 hardcode_automatic_CXX
=yes
18587 hardcode_shlibpath_var_CXX
=unsupported
18588 if test "$lt_cv_ld_force_load" = "yes"; then
18589 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\"`'
18591 whole_archive_flag_spec_CXX
=''
18593 link_all_deplibs_CXX
=yes
18594 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18595 case $cc_basename in
18596 ifort
*) _lt_dar_can_shared
=yes ;;
18597 *) _lt_dar_can_shared
=$GCC ;;
18599 if test "$_lt_dar_can_shared" = "yes"; then
18600 output_verbose_link_cmd
=func_echo_all
18601 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}"
18602 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18603 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}"
18604 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}"
18605 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18606 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}"
18607 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}"
18617 case $cc_basename in
18619 # FIXME: insert proper C++ library support
18623 # Green Hills C++ Compiler
18624 # FIXME: insert proper C++ library support
18628 # FIXME: insert proper C++ library support
18635 # C++ shared libraries reported to be fairly broken before
18641 archive_cmds_need_lc_CXX
=no
18644 freebsd
* | dragonfly
*)
18645 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18654 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655 link_all_deplibs_CXX
=yes
18659 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18660 hardcode_libdir_separator_CXX
=:
18661 export_dynamic_flag_spec_CXX
='${wl}-E'
18662 hardcode_direct_CXX
=yes
18663 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18664 # but as the default
18665 # location of the library.
18667 case $cc_basename in
18669 # FIXME: insert proper C++ library support
18673 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'
18674 # Commands to make compiler produce verbose output that lists
18675 # what "hidden" libraries, object files and flags are used when
18676 # linking a shared library.
18678 # There doesn't appear to be a way to prevent this compiler from
18679 # explicitly linking system object files so we need to strip them
18680 # from the output so that they don't get included in the library
18682 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"'
18685 if test "$GXX" = yes; then
18686 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'
18688 # FIXME: insert proper C++ library support
18696 if test $with_gnu_ld = no
; then
18697 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18698 hardcode_libdir_separator_CXX
=:
18704 export_dynamic_flag_spec_CXX
='${wl}-E'
18710 hardcode_direct_CXX
=no
18711 hardcode_shlibpath_var_CXX
=no
18714 hardcode_direct_CXX
=yes
18715 hardcode_direct_absolute_CXX
=yes
18716 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18717 # but as the default
18718 # location of the library.
18722 case $cc_basename in
18724 # FIXME: insert proper C++ library support
18730 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18733 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18736 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18739 # Commands to make compiler produce verbose output that lists
18740 # what "hidden" libraries, object files and flags are used when
18741 # linking a shared library.
18743 # There doesn't appear to be a way to prevent this compiler from
18744 # explicitly linking system object files so we need to strip them
18745 # from the output so that they don't get included in the library
18747 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"'
18750 if test "$GXX" = yes; then
18751 if test $with_gnu_ld = no
; then
18754 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18757 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18760 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'
18765 # FIXME: insert proper C++ library support
18773 hardcode_direct_CXX
=no
18774 hardcode_shlibpath_var_CXX
=no
18775 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18776 export_dynamic_flag_spec_CXX
='${wl}-E'
18777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18778 # Instead, shared libraries are loaded at an image base (0x10000000 by
18779 # default) and relocated if they conflict, which is a slow very memory
18780 # consuming and fragmenting process. To avoid this, we pick a random,
18781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18782 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18783 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'
18784 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'
18787 case $cc_basename in
18790 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'
18792 # Archives containing C++ object files must be created using
18793 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18794 # necessary to make sure instantiated templates are included
18796 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18799 if test "$GXX" = yes; then
18800 if test "$with_gnu_ld" = no
; then
18801 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'
18803 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'
18806 link_all_deplibs_CXX
=yes
18809 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18810 hardcode_libdir_separator_CXX
=:
18811 inherit_rpath_CXX
=yes
18814 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18815 case $cc_basename in
18817 # Kuck and Associates, Inc. (KAI) C++ Compiler
18819 # KCC will only create a shared library if the output file
18820 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18821 # to its proper name (with version) after linking.
18822 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'
18823 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'
18824 # Commands to make compiler produce verbose output that lists
18825 # what "hidden" libraries, object files and flags are used when
18826 # linking a shared library.
18828 # There doesn't appear to be a way to prevent this compiler from
18829 # explicitly linking system object files so we need to strip them
18830 # from the output so that they don't get included in the library
18832 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"'
18834 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18835 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18837 # Archives containing C++ object files must be created using
18838 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18839 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18844 # version 8.0 and above of icpc choke on multiply defined symbols
18845 # if we add $predep_objects and $postdep_objects, however 7.1 and
18846 # earlier do not add the objects themselves.
18847 case `$CC -V 2>&1` in
18849 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18850 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'
18852 *) # Version 8.0 or newer
18855 ia64
*) tmp_idyn
=' -i_dynamic';;
18857 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18858 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'
18861 archive_cmds_need_lc_CXX
=no
18862 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18863 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18864 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18867 # Portland Group C++ compiler
18869 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
18870 prelink_cmds_CXX
='tpldir=Template.dir~
18872 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18873 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18874 old_archive_cmds_CXX
='tpldir=Template.dir~
18876 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18877 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18879 archive_cmds_CXX
='tpldir=Template.dir~
18881 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18882 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18883 archive_expsym_cmds_CXX
='tpldir=Template.dir~
18885 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18886 $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'
18888 *) # Version 6 and above use weak symbols
18889 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18890 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'
18894 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18895 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18896 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'
18900 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18901 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'
18903 runpath_var
=LD_RUN_PATH
18904 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18905 hardcode_libdir_separator_CXX
=:
18907 # Commands to make compiler produce verbose output that lists
18908 # what "hidden" libraries, object files and flags are used when
18909 # linking a shared library.
18911 # There doesn't appear to be a way to prevent this compiler from
18912 # explicitly linking system object files so we need to strip them
18913 # from the output so that they don't get included in the library
18915 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'
18917 xl
* | mpixl
* | bgxl
*)
18918 # IBM XL 8.0 on PPC, with GNU ld
18919 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18920 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18921 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18922 if test "x$supports_anon_versioning" = xyes
; then
18923 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
18924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18925 echo "local: *; };" >> $output_objdir/$libname.ver~
18926 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18930 case `$CC -V 2>&1 | sed 5q` in
18933 no_undefined_flag_CXX
=' -zdefs'
18934 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18935 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'
18936 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18937 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'
18938 compiler_needs_object_CXX
=yes
18940 # Not sure whether something based on
18941 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18943 output_verbose_link_cmd
='func_echo_all'
18945 # Archives containing C++ object files must be created using
18946 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18947 # necessary to make sure instantiated templates are included
18949 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18957 # FIXME: insert proper C++ library support
18962 # FIXME: insert proper C++ library support
18967 case $cc_basename in
18969 # FIXME: insert proper C++ library support
18973 # FIXME: insert proper C++ library support
18980 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18981 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18983 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18984 hardcode_direct_CXX
=yes
18985 hardcode_shlibpath_var_CXX
=no
18987 # Workaround some broken pre-1.5 toolchains
18988 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18996 # C++ shared libraries are fairly broken
19001 if test -f /usr
/libexec
/ld.so
; then
19002 hardcode_direct_CXX
=yes
19003 hardcode_shlibpath_var_CXX
=no
19004 hardcode_direct_absolute_CXX
=yes
19005 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19006 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19008 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19009 export_dynamic_flag_spec_CXX
='${wl}-E'
19010 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19012 output_verbose_link_cmd
=func_echo_all
19018 osf3
* | osf4
* | osf5
*)
19019 case $cc_basename in
19021 # Kuck and Associates, Inc. (KAI) C++ Compiler
19023 # KCC will only create a shared library if the output file
19024 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19025 # to its proper name (with version) after linking.
19026 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'
19028 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19029 hardcode_libdir_separator_CXX
=:
19031 # Archives containing C++ object files must be created using
19032 # the KAI C++ compiler.
19034 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19035 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19039 # Rational C++ 2.4.1
19040 # FIXME: insert proper C++ library support
19046 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19047 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'
19048 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19051 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19052 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'
19053 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19054 echo "-hidden">> $lib.exp~
19055 $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~
19057 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19061 hardcode_libdir_separator_CXX
=:
19063 # Commands to make compiler produce verbose output that lists
19064 # what "hidden" libraries, object files and flags are used when
19065 # linking a shared library.
19067 # There doesn't appear to be a way to prevent this compiler from
19068 # explicitly linking system object files so we need to strip them
19069 # from the output so that they don't get included in the library
19071 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"'
19074 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19075 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19078 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'
19081 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'
19085 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19086 hardcode_libdir_separator_CXX
=:
19088 # Commands to make compiler produce verbose output that lists
19089 # what "hidden" libraries, object files and flags are used when
19090 # linking a shared library.
19091 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19094 # FIXME: insert proper C++ library support
19102 # FIXME: insert proper C++ library support
19107 case $cc_basename in
19110 # FIXME: insert proper C++ library support
19115 # FIXME: insert proper C++ library support
19119 # FIXME: insert proper C++ library support
19126 case $cc_basename in
19128 # Sun C++ 4.2, 5.x and Centerline C++
19129 archive_cmds_need_lc_CXX
=yes
19130 no_undefined_flag_CXX
=' -zdefs'
19131 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19132 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19133 $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'
19135 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19136 hardcode_shlibpath_var_CXX
=no
19138 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19140 # The compiler driver will combine and reorder linker options,
19141 # but understands `-z linker_flag'.
19142 # Supported since Solaris 2.6 (maybe 2.5.1?)
19143 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19146 link_all_deplibs_CXX
=yes
19148 output_verbose_link_cmd
='func_echo_all'
19150 # Archives containing C++ object files must be created using
19151 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19152 # necessary to make sure instantiated templates are included
19154 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19157 # Green Hills C++ Compiler
19158 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19160 # The C++ compiler must be used to create the archive.
19161 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19164 # GNU C++ compiler with Solaris linker
19165 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19166 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19167 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19168 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19169 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19170 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19172 # Commands to make compiler produce verbose output that lists
19173 # what "hidden" libraries, object files and flags are used when
19174 # linking a shared library.
19175 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19177 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19179 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19180 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19181 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19183 # Commands to make compiler produce verbose output that lists
19184 # what "hidden" libraries, object files and flags are used when
19185 # linking a shared library.
19186 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19189 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19191 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19193 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19201 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19202 no_undefined_flag_CXX
='${wl}-z,text'
19203 archive_cmds_need_lc_CXX
=no
19204 hardcode_shlibpath_var_CXX
=no
19205 runpath_var
='LD_RUN_PATH'
19207 case $cc_basename in
19209 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19210 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19213 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19214 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19219 sysv5
* | sco3.2v5
* | sco5v6
*)
19220 # Note: We can NOT use -z defs as we might desire, because we do not
19221 # link with -lc, and that would cause any symbols used from libc to
19222 # always be unresolved, which means just about no library would
19223 # ever link correctly. If we're not using GNU ld we use -z text
19224 # though, which does catch some bad symbols but isn't as heavy-handed
19226 no_undefined_flag_CXX
='${wl}-z,text'
19227 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19228 archive_cmds_need_lc_CXX
=no
19229 hardcode_shlibpath_var_CXX
=no
19230 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19231 hardcode_libdir_separator_CXX
=':'
19232 link_all_deplibs_CXX
=yes
19233 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19234 runpath_var
='LD_RUN_PATH'
19236 case $cc_basename in
19238 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19239 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19240 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19241 '"$old_archive_cmds_CXX"
19242 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19243 '"$reload_cmds_CXX"
19246 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19247 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19253 case $cc_basename in
19255 # NonStop-UX NCC 3.20
19256 # FIXME: insert proper C++ library support
19260 # FIXME: insert proper C++ library support
19267 # FIXME: insert proper C++ library support
19272 # FIXME: insert proper C++ library support
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19278 $as_echo "$ld_shlibs_CXX" >&6; }
19279 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19285 ## There is no encapsulation within the following macros, do not change
19286 ## the running order or otherwise move them around unless you know exactly
19287 ## what you are doing...
19288 # Dependencies to place before and after the object being linked:
19289 predep_objects_CXX
=
19290 postdep_objects_CXX
=
19293 compiler_lib_search_path_CXX
=
19295 cat > conftest.
$ac_ext <<_LT_EOF
19299 Foo (void) { a = 0; }
19305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19306 (eval $ac_compile) 2>&5
19308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19309 test $ac_status = 0; }; then
19310 # Parse the compiler output and extract the necessary
19311 # objects, libraries and library flags.
19313 # Sentinel used to keep track of whether or not we are before
19314 # the conftest object file.
19315 pre_test_object_deps_done
=no
19317 for p
in `eval "$output_verbose_link_cmd"`; do
19321 # Some compilers place space between "-{L,R}" and the path.
19322 # Remove the space.
19323 if test $p = "-L" ||
19324 test $p = "-R"; then
19331 if test "$pre_test_object_deps_done" = no
; then
19334 # Internal compiler library paths should come after those
19335 # provided the user. The postdeps already come after the
19336 # user supplied libs so there is no need to process them.
19337 if test -z "$compiler_lib_search_path_CXX"; then
19338 compiler_lib_search_path_CXX
="${prev}${p}"
19340 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19343 # The "-l" case would never come before the object being
19344 # linked, so don't bother handling this case.
19347 if test -z "$postdeps_CXX"; then
19348 postdeps_CXX
="${prev}${p}"
19350 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19356 # This assumes that the test object file only shows up
19357 # once in the compiler output.
19358 if test "$p" = "conftest.$objext"; then
19359 pre_test_object_deps_done
=yes
19363 if test "$pre_test_object_deps_done" = no
; then
19364 if test -z "$predep_objects_CXX"; then
19365 predep_objects_CXX
="$p"
19367 predep_objects_CXX
="$predep_objects_CXX $p"
19370 if test -z "$postdep_objects_CXX"; then
19371 postdep_objects_CXX
="$p"
19373 postdep_objects_CXX
="$postdep_objects_CXX $p"
19378 *) ;; # Ignore the rest.
19386 echo "libtool.m4: error: problem compiling CXX test program"
19389 $RM -f confest.
$objext
19391 # PORTME: override above test on systems where it is broken
19394 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19395 # hack all around it, let's just trust "g++" to DTRT.
19396 predep_objects_CXX
=
19397 postdep_objects_CXX
=
19402 case `$CC -V 2>&1 | sed 5q` in
19406 # The more standards-conforming stlport4 library is
19407 # incompatible with the Cstd library. Avoid specifying
19408 # it if it's in CXXFLAGS. Ignore libCrun as
19409 # -library=stlport4 depends on it.
19410 case " $CXX $CXXFLAGS " in
19411 *" -library=stlport4 "*)
19412 solaris_use_stlport4
=yes
19416 if test "$solaris_use_stlport4" != yes; then
19417 postdeps_CXX
='-library=Cstd -library=Crun'
19424 case $cc_basename in
19426 # The more standards-conforming stlport4 library is
19427 # incompatible with the Cstd library. Avoid specifying
19428 # it if it's in CXXFLAGS. Ignore libCrun as
19429 # -library=stlport4 depends on it.
19430 case " $CXX $CXXFLAGS " in
19431 *" -library=stlport4 "*)
19432 solaris_use_stlport4
=yes
19436 # Adding this requires a known-good setup of shared libraries for
19437 # Sun compiler versions before 5.6, else PIC objects from an old
19438 # archive will be linked into the output, leading to subtle bugs.
19439 if test "$solaris_use_stlport4" != yes; then
19440 postdeps_CXX
='-library=Cstd -library=Crun'
19448 case " $postdeps_CXX " in
19449 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19451 compiler_lib_search_dirs_CXX
=
19452 if test -n "${compiler_lib_search_path_CXX}"; then
19453 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19486 lt_prog_compiler_wl_CXX
=
19487 lt_prog_compiler_pic_CXX
=
19488 lt_prog_compiler_static_CXX
=
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19491 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19493 # C++ specific cases for pic, static, wl, etc.
19494 if test "$GXX" = yes; then
19495 lt_prog_compiler_wl_CXX
='-Wl,'
19496 lt_prog_compiler_static_CXX
='-static'
19500 # All AIX code is PIC.
19501 if test "$host_cpu" = ia64
; then
19502 # AIX 5 now supports IA64 processor
19503 lt_prog_compiler_static_CXX
='-Bstatic'
19510 # see comment about AmigaOS4 .so support
19511 lt_prog_compiler_pic_CXX
='-fPIC'
19514 # FIXME: we need at least 68020 code to build shared libraries, but
19515 # adding the `-m68020' flag to GCC prevents building anything better,
19517 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19522 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19523 # PIC is the default for these OSes.
19525 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19526 # This hack is so that the source file can tell whether it is being
19527 # built for inclusion in a dll (and should export symbols for example).
19528 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19529 # (--disable-auto-import) libraries
19530 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19532 darwin
* | rhapsody
*)
19533 # PIC is the default on this platform
19534 # Common symbols not allowed in MH_DYLIB files
19535 lt_prog_compiler_pic_CXX
='-fno-common'
19538 # DJGPP does not support shared libraries at all
19539 lt_prog_compiler_pic_CXX
=
19542 # PIC is the default for Haiku.
19543 # The "-static" flag exists, but is broken.
19544 lt_prog_compiler_static_CXX
=
19547 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19548 # Instead, we relocate shared libraries at runtime.
19551 if test -d /usr
/nec
; then
19552 lt_prog_compiler_pic_CXX
=-Kconform_pic
19556 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19557 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19558 # sets the default TLS model and affects inlining.
19563 lt_prog_compiler_pic_CXX
='-fPIC'
19568 # QNX uses GNU C++, but need to define -shared option too, otherwise
19569 # it will coredump.
19570 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19573 lt_prog_compiler_pic_CXX
='-fPIC'
19579 # All AIX code is PIC.
19580 if test "$host_cpu" = ia64
; then
19581 # AIX 5 now supports IA64 processor
19582 lt_prog_compiler_static_CXX
='-Bstatic'
19584 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19588 case $cc_basename in
19590 # Green Hills C++ Compiler
19591 # _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"
19596 case $cc_basename in
19598 lt_prog_compiler_pic_CXX
='-KPIC'
19601 # Green Hills C++ Compiler
19602 lt_prog_compiler_pic_CXX
='-pic'
19608 freebsd
* | dragonfly
*)
19609 # FreeBSD uses GNU C++
19611 hpux9
* | hpux10
* | hpux11
*)
19612 case $cc_basename in
19614 lt_prog_compiler_wl_CXX
='-Wl,'
19615 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19616 if test "$host_cpu" != ia64
; then
19617 lt_prog_compiler_pic_CXX
='+Z'
19621 lt_prog_compiler_wl_CXX
='-Wl,'
19622 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19628 lt_prog_compiler_pic_CXX
='+Z'
19637 # This is c89, which is MS Visual C++ (no shared libs)
19638 # Anyone wants to do a port?
19640 irix5
* | irix6
* | nonstopux
*)
19641 case $cc_basename in
19643 lt_prog_compiler_wl_CXX
='-Wl,'
19644 lt_prog_compiler_static_CXX
='-non_shared'
19645 # CC pic flag -KPIC is the default.
19651 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19652 case $cc_basename in
19655 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19656 lt_prog_compiler_pic_CXX
='-fPIC'
19659 # old Intel C++ for x86_64 which still supported -KPIC.
19660 lt_prog_compiler_wl_CXX
='-Wl,'
19661 lt_prog_compiler_pic_CXX
='-KPIC'
19662 lt_prog_compiler_static_CXX
='-static'
19665 # Intel C++, used to be incompatible with GCC.
19666 # ICC 10 doesn't accept -KPIC any more.
19667 lt_prog_compiler_wl_CXX
='-Wl,'
19668 lt_prog_compiler_pic_CXX
='-fPIC'
19669 lt_prog_compiler_static_CXX
='-static'
19672 # Portland Group C++ compiler
19673 lt_prog_compiler_wl_CXX
='-Wl,'
19674 lt_prog_compiler_pic_CXX
='-fpic'
19675 lt_prog_compiler_static_CXX
='-Bstatic'
19679 # Make sure the PIC flag is empty. It appears that all Alpha
19680 # Linux and Compaq Tru64 Unix objects are PIC.
19681 lt_prog_compiler_pic_CXX
=
19682 lt_prog_compiler_static_CXX
='-non_shared'
19684 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19685 # IBM XL 8.0, 9.0 on PPC and BlueGene
19686 lt_prog_compiler_wl_CXX
='-Wl,'
19687 lt_prog_compiler_pic_CXX
='-qpic'
19688 lt_prog_compiler_static_CXX
='-qstaticlink'
19691 case `$CC -V 2>&1 | sed 5q` in
19694 lt_prog_compiler_pic_CXX
='-KPIC'
19695 lt_prog_compiler_static_CXX
='-Bstatic'
19696 lt_prog_compiler_wl_CXX
='-Qoption ld '
19707 case $cc_basename in
19709 lt_prog_compiler_pic_CXX
='-W c,exportall'
19718 # QNX uses GNU C++, but need to define -shared option too, otherwise
19719 # it will coredump.
19720 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19722 osf3
* | osf4
* | osf5
*)
19723 case $cc_basename in
19725 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19728 # Rational C++ 2.4.1
19729 lt_prog_compiler_pic_CXX
='-pic'
19732 # Digital/Compaq C++
19733 lt_prog_compiler_wl_CXX
='-Wl,'
19734 # Make sure the PIC flag is empty. It appears that all Alpha
19735 # Linux and Compaq Tru64 Unix objects are PIC.
19736 lt_prog_compiler_pic_CXX
=
19737 lt_prog_compiler_static_CXX
='-non_shared'
19746 case $cc_basename in
19748 # Sun C++ 4.2, 5.x and Centerline C++
19749 lt_prog_compiler_pic_CXX
='-KPIC'
19750 lt_prog_compiler_static_CXX
='-Bstatic'
19751 lt_prog_compiler_wl_CXX
='-Qoption ld '
19754 # Green Hills C++ Compiler
19755 lt_prog_compiler_pic_CXX
='-PIC'
19762 case $cc_basename in
19765 lt_prog_compiler_pic_CXX
='-pic'
19766 lt_prog_compiler_static_CXX
='-Bstatic'
19770 lt_prog_compiler_pic_CXX
='-pic'
19776 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19777 case $cc_basename in
19779 lt_prog_compiler_wl_CXX
='-Wl,'
19780 lt_prog_compiler_pic_CXX
='-KPIC'
19781 lt_prog_compiler_static_CXX
='-Bstatic'
19786 case $cc_basename in
19788 # NonStop-UX NCC 3.20
19789 lt_prog_compiler_pic_CXX
='-KPIC'
19798 lt_prog_compiler_can_build_shared_CXX
=no
19804 # For platforms which do not support PIC, -DPIC is meaningless:
19806 lt_prog_compiler_pic_CXX
=
19809 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19813 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19818 # Check to make sure the PIC flag actually works.
19820 if test -n "$lt_prog_compiler_pic_CXX"; then
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19822 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19823 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19824 $as_echo_n "(cached) " >&6
19826 lt_cv_prog_compiler_pic_works_CXX
=no
19827 ac_outfile
=conftest.
$ac_objext
19828 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19829 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19830 # Insert the option either (1) after the last *FLAGS variable, or
19831 # (2) before a word containing "conftest.", or (3) at the end.
19832 # Note that $ac_compile itself does not contain backslashes and begins
19833 # with a dollar sign (not a hyphen), so the echo should work correctly.
19834 # The option is referenced via a variable to avoid confusing sed.
19835 lt_compile
=`echo "$ac_compile" | $SED \
19836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19838 -e 's:$: $lt_compiler_flag:'`
19839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19840 (eval "$lt_compile" 2>conftest.err
)
19842 cat conftest.err
>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 if (exit $ac_status) && test -s "$ac_outfile"; then
19845 # The compiler can only warn and ignore the option if not recognized
19846 # So say no if there are warnings other than the usual output.
19847 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
19848 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19849 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19850 lt_cv_prog_compiler_pic_works_CXX
=yes
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19857 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19859 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
19860 case $lt_prog_compiler_pic_CXX in
19862 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19865 lt_prog_compiler_pic_CXX
=
19866 lt_prog_compiler_can_build_shared_CXX
=no
19874 # Check to make sure the static flag actually works.
19876 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19878 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19879 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19880 $as_echo_n "(cached) " >&6
19882 lt_cv_prog_compiler_static_works_CXX
=no
19883 save_LDFLAGS
="$LDFLAGS"
19884 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19885 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19886 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19887 # The linker can only warn and ignore the option if not recognized
19888 # So say no if there are warnings
19889 if test -s conftest.err
; then
19890 # Append any errors to the config.log.
19891 cat conftest.err
1>&5
19892 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19893 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19894 if diff conftest.exp conftest.er2
>/dev
/null
; then
19895 lt_cv_prog_compiler_static_works_CXX
=yes
19898 lt_cv_prog_compiler_static_works_CXX
=yes
19902 LDFLAGS
="$save_LDFLAGS"
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19906 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19908 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
19911 lt_prog_compiler_static_CXX
=
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19918 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19919 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19920 $as_echo_n "(cached) " >&6
19922 lt_cv_prog_compiler_c_o_CXX
=no
19923 $RM -r conftest
2>/dev
/null
19927 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19929 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19930 # Insert the option either (1) after the last *FLAGS variable, or
19931 # (2) before a word containing "conftest.", or (3) at the end.
19932 # Note that $ac_compile itself does not contain backslashes and begins
19933 # with a dollar sign (not a hyphen), so the echo should work correctly.
19934 lt_compile
=`echo "$ac_compile" | $SED \
19935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19937 -e 's:$: $lt_compiler_flag:'`
19938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19939 (eval "$lt_compile" 2>out
/conftest.err
)
19941 cat out
/conftest.err
>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19945 # The compiler can only warn and ignore the option if not recognized
19946 # So say no if there are warnings
19947 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19948 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19949 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19950 lt_cv_prog_compiler_c_o_CXX
=yes
19955 # SGI C++ compiler will create directory out/ii_files/ for
19956 # template instantiation
19957 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19958 $RM out
/* && rmdir out
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19965 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19970 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19971 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19972 $as_echo_n "(cached) " >&6
19974 lt_cv_prog_compiler_c_o_CXX
=no
19975 $RM -r conftest
2>/dev
/null
19979 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19981 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19982 # Insert the option either (1) after the last *FLAGS variable, or
19983 # (2) before a word containing "conftest.", or (3) at the end.
19984 # Note that $ac_compile itself does not contain backslashes and begins
19985 # with a dollar sign (not a hyphen), so the echo should work correctly.
19986 lt_compile
=`echo "$ac_compile" | $SED \
19987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19989 -e 's:$: $lt_compiler_flag:'`
19990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19991 (eval "$lt_compile" 2>out
/conftest.err
)
19993 cat out
/conftest.err
>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19997 # The compiler can only warn and ignore the option if not recognized
19998 # So say no if there are warnings
19999 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20000 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20001 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20002 lt_cv_prog_compiler_c_o_CXX
=yes
20007 # SGI C++ compiler will create directory out/ii_files/ for
20008 # template instantiation
20009 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20010 $RM out
/* && rmdir out
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20017 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20022 hard_links
="nottested"
20023 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20024 # do not overwrite the value of need_locks provided by the user
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20026 $as_echo_n "checking if we can lock with hard links... " >&6; }
20029 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20031 ln conftest.a conftest.b
2>&5 || hard_links
=no
20032 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20034 $as_echo "$hard_links" >&6; }
20035 if test "$hard_links" = no
; then
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20037 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20047 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20049 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20052 # If we're using GNU nm, then we don't want the "-C" option.
20053 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20054 # Also, AIX nm treats weak defined symbols like other global defined
20055 # symbols, whereas GNU nm marks them as "W".
20056 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20057 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'
20059 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'
20063 export_symbols_cmds_CXX
="$ltdll_cmds"
20065 cygwin
* | mingw
* | cegcc
*)
20066 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'
20069 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20072 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20075 $as_echo "$ld_shlibs_CXX" >&6; }
20076 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20078 with_gnu_ld_CXX
=$with_gnu_ld
20086 # Do we need to explicitly link libc?
20088 case "x$archive_cmds_need_lc_CXX" in
20090 # Assume -lc should be added
20091 archive_cmds_need_lc_CXX
=yes
20093 if test "$enable_shared" = yes && test "$GCC" = yes; then
20094 case $archive_cmds_CXX in
20096 # FIXME: we may have to deal with multi-command sequences.
20099 # Test whether the compiler implicitly links with -lc since on some
20100 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20101 # to ld, don't add -lc before -lgcc.
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20104 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20105 $as_echo_n "(cached) " >&6
20108 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20111 (eval $ac_compile) 2>&5
20113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20114 test $ac_status = 0; } 2>conftest.err
; then
20117 libobjs
=conftest.
$ac_objext
20119 wl
=$lt_prog_compiler_wl_CXX
20120 pic_flag
=$lt_prog_compiler_pic_CXX
20126 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20127 allow_undefined_flag_CXX
=
20128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20129 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20132 test $ac_status = 0; }
20134 lt_cv_archive_cmds_need_lc_CXX
=no
20136 lt_cv_archive_cmds_need_lc_CXX
=yes
20138 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20140 cat conftest.err
1>&5
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20146 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20147 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20218 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20220 library_names_spec
=
20221 libname_spec
='lib$name'
20225 postuninstall_cmds
=
20229 shlibpath_overrides_runpath
=unknown
20231 dynamic_linker
="$host_os ld.so"
20232 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20233 need_lib_prefix
=unknown
20234 hardcode_into_libs
=no
20236 # when you set need_version to no, make sure it does not cause -set_version
20237 # flags to be left without arguments
20238 need_version
=unknown
20243 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20244 shlibpath_var
=LIBPATH
20246 # AIX 3 has no versioning support, so we append a major version to the name.
20247 soname_spec
='${libname}${release}${shared_ext}$major'
20254 hardcode_into_libs
=yes
20255 if test "$host_cpu" = ia64
; then
20256 # AIX 5 supports IA64
20257 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20258 shlibpath_var
=LD_LIBRARY_PATH
20260 # With GCC up to 2.95.x, collect2 would create an import file
20261 # for dependence libraries. The import file would start with
20262 # the line `#! .'. This would cause the generated library to
20263 # depend on `.', always an invalid library. This was fixed in
20264 # development snapshots of GCC prior to 3.0.
20266 aix4 | aix4.
[01] | aix4.
[01].
*)
20267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20269 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20272 can_build_shared
=no
20276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20277 # soname into executable. Probably we can add versioning support to
20278 # collect2, so additional links can be useful in future.
20279 if test "$aix_use_runtimelinking" = yes; then
20280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20281 # instead of lib<name>.a to let people know that these are not
20282 # typical AIX shared libraries.
20283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20285 # We preserve .a as extension for shared libraries through AIX4.2
20286 # and later when we are not doing run time linking.
20287 library_names_spec
='${libname}${release}.a $libname.a'
20288 soname_spec
='${libname}${release}${shared_ext}$major'
20290 shlibpath_var
=LIBPATH
20297 # Since July 2007 AmigaOS4 officially supports .so libraries.
20298 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20302 library_names_spec
='$libname.ixlibrary $libname.a'
20303 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20304 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'
20310 library_names_spec
='${libname}${shared_ext}'
20311 dynamic_linker
="$host_os ld.so"
20312 shlibpath_var
=LIBRARY_PATH
20318 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20319 soname_spec
='${libname}${release}${shared_ext}$major'
20320 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20321 shlibpath_var
=LD_LIBRARY_PATH
20322 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20323 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20324 # the default ld.so.conf also contains /usr/contrib/lib and
20325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20326 # libtool to hard-code these into programs
20329 cygwin
* | mingw
* | pw32
* | cegcc
*)
20330 version_type
=windows
20335 case $GCC,$host_os in
20336 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20337 library_names_spec
='$libname.dll.a'
20338 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20339 postinstall_cmds
='base_file=`basename \${file}`~
20340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20341 dldir=$destdir/`dirname \$dlpath`~
20342 test -d \$dldir || mkdir -p \$dldir~
20343 $install_prog $dir/$dlname \$dldir/$dlname~
20344 chmod a+x \$dldir/$dlname~
20345 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20346 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20348 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20349 dlpath=$dir/\$dldll~
20351 shlibpath_overrides_runpath
=yes
20355 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20356 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20360 # MinGW DLLs use traditional 'lib' prefix
20361 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20364 # pw32 DLLs use 'pw' prefix rather than 'lib'
20365 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20371 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20374 dynamic_linker
='Win32 ld.exe'
20375 # FIXME: first we should search . and the directory the executable is in
20379 darwin
* | rhapsody
*)
20380 dynamic_linker
="$host_os dyld"
20381 version_type
=darwin
20384 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20385 soname_spec
='${libname}${release}${major}$shared_ext'
20386 shlibpath_overrides_runpath
=yes
20387 shlibpath_var
=DYLD_LIBRARY_PATH
20388 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20390 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20397 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20398 soname_spec
='${libname}${release}${shared_ext}$major'
20399 shlibpath_var
=LD_LIBRARY_PATH
20402 freebsd
* | dragonfly
*)
20403 # DragonFly does not have aout. When/if they implement a new
20404 # versioning mechanism, adjust this.
20405 if test -x /usr
/bin
/objformat
; then
20406 objformat
=`/usr/bin/objformat`
20409 freebsd
[123]*) objformat
=aout
;;
20410 *) objformat
=elf
;;
20413 version_type
=freebsd-
$objformat
20414 case $version_type in
20416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20421 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20425 shlibpath_var
=LD_LIBRARY_PATH
20428 shlibpath_overrides_runpath
=yes
20430 freebsd3.
[01]* | freebsdelf3.
[01]*)
20431 shlibpath_overrides_runpath
=yes
20432 hardcode_into_libs
=yes
20434 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20435 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20436 shlibpath_overrides_runpath
=no
20437 hardcode_into_libs
=yes
20439 *) # from 4.6 on, and DragonFly
20440 shlibpath_overrides_runpath
=yes
20441 hardcode_into_libs
=yes
20450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20451 soname_spec
='${libname}${release}${shared_ext}$major'
20452 shlibpath_var
=LD_LIBRARY_PATH
20453 hardcode_into_libs
=yes
20460 dynamic_linker
="$host_os runtime_loader"
20461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20462 soname_spec
='${libname}${release}${shared_ext}$major'
20463 shlibpath_var
=LIBRARY_PATH
20464 shlibpath_overrides_runpath
=yes
20465 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20466 hardcode_into_libs
=yes
20469 hpux9
* | hpux10
* | hpux11
*)
20470 # Give a soname corresponding to the major version so that dld.sl refuses to
20471 # link against other versions.
20478 hardcode_into_libs
=yes
20479 dynamic_linker
="$host_os dld.so"
20480 shlibpath_var
=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 soname_spec
='${libname}${release}${shared_ext}$major'
20484 if test "X$HPUX_IA64_MODE" = X32
; then
20485 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20487 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20489 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20493 hardcode_into_libs
=yes
20494 dynamic_linker
="$host_os dld.sl"
20495 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20496 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498 soname_spec
='${libname}${release}${shared_ext}$major'
20499 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20500 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20504 dynamic_linker
="$host_os dld.sl"
20505 shlibpath_var
=SHLIB_PATH
20506 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20508 soname_spec
='${libname}${release}${shared_ext}$major'
20511 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20512 postinstall_cmds
='chmod 555 $lib'
20513 # or fails outright, so override atomically:
20514 install_override_mode
=555
20521 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20522 soname_spec
='${libname}${release}${shared_ext}$major'
20523 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20524 shlibpath_var
=LD_LIBRARY_PATH
20525 shlibpath_overrides_runpath
=no
20526 hardcode_into_libs
=yes
20529 irix5
* | irix6
* | nonstopux
*)
20531 nonstopux
*) version_type
=nonstopux
;;
20533 if test "$lt_cv_prog_gnu_ld" = yes; then
20541 soname_spec
='${libname}${release}${shared_ext}$major'
20542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20544 irix5
* | nonstopux
*)
20545 libsuff
= shlibsuff
=
20548 case $LD in # libtool.m4 will add one of these switches to LD
20549 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20550 libsuff
= shlibsuff
= libmagic
=32-bit;;
20551 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20552 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20553 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20554 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20555 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20559 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20560 shlibpath_overrides_runpath
=no
20561 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20562 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20563 hardcode_into_libs
=yes
20566 # No shared lib support for Linux oldld, aout, or coff.
20567 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20571 # This must be Linux ELF.
20572 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20576 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20577 soname_spec
='${libname}${release}${shared_ext}$major'
20578 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20579 shlibpath_var
=LD_LIBRARY_PATH
20580 shlibpath_overrides_runpath
=no
20582 # Some binutils ld are patched to set DT_RUNPATH
20583 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20584 $as_echo_n "(cached) " >&6
20586 lt_cv_shlibpath_overrides_runpath
=no
20587 save_LDFLAGS
=$LDFLAGS
20588 save_libdir
=$libdir
20589 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20590 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h. */
20602 if ac_fn_cxx_try_link
"$LINENO"; then :
20603 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20604 lt_cv_shlibpath_overrides_runpath
=yes
20607 rm -f core conftest.err conftest.
$ac_objext \
20608 conftest
$ac_exeext conftest.
$ac_ext
20609 LDFLAGS
=$save_LDFLAGS
20610 libdir
=$save_libdir
20614 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20616 # This implies no fast_install, which is unacceptable.
20617 # Some rework will be needed to allow for fast_install
20618 # before this can be enabled.
20619 hardcode_into_libs
=yes
20621 # Append ld.so.conf contents to the search path
20622 if test -f /etc
/ld.so.conf
; then
20623 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' ' '`
20624 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20627 # We used to test for /lib/ld.so.1 and disable shared libraries on
20628 # powerpc, because MkLinux only supported shared libraries with the
20629 # GNU dynamic linker. Since this was broken with cross compilers,
20630 # most powerpc-linux boxes support dynamic linking these days and
20631 # people can always --disable-shared, the test was removed, and we
20632 # assume the GNU/Linux dynamic linker is in use.
20633 dynamic_linker
='GNU/Linux ld.so'
20640 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20641 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20642 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20643 dynamic_linker
='NetBSD (a.out) ld.so'
20645 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20646 soname_spec
='${libname}${release}${shared_ext}$major'
20647 dynamic_linker
='NetBSD ld.elf_so'
20649 shlibpath_var
=LD_LIBRARY_PATH
20650 shlibpath_overrides_runpath
=yes
20651 hardcode_into_libs
=yes
20656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20657 shlibpath_var
=LD_LIBRARY_PATH
20658 shlibpath_overrides_runpath
=yes
20665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20666 soname_spec
='${libname}${release}${shared_ext}$major'
20667 shlibpath_var
=LD_LIBRARY_PATH
20668 shlibpath_overrides_runpath
=no
20669 hardcode_into_libs
=yes
20670 dynamic_linker
='ldqnx.so'
20675 sys_lib_dlsearch_path_spec
="/usr/lib"
20677 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20679 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20680 *) need_version
=no
;;
20682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20683 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20684 shlibpath_var
=LD_LIBRARY_PATH
20685 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20687 openbsd2.
[89] | openbsd2.
[89].
*)
20688 shlibpath_overrides_runpath
=no
20691 shlibpath_overrides_runpath
=yes
20695 shlibpath_overrides_runpath
=yes
20700 libname_spec
='$name'
20703 library_names_spec
='$libname${shared_ext} $libname.a'
20704 dynamic_linker
='OS/2 ld.exe'
20705 shlibpath_var
=LIBPATH
20708 osf3
* | osf4
* | osf5
*)
20712 soname_spec
='${libname}${release}${shared_ext}$major'
20713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20714 shlibpath_var
=LD_LIBRARY_PATH
20715 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20716 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728 soname_spec
='${libname}${release}${shared_ext}$major'
20729 shlibpath_var
=LD_LIBRARY_PATH
20730 shlibpath_overrides_runpath
=yes
20731 hardcode_into_libs
=yes
20732 # ldd complains unless libraries are executable
20733 postinstall_cmds
='chmod +x $lib'
20738 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20739 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20740 shlibpath_var
=LD_LIBRARY_PATH
20741 shlibpath_overrides_runpath
=yes
20742 if test "$with_gnu_ld" = yes; then
20750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20751 soname_spec
='${libname}${release}${shared_ext}$major'
20752 shlibpath_var
=LD_LIBRARY_PATH
20753 case $host_vendor in
20755 shlibpath_overrides_runpath
=no
20757 runpath_var
=LD_RUN_PATH
20765 shlibpath_overrides_runpath
=no
20766 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20772 if test -d /usr
/nec
;then
20774 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20775 soname_spec
='$libname${shared_ext}.$major'
20776 shlibpath_var
=LD_LIBRARY_PATH
20780 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20781 version_type
=freebsd-elf
20784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20785 soname_spec
='${libname}${release}${shared_ext}$major'
20786 shlibpath_var
=LD_LIBRARY_PATH
20787 shlibpath_overrides_runpath
=yes
20788 hardcode_into_libs
=yes
20789 if test "$with_gnu_ld" = yes; then
20790 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20792 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20795 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20799 sys_lib_dlsearch_path_spec
='/usr/lib'
20803 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20808 shlibpath_var
=LD_LIBRARY_PATH
20809 shlibpath_overrides_runpath
=no
20810 hardcode_into_libs
=yes
20815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20816 soname_spec
='${libname}${release}${shared_ext}$major'
20817 shlibpath_var
=LD_LIBRARY_PATH
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20825 $as_echo "$dynamic_linker" >&6; }
20826 test "$dynamic_linker" = no
&& can_build_shared
=no
20828 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20829 if test "$GCC" = yes; then
20830 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20833 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20834 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20836 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20837 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20878 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20879 hardcode_action_CXX
=
20880 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20881 test -n "$runpath_var_CXX" ||
20882 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20884 # We can hardcode non-existent directories.
20885 if test "$hardcode_direct_CXX" != no
&&
20886 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20887 # have to relink, otherwise we might link with an installed library
20888 # when we should be linking with a yet-to-be-installed one
20889 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20890 test "$hardcode_minus_L_CXX" != no
; then
20891 # Linking always hardcodes the temporary library directory.
20892 hardcode_action_CXX
=relink
20894 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20895 hardcode_action_CXX
=immediate
20898 # We cannot hardcode anything, or else we can only hardcode existing
20900 hardcode_action_CXX
=unsupported
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20903 $as_echo "$hardcode_action_CXX" >&6; }
20905 if test "$hardcode_action_CXX" = relink ||
20906 test "$inherit_rpath_CXX" = yes; then
20907 # Fast installation is not supported
20908 enable_fast_install
=no
20909 elif test "$shlibpath_overrides_runpath" = yes ||
20910 test "$enable_shared" = no
; then
20911 # Fast installation is not necessary
20912 enable_fast_install
=needless
20921 fi # test -n "$compiler"
20927 with_gnu_ld
=$lt_save_with_gnu_ld
20928 lt_cv_path_LDCXX
=$lt_cv_path_LD
20929 lt_cv_path_LD
=$lt_save_path_LD
20930 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20931 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20932 fi # test "$_lt_caught_CXX_error" != yes
20935 ac_cpp
='$CPP $CPPFLAGS'
20936 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20955 # Only expand once:
20961 # Identify the assembler which will work hand-in-glove with the newly
20962 # built GCC, so that we can examine its features. This is the assembler
20963 # which will be driven by the driver program.
20965 # If build != host, and we aren't building gas in-tree, we identify a
20966 # build->target assembler and hope that it will have the same features
20967 # as the host->target assembler we'll be using.
20968 gcc_cv_gas_major_version
=
20969 gcc_cv_gas_minor_version
=
20970 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20972 if test "${gcc_cv_as+set}" = set; then :
20976 if test -x "$DEFAULT_ASSEMBLER"; then
20977 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20978 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20979 && test -f ..
/gas
/Makefile \
20980 && test x
$build = x
$host; then
20981 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20982 elif test -x as
$build_exeext; then
20983 # Build using assembler in the current directory.
20984 gcc_cv_as
=.
/as
$build_exeext
20985 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
20986 gcc_cv_as
="$AS_FOR_TARGET"
20988 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20989 set dummy
$AS_FOR_TARGET; ac_word
=$2
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20991 $as_echo_n "checking for $ac_word... " >&6; }
20992 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20993 $as_echo_n "(cached) " >&6
20997 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21001 for as_dir
in $PATH
21004 test -z "$as_dir" && as_dir
=.
21005 for ac_exec_ext
in '' $ac_executable_extensions; do
21006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21007 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21018 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21019 if test -n "$gcc_cv_as"; then
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21021 $as_echo "$gcc_cv_as" >&6; }
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21024 $as_echo "no" >&6; }
21031 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21033 case "$ORIGINAL_AS_FOR_TARGET" in
21034 .
/as | .
/as
$build_exeext) ;;
21035 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21040 $as_echo_n "checking what assembler to use... " >&6; }
21041 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21042 # Single tree build which includes gas. We want to prefer it
21043 # over whatever linker top-level may have detected, since
21044 # we'll use what we're building after installation anyway.
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21046 $as_echo "newly built gas" >&6; }
21048 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21049 for f
in $gcc_cv_as_bfd_srcdir/configure \
21050 $gcc_cv_as_gas_srcdir/configure \
21051 $gcc_cv_as_gas_srcdir/configure.
in \
21052 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21053 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21054 if test x
$gcc_cv_gas_version != x
; then
21058 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21059 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21060 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21061 case $gcc_cv_gas_patch_version in
21062 "") gcc_cv_gas_patch_version
="0" ;;
21064 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21065 + $gcc_cv_gas_minor_version \) \* 1000 \
21066 + $gcc_cv_gas_patch_version`
21068 in_tree_gas_is_elf
=no
21069 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21070 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21071 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21073 in_tree_gas_is_elf
=yes
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21077 $as_echo "$gcc_cv_as" >&6; }
21081 # Identify the linker which will work hand-in-glove with the newly
21082 # built GCC, so that we can examine its features. This is the linker
21083 # which will be driven by the driver program.
21085 # If build != host, and we aren't building gas in-tree, we identify a
21086 # build->target linker and hope that it will have the same features
21087 # as the host->target linker we'll be using.
21088 gcc_cv_gld_major_version
=
21089 gcc_cv_gld_minor_version
=
21090 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21091 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21093 if test "${gcc_cv_ld+set}" = set; then :
21097 if test -x "$DEFAULT_LINKER"; then
21098 gcc_cv_ld
="$DEFAULT_LINKER"
21099 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21100 && test -f ..
/ld
/Makefile \
21101 && test x
$build = x
$host; then
21102 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21103 elif test -x collect-ld
$build_exeext; then
21104 # Build using linker in the current directory.
21105 gcc_cv_ld
=.
/collect-ld
$build_exeext
21106 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21107 gcc_cv_ld
="$LD_FOR_TARGET"
21109 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21110 set dummy
$LD_FOR_TARGET; ac_word
=$2
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21112 $as_echo_n "checking for $ac_word... " >&6; }
21113 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21114 $as_echo_n "(cached) " >&6
21118 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21122 for as_dir
in $PATH
21125 test -z "$as_dir" && as_dir
=.
21126 for ac_exec_ext
in '' $ac_executable_extensions; do
21127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21128 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21139 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21140 if test -n "$gcc_cv_ld"; then
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21142 $as_echo "$gcc_cv_ld" >&6; }
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21145 $as_echo "no" >&6; }
21152 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21153 PLUGIN_LD
=`basename $gcc_cv_ld`
21155 # Check whether --with-plugin-ld was given.
21156 if test "${with_plugin_ld+set}" = set; then :
21157 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21158 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21159 PLUGIN_LD
="$withval"
21165 cat >>confdefs.h
<<_ACEOF
21166 #define PLUGIN_LD "$PLUGIN_LD"
21170 # Check to see if we are using gold instead of ld
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21172 $as_echo_n "checking whether we are using gold... " >&6; }
21174 if test x
$gcc_cv_ld != x
; then
21175 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21176 |
grep "GNU gold" > /dev
/null
; then
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21181 $as_echo "$ld_is_gold" >&6; }
21183 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21185 case "$ORIGINAL_LD_FOR_TARGET" in
21186 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21187 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21192 $as_echo_n "checking what linker to use... " >&6; }
21193 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21194 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21195 # Single tree build which includes ld. We want to prefer it
21196 # over whatever linker top-level may have detected, since
21197 # we'll use what we're building after installation anyway.
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21199 $as_echo "newly built ld" >&6; }
21201 in_tree_ld_is_elf
=no
21202 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21203 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21204 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21205 in_tree_ld_is_elf
=yes
21206 elif test "$ld_is_gold" = yes; then
21207 in_tree_ld_is_elf
=yes
21209 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
21211 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21212 if test x
$gcc_cv_gld_version != x
; then
21216 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21217 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21220 $as_echo "$gcc_cv_ld" >&6; }
21224 # Figure out what nm we will be using.
21225 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21226 if test "${gcc_cv_nm+set}" = set; then :
21230 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21231 && test -f ..
/binutils
/Makefile \
21232 && test x
$build = x
$host; then
21233 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21234 elif test -x nm
$build_exeext; then
21235 gcc_cv_nm
=.
/nm
$build_exeext
21236 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21237 gcc_cv_nm
="$NM_FOR_TARGET"
21239 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21240 set dummy
$NM_FOR_TARGET; ac_word
=$2
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21242 $as_echo_n "checking for $ac_word... " >&6; }
21243 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21244 $as_echo_n "(cached) " >&6
21248 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21252 for as_dir
in $PATH
21255 test -z "$as_dir" && as_dir
=.
21256 for ac_exec_ext
in '' $ac_executable_extensions; do
21257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21258 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21269 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21270 if test -n "$gcc_cv_nm"; then
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21272 $as_echo "$gcc_cv_nm" >&6; }
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21275 $as_echo "no" >&6; }
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21283 $as_echo_n "checking what nm to use... " >&6; }
21284 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21285 # Single tree build which includes binutils.
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21287 $as_echo "newly built nm" >&6; }
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21291 $as_echo "$gcc_cv_nm" >&6; }
21295 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21297 case "$ORIGINAL_NM_FOR_TARGET" in
21298 .
/nm | .
/nm
$build_exeext) ;;
21299 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21304 # Figure out what objdump we will be using.
21305 if test "${gcc_cv_objdump+set}" = set; then :
21309 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21310 && test -f ..
/binutils
/Makefile \
21311 && test x
$build = x
$host; then
21312 # Single tree build which includes binutils.
21313 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21314 elif test -x objdump
$build_exeext; then
21315 gcc_cv_objdump
=.
/objdump
$build_exeext
21316 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21317 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21319 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21320 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21322 $as_echo_n "checking for $ac_word... " >&6; }
21323 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21324 $as_echo_n "(cached) " >&6
21326 case $gcc_cv_objdump in
21328 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21332 for as_dir
in $PATH
21335 test -z "$as_dir" && as_dir
=.
21336 for ac_exec_ext
in '' $ac_executable_extensions; do
21337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21338 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21349 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21350 if test -n "$gcc_cv_objdump"; then
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21352 $as_echo "$gcc_cv_objdump" >&6; }
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21355 $as_echo "no" >&6; }
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21363 $as_echo_n "checking what objdump to use... " >&6; }
21364 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21365 # Single tree build which includes binutils.
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21367 $as_echo "newly built objdump" >&6; }
21368 elif test x
$gcc_cv_objdump = x
; then
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21370 $as_echo "not found" >&6; }
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21373 $as_echo "$gcc_cv_objdump" >&6; }
21376 # Figure out what readelf we will be using.
21377 if test "${gcc_cv_readelf+set}" = set; then :
21381 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21382 && test -f ..
/binutils
/Makefile \
21383 && test x
$build = x
$host; then
21384 # Single tree build which includes binutils.
21385 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21386 elif test -x readelf
$build_exeext; then
21387 gcc_cv_readelf
=.
/readelf
$build_exeext
21389 # Extract the first word of "readelf", so it can be a program name with args.
21390 set dummy readelf
; ac_word
=$2
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21392 $as_echo_n "checking for $ac_word... " >&6; }
21393 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21394 $as_echo_n "(cached) " >&6
21396 case $gcc_cv_readelf in
21398 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21402 for as_dir
in $PATH
21405 test -z "$as_dir" && as_dir
=.
21406 for ac_exec_ext
in '' $ac_executable_extensions; do
21407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21408 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21419 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21420 if test -n "$gcc_cv_readelf"; then
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21422 $as_echo "$gcc_cv_readelf" >&6; }
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21425 $as_echo "no" >&6; }
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21433 $as_echo_n "checking what readelf to use... " >&6; }
21434 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21435 # Single tree build which includes binutils.
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21437 $as_echo "newly built readelf" >&6; }
21438 elif test x
$gcc_cv_readelf = x
; then
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21440 $as_echo "not found" >&6; }
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21443 $as_echo "$gcc_cv_readelf" >&6; }
21446 # Figure out what assembler alignment features are present.
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21448 $as_echo_n "checking assembler flags... " >&6; }
21449 if test "${gcc_cv_as_flags+set}" = set; then :
21450 $as_echo_n "(cached) " >&6
21453 i
[34567]86-*-linux*)
21454 gcc_cv_as_flags
="--32"
21456 powerpc
*-*-darwin*)
21457 gcc_cv_as_flags
="-arch ppc"
21460 gcc_cv_as_flags
=" "
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21465 $as_echo "$gcc_cv_as_flags" >&6; }
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21468 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21469 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21470 $as_echo_n "(cached) " >&6
21472 gcc_cv_as_balign_and_p2align
=no
21473 if test $in_tree_gas = yes; then
21474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21475 then gcc_cv_as_balign_and_p2align
=yes
21477 elif test x
$gcc_cv_as != x
; then
21479 .p2align 2' > conftest.s
21480 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21482 (eval $ac_try) 2>&5
21484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21485 test $ac_status = 0; }; }
21487 gcc_cv_as_balign_and_p2align
=yes
21489 echo "configure: failed program was" >&5
21492 rm -f conftest.o conftest.s
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21496 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21497 if test $gcc_cv_as_balign_and_p2align = yes; then
21499 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21504 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21505 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21506 $as_echo_n "(cached) " >&6
21508 gcc_cv_as_max_skip_p2align
=no
21509 if test $in_tree_gas = yes; then
21510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21511 then gcc_cv_as_max_skip_p2align
=yes
21513 elif test x
$gcc_cv_as != x
; then
21514 echo '.p2align 4,,7' > conftest.s
21515 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21517 (eval $ac_try) 2>&5
21519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21520 test $ac_status = 0; }; }
21522 gcc_cv_as_max_skip_p2align
=yes
21524 echo "configure: failed program was" >&5
21527 rm -f conftest.o conftest.s
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21531 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21532 if test $gcc_cv_as_max_skip_p2align = yes; then
21534 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21539 $as_echo_n "checking assembler for .literal16... " >&6; }
21540 if test "${gcc_cv_as_literal16+set}" = set; then :
21541 $as_echo_n "(cached) " >&6
21543 gcc_cv_as_literal16
=no
21544 if test $in_tree_gas = yes; then
21545 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21546 then gcc_cv_as_literal16
=yes
21548 elif test x
$gcc_cv_as != x
; then
21549 echo '.literal16' > conftest.s
21550 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21552 (eval $ac_try) 2>&5
21554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21555 test $ac_status = 0; }; }
21557 gcc_cv_as_literal16
=yes
21559 echo "configure: failed program was" >&5
21562 rm -f conftest.o conftest.s
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21566 $as_echo "$gcc_cv_as_literal16" >&6; }
21567 if test $gcc_cv_as_literal16 = yes; then
21569 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21574 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21575 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21576 $as_echo_n "(cached) " >&6
21578 gcc_cv_as_subsection_m1
=no
21579 if test $in_tree_gas = yes; then
21580 if test $in_tree_gas_is_elf = yes \
21581 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21582 then gcc_cv_as_subsection_m1
=yes
21584 elif test x
$gcc_cv_as != x
; then
21585 echo 'conftest_label1: .word 0
21587 conftest_label2: .word 0
21588 .previous' > conftest.s
21589 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21591 (eval $ac_try) 2>&5
21593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21594 test $ac_status = 0; }; }
21596 if test x
$gcc_cv_nm != x
; then
21597 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21598 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21599 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21601 else gcc_cv_as_subsection_m1
=yes
21603 rm -f conftest.nm1 conftest.nm2
21606 echo "configure: failed program was" >&5
21609 rm -f conftest.o conftest.s
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21613 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21614 if test $gcc_cv_as_subsection_m1 = yes; then
21616 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21621 $as_echo_n "checking assembler for .weak... " >&6; }
21622 if test "${gcc_cv_as_weak+set}" = set; then :
21623 $as_echo_n "(cached) " >&6
21626 if test $in_tree_gas = yes; then
21627 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21628 then gcc_cv_as_weak
=yes
21630 elif test x
$gcc_cv_as != x
; then
21631 echo ' .weak foobar' > conftest.s
21632 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21634 (eval $ac_try) 2>&5
21636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21637 test $ac_status = 0; }; }
21641 echo "configure: failed program was" >&5
21644 rm -f conftest.o conftest.s
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21648 $as_echo "$gcc_cv_as_weak" >&6; }
21649 if test $gcc_cv_as_weak = yes; then
21651 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21656 $as_echo_n "checking assembler for .weakref... " >&6; }
21657 if test "${gcc_cv_as_weakref+set}" = set; then :
21658 $as_echo_n "(cached) " >&6
21660 gcc_cv_as_weakref
=no
21661 if test $in_tree_gas = yes; then
21662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21663 then gcc_cv_as_weakref
=yes
21665 elif test x
$gcc_cv_as != x
; then
21666 echo ' .weakref foobar, barfnot' > conftest.s
21667 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21669 (eval $ac_try) 2>&5
21671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21672 test $ac_status = 0; }; }
21674 gcc_cv_as_weakref
=yes
21676 echo "configure: failed program was" >&5
21679 rm -f conftest.o conftest.s
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21683 $as_echo "$gcc_cv_as_weakref" >&6; }
21684 if test $gcc_cv_as_weakref = yes; then
21686 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21691 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21692 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21693 $as_echo_n "(cached) " >&6
21695 gcc_cv_as_nsubspa_comdat
=no
21696 if test $in_tree_gas = yes; then
21697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21698 then gcc_cv_as_nsubspa_comdat
=yes
21700 elif test x
$gcc_cv_as != x
; then
21701 echo ' .SPACE $TEXT$
21702 .NSUBSPA $CODE$,COMDAT' > conftest.s
21703 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21705 (eval $ac_try) 2>&5
21707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21708 test $ac_status = 0; }; }
21710 gcc_cv_as_nsubspa_comdat
=yes
21712 echo "configure: failed program was" >&5
21715 rm -f conftest.o conftest.s
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21719 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21720 if test $gcc_cv_as_nsubspa_comdat = yes; then
21722 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21726 # .hidden needs to be supported in both the assembler and the linker,
21727 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21728 # This is irritatingly difficult to feature test for; we have to check the
21729 # date string after the version number. If we've got an in-tree
21730 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21732 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21734 $as_echo_n "checking assembler for .hidden... " >&6; }
21735 if test "${gcc_cv_as_hidden+set}" = set; then :
21736 $as_echo_n "(cached) " >&6
21738 gcc_cv_as_hidden
=no
21739 if test $in_tree_gas = yes; then
21740 if test $in_tree_gas_is_elf = yes \
21741 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21742 then gcc_cv_as_hidden
=yes
21744 elif test x
$gcc_cv_as != x
; then
21745 echo ' .hidden foobar
21746 foobar:' > conftest.s
21747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21749 (eval $ac_try) 2>&5
21751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21752 test $ac_status = 0; }; }
21755 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21756 # STV_HIDDEN, so disable .hidden support if so.
21757 case "${target}" in
21759 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21760 cat > conftest.s
<<EOF
21765 .set default,hidden
21767 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21768 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21769 grep '\.hidden default' > /dev
/null
; then
21770 gcc_cv_as_hidden
=no
21772 gcc_cv_as_hidden
=yes
21775 # Assume bug is present if objdump is missing.
21776 gcc_cv_as_hidden
=no
21780 gcc_cv_as_hidden
=yes
21784 echo "configure: failed program was" >&5
21787 rm -f conftest.o conftest.s
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21791 $as_echo "$gcc_cv_as_hidden" >&6; }
21794 # gnu_indirect_function type is an extension proposed at
21795 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21796 # selection of function implementation
21797 # Check whether --enable-gnu-indirect-function was given.
21798 if test "${enable_gnu_indirect_function+set}" = set; then :
21799 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21801 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21802 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21805 enable_gnu_indirect_function
="$default_gnu_indirect_function"
21808 if test x
$enable_gnu_indirect_function = xyes
; then
21810 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21814 if test $in_tree_ld != yes ; then
21815 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21816 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21817 if test x
"$ld_is_gold" = xyes
; then
21818 # GNU gold --version looks like this:
21820 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21822 # We extract the binutils version which is more familiar and specific
21823 # than the gold version.
21824 ld_vers
=`echo $ld_ver | sed -n \
21825 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21827 # GNU ld --version looks like this:
21829 # GNU ld (GNU Binutils) 2.21.51.20110225
21830 ld_vers
=`echo $ld_ver | sed -n \
21831 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21833 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'`
21834 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21835 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21836 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21838 case "${target}" in
21841 # Solaris 2 ld -V output looks like this for a regular version:
21843 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21845 # but test versions add stuff at the end:
21847 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21849 ld_ver
=`$gcc_cv_ld -V 2>&1`
21850 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
21851 ld_vers
=`echo $ld_ver | sed -n \
21852 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21853 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21854 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21862 $as_echo_n "checking linker for .hidden support... " >&6; }
21863 if test "${gcc_cv_ld_hidden+set}" = set; then :
21864 $as_echo_n "(cached) " >&6
21866 if test $in_tree_ld = yes ; then
21867 gcc_cv_ld_hidden
=no
21868 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 \
21869 && test $in_tree_ld_is_elf = yes; then
21870 gcc_cv_ld_hidden
=yes
21873 gcc_cv_ld_hidden
=yes
21874 if test x
"$ld_is_gold" = xyes
; then
21876 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21877 if test 0"$ld_date" -lt 20020404; then
21878 if test -n "$ld_date"; then
21879 # If there was date string, but was earlier than 2002-04-04, fail
21880 gcc_cv_ld_hidden
=no
21881 elif test -z "$ld_vers"; then
21882 # If there was no date string nor ld version number, something is wrong
21883 gcc_cv_ld_hidden
=no
21885 test -z "$ld_vers_patch" && ld_vers_patch
=0
21886 if test "$ld_vers_major" -lt 2; then
21887 gcc_cv_ld_hidden
=no
21888 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21889 gcc_cv_ld_hidden
="no"
21890 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21891 gcc_cv_ld_hidden
=no
21896 case "${target}" in
21897 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21898 gcc_cv_ld_hidden
=yes
21901 # .hidden support was backported to Solaris 8, starting with ld
21903 if test "$ld_vers_minor" -ge 276; then
21904 gcc_cv_ld_hidden
=yes
21906 gcc_cv_ld_hidden
=no
21909 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21910 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21911 # .symbolic was only added in Solaris 9 12/02.
21912 gcc_cv_ld_hidden
=yes
21915 gcc_cv_ld_hidden
=no
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21922 $as_echo "$gcc_cv_ld_hidden" >&6; }
21923 libgcc_visibility
=no
21926 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21927 libgcc_visibility
=yes
21929 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21934 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21935 gcc_cv_ld_ro_rw_mix
=unknown
21936 if test $in_tree_ld = yes ; then
21937 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 \
21938 && test $in_tree_ld_is_elf = yes; then
21939 gcc_cv_ld_ro_rw_mix
=read-write
21941 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21942 echo '.section myfoosect, "a"' > conftest1.s
21943 echo '.section myfoosect, "aw"' > conftest2.s
21944 echo '.byte 1' >> conftest2.s
21945 echo '.section myfoosect, "a"' > conftest3.s
21946 echo '.byte 0' >> conftest3.s
21947 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21948 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21949 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21950 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21951 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21952 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21953 | sed -e '/myfoosect/!d' -e N`
21954 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21955 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21956 gcc_cv_ld_ro_rw_mix
=read-only
21958 gcc_cv_ld_ro_rw_mix
=read-write
21962 rm -f conftest.
* conftest
[123].
*
21964 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21966 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21970 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21972 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21974 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21975 if test "${gcc_cv_as_leb128+set}" = set; then :
21976 $as_echo_n "(cached) " >&6
21978 gcc_cv_as_leb128
=no
21979 if test $in_tree_gas = yes; then
21980 if test $in_tree_gas_is_elf = yes \
21981 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21982 then gcc_cv_as_leb128
=yes
21984 elif test x
$gcc_cv_as != x
; then
21991 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21993 (eval $ac_try) 2>&5
21995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21996 test $ac_status = 0; }; }
21998 # GAS versions before 2.11 do not support uleb128,
21999 # despite appearing to.
22000 # ??? There exists an elf-specific test that will crash
22001 # the assembler. Perhaps it's better to figure out whether
22002 # arbitrary sections are supported and try the test.
22003 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22004 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22005 as_vers
=`echo $as_ver | sed -n \
22006 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22007 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22008 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22009 if test $as_major -eq 2 && test $as_minor -lt 11
22011 else gcc_cv_as_leb128
=yes
22015 echo "configure: failed program was" >&5
22018 rm -f conftest.o conftest.s
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22022 $as_echo "$gcc_cv_as_leb128" >&6; }
22023 if test $gcc_cv_as_leb128 = yes; then
22025 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22029 # Check if we have assembler support for unwind directives.
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22031 $as_echo_n "checking assembler for cfi directives... " >&6; }
22032 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22033 $as_echo_n "(cached) " >&6
22035 gcc_cv_as_cfi_directive
=no
22036 if test x
$gcc_cv_as != x
; then
22042 .cfi_escape 1, 2, 3, 4, 5
22043 .cfi_endproc' > conftest.s
22044 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22046 (eval $ac_try) 2>&5
22048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22049 test $ac_status = 0; }; }
22053 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22054 # read-only and read-write sections, we need to make sure that the
22055 # assembler used emits read-write .eh_frame sections.
22056 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22057 if test "x$gcc_cv_objdump" != x
; then
22058 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22059 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22060 gcc_cv_as_cfi_directive
=no
22063 i?
86-*-solaris2.1
[0-9]*)
22064 # On Solaris/x86, make sure that GCC and gas agree on using
22065 # read-only .eh_frame sections for 64-bit.
22066 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22067 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22068 sed -e /.eh_frame
/!d
-e N | \
22069 grep READONLY
> /dev
/null
; then
22070 gcc_cv_as_cfi_directive
=yes
22072 gcc_cv_as_cfi_directive
=no
22076 gcc_cv_as_cfi_directive
=yes
22081 # no objdump, err on the side of caution
22082 gcc_cv_as_cfi_directive
=no
22085 gcc_cv_as_cfi_directive
=yes
22089 gcc_cv_as_cfi_directive
=yes
22093 echo "configure: failed program was" >&5
22096 rm -f conftest.o conftest.s
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22100 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22102 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22104 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22105 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22106 $as_echo_n "(cached) " >&6
22108 gcc_cv_as_cfi_advance_working
=no
22109 if test x
$gcc_cv_as != x
; then
22112 .cfi_adjust_cfa_offset 64
22114 .cfi_adjust_cfa_offset 128
22115 .cfi_endproc' > conftest.s
22116 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22118 (eval $ac_try) 2>&5
22120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22121 test $ac_status = 0; }; }
22124 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22125 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22126 gcc_cv_as_cfi_advance_working
=yes
22130 echo "configure: failed program was" >&5
22133 rm -f conftest.o conftest.s
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22137 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22140 # no objdump, err on the side of caution
22141 gcc_cv_as_cfi_advance_working
=no
22145 cat >>confdefs.h
<<_ACEOF
22146 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22147 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22153 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22154 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22155 $as_echo_n "(cached) " >&6
22157 gcc_cv_as_cfi_personality_directive
=no
22158 if test x
$gcc_cv_as != x
; then
22161 .cfi_personality 0, symbol
22162 .cfi_endproc' > conftest.s
22163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22165 (eval $ac_try) 2>&5
22167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22168 test $ac_status = 0; }; }
22170 gcc_cv_as_cfi_personality_directive
=yes
22172 echo "configure: failed program was" >&5
22175 rm -f conftest.o conftest.s
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22179 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22182 cat >>confdefs.h
<<_ACEOF
22183 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22184 then echo 1; else echo 0; fi`
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22189 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22190 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22191 $as_echo_n "(cached) " >&6
22193 gcc_cv_as_cfi_sections_directive
=no
22194 if test x
$gcc_cv_as != x
; then
22196 .cfi_sections .debug_frame, .eh_frame
22198 .cfi_endproc' > conftest.s
22199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22201 (eval $ac_try) 2>&5
22203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22204 test $ac_status = 0; }; }
22207 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22208 # Need to check that we generated the correct relocation for the
22209 # .debug_frame section. This was fixed for binutils 2.21.
22210 gcc_cv_as_cfi_sections_directive
=no
22211 if test "x$gcc_cv_objdump" != x
; then
22212 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22213 grep secrel
> /dev
/null
; then
22214 gcc_cv_as_cfi_sections_directive
=yes
22219 gcc_cv_as_cfi_sections_directive
=yes
22223 echo "configure: failed program was" >&5
22226 rm -f conftest.o conftest.s
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22230 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22234 cat >>confdefs.h
<<_ACEOF
22235 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22236 then echo 1; else echo 0; fi`
22240 # GAS versions up to and including 2.11.0 may mis-optimize
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22243 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22244 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22245 $as_echo_n "(cached) " >&6
22247 gcc_cv_as_eh_frame
=no
22248 if test $in_tree_gas = yes; then
22249 if test $in_tree_gas_is_elf = yes \
22250 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22251 then gcc_cv_as_eh_frame
=yes
22253 elif test x
$gcc_cv_as != x
; then
22260 .section .eh_frame,"aw",@progbits
22262 .4byte .LECIE1-.LSCIE1
22276 .4byte .LEFDE1-.LASFDE1
22278 .4byte .LASFDE1-__FRAME_BEGIN__
22285 .LEFDE1:' > conftest.s
22286 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22288 (eval $ac_try) 2>&5
22290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22291 test $ac_status = 0; }; }
22293 cat > conftest.lit
<<EOF
22294 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22295 0010 01000000 12000000 18000000 00000000 ................
22296 0020 08000000 04080000 0044 .........D
22298 cat > conftest.big
<<EOF
22299 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22300 0010 00000001 00000012 00000018 00000000 ................
22301 0020 00000008 04000000 0844 .........D
22303 # If the assembler didn't choke, and we can objdump,
22304 # and we got the correct data, then succeed.
22305 # The text in the here-document typically retains its unix-style line
22306 # endings, while the output of objdump will use host line endings.
22307 # Therefore, use diff -b for the comparisons.
22308 if test x
$gcc_cv_objdump != x \
22309 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22310 |
tail -3 > conftest.got \
22311 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22312 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22314 gcc_cv_as_eh_frame
=yes
22315 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22317 (eval $ac_try) 2>&5
22319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22320 test $ac_status = 0; }; }; then
22321 gcc_cv_as_eh_frame
=buggy
22323 # Uh oh, what do we do now?
22324 gcc_cv_as_eh_frame
=no
22327 echo "configure: failed program was" >&5
22330 rm -f conftest.o conftest.s
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22334 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22337 if test $gcc_cv_as_eh_frame = buggy
; then
22339 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22344 $as_echo_n "checking assembler for section merging support... " >&6; }
22345 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22346 $as_echo_n "(cached) " >&6
22348 gcc_cv_as_shf_merge
=no
22349 if test $in_tree_gas = yes; then
22350 if test $in_tree_gas_is_elf = yes \
22351 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22352 then gcc_cv_as_shf_merge
=yes
22354 elif test x
$gcc_cv_as != x
; then
22355 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22356 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22358 (eval $ac_try) 2>&5
22360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22361 test $ac_status = 0; }; }
22363 gcc_cv_as_shf_merge
=yes
22365 echo "configure: failed program was" >&5
22368 rm -f conftest.o conftest.s
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22372 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22374 if test $gcc_cv_as_shf_merge = no
; then
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22376 $as_echo_n "checking assembler for section merging support... " >&6; }
22377 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22378 $as_echo_n "(cached) " >&6
22380 gcc_cv_as_shf_merge
=no
22381 if test $in_tree_gas = yes; then
22382 if test $in_tree_gas_is_elf = yes \
22383 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22384 then gcc_cv_as_shf_merge
=yes
22386 elif test x
$gcc_cv_as != x
; then
22387 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22388 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22390 (eval $ac_try) 2>&5
22392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22393 test $ac_status = 0; }; }
22395 gcc_cv_as_shf_merge
=yes
22397 echo "configure: failed program was" >&5
22400 rm -f conftest.o conftest.s
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22404 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22408 cat >>confdefs.h
<<_ACEOF
22409 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22414 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22415 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22416 $as_echo_n "(cached) " >&6
22418 gcc_cv_as_comdat_group
=no
22419 if test $in_tree_gas = yes; then
22420 if test $in_tree_gas_is_elf = yes \
22421 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22422 then gcc_cv_as_comdat_group
=yes
22424 elif test x
$gcc_cv_as != x
; then
22425 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22428 (eval $ac_try) 2>&5
22430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22431 test $ac_status = 0; }; }
22433 gcc_cv_as_comdat_group
=yes
22435 echo "configure: failed program was" >&5
22438 rm -f conftest.o conftest.s
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22442 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22444 if test $gcc_cv_as_comdat_group = yes; then
22445 gcc_cv_as_comdat_group_percent
=no
22446 gcc_cv_as_comdat_group_group
=no
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22449 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22450 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22451 $as_echo_n "(cached) " >&6
22453 gcc_cv_as_comdat_group_percent
=no
22454 if test $in_tree_gas = yes; then
22455 if test $in_tree_gas_is_elf = yes \
22456 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22457 then gcc_cv_as_comdat_group_percent
=yes
22459 elif test x
$gcc_cv_as != x
; then
22460 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22461 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22463 (eval $ac_try) 2>&5
22465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22466 test $ac_status = 0; }; }
22468 gcc_cv_as_comdat_group_percent
=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_comdat_group_percent" >&5
22477 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22479 if test $gcc_cv_as_comdat_group_percent = yes; then
22480 gcc_cv_as_comdat_group_group
=no
22482 case "${target}" in
22483 # Sun as uses a completely different syntax.
22485 case "${target}" in
22486 sparc
*-*-solaris2*)
22488 .group foo,".text%foo",#comdat
22489 .section ".text%foo", #alloc,#execinstr,#progbits
22496 .group foo,.text%foo,#comdat
22497 .section .text%foo, "ax", @progbits
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22504 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22505 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22506 $as_echo_n "(cached) " >&6
22508 gcc_cv_as_comdat_group_group
=no
22509 if test x
$gcc_cv_as != x
; then
22510 echo "$conftest_s" > conftest.s
22511 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22513 (eval $ac_try) 2>&5
22515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22516 test $ac_status = 0; }; }
22518 gcc_cv_as_comdat_group_group
=yes
22520 echo "configure: failed program was" >&5
22523 rm -f conftest.o conftest.s
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22527 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22533 if test x
"$ld_is_gold" = xyes
; then
22535 elif test $in_tree_ld = yes ; then
22537 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 \
22538 && test $in_tree_ld_is_elf = yes; then
22541 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22543 if test 0"$ld_date" -lt 20050308; then
22544 if test -n "$ld_date"; then
22545 # If there was date string, but was earlier than 2005-03-08, fail
22547 elif test "$ld_vers_major" -lt 2; then
22549 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22554 case "${target}" in
22555 *-*-solaris2.1
[1-9]*)
22557 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22558 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22561 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22562 # least ld version 1.2267.
22563 if test "$ld_vers_major" -gt 1; then
22565 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22567 elif test "$ld_vers_minor" -ge 2267; then
22572 # Assume linkers other than GNU ld don't support COMDAT group.
22577 # Allow overriding the automatic COMDAT group tests above.
22578 # Check whether --enable-comdat was given.
22579 if test "${enable_comdat+set}" = set; then :
22580 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22583 if test $comdat_group = no
; then
22584 gcc_cv_as_comdat_group
=no
22585 gcc_cv_as_comdat_group_percent
=no
22586 gcc_cv_as_comdat_group_group
=no
22589 cat >>confdefs.h
<<_ACEOF
22590 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22591 || test $gcc_cv_as_comdat_group_percent = yes \
22592 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22597 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22598 if test "${gcc_cv_as_discriminator+set}" = set; then :
22599 $as_echo_n "(cached) " >&6
22601 gcc_cv_as_discriminator
=no
22602 if test $in_tree_gas = yes; then
22603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22604 then gcc_cv_as_discriminator
=yes
22606 elif test x
$gcc_cv_as != x
; then
22609 .loc 1 1 0 discriminator 1' > conftest.s
22610 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22612 (eval $ac_try) 2>&5
22614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22615 test $ac_status = 0; }; }
22617 gcc_cv_as_discriminator
=yes
22619 echo "configure: failed program was" >&5
22622 rm -f conftest.o conftest.s
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22626 $as_echo "$gcc_cv_as_discriminator" >&6; }
22627 if test $gcc_cv_as_discriminator = yes; then
22629 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22633 # Thread-local storage - the check is heavily parameterized.
22641 .section ".tdata","awT",@progbits
22644 ldq $27,__tls_get_addr($29) !literal!1
22645 lda $16,foo($29) !tlsgd!1
22646 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22647 ldq $27,__tls_get_addr($29) !literal!2
22648 lda $16,foo($29) !tlsldm!2
22649 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22650 ldq $1,foo($29) !gotdtprel
22651 ldah $2,foo($29) !dtprelhi
22652 lda $3,foo($2) !dtprello
22653 lda $4,foo($29) !dtprel
22654 ldq $1,foo($29) !gottprel
22655 ldah $2,foo($29) !tprelhi
22656 lda $3,foo($2) !tprello
22657 lda $4,foo($29) !tprel'
22660 tls_as_opt
=--fatal-warnings
22662 cris-
*-*|crisv32-
*-*)
22664 .section ".tdata","awT",@progbits
22671 tls_as_opt
=--fatal-warnings
22675 .section ".tdata","awT",@progbits
22678 call #gettlsoff(x)'
22687 .section ".tdata","awT",@progbits
22691 addil LT%foo-$tls_gdidx$,gp
22692 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22695 addil LT%foo-$tls_ldidx$,gp
22697 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22698 addil LR%foo-$tls_dtpoff$,%ret0
22699 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22701 addil LT%foo-$tls_ieoff$,gp
22702 ldw RT%foo-$tls_ieoff$(%r1),%t2
22705 addil LR%foo-$tls_leoff$,%t1
22706 ldo RR%foo-$tls_leoff$(%r1),%t2'
22709 tls_as_opt
=--fatal-warnings
22713 .section ".tdata","awT",%progbits
22716 .word foo(gottpoff)
22726 i
[34567]86-*-solaris2.
*)
22728 tga_func
=___tls_get_addr
22734 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22736 .section .tdata,"awt",@progbits'
22740 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22744 .section ".tdata","awT",@progbits'
22747 tls_as_opt
="--fatal-warnings"
22749 conftest_s
="$conftest_s
22753 leal foo@tlsgd(,%ebx,1), %eax
22754 leal foo@tlsldm(%ebx), %eax
22755 leal foo@dtpoff(%eax), %edx
22756 movl foo@gottpoff(%ebx), %eax
22757 subl foo@gottpoff(%ebx), %eax
22758 addl foo@gotntpoff(%ebx), %eax
22759 movl foo@indntpoff, %eax
22760 movl \$foo@tpoff, %eax
22761 subl \$foo@tpoff, %eax
22762 leal foo@ntpoff(%ecx), %eax"
22766 .section ".tdata","awT",@progbits
22770 leaq foo@TLSGD(%rip), %rdi
22771 leaq foo@TLSLD(%rip), %rdi
22772 leaq foo@DTPOFF(%rax), %rdx
22773 movq foo@GOTTPOFF(%rip), %rax
22774 movq $foo@TPOFF, %rax'
22777 tls_as_opt
=--fatal-warnings
22781 .section ".tdata","awT",@progbits
22784 addl r16 = @ltoff(@dtpmod(foo#)), gp
22785 addl r17 = @ltoff(@dtprel(foo#)), gp
22786 addl r18 = @ltoff(@tprel(foo#)), gp
22787 addl r19 = @dtprel(foo#), gp
22788 adds r21 = @dtprel(foo#), r13
22789 movl r23 = @dtprel(foo#)
22790 addl r20 = @tprel(foo#), gp
22791 adds r22 = @tprel(foo#), r13
22792 movl r24 = @tprel(foo#)'
22795 tls_as_opt
=--fatal-warnings
22799 .section .tdata,"awT",@progbits
22803 addiu $4, $28, %tlsgd(x)
22804 addiu $4, $28, %tlsldm(x)
22805 lui $4, %dtprel_hi(x)
22806 addiu $4, $4, %dtprel_lo(x)
22807 lw $4, %gottprel(x)($28)
22808 lui $4, %tprel_hi(x)
22809 addiu $4, $4, %tprel_lo(x)'
22812 tls_as_opt
='-32 --fatal-warnings'
22816 .section .tdata,"awT",@progbits
22821 move.l x@TLSGD(%a5),%a0
22822 move.l x@TLSLDM(%a5),%a0
22823 move.l x@TLSLDO(%a5),%a0
22824 move.l x@TLSIE(%a5),%a0
22825 move.l x@TLSLE(%a5),%a0'
22828 tls_as_opt
='--fatal-warnings'
22832 .section ".tdata","awT",@progbits
22840 addi 3,31,ld0@got@tlsgd
22842 addi 3,31,x1@got@tlsld
22845 addis 9,3,x2@dtprel@ha
22846 addi 9,9,x2@dtprel@l
22847 lwz 9,x3@got@tprel(31)
22850 addis 9,2,x2@tprel@ha
22851 addi 9,9,x2@tprel@l'
22854 tls_as_opt
="-a32 --fatal-warnings"
22858 .section ".tdata","awT",@progbits
22866 addi 3,2,ld0@got@tlsgd
22872 addi 3,2,x1@got@tlsld
22878 addis 9,3,x2@dtprel@ha
22879 addi 9,9,x2@dtprel@l
22882 ld 9,x3@got@dtprel(2)
22888 tls_as_opt
="-a64 --fatal-warnings"
22892 .section ".tdata","awT",@progbits
22899 .long foo@GOTNTPOFF
22900 .long foo@INDNTPOFF
22901 l %r1,foo@GOTNTPOFF(%r12)
22902 l %r1,0(%r1):tls_load:foo
22903 bas %r14,0(%r1,%r13):tls_gdcall:foo
22904 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22907 tls_as_opt
="-m31 --fatal-warnings"
22911 .section ".tdata","awT",@progbits
22918 .quad foo@GOTNTPOFF
22919 lg %r1,foo@GOTNTPOFF(%r12)
22920 larl %r1,foo@INDNTPOFF
22921 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22922 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22925 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22927 sh-
*-* | sh
[34]-*-*)
22929 .section ".tdata","awT",@progbits
22939 tls_as_opt
=--fatal-warnings
22943 sparc
*-sun-solaris2.
*)
22945 tga_func
=__tls_get_addr
22951 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22953 .section ".tdata",#alloc,#write,#tls'
22958 .section ".tdata","awT",@progbits'
22961 tls_as_opt
="-32 --fatal-warnings"
22963 conftest_s
="$conftest_s
22966 sethi %tgd_hi22(foo), %o0
22967 add %o0, %tgd_lo10(foo), %o1
22968 add %l7, %o1, %o0, %tgd_add(foo)
22969 call __tls_get_addr, %tgd_call(foo)
22970 sethi %tldm_hi22(foo), %l1
22971 add %l1, %tldm_lo10(foo), %l2
22972 add %l7, %l2, %o0, %tldm_add(foo)
22973 call __tls_get_addr, %tldm_call(foo)
22974 sethi %tldo_hix22(foo), %l3
22975 xor %l3, %tldo_lox10(foo), %l4
22976 add %o0, %l4, %l5, %tldo_add(foo)
22977 sethi %tie_hi22(foo), %o3
22978 add %o3, %tie_lo10(foo), %o3
22979 ld [%l7 + %o3], %o2, %tie_ld(foo)
22980 add %g7, %o2, %o4, %tie_add(foo)
22981 sethi %tle_hix22(foo), %l1
22982 xor %l1, %tle_lox10(foo), %o5
22983 ld [%g7 + %o5], %o1"
22987 .section ".tdata","awT",@progbits
22990 movi a8, foo@TLSFUNC
22991 movi a10, foo@TLSARG
22992 callx8.tls a8, foo@TLSCALL'
22998 if test "x$enable_tls" = xno
; then
22999 : # TLS explicitly disabled.
23000 elif test "x$enable_tls" = xyes
; then
23001 set_have_as_tls
=yes # TLS explicitly enabled.
23002 elif test -z "$tls_first_major"; then
23003 : # If we don't have a check, assume no support.
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23006 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23007 if test "${gcc_cv_as_tls+set}" = set; then :
23008 $as_echo_n "(cached) " >&6
23011 if test $in_tree_gas = yes; then
23012 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23013 then gcc_cv_as_tls
=yes
23015 elif test x
$gcc_cv_as != x
; then
23016 echo "$conftest_s" > conftest.s
23017 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23019 (eval $ac_try) 2>&5
23021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23022 test $ac_status = 0; }; }
23026 echo "configure: failed program was" >&5
23029 rm -f conftest.o conftest.s
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23033 $as_echo "$gcc_cv_as_tls" >&6; }
23034 if test $gcc_cv_as_tls = yes; then
23035 set_have_as_tls
=yes
23040 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23041 # with TLS support are in use, native TLS cannot work.
23045 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23046 # gld with TLS support are in use, native TLS cannot work.
23049 # TLS was introduced in the Solaris 9 FCS release and backported to
23050 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23051 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23052 # ld and GCC don't support any longer.
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23055 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23057 # Check ld and ld.so.1 TLS support.
23058 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23059 # Assume all interesting versions of GNU ld have TLS support.
23060 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23064 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23066 min_tls_ld_vers_minor
=280
23068 # Solaris 8/SPARC ld has TLS support since version 1.272.
23069 sparc
*-*-solaris2.8
)
23070 min_tls_ld_vers_minor
=272
23072 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23074 min_tls_ld_vers_minor
=374
23076 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23077 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23078 min_tls_ld_vers_minor
=343
23081 if test "$ld_vers_major" -gt 1 || \
23082 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23089 $as_echo "$ld_tls_support" >&6; }
23092 save_LDFLAGS
="$LDFLAGS"
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23097 $as_echo_n "checking alternate thread library... " >&6; }
23099 # TLS support was backported to Solaris 8 patches, but only lives in
23100 # the alternate thread library which became the default in Solaris 9.
23101 # We want to always use that, irrespective of TLS support.
23103 # Take multilib subdir into account. There's no spec to handle
23104 # this. The 64 symlink exists since Solaris 8.
23105 lwp_dir
=/usr
/lib
/lwp
23106 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23107 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23114 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23116 cat >>confdefs.h
<<_ACEOF
23117 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23121 $as_echo "$lwp_dir" >&6; }
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23124 $as_echo_n "checking library containing $tga_func... " >&6; }
23125 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23126 # (32-bit x86) only lived in libthread, so check for that. Keep
23127 # set_have_as_tls if found, disable if not.
23128 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23130 $as_echo_n "checking for library containing $tga_func... " >&6; }
23131 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23132 $as_echo_n "(cached) " >&6
23134 ac_func_search_save_LIBS
=$LIBS
23135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23136 /* end confdefs.h. */
23138 /* Override any GCC internal prototype to avoid an error.
23139 Use char because int might match the return type of a GCC
23140 builtin and then its argument prototype would still apply. */
23148 return $tga_func ();
23153 for ac_lib
in '' thread
; do
23154 if test -z "$ac_lib"; then
23155 ac_res
="none required"
23158 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23160 if ac_fn_c_try_link
"$LINENO"; then :
23161 eval "$as_ac_Search=\$ac_res"
23163 rm -f core conftest.err conftest.
$ac_objext \
23165 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23169 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23172 eval "$as_ac_Search=no"
23174 rm conftest.
$ac_ext
23175 LIBS
=$ac_func_search_save_LIBS
23177 eval ac_res
=\$
$as_ac_Search
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23179 $as_echo "$ac_res" >&6; }
23180 eval ac_res
=\$
$as_ac_Search
23181 if test "$ac_res" != no
; then :
23182 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23188 # Clear LIBS if we cannot support TLS.
23189 if test $set_have_as_tls = no
; then
23192 # Always define LIB_TLS_SPEC, even without TLS support.
23194 cat >>confdefs.h
<<_ACEOF
23195 #define LIB_TLS_SPEC "$LIBS"
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23199 $as_echo "$LIBS" >&6; }
23202 LDFLAGS
="$save_LDFLAGS"
23205 if test $set_have_as_tls = yes ; then
23207 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23211 # Target-specific assembler checks.
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23214 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23215 gcc_cv_ld_static_dynamic
=no
23216 gcc_cv_ld_static_option
='-Bstatic'
23217 gcc_cv_ld_dynamic_option
='-Bdynamic'
23218 if test $in_tree_ld = yes ; then
23219 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
23220 gcc_cv_ld_static_dynamic
=yes
23222 elif test x
$gcc_cv_ld != x
; then
23223 # Check if linker supports -Bstatic/-Bdynamic option
23224 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23225 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23226 gcc_cv_ld_static_dynamic
=yes
23229 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23231 gcc_cv_ld_static_dynamic
=yes
23232 gcc_cv_ld_static_option
="-noso"
23233 gcc_cv_ld_dynamic_option
="-so_archive"
23235 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23237 gcc_cv_ld_static_dynamic
=yes
23239 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23241 gcc_cv_ld_static_dynamic
=yes
23246 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23248 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23251 cat >>confdefs.h
<<_ACEOF
23252 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23256 cat >>confdefs.h
<<_ACEOF
23257 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23262 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23264 if test x
"$demangler_in_ld" = xyes
; then
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23266 $as_echo_n "checking linker --demangle support... " >&6; }
23267 gcc_cv_ld_demangle
=no
23268 if test $in_tree_ld = yes; then
23269 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 \
23270 gcc_cv_ld_demangle
=yes
23272 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23273 # Check if the GNU linker supports --demangle option
23274 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23275 gcc_cv_ld_demangle
=yes
23278 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23280 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23284 $as_echo "$gcc_cv_ld_demangle" >&6; }
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23288 $as_echo_n "checking linker plugin support... " >&6; }
23289 gcc_cv_lto_plugin
=0
23290 if test -f liblto_plugin.la
; then
23291 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23292 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
23293 gcc_cv_lto_plugin
=2
23294 elif test "$ld_is_gold" = yes -a "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -eq 20; then
23295 gcc_cv_lto_plugin
=1
23298 elif test x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld" && echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23299 # Require GNU ld or gold 2.21+ for plugin support by default.
23300 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23301 gcc_cv_lto_plugin
=2
23302 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23303 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23304 gcc_cv_lto_plugin
=1
23306 elif test x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" != x
"$gcc_cv_ld"; then
23307 # Allow -fuse-linker-plugin if plugin linker differs from
23308 # default/specified linker.
23309 gcc_cv_lto_plugin
=1
23313 cat >>confdefs.h
<<_ACEOF
23314 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23318 $as_echo "$gcc_cv_lto_plugin" >&6; }
23321 # All TARGET_ABI_OSF targets.
23322 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23324 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23325 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23326 $as_echo_n "(cached) " >&6
23328 gcc_cv_as_alpha_explicit_relocs
=no
23329 if test $in_tree_gas = yes; then
23330 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23331 then gcc_cv_as_alpha_explicit_relocs
=yes
23333 elif test x
$gcc_cv_as != x
; then
23334 echo ' .set nomacro
23336 extbl $3, $2, $3 !lituse_bytoff!1
23337 ldq $2, a($29) !literal!1
23338 ldq $4, b($29) !literal!2
23339 ldq_u $3, 0($2) !lituse_base!1
23340 ldq $27, f($29) !literal!5
23341 jsr $26, ($27), f !lituse_jsr!5
23342 ldah $29, 0($26) !gpdisp!3
23343 lda $0, c($29) !gprel
23344 ldah $1, d($29) !gprelhigh
23345 lda $1, d($1) !gprellow
23346 lda $29, 0($29) !gpdisp!3' > conftest.s
23347 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23349 (eval $ac_try) 2>&5
23351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23352 test $ac_status = 0; }; }
23354 gcc_cv_as_alpha_explicit_relocs
=yes
23356 echo "configure: failed program was" >&5
23359 rm -f conftest.o conftest.s
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23363 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23364 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23366 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23370 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23371 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23372 $as_echo_n "(cached) " >&6
23374 gcc_cv_as_alpha_jsrdirect_relocs
=no
23375 if test $in_tree_gas = yes; then
23376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23377 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23379 elif test x
$gcc_cv_as != x
; then
23380 echo ' .set nomacro
23382 ldq $27, a($29) !literal!1
23383 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23384 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23386 (eval $ac_try) 2>&5
23388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23389 test $ac_status = 0; }; }
23391 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23393 echo "configure: failed program was" >&5
23396 rm -f conftest.o conftest.s
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23400 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23401 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23403 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23410 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23411 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23412 $as_echo_n "(cached) " >&6
23414 gcc_cv_as_cris_no_mul_bug
=no
23415 if test $in_tree_gas = yes; then
23416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23417 then gcc_cv_as_cris_no_mul_bug
=yes
23419 elif test x
$gcc_cv_as != x
; then
23420 echo '.text' > conftest.s
23421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23423 (eval $ac_try) 2>&5
23425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23426 test $ac_status = 0; }; }
23428 gcc_cv_as_cris_no_mul_bug
=yes
23430 echo "configure: failed program was" >&5
23433 rm -f conftest.o conftest.s
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23437 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23438 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23440 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23447 $as_echo_n "checking assembler for .register... " >&6; }
23448 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23449 $as_echo_n "(cached) " >&6
23451 gcc_cv_as_sparc_register_op
=no
23452 if test x
$gcc_cv_as != x
; then
23453 echo '.register %g2, #scratch' > conftest.s
23454 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23456 (eval $ac_try) 2>&5
23458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23459 test $ac_status = 0; }; }
23461 gcc_cv_as_sparc_register_op
=yes
23463 echo "configure: failed program was" >&5
23466 rm -f conftest.o conftest.s
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23470 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23471 if test $gcc_cv_as_sparc_register_op = yes; then
23473 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23478 $as_echo_n "checking assembler for -relax option... " >&6; }
23479 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23480 $as_echo_n "(cached) " >&6
23482 gcc_cv_as_sparc_relax
=no
23483 if test x
$gcc_cv_as != x
; then
23484 echo '.text' > conftest.s
23485 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23487 (eval $ac_try) 2>&5
23489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23490 test $ac_status = 0; }; }
23492 gcc_cv_as_sparc_relax
=yes
23494 echo "configure: failed program was" >&5
23497 rm -f conftest.o conftest.s
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23501 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23502 if test $gcc_cv_as_sparc_relax = yes; then
23504 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23509 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23510 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23511 $as_echo_n "(cached) " >&6
23513 gcc_cv_as_sparc_gotdata_op
=no
23514 if test x
$gcc_cv_as != x
; then
23520 sethi %gdop_hix22(foo), %g1
23521 xor %g1, %gdop_lox10(foo), %g1
23522 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23525 (eval $ac_try) 2>&5
23527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23528 test $ac_status = 0; }; }
23530 if test x
$gcc_cv_ld != x \
23531 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23532 if test x
$gcc_cv_objdump != x
; then
23533 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23534 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23535 gcc_cv_as_sparc_gotdata_op
=no
23537 gcc_cv_as_sparc_gotdata_op
=yes
23543 echo "configure: failed program was" >&5
23546 rm -f conftest.o conftest.s
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23550 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23551 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23553 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23558 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23559 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23560 $as_echo_n "(cached) " >&6
23562 gcc_cv_as_sparc_ua_pcrel
=no
23563 if test x
$gcc_cv_as != x
; then
23570 .uaword %r_disp32(foo)' > conftest.s
23571 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23573 (eval $ac_try) 2>&5
23575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23576 test $ac_status = 0; }; }
23578 if test x
$gcc_cv_ld != x \
23579 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23580 gcc_cv_as_sparc_ua_pcrel
=yes
23584 echo "configure: failed program was" >&5
23587 rm -f conftest.o conftest.s
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23591 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23592 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23594 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23598 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23599 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23600 $as_echo_n "(cached) " >&6
23602 gcc_cv_as_sparc_ua_pcrel_hidden
=no
23603 if test x
$gcc_cv_as != x
; then
23607 .uaword %r_disp32(foo)
23608 .byte 0x32, 0x33, 0x34
23612 .skip 4' > conftest.s
23613 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23615 (eval $ac_try) 2>&5
23617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23618 test $ac_status = 0; }; }
23620 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
23621 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
23622 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
23623 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
23624 if $gcc_cv_objdump -R conftest
2> /dev
/null \
23625 |
grep 'DISP32' > /dev
/null
2>&1; then
23628 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
23633 echo "configure: failed program was" >&5
23636 rm -f conftest.o conftest.s
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23640 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23641 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23643 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23647 fi # unaligned pcrel relocs
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23650 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23651 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23652 $as_echo_n "(cached) " >&6
23654 gcc_cv_as_sparc_offsetable_lo10
=no
23655 if test x
$gcc_cv_as != x
; then
23657 or %g1, %lo(ab) + 12, %g1
23658 or %g1, %lo(ab + 12), %g1' > conftest.s
23659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23661 (eval $ac_try) 2>&5
23663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23664 test $ac_status = 0; }; }
23666 if test x
$gcc_cv_objdump != x \
23667 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
23668 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
23669 gcc_cv_as_sparc_offsetable_lo10
=yes
23672 echo "configure: failed program was" >&5
23675 rm -f conftest.o conftest.s
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23679 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23680 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23682 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23687 i
[34567]86-*-* | x86_64-
*-*)
23690 # Full C++ conformance when using a shared libstdc++-v3 requires some
23691 # support from the Cygwin DLL, which in more recent versions exports
23692 # wrappers to aid in interposing and redirecting operators new, delete,
23693 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23694 # are configuring for a version of Cygwin that exports the wrappers.
23695 if test x
$host = x
$target; then
23696 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23697 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
23698 gcc_ac_cygwin_dll_wrappers
=yes
23700 gcc_ac_cygwin_dll_wrappers
=no
23704 # Can't check presence of libc functions during cross-compile, so
23705 # we just have to assume we're building for an up-to-date target.
23706 gcc_ac_cygwin_dll_wrappers
=yes
23709 cat >>confdefs.h
<<_ACEOF
23710 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23715 cygwin
* | pe | mingw32
*)
23716 # Recent binutils allows the three-operand form of ".comm" on PE. This
23717 # definition is used unconditionally to initialise the default state of
23718 # the target option variable that governs usage of the feature.
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23720 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23721 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23722 $as_echo_n "(cached) " >&6
23724 gcc_cv_as_comm_has_align
=no
23725 if test $in_tree_gas = yes; then
23726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23727 then gcc_cv_as_comm_has_align
=yes
23729 elif test x
$gcc_cv_as != x
; then
23730 echo '.comm foo,1,32' > conftest.s
23731 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23733 (eval $ac_try) 2>&5
23735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23736 test $ac_status = 0; }; }
23738 gcc_cv_as_comm_has_align
=yes
23740 echo "configure: failed program was" >&5
23743 rm -f conftest.o conftest.s
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23747 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23750 cat >>confdefs.h
<<_ACEOF
23751 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23754 # Used for DWARF 2 in PE
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23756 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23757 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23758 $as_echo_n "(cached) " >&6
23760 gcc_cv_as_ix86_pe_secrel32
=no
23761 if test $in_tree_gas = yes; then
23762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23763 then gcc_cv_as_ix86_pe_secrel32
=yes
23765 elif test x
$gcc_cv_as != x
; then
23769 .secrel32 foo' > conftest.s
23770 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23772 (eval $ac_try) 2>&5
23774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23775 test $ac_status = 0; }; }
23777 if test x
$gcc_cv_ld != x \
23778 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
23779 gcc_cv_as_ix86_pe_secrel32
=yes
23783 echo "configure: failed program was" >&5
23786 rm -f conftest.o conftest.s
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23790 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23791 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23793 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23796 # Test if the assembler supports the extended form of the .section
23797 # directive that specifies section alignment. LTO support uses this,
23798 # but normally only after installation, so we warn but don't fail the
23799 # configure if LTO is enabled but the assembler does not support it.
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23801 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23802 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23803 $as_echo_n "(cached) " >&6
23805 gcc_cv_as_section_has_align
=no
23806 if test $in_tree_gas = yes; then
23807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23808 then gcc_cv_as_section_has_align
=yes
23810 elif test x
$gcc_cv_as != x
; then
23811 echo '.section lto_test,"dr0"' > conftest.s
23812 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814 (eval $ac_try) 2>&5
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; }
23819 gcc_cv_as_section_has_align
=yes
23821 echo "configure: failed program was" >&5
23824 rm -f conftest.o conftest.s
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23828 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23830 if test x
$gcc_cv_as_section_has_align != xyes
; then
23831 case ",$enable_languages," in
23833 { $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
23834 $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;}
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23842 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23843 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23844 $as_echo_n "(cached) " >&6
23846 gcc_cv_as_ix86_filds
=no
23847 if test x
$gcc_cv_as != x
; then
23848 echo 'filds mem; fists mem' > conftest.s
23849 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23851 (eval $ac_try) 2>&5
23853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23854 test $ac_status = 0; }; }
23856 gcc_cv_as_ix86_filds
=yes
23858 echo "configure: failed program was" >&5
23861 rm -f conftest.o conftest.s
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23865 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23866 if test $gcc_cv_as_ix86_filds = yes; then
23868 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23873 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23874 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23875 $as_echo_n "(cached) " >&6
23877 gcc_cv_as_ix86_fildq
=no
23878 if test x
$gcc_cv_as != x
; then
23879 echo 'fildq mem; fistpq mem' > conftest.s
23880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23882 (eval $ac_try) 2>&5
23884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23885 test $ac_status = 0; }; }
23887 gcc_cv_as_ix86_fildq
=yes
23889 echo "configure: failed program was" >&5
23892 rm -f conftest.o conftest.s
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23896 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23897 if test $gcc_cv_as_ix86_fildq = yes; then
23899 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23904 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23905 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23906 $as_echo_n "(cached) " >&6
23908 gcc_cv_as_ix86_cmov_sun_syntax
=no
23909 if test x
$gcc_cv_as != x
; then
23910 echo 'cmovl.l %edx, %eax' > conftest.s
23911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23913 (eval $ac_try) 2>&5
23915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23916 test $ac_status = 0; }; }
23918 gcc_cv_as_ix86_cmov_sun_syntax
=yes
23920 echo "configure: failed program was" >&5
23923 rm -f conftest.o conftest.s
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23927 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23928 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23930 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23935 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23936 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23937 $as_echo_n "(cached) " >&6
23939 gcc_cv_as_ix86_ffreep
=no
23940 if test x
$gcc_cv_as != x
; then
23941 echo 'ffreep %st(1)' > conftest.s
23942 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23944 (eval $ac_try) 2>&5
23946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23947 test $ac_status = 0; }; }
23949 gcc_cv_as_ix86_ffreep
=yes
23951 echo "configure: failed program was" >&5
23954 rm -f conftest.o conftest.s
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23958 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23959 if test $gcc_cv_as_ix86_ffreep = yes; then
23961 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23966 $as_echo_n "checking assembler for .quad directive... " >&6; }
23967 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23968 $as_echo_n "(cached) " >&6
23970 gcc_cv_as_ix86_quad
=no
23971 if test x
$gcc_cv_as != x
; then
23972 echo '.quad 0' > conftest.s
23973 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23975 (eval $ac_try) 2>&5
23977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23978 test $ac_status = 0; }; }
23980 gcc_cv_as_ix86_quad
=yes
23982 echo "configure: failed program was" >&5
23985 rm -f conftest.o conftest.s
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23989 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23990 if test $gcc_cv_as_ix86_quad = yes; then
23992 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23997 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23998 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23999 $as_echo_n "(cached) " >&6
24001 gcc_cv_as_ix86_sahf
=no
24002 if test x
$gcc_cv_as != x
; then
24005 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24007 (eval $ac_try) 2>&5
24009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24010 test $ac_status = 0; }; }
24012 gcc_cv_as_ix86_sahf
=yes
24014 echo "configure: failed program was" >&5
24017 rm -f conftest.o conftest.s
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24021 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24022 if test $gcc_cv_as_ix86_sahf = yes; then
24024 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24029 $as_echo_n "checking assembler for swap suffix... " >&6; }
24030 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24031 $as_echo_n "(cached) " >&6
24033 gcc_cv_as_ix86_swap
=no
24034 if test x
$gcc_cv_as != x
; then
24035 echo 'movl.s %esp, %ebp' > conftest.s
24036 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }
24043 gcc_cv_as_ix86_swap
=yes
24045 echo "configure: failed program was" >&5
24048 rm -f conftest.o conftest.s
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24052 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24053 if test $gcc_cv_as_ix86_swap = yes; then
24055 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24060 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24061 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24062 $as_echo_n "(cached) " >&6
24064 gcc_cv_as_ix86_diff_sect_delta
=no
24065 if test x
$gcc_cv_as != x
; then
24066 echo '.section .rodata
24072 .L2: nop' > conftest.s
24073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24075 (eval $ac_try) 2>&5
24077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24078 test $ac_status = 0; }; }
24080 gcc_cv_as_ix86_diff_sect_delta
=yes
24082 echo "configure: failed program was" >&5
24085 rm -f conftest.o conftest.s
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24089 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24090 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24092 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24096 # These two are used unconditionally by i386.[ch]; it is to be defined
24097 # to 1 if the feature is present, 0 otherwise.
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24099 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24100 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24101 $as_echo_n "(cached) " >&6
24103 gcc_cv_as_ix86_gotoff_in_data
=no
24104 if test $in_tree_gas = yes; then
24105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24106 then gcc_cv_as_ix86_gotoff_in_data
=yes
24108 elif test x
$gcc_cv_as != x
; then
24113 .long .L0@GOTOFF' > conftest.s
24114 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24116 (eval $ac_try) 2>&5
24118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24119 test $ac_status = 0; }; }
24121 gcc_cv_as_ix86_gotoff_in_data
=yes
24123 echo "configure: failed program was" >&5
24126 rm -f conftest.o conftest.s
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24130 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24133 cat >>confdefs.h
<<_ACEOF
24134 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24139 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24140 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24141 $as_echo_n "(cached) " >&6
24143 gcc_cv_as_ix86_rep_lock_prefix
=no
24144 if test x
$gcc_cv_as != x
; then
24146 lock addl %edi, (%eax,%esi)
24147 lock orl $0, (%esp)' > conftest.s
24148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24150 (eval $ac_try) 2>&5
24152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24153 test $ac_status = 0; }; }
24155 gcc_cv_as_ix86_rep_lock_prefix
=yes
24157 echo "configure: failed program was" >&5
24160 rm -f conftest.o conftest.s
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24164 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24165 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24167 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24172 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24173 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24174 $as_echo_n "(cached) " >&6
24176 gcc_cv_as_ix86_tlsgdplt
=no
24177 if test x
$gcc_cv_as != x
; then
24178 echo 'call tls_gd@tlsgdplt' > conftest.s
24179 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24181 (eval $ac_try) 2>&5
24183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24184 test $ac_status = 0; }; }
24186 gcc_cv_as_ix86_tlsgdplt
=yes
24188 echo "configure: failed program was" >&5
24191 rm -f conftest.o conftest.s
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24195 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24196 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24198 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24203 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24204 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24205 $as_echo_n "(cached) " >&6
24207 gcc_cv_as_ix86_tlsldmplt
=no
24208 if test x
$gcc_cv_as != x
; then
24209 echo 'call tls_ld@tlsldmplt' > conftest.s
24210 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24212 (eval $ac_try) 2>&5
24214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24215 test $ac_status = 0; }; }
24217 gcc_cv_as_ix86_tlsldmplt
=yes
24219 echo "configure: failed program was" >&5
24222 rm -f conftest.o conftest.s
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24226 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24227 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24229 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24237 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24238 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24239 $as_echo_n "(cached) " >&6
24241 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24242 if test $in_tree_gas = yes; then
24243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24244 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24246 elif test x
$gcc_cv_as != x
; then
24248 addl r15 = @ltoffx(x#), gp
24250 ld8.mov r16 = [r15], x#' > conftest.s
24251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24253 (eval $ac_try) 2>&5
24255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24256 test $ac_status = 0; }; }
24258 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24260 echo "configure: failed program was" >&5
24263 rm -f conftest.o conftest.s
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24267 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24268 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24270 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24278 *-*-aix*) conftest_s
=' .machine "pwr5"
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24283 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24284 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24285 $as_echo_n "(cached) " >&6
24287 gcc_cv_as_machine_directive
=no
24288 if test x
$gcc_cv_as != x
; then
24289 echo ' .machine ppc7400' > conftest.s
24290 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24292 (eval $ac_try) 2>&5
24294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24295 test $ac_status = 0; }; }
24297 gcc_cv_as_machine_directive
=yes
24299 echo "configure: failed program was" >&5
24302 rm -f conftest.o conftest.s
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24306 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24308 if test x
$gcc_cv_as_machine_directive != xyes
; then
24309 echo "*** This target requires an assembler supporting \".machine\"" >&2
24310 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24311 test x
$build = x
$target && exit 1
24315 *) conftest_s
=' .machine power4
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24321 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24322 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24323 $as_echo_n "(cached) " >&6
24325 gcc_cv_as_powerpc_mfcrf
=no
24326 if test $in_tree_gas = yes; then
24327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24328 then gcc_cv_as_powerpc_mfcrf
=yes
24330 elif test x
$gcc_cv_as != x
; then
24331 echo "$conftest_s" > conftest.s
24332 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24334 (eval $ac_try) 2>&5
24336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24337 test $ac_status = 0; }; }
24339 gcc_cv_as_powerpc_mfcrf
=yes
24341 echo "configure: failed program was" >&5
24344 rm -f conftest.o conftest.s
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24348 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24349 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24351 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24356 *-*-aix*) conftest_s
=' .machine "pwr5"
24359 *) conftest_s
=' .machine power5
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24365 $as_echo_n "checking assembler for popcntb support... " >&6; }
24366 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24367 $as_echo_n "(cached) " >&6
24369 gcc_cv_as_powerpc_popcntb
=no
24370 if test $in_tree_gas = yes; then
24371 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24372 then gcc_cv_as_powerpc_popcntb
=yes
24374 elif test x
$gcc_cv_as != x
; then
24375 echo "$conftest_s" > conftest.s
24376 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24378 (eval $ac_try) 2>&5
24380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24381 test $ac_status = 0; }; }
24383 gcc_cv_as_powerpc_popcntb
=yes
24385 echo "configure: failed program was" >&5
24388 rm -f conftest.o conftest.s
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24392 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24393 if test $gcc_cv_as_powerpc_popcntb = yes; then
24395 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24400 *-*-aix*) conftest_s
=' .machine "pwr5x"
24403 *) conftest_s
=' .machine power5
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24409 $as_echo_n "checking assembler for fp round support... " >&6; }
24410 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24411 $as_echo_n "(cached) " >&6
24413 gcc_cv_as_powerpc_fprnd
=no
24414 if test $in_tree_gas = yes; then
24415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24416 then gcc_cv_as_powerpc_fprnd
=yes
24418 elif test x
$gcc_cv_as != x
; then
24419 echo "$conftest_s" > conftest.s
24420 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24422 (eval $ac_try) 2>&5
24424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24425 test $ac_status = 0; }; }
24427 gcc_cv_as_powerpc_fprnd
=yes
24429 echo "configure: failed program was" >&5
24432 rm -f conftest.o conftest.s
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24436 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24437 if test $gcc_cv_as_powerpc_fprnd = yes; then
24439 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24444 *-*-aix*) conftest_s
=' .machine "pwr6"
24447 *) conftest_s
=' .machine power6
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24453 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24454 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24457 gcc_cv_as_powerpc_mfpgpr
=no
24458 if test $in_tree_gas = yes; then
24459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24460 then gcc_cv_as_powerpc_mfpgpr
=yes
24462 elif test x
$gcc_cv_as != x
; then
24463 echo "$conftest_s" > conftest.s
24464 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24466 (eval $ac_try) 2>&5
24468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24469 test $ac_status = 0; }; }
24471 gcc_cv_as_powerpc_mfpgpr
=yes
24473 echo "configure: failed program was" >&5
24476 rm -f conftest.o conftest.s
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24480 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24481 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24483 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24488 *-*-aix*) conftest_s
=' .csect .text[PR]
24490 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24494 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24495 *) conftest_s
=' .text
24497 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24501 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24502 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24505 gcc_cv_as_powerpc_rel16
=no
24506 if test $in_tree_gas = yes; then
24507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24508 then gcc_cv_as_powerpc_rel16
=yes
24510 elif test x
$gcc_cv_as != x
; then
24511 echo "$conftest_s" > conftest.s
24512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514 (eval $ac_try) 2>&5
24516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517 test $ac_status = 0; }; }
24519 gcc_cv_as_powerpc_rel16
=yes
24521 echo "configure: failed program was" >&5
24524 rm -f conftest.o conftest.s
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24528 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24529 if test $gcc_cv_as_powerpc_rel16 = yes; then
24531 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24536 *-*-aix*) conftest_s
=' .machine "pwr6"
24539 *) conftest_s
=' .machine power6
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24545 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24546 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24547 $as_echo_n "(cached) " >&6
24549 gcc_cv_as_powerpc_cmpb
=no
24550 if test $in_tree_gas = yes; then
24551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24552 then gcc_cv_as_powerpc_cmpb
=yes
24554 elif test x
$gcc_cv_as != x
; then
24555 echo "$conftest_s" > conftest.s
24556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24563 gcc_cv_as_powerpc_cmpb
=yes
24565 echo "configure: failed program was" >&5
24568 rm -f conftest.o conftest.s
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24572 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24573 if test $gcc_cv_as_powerpc_cmpb = yes; then
24575 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24580 *-*-aix*) conftest_s
=' .machine "pwr6"
24583 *) conftest_s
=' .machine power6
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24589 $as_echo_n "checking assembler for decimal float support... " >&6; }
24590 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24591 $as_echo_n "(cached) " >&6
24593 gcc_cv_as_powerpc_dfp
=no
24594 if test $in_tree_gas = yes; then
24595 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24596 then gcc_cv_as_powerpc_dfp
=yes
24598 elif test x
$gcc_cv_as != x
; then
24599 echo "$conftest_s" > conftest.s
24600 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; }
24607 gcc_cv_as_powerpc_dfp
=yes
24609 echo "configure: failed program was" >&5
24612 rm -f conftest.o conftest.s
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24616 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24617 if test $gcc_cv_as_powerpc_dfp = yes; then
24619 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24624 *-*-aix*) conftest_s
=' .machine "pwr7"
24627 *) conftest_s
=' .machine power7
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24633 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24634 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24637 gcc_cv_as_powerpc_vsx
=no
24638 if test $in_tree_gas = yes; then
24639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24640 then gcc_cv_as_powerpc_vsx
=yes
24642 elif test x
$gcc_cv_as != x
; then
24643 echo "$conftest_s" > conftest.s
24644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24646 (eval $ac_try) 2>&5
24648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24649 test $ac_status = 0; }; }
24651 gcc_cv_as_powerpc_vsx
=yes
24653 echo "configure: failed program was" >&5
24656 rm -f conftest.o conftest.s
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24660 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24661 if test $gcc_cv_as_powerpc_vsx = yes; then
24663 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24668 *-*-aix*) conftest_s
=' .machine "pwr7"
24671 *) conftest_s
=' .machine power7
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24677 $as_echo_n "checking assembler for popcntd support... " >&6; }
24678 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24679 $as_echo_n "(cached) " >&6
24681 gcc_cv_as_powerpc_popcntd
=no
24682 if test $in_tree_gas = yes; then
24683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24684 then gcc_cv_as_powerpc_popcntd
=yes
24686 elif test x
$gcc_cv_as != x
; then
24687 echo "$conftest_s" > conftest.s
24688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24690 (eval $ac_try) 2>&5
24692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24693 test $ac_status = 0; }; }
24695 gcc_cv_as_powerpc_popcntd
=yes
24697 echo "configure: failed program was" >&5
24700 rm -f conftest.o conftest.s
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24704 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24705 if test $gcc_cv_as_powerpc_popcntd = yes; then
24707 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24712 *-*-aix*) conftest_s
=' .csect .text[PR]
24714 *) conftest_s
=' .text
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24719 $as_echo_n "checking assembler for lwsync support... " >&6; }
24720 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24723 gcc_cv_as_powerpc_lwsync
=no
24724 if test $in_tree_gas = yes; then
24725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24726 then gcc_cv_as_powerpc_lwsync
=yes
24728 elif test x
$gcc_cv_as != x
; then
24729 echo "$conftest_s" > conftest.s
24730 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24732 (eval $ac_try) 2>&5
24734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24735 test $ac_status = 0; }; }
24737 gcc_cv_as_powerpc_lwsync
=yes
24739 echo "configure: failed program was" >&5
24742 rm -f conftest.o conftest.s
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24746 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24747 if test $gcc_cv_as_powerpc_lwsync = yes; then
24749 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24754 *-*-aix*) conftest_s
=' .machine "476"
24757 *) conftest_s
=' .machine "476"
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24763 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24764 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24765 $as_echo_n "(cached) " >&6
24767 gcc_cv_as_powerpc_dci
=no
24768 if test $in_tree_gas = yes; then
24769 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24770 then gcc_cv_as_powerpc_dci
=yes
24772 elif test x
$gcc_cv_as != x
; then
24773 echo "$conftest_s" > conftest.s
24774 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24776 (eval $ac_try) 2>&5
24778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24779 test $ac_status = 0; }; }
24781 gcc_cv_as_powerpc_dci
=yes
24783 echo "configure: failed program was" >&5
24786 rm -f conftest.o conftest.s
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24790 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24791 if test $gcc_cv_as_powerpc_dci = yes; then
24793 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24798 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24799 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24800 $as_echo_n "(cached) " >&6
24802 gcc_cv_as_powerpc_gnu_attribute
=no
24803 if test $in_tree_gas = yes; then
24804 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24805 then gcc_cv_as_powerpc_gnu_attribute
=yes
24807 elif test x
$gcc_cv_as != x
; then
24808 echo '.gnu_attribute 4,1' > conftest.s
24809 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24811 (eval $ac_try) 2>&5
24813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24814 test $ac_status = 0; }; }
24816 gcc_cv_as_powerpc_gnu_attribute
=yes
24818 echo "configure: failed program was" >&5
24821 rm -f conftest.o conftest.s
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24825 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24826 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24828 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24833 $as_echo_n "checking assembler for tls marker support... " >&6; }
24834 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24835 $as_echo_n "(cached) " >&6
24837 gcc_cv_as_powerpc_tls_markers
=no
24838 if test $in_tree_gas = yes; then
24839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24840 then gcc_cv_as_powerpc_tls_markers
=yes
24842 elif test x
$gcc_cv_as != x
; then
24843 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24846 (eval $ac_try) 2>&5
24848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24849 test $ac_status = 0; }; }
24851 gcc_cv_as_powerpc_tls_markers
=yes
24853 echo "configure: failed program was" >&5
24856 rm -f conftest.o conftest.s
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24860 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24861 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24863 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24870 $as_echo_n "checking assembler for .ref support... " >&6; }
24871 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24872 $as_echo_n "(cached) " >&6
24874 gcc_cv_as_aix_ref
=no
24875 if test $in_tree_gas = yes; then
24876 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24879 elif test x
$gcc_cv_as != x
; then
24880 echo ' .csect stuff[rw]
24886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24888 (eval $ac_try) 2>&5
24890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24891 test $ac_status = 0; }; }
24893 gcc_cv_as_aix_ref
=yes
24895 echo "configure: failed program was" >&5
24898 rm -f conftest.o conftest.s
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24902 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24903 if test $gcc_cv_as_aix_ref = yes; then
24905 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24914 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24915 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24916 $as_echo_n "(cached) " >&6
24918 gcc_cv_as_mips_explicit_relocs
=no
24919 if test $in_tree_gas = yes; then
24920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24921 then gcc_cv_as_mips_explicit_relocs
=yes
24923 elif test x
$gcc_cv_as != x
; then
24924 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24925 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24927 (eval $ac_try) 2>&5
24929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24930 test $ac_status = 0; }; }
24932 gcc_cv_as_mips_explicit_relocs
=yes
24934 echo "configure: failed program was" >&5
24937 rm -f conftest.o conftest.s
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24941 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24942 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24943 if test x
$target_cpu_default = x
24944 then target_cpu_default
=MASK_EXPLICIT_RELOCS
24945 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24949 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24950 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24951 $as_echo_n "(cached) " >&6
24953 gcc_cv_as_mips_no_shared
=no
24954 if test $in_tree_gas = yes; then
24955 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24956 then gcc_cv_as_mips_no_shared
=yes
24958 elif test x
$gcc_cv_as != x
; then
24959 echo 'nop' > conftest.s
24960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24962 (eval $ac_try) 2>&5
24964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24965 test $ac_status = 0; }; }
24967 gcc_cv_as_mips_no_shared
=yes
24969 echo "configure: failed program was" >&5
24972 rm -f conftest.o conftest.s
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24976 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24977 if test $gcc_cv_as_mips_no_shared = yes; then
24979 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24984 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24985 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24986 $as_echo_n "(cached) " >&6
24988 gcc_cv_as_mips_gnu_attribute
=no
24989 if test $in_tree_gas = yes; then
24990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24991 then gcc_cv_as_mips_gnu_attribute
=yes
24993 elif test x
$gcc_cv_as != x
; then
24994 echo '.gnu_attribute 4,1' > conftest.s
24995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; }
25002 gcc_cv_as_mips_gnu_attribute
=yes
25004 echo "configure: failed program was" >&5
25007 rm -f conftest.o conftest.s
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25011 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25012 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25014 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25019 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25020 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25021 $as_echo_n "(cached) " >&6
25023 gcc_cv_as_mips_dtprelword
=no
25024 if test $in_tree_gas = yes; then
25025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25026 then gcc_cv_as_mips_dtprelword
=yes
25028 elif test x
$gcc_cv_as != x
; then
25029 echo '.section .tdata,"awT",@progbits
25033 .dtprelword x+0x8000' > conftest.s
25034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036 (eval $ac_try) 2>&5
25038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039 test $ac_status = 0; }; }
25041 gcc_cv_as_mips_dtprelword
=yes
25043 echo "configure: failed program was" >&5
25046 rm -f conftest.o conftest.s
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25050 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25051 if test $gcc_cv_as_mips_dtprelword = yes; then
25053 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25058 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25059 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25060 $as_echo_n "(cached) " >&6
25062 gcc_cv_as_mips_dspr1_mult
=no
25063 if test x
$gcc_cv_as != x
; then
25064 echo ' .set mips32r2
25072 multu $ac3,$4,$5' > conftest.s
25073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25075 (eval $ac_try) 2>&5
25077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25078 test $ac_status = 0; }; }
25080 gcc_cv_as_mips_dspr1_mult
=yes
25082 echo "configure: failed program was" >&5
25085 rm -f conftest.o conftest.s
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25089 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25090 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25092 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25097 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25098 gcc_cv_as_ld_jalr_reloc
=no
25099 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25100 if test $in_tree_ld = yes ; then
25101 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 \
25102 && test $in_tree_ld_is_elf = yes; then
25103 gcc_cv_as_ld_jalr_reloc
=yes
25105 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25106 echo ' .ent x' > conftest.s
25107 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25108 echo ' ld $25,%call16(y)($28)' >> conftest.s
25109 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25110 echo '1: jalr $25' >> conftest.s
25111 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25112 echo '1: jalr $25' >> conftest.s
25113 echo ' .end x' >> conftest.s
25114 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25115 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25116 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25117 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25118 gcc_cv_as_ld_jalr_reloc
=yes
25124 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25125 if test x
$target_cpu_default = x
; then
25126 target_cpu_default
=MASK_RELAX_PIC_CALLS
25128 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25132 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25135 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25136 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25137 $as_echo_n "(cached) " >&6
25139 gcc_cv_ld_mips_personality_relaxation
=no
25140 if test $in_tree_ld = yes ; then
25141 if test "$gcc_cv_gld_major_version" -eq 2 \
25142 -a "$gcc_cv_gld_minor_version" -ge 21 \
25143 -o "$gcc_cv_gld_major_version" -gt 2; then
25144 gcc_cv_ld_mips_personality_relaxation
=yes
25146 elif test x
$gcc_cv_as != x \
25147 -a x
$gcc_cv_ld != x \
25148 -a x
$gcc_cv_readelf != x
; then
25149 cat > conftest.s
<<EOF
25151 .cfi_personality 0x80,indirect_ptr
25158 .section .data,"aw",@progbits
25162 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25163 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25164 if $gcc_cv_readelf -d conftest
2>&1 \
25165 |
grep TEXTREL
> /dev
/null
2>&1; then
25167 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25168 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25171 gcc_cv_ld_mips_personality_relaxation
=yes
25175 rm -f conftest.s conftest.o conftest
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25178 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25179 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25181 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25187 # Mips and HP-UX need the GNU assembler.
25188 # Linux on IA64 might be able to use the Intel assembler.
25191 mips
*-*-* |
*-*-hpux* )
25192 if test x
$gas_flag = xyes \
25193 ||
test x
"$host" != x
"$build" \
25194 ||
test ! -x "$gcc_cv_as" \
25195 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25198 echo "*** This configuration requires the GNU assembler" >&2
25204 # ??? Not all targets support dwarf2 debug_line, even within a version
25205 # of gas. Moreover, we need to emit a valid instruction to trigger any
25206 # info to the output file. So, as supported targets are added to gas 2.11,
25207 # add some instruction here to (also) show we expect this might work.
25208 # ??? Once 2.11 is released, probably need to add first known working
25209 # version to the per-target configury.
25210 case "$cpu_type" in
25211 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25212 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25222 if test x
"$insn" != x
; then
25224 .file 1 \"conftest.s\"
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25228 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25229 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25230 $as_echo_n "(cached) " >&6
25232 gcc_cv_as_dwarf2_debug_line
=no
25233 if test $in_tree_gas = yes; then
25234 if test $in_tree_gas_is_elf = yes \
25235 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25236 then gcc_cv_as_dwarf2_debug_line
=yes
25238 elif test x
$gcc_cv_as != x
; then
25239 echo "$conftest_s" > conftest.s
25240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25242 (eval $ac_try) 2>&5
25244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25245 test $ac_status = 0; }; }
25247 if test x
$gcc_cv_objdump != x \
25248 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25249 |
grep debug_line
> /dev
/null
2>&1; then
25250 gcc_cv_as_dwarf2_debug_line
=yes
25253 echo "configure: failed program was" >&5
25256 rm -f conftest.o conftest.s
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25260 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25263 # The .debug_line file table must be in the exact order that
25264 # we specified the files, since these indices are also used
25265 # by DW_AT_decl_file. Approximate this test by testing if
25266 # the assembler bitches if the same index is assigned twice.
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25268 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25269 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25270 $as_echo_n "(cached) " >&6
25272 gcc_cv_as_dwarf2_file_buggy
=no
25273 if test x
$gcc_cv_as != x
; then
25274 echo ' .file 1 "foo.s"
25275 .file 1 "bar.s"' > conftest.s
25276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25278 (eval $ac_try) 2>&5
25280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25281 test $ac_status = 0; }; }
25283 gcc_cv_as_dwarf2_file_buggy
=yes
25285 echo "configure: failed program was" >&5
25288 rm -f conftest.o conftest.s
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25292 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25295 if test $gcc_cv_as_dwarf2_debug_line = yes \
25296 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25298 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25303 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25304 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25305 $as_echo_n "(cached) " >&6
25307 gcc_cv_as_gdwarf2_flag
=no
25308 if test $in_tree_gas = yes; then
25309 if test $in_tree_gas_is_elf = yes \
25310 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25311 then gcc_cv_as_gdwarf2_flag
=yes
25313 elif test x
$gcc_cv_as != x
; then
25314 echo "$insn" > conftest.s
25315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25322 gcc_cv_as_gdwarf2_flag
=yes
25324 echo "configure: failed program was" >&5
25327 rm -f conftest.o conftest.s
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25331 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25332 if test $gcc_cv_as_gdwarf2_flag = yes; then
25334 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25339 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25340 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25343 gcc_cv_as_gstabs_flag
=no
25344 if test $in_tree_gas = yes; then
25345 if test $in_tree_gas_is_elf = yes \
25346 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25347 then gcc_cv_as_gstabs_flag
=yes
25349 elif test x
$gcc_cv_as != x
; then
25350 echo "$insn" > conftest.s
25351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25353 (eval $ac_try) 2>&5
25355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25356 test $ac_status = 0; }; }
25358 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25359 # and warns about it, but still exits successfully. So check for
25361 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25363 (eval $ac_try) 2>&5
25365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25366 test $ac_status = 0; }; }
25368 else gcc_cv_as_gstabs_flag
=yes
25371 echo "configure: failed program was" >&5
25374 rm -f conftest.o conftest.s
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25378 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25379 if test $gcc_cv_as_gstabs_flag = yes; then
25381 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25386 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25387 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25388 $as_echo_n "(cached) " >&6
25390 gcc_cv_as_debug_prefix_map_flag
=no
25391 if test $in_tree_gas = yes; then
25392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25393 then gcc_cv_as_debug_prefix_map_flag
=yes
25395 elif test x
$gcc_cv_as != x
; then
25396 echo "$insn" > conftest.s
25397 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25399 (eval $ac_try) 2>&5
25401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; }; }
25404 gcc_cv_as_debug_prefix_map_flag
=yes
25406 echo "configure: failed program was" >&5
25409 rm -f conftest.o conftest.s
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25413 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25414 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25416 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25422 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25423 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25424 $as_echo_n "(cached) " >&6
25426 gcc_cv_as_lcomm_with_alignment
=no
25427 if test x
$gcc_cv_as != x
; then
25428 echo '.lcomm bar,4,16' > conftest.s
25429 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25431 (eval $ac_try) 2>&5
25433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25434 test $ac_status = 0; }; }
25436 gcc_cv_as_lcomm_with_alignment
=yes
25438 echo "configure: failed program was" >&5
25441 rm -f conftest.o conftest.s
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25445 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25446 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25448 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25452 # Check whether --enable-gnu-unique-object was given.
25453 if test "${enable_gnu_unique_object+set}" = set; then :
25454 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25456 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25457 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25461 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25462 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25465 gcc_cv_as_gnu_unique_object
=no
25466 if test $in_tree_gas = yes; then
25467 if test $in_tree_gas_is_elf = yes \
25468 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25469 then gcc_cv_as_gnu_unique_object
=yes
25471 elif test x
$gcc_cv_as != x
; then
25472 echo '.type foo, @gnu_unique_object' > conftest.s
25473 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25475 (eval $ac_try) 2>&5
25477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25478 test $ac_status = 0; }; }
25480 gcc_cv_as_gnu_unique_object
=yes
25482 echo "configure: failed program was" >&5
25485 rm -f conftest.o conftest.s
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25489 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25490 if test $gcc_cv_as_gnu_unique_object = yes; then
25491 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25492 if test x
$host = x
$build -a x
$host = x
$target &&
25493 ldd
--version 2>/dev
/null
&&
25494 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25495 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
25496 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25497 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
25498 if test "$glibcnum" -ge 2011 ; then
25499 enable_gnu_unique_object
=yes
25505 if test x
$enable_gnu_unique_object = xyes
; then
25507 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25512 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25513 if test "${gcc_cv_as_line_zero+set}" = set; then :
25514 $as_echo_n "(cached) " >&6
25516 gcc_cv_as_line_zero
=no
25517 if test $in_tree_gas = yes; then
25518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25519 then gcc_cv_as_line_zero
=yes
25521 elif test "x$gcc_cv_as" != x
; then
25522 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25523 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25525 (eval $ac_try) 2>&5
25527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25528 test $ac_status = 0; }; } &&
25529 test "x`cat conftest.out`" = x
25531 gcc_cv_as_line_zero
=yes
25533 echo "configure: failed program was" >&5
25535 echo "configure: error output was" >&5
25536 cat conftest.out
>&5
25538 rm -f conftest.o conftest.s conftest.out
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25542 $as_echo "$gcc_cv_as_line_zero" >&6; }
25543 if test "x$gcc_cv_as_line_zero" = xyes
; then
25545 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25550 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25551 gcc_cv_ld_eh_frame_hdr
=no
25552 if test $in_tree_ld = yes ; then
25553 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 \
25554 && test $in_tree_ld_is_elf = yes; then
25555 gcc_cv_ld_eh_frame_hdr
=yes
25557 elif test x
$gcc_cv_ld != x
; then
25558 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25559 # Check if linker supports --eh-frame-hdr option
25560 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
25561 gcc_cv_ld_eh_frame_hdr
=yes
25566 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25567 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
25568 gcc_cv_ld_eh_frame_hdr
=yes
25575 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
25577 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25581 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25584 $as_echo_n "checking linker position independent executable support... " >&6; }
25586 if test $in_tree_ld = yes ; then
25587 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 \
25588 && test $in_tree_ld_is_elf = yes; then
25591 elif test x
$gcc_cv_ld != x
; then
25592 # Check if linker supports -pie option
25593 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
25597 if test x
"$gcc_cv_ld_pie" = xyes
; then
25599 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25603 $as_echo "$gcc_cv_ld_pie" >&6; }
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25606 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25607 gcc_cv_ld_eh_gc_sections
=no
25608 if test $in_tree_ld = yes ; then
25609 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 \
25610 && test $in_tree_ld_is_elf = yes; then
25611 gcc_cv_ld_eh_gc_sections
=yes
25613 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25614 cat > conftest.s
<<EOF
25617 .type _start, @function
25620 .size _start, .-_start
25621 .section .text.foo,"ax",@progbits
25622 .type foo, @function
25626 .section .gcc_except_table.foo,"a",@progbits
25629 .section .eh_frame,"a",@progbits
25632 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25633 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25634 |
grep "gc-sections option ignored" > /dev
/null
; then
25635 gcc_cv_ld_eh_gc_sections
=no
25636 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25637 |
grep gcc_except_table
> /dev
/null
; then
25638 gcc_cv_ld_eh_gc_sections
=yes
25639 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25640 if test x
$gcc_cv_as_comdat_group != xyes
; then
25641 gcc_cv_ld_eh_gc_sections
=no
25642 cat > conftest.s
<<EOF
25645 .type _start, @function
25648 .size _start, .-_start
25649 .section .gnu.linkonce.t.foo,"ax",@progbits
25650 .type foo, @function
25654 .section .gcc_except_table.foo,"a",@progbits
25657 .section .eh_frame,"a",@progbits
25660 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25661 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25662 |
grep "gc-sections option ignored" > /dev
/null
; then
25663 gcc_cv_ld_eh_gc_sections
=no
25664 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25665 |
grep gcc_except_table
> /dev
/null
; then
25666 gcc_cv_ld_eh_gc_sections
=yes
25672 rm -f conftest.s conftest.o conftest
25676 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25677 gcc_cv_ld_eh_gc_sections
=no
25680 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
25682 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25686 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25689 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25690 gcc_cv_ld_eh_gc_sections_bug
=no
25691 if test $in_tree_ld = yes ; then
25692 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 \
25693 && test $in_tree_ld_is_elf = yes; then
25694 gcc_cv_ld_eh_gc_sections_bug
=yes
25696 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
25697 gcc_cv_ld_eh_gc_sections_bug
=yes
25698 cat > conftest.s
<<EOF
25701 .type _start, @function
25704 .size _start, .-_start
25705 .section .text.startup.foo,"ax",@progbits
25706 .type foo, @function
25710 .section .gcc_except_table.foo,"a",@progbits
25713 .section .eh_frame,"a",@progbits
25716 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25717 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25718 |
grep "gc-sections option ignored" > /dev
/null
; then
25720 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25721 |
grep gcc_except_table
> /dev
/null
; then
25722 gcc_cv_ld_eh_gc_sections_bug
=no
25725 rm -f conftest.s conftest.o conftest
25727 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
25729 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25733 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25740 $as_echo_n "checking linker --as-needed support... " >&6; }
25741 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25742 $as_echo_n "(cached) " >&6
25744 gcc_cv_ld_as_needed
=no
25745 if test $in_tree_ld = yes ; then
25746 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 \
25747 && test $in_tree_ld_is_elf = yes; then
25748 gcc_cv_ld_as_needed
=yes
25750 elif test x
$gcc_cv_ld != x
; then
25751 # Check if linker supports --as-needed and --no-as-needed options
25752 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
25753 gcc_cv_ld_as_needed
=yes
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25759 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25760 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
25762 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25766 case "$target:$tm_file" in
25767 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25769 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25770 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25771 $as_echo_n "(cached) " >&6
25773 gcc_cv_ld_no_dot_syms
=no
25774 if test $in_tree_ld = yes ; then
25775 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
25776 gcc_cv_ld_no_dot_syms
=yes
25778 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
25779 cat > conftest1.s
<<EOF
25783 cat > conftest2.s
<<EOF
25784 .section ".opd","aw"
25787 .type foo,@function
25789 .quad .LEfoo,.TOC.@tocbase,0
25795 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
25796 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
25797 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
25798 gcc_cv_ld_no_dot_syms
=yes
25800 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25805 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25806 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
25808 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25813 $as_echo_n "checking linker large toc support... " >&6; }
25814 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25815 $as_echo_n "(cached) " >&6
25817 gcc_cv_ld_large_toc
=no
25818 if test $in_tree_ld = yes ; then
25819 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
25820 gcc_cv_ld_large_toc
=yes
25822 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
25823 cat > conftest.s
<<EOF
25824 .section ".tbss","awT",@nobits
25830 addis 9,13,ie0@got@tprel@ha
25831 ld 9,ie0@got@tprel@l(9)
25833 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
25834 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
25835 gcc_cv_ld_large_toc
=yes
25837 rm -f conftest conftest.o conftest.s
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25842 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25843 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
25845 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25852 $as_echo_n "checking linker --build-id support... " >&6; }
25853 if test "${gcc_cv_ld_buildid+set}" = set; then :
25854 $as_echo_n "(cached) " >&6
25856 gcc_cv_ld_buildid
=no
25857 if test $in_tree_ld = yes ; then
25858 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25859 "$gcc_cv_gld_minor_version" -ge 18 -o \
25860 "$gcc_cv_gld_major_version" -gt 2 \
25861 && test $in_tree_ld_is_elf = yes; then
25862 gcc_cv_ld_buildid
=yes
25864 elif test x
$gcc_cv_ld != x
; then
25865 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
25866 gcc_cv_ld_buildid
=yes
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25871 $as_echo "$gcc_cv_ld_buildid" >&6; }
25872 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25874 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25878 # Check whether --enable-linker-build-id was given.
25879 if test "${enable_linker_build_id+set}" = set; then :
25880 enableval
=$enable_linker_build_id;
25882 enable_linker_build_id
=no
25886 if test x
"$enable_linker_build_id" = xyes
; then
25887 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25889 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25893 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25897 # In binutils 2.21, GNU ld gained support for new emulations fully
25898 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25900 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25901 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25904 gcc_cv_ld_sol2_emulation
=no
25905 if test $in_tree_ld = yes ; then
25906 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25907 "$gcc_cv_gld_minor_version" -ge 21 -o \
25908 "$gcc_cv_gld_major_version" -gt 2 \
25909 && test $in_tree_ld_is_elf = yes; then
25910 gcc_cv_ld_sol2_emulation
=yes
25912 elif test x
$gcc_cv_ld != x
; then
25913 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
25914 grep _sol2
> /dev
/null
; then
25915 gcc_cv_ld_sol2_emulation
=yes
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25920 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25921 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
25923 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25928 $as_echo_n "checking linker --sysroot support... " >&6; }
25929 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25930 $as_echo_n "(cached) " >&6
25932 gcc_cv_ld_sysroot
=no
25933 if test $in_tree_ld = yes ; then
25934 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
25935 gcc_cv_ld_sysroot
=yes
25937 elif test x
$gcc_cv_ld != x
; then
25938 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
25939 gcc_cv_ld_sysroot
=yes
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25944 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25945 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
25947 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25951 if test x
$with_sysroot = x
&& test x
$host = x
$target \
25952 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25953 && test "$prefix" != "NONE"; then
25955 cat >>confdefs.h
<<_ACEOF
25956 #define PREFIX_INCLUDE_DIR "$prefix/include"
25961 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25962 if test "x$with_headers" != x
; then
25963 target_header_dir
=$with_headers
25964 elif test "x$with_sysroot" = x
; then
25965 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25966 elif test "x$with_build_sysroot" != "x"; then
25967 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
25968 elif test "x$with_sysroot" = xyes
; then
25969 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
25971 target_header_dir
="${with_sysroot}${native_system_header_dir}"
25974 target_header_dir
=${native_system_header_dir}
25977 # Test for stack protector support in target C library.
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25979 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25980 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25983 gcc_cv_libc_provides_ssp
=no
25985 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
25986 # glibc 2.4 and later provides __stack_chk_fail and
25987 # either __stack_chk_guard, or TLS access to stack guard canary.
25988 if test -f $target_header_dir/features.h \
25989 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25990 $target_header_dir/features.h
> /dev
/null
; then
25991 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25992 $target_header_dir/features.h
> /dev
/null
; then
25993 gcc_cv_libc_provides_ssp
=yes
25994 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25995 $target_header_dir/features.h
> /dev
/null \
25996 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25997 $target_header_dir/features.h
> /dev
/null
; then
25998 gcc_cv_libc_provides_ssp
=yes
25999 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26000 $target_header_dir/features.h
> /dev
/null
&& \
26001 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26002 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26003 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26004 gcc_cv_libc_provides_ssp
=yes
26009 # Avoid complicated tests (see
26010 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26011 # simply assert that glibc does provide this, which is true for all
26012 # realistically usable GNU/Hurd configurations.
26013 gcc_cv_libc_provides_ssp
=yes;;
26014 *-*-darwin* |
*-*-freebsd*)
26015 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26016 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26017 gcc_cv_libc_provides_ssp
=yes
26019 echo "no __stack_chk_fail on this target"
26023 *) gcc_cv_libc_provides_ssp
=no
;;
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26027 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26029 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26031 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26035 # Test for <sys/sdt.h> on the target.
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26038 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26040 if test -f $target_header_dir/sys
/sdt.h
; then
26042 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26046 $as_echo "$have_sys_sdt_h" >&6; }
26048 # Check if TFmode long double should be used by default or not.
26049 # Some glibc targets used DFmode long double, but with glibc 2.4
26050 # and later they can use TFmode.
26052 powerpc
*-*-linux* | \
26053 sparc
*-*-linux* | \
26057 # Check whether --with-long-double-128 was given.
26058 if test "${with_long_double_128+set}" = set; then :
26059 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26061 gcc_cv_target_ldbl128
=no
26062 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26063 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26064 && gcc_cv_target_ldbl128
=yes
26070 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26072 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26077 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26078 gcc_cv_target_dl_iterate_phdr
=unknown
26081 # <link.h> needs both a dl_iterate_phdr declaration and support for
26082 # compilation with largefile support.
26083 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26084 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26085 gcc_cv_target_dl_iterate_phdr
=yes
26087 gcc_cv_target_dl_iterate_phdr
=no
26092 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26094 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26098 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26100 # Find out what GC implementation we want, or may, use.
26102 # Check whether --with-gc was given.
26103 if test "${with_gc+set}" = set; then :
26104 withval
=$with_gc; case "$withval" in
26111 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26115 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26123 echo "Using $GGC for garbage collection."
26125 # Libraries to use on the host. This will normally be set by the top
26126 # level Makefile. Here we simply capture the value for our Makefile.
26127 if test -z "${HOST_LIBS+set}"; then
26132 # Use the system's zlib library.
26134 zlibinc
="-I\$(srcdir)/../zlib"
26136 # Check whether --with-system-zlib was given.
26137 if test "${with_system_zlib+set}" = set; then :
26138 withval
=$with_system_zlib; zlibdir
=
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26148 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26149 # Check whether --enable-maintainer-mode was given.
26150 if test "${enable_maintainer_mode+set}" = set; then :
26151 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26158 $as_echo "$maintainer_mode" >&6; }
26160 if test "$maintainer_mode" = "yes"; then
26170 # Make empty files to contain the specs and options for each language.
26171 # Then add #include lines to for a compiler that has specs and/or options.
26177 # These (without "all_") are set in each config-lang.in.
26178 # `language' must be a single word so is spelled singularly.
26181 all_outputs
='Makefile'
26182 # List of language makefile fragments.
26183 all_lang_makefrags
=
26184 # Additional files for gengtype
26185 all_gtfiles
="$target_gtfiles"
26187 # These are the languages that are set in --enable-languages,
26188 # and are available in the GCC tree.
26189 all_selected_languages
=
26191 # Add the language fragments.
26192 # Languages are added via two mechanisms. Some information must be
26193 # recorded in makefile variables, these are defined in config-lang.in.
26194 # We accumulate them and plug them into the main Makefile.
26195 # The other mechanism is a set of hooks for each of the main targets
26196 # like `clean', `install', etc.
26198 language_hooks
="Make-hooks"
26200 for lang
in ${srcdir}/*/config-lang.
in
26202 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26204 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26205 if test "x$lang_alias" = x
26207 echo "$lang doesn't set \$language." 1>&2
26210 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26211 subdirs
="$subdirs $subdir"
26213 # $gcc_subdir is where the gcc integration files are to be found
26214 # for a language, both for internal compiler purposes (compiler
26215 # sources implementing front-end to GCC tree converters), and for
26216 # build infrastructure purposes (Make-lang.in, etc.)
26218 # This will be <subdir> (relative to $srcdir) if a line like
26219 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26220 # is found in <langdir>/config-lang.in, and will remain <langdir>
26223 # Except for the language alias (fetched above), the regular
26224 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26225 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26226 # only this and the language alias.
26228 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26229 if [ "$gcc_subdir" = "" ]; then
26230 gcc_subdir
="$subdir"
26233 case ",$enable_languages," in
26235 all_selected_languages
="$all_selected_languages $lang_alias"
26236 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26237 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26248 .
${srcdir}/$gcc_subdir/config-lang.
in
26249 if test "x$language" = x
26251 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26256 case ",$enable_languages," in
26257 *,$lang_alias,*) ;;
26259 for i
in $subdir_requires; do
26260 test -f "${srcdir}/$i/config-lang.in" && continue
26268 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26269 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26270 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26271 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26273 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26274 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26276 all_languages
="$all_languages $language"
26277 all_compilers
="$all_compilers $compilers"
26278 all_outputs
="$all_outputs $outputs"
26279 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26280 case ",$enable_languages," in
26283 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26292 # Pick up gtfiles for c
26294 .
${srcdir}/c-config-lang.
in
26295 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26298 for language
in $all_selected_languages
26300 check_languages
="$check_languages check-$language"
26303 # We link each language in with a set of hooks, reached indirectly via
26304 # lang.${target}. Only do so for selected languages.
26308 target_list
="all.cross start.encap rest.encap tags \
26309 install-common install-man install-info install-pdf install-html dvi \
26310 pdf html uninstall info man srcextra srcman srcinfo \
26311 mostlyclean clean distclean maintainer-clean install-plugin"
26313 for t
in $target_list
26316 for lang
in $all_selected_languages
26320 echo "lang.$t: $x" >> Make-hooks
26324 # Option include files
26327 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26328 option_includes
="option-includes.mk"
26337 echo "dir ." > .gdbinit
26338 echo "dir ${srcdir}" >> .gdbinit
26339 if test x
$gdb_needs_out_file_path = xyes
26341 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26343 if test "x$subdirs" != x
; then
26346 echo "dir ${srcdir}/$s" >> .gdbinit
26349 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26351 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26355 # Find a directory in which to install a shared libgcc.
26357 # Check whether --enable-version-specific-runtime-libs was given.
26358 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26359 enableval
=$enable_version_specific_runtime_libs;
26364 # Check whether --with-slibdir was given.
26365 if test "${with_slibdir+set}" = set; then :
26366 withval
=$with_slibdir; slibdir
="$with_slibdir"
26368 if test "${enable_version_specific_runtime_libs+set}" = set; then
26369 slibdir
='$(libsubdir)'
26370 elif test "$host" != "$target"; then
26371 slibdir
='$(build_tooldir)/lib'
26373 slibdir
='$(libdir)'
26379 # Set default prefix canonicalization.
26381 # Check whether --enable-canonical-prefixes was given.
26382 if test "${enable_canonical_prefixes+set}" = set; then :
26383 enableval
=$enable_canonical_prefixes;
26385 enable_canonical_prefixes
=yes
26388 if test x
"$enable_canonical_prefixes" = xyes
; then
26390 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
26394 # Substitute configuration variables
26460 if test x
${build} = x
${host} ; then
26461 if test x
${host} = x
${target} ; then
26462 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26464 echo "Links are now set up to build a cross-compiler" 1>&2
26465 echo " from ${host} to ${target}." 1>&2
26468 if test x
${host} = x
${target} ; then
26469 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26470 echo " for ${target}." 1>&2
26472 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26473 echo " from ${host} to ${target}." 1>&2
26485 if test "x${CLOOGLIBS}" != "x" ; then
26487 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26491 # Check for plugin support
26492 # Check whether --enable-plugin was given.
26493 if test "${enable_plugin+set}" = set; then :
26494 enableval
=$enable_plugin; enable_plugin
=$enableval
26496 enable_plugin
=yes; default_plugin
=yes
26504 if test x
$build = x
$host; then
26505 export_sym_check
="nm${exeext} -g"
26506 elif test x
$host = x
$target; then
26507 export_sym_check
="$gcc_cv_nm -g"
26513 if test x
$build = x
$host; then
26514 export_sym_check
="objdump${exeext} -T"
26515 elif test x
$host = x
$target; then
26516 export_sym_check
="$gcc_cv_objdump -T"
26523 if test x
"$enable_plugin" = x
"yes"; then
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26526 $as_echo_n "checking for exported symbols... " >&6; }
26527 if test "x$export_sym_check" != x
; then
26528 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26529 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
26530 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26531 : # No need to use a flag
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26533 $as_echo "yes" >&6; }
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26536 $as_echo "yes" >&6; }
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26538 $as_echo_n "checking for -rdynamic... " >&6; }
26539 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
26540 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26541 plugin_rdynamic
=yes
26542 pluginlibs
="-rdynamic"
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26548 $as_echo "$plugin_rdynamic" >&6; }
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26552 $as_echo "unable to check" >&6; }
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26558 $as_echo_n "checking for library containing dlopen... " >&6; }
26559 if test "${ac_cv_search_dlopen+set}" = set; then :
26560 $as_echo_n "(cached) " >&6
26562 ac_func_search_save_LIBS
=$LIBS
26563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26564 /* end confdefs.h. */
26566 /* Override any GCC internal prototype to avoid an error.
26567 Use char because int might match the return type of a GCC
26568 builtin and then its argument prototype would still apply. */
26581 for ac_lib
in '' dl
; do
26582 if test -z "$ac_lib"; then
26583 ac_res
="none required"
26586 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26588 if ac_fn_c_try_link
"$LINENO"; then :
26589 ac_cv_search_dlopen
=$ac_res
26591 rm -f core conftest.err conftest.
$ac_objext \
26593 if test "${ac_cv_search_dlopen+set}" = set; then :
26597 if test "${ac_cv_search_dlopen+set}" = set; then :
26600 ac_cv_search_dlopen
=no
26602 rm conftest.
$ac_ext
26603 LIBS
=$ac_func_search_save_LIBS
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26606 $as_echo "$ac_cv_search_dlopen" >&6; }
26607 ac_res
=$ac_cv_search_dlopen
26608 if test "$ac_res" != no
; then :
26609 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26613 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
26614 pluginlibs
="$pluginlibs -ldl"
26618 # Check that we can build shared objects with -fPIC -shared
26619 saved_LDFLAGS
="$LDFLAGS"
26620 saved_CFLAGS
="$CFLAGS"
26623 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26624 CFLAGS
="$CFLAGS -fPIC"
26625 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
26628 CFLAGS
="$CFLAGS -fPIC"
26629 LDFLAGS
="$LDFLAGS -fPIC -shared"
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26633 $as_echo_n "checking for -fPIC -shared... " >&6; }
26634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26635 /* end confdefs.h. */
26645 if ac_fn_c_try_link
"$LINENO"; then :
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26647 $as_echo "yes" >&6; }; have_pic_shared
=yes
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26650 $as_echo "no" >&6; }; have_pic_shared
=no
26652 rm -f core conftest.err conftest.
$ac_objext \
26653 conftest
$ac_exeext conftest.
$ac_ext
26654 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
26658 LDFLAGS
="$saved_LDFLAGS"
26659 CFLAGS
="$saved_CFLAGS"
26661 # If plugin support had been requested but not available, fail.
26662 if test x
"$enable_plugin" = x
"no" ; then
26663 if test x
"$default_plugin" != x
"yes"; then
26665 Building GCC with plugin support requires a host that supports
26666 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26673 if test x
"$enable_plugin" = x
"yes"; then
26675 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26680 # Check whether --enable-libquadmath-support was given.
26681 if test "${enable_libquadmath_support+set}" = set; then :
26682 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
26684 ENABLE_LIBQUADMATH_SUPPORT
=yes
26687 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26689 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26694 # Specify what hash style to use by default.
26696 # Check whether --with-linker-hash-style was given.
26697 if test "${with_linker_hash_style+set}" = set; then :
26698 withval
=$with_linker_hash_style; case x
"$withval" in
26700 LINKER_HASH_STYLE
=sysv
26703 LINKER_HASH_STYLE
=gnu
26706 LINKER_HASH_STYLE
=both
26709 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
26713 LINKER_HASH_STYLE
=''
26716 if test x
"${LINKER_HASH_STYLE}" != x
; then
26718 cat >>confdefs.h
<<_ACEOF
26719 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
26724 # Configure the subdirectories
26725 # AC_CONFIG_SUBDIRS($subdirs)
26727 # Create the Makefile
26728 # and configure language subdirectories
26729 ac_config_files
="$ac_config_files $all_outputs"
26732 ac_config_commands
="$ac_config_commands default"
26734 cat >confcache
<<\_ACEOF
26735 # This file is a shell script that caches the results of configure
26736 # tests run on this system so they can be shared between configure
26737 # scripts and configure runs, see configure's option --config-cache.
26738 # It is not useful on other systems. If it contains results you don't
26739 # want to keep, you may remove or edit it.
26741 # config.status only pays attention to the cache file if you give it
26742 # the --recheck option to rerun configure.
26744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26746 # following values.
26750 # The following way of writing the cache mishandles newlines in values,
26751 # but we know of no workaround that is simple, portable, and efficient.
26752 # So, we kill variables containing newlines.
26753 # Ultrix sh set writes to stderr and can't be redirected directly,
26754 # and sets the high bit in the cache file unless we assign to the vars.
26756 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26757 eval ac_val
=\$
$ac_var
26761 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26762 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26765 _ | IFS | as_nl
) ;; #(
26766 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26767 *) { eval $ac_var=; unset $ac_var;} ;;
26773 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26774 *${as_nl}ac_space
=\
*)
26775 # `set' does not quote correctly, so add quotes: double-quote
26776 # substitution turns \\\\ into \\, and sed turns \\ into \.
26779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26782 # `set' quotes correctly as required by POSIX, so do not add quotes.
26783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26792 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26794 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26796 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26797 if test -w "$cache_file"; then
26798 test "x$cache_file" != "x/dev/null" &&
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26800 $as_echo "$as_me: updating cache $cache_file" >&6;}
26801 cat confcache
>$cache_file
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26804 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26809 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26810 # Let make expand exec_prefix.
26811 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26813 DEFS
=-DHAVE_CONFIG_H
26817 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26818 # 1. Remove the extension, and $U if already installed.
26819 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26820 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26821 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26822 # will be set to the directory where LIBOBJS objects are built.
26823 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26824 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
26826 LIBOBJS
=$ac_libobjs
26828 LTLIBOBJS
=$ac_ltlibobjs
26833 : ${CONFIG_STATUS=./config.status}
26835 ac_clean_files_save
=$ac_clean_files
26836 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26838 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26840 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26842 # Generated by $as_me.
26843 # Run this file to recreate the current configuration.
26844 # Compiler output produced by configure, useful for debugging
26845 # configure, is in config.log if it exists.
26848 ac_cs_recheck=false
26851 SHELL=\${CONFIG_SHELL-$SHELL}
26854 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
26855 ## -------------------- ##
26856 ## M4sh Initialization. ##
26857 ## -------------------- ##
26859 # Be more Bourne compatible
26860 DUALCASE
=1; export DUALCASE
# for MKS sh
26861 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
26864 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26865 # is contrary to our usage. Disable this feature.
26866 alias -g '${1+"$@"}'='"$@"'
26867 setopt NO_GLOB_SUBST
26869 case `(set -o) 2>/dev/null` in #(
26881 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26882 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26883 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26884 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26885 # Prefer a ksh shell builtin over an external printf program on Solaris,
26886 # but without wasting forks for bash or zsh.
26887 if test -z "$BASH_VERSION$ZSH_VERSION" \
26888 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26889 as_echo='print
-r --'
26890 as_echo_n='print
-rn --'
26891 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26892 as_echo='printf %s
\n'
26893 as_echo_n='printf %s
'
26895 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26896 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26897 as_echo_n='/usr
/ucb
/echo -n'
26899 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26900 as_echo_n_body='eval
26904 expr "X$arg" : "X\\(.*\\)$as_nl";
26905 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26907 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26909 export as_echo_n_body
26910 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26912 export as_echo_body
26913 as_echo='sh
-c $as_echo_body as_echo
'
26916 # The user is always right.
26917 if test "${PATH_SEPARATOR+set}" != set; then
26919 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26920 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26927 # We need space, tab and new line, in precisely that order. Quoting is
26928 # there to prevent editors from complaining about space-tab.
26929 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26930 # splitting by setting IFS to empty value.)
26933 # Find who we are. Look in the path if we contain no directory separator.
26935 *[\\/]* ) as_myself=$0 ;;
26936 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26937 for as_dir in $PATH
26940 test -z "$as_dir" && as_dir=.
26941 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26947 # We did not find ourselves, most probably we were run as `sh COMMAND'
26948 # in which case we are not to be found in the path.
26949 if test "x$as_myself" = x
; then
26952 if test ! -f "$as_myself"; then
26953 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26957 # Unset variables that we do not need and which cause bugs (e.g. in
26958 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26959 # suppresses any "Segmentation fault" message there. '((' could
26960 # trigger a bug in pdksh 5.2.14.
26961 for as_var
in BASH_ENV ENV MAIL MAILPATH
26962 do eval test x\
${$as_var+set} = xset \
26963 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26976 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26979 # as_fn_error ERROR [LINENO LOG_FD]
26980 # ---------------------------------
26981 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26982 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26983 # script with status $?, using 1 if that was 0.
26986 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26988 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26989 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26991 $as_echo "$as_me: error: $1" >&2
26992 as_fn_exit
$as_status
26996 # as_fn_set_status STATUS
26997 # -----------------------
26998 # Set $? to STATUS, without forking.
26999 as_fn_set_status
()
27002 } # as_fn_set_status
27004 # as_fn_exit STATUS
27005 # -----------------
27006 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27010 as_fn_set_status
$1
27016 # Portably unset VAR.
27019 { eval $1=; unset $1;}
27021 as_unset
=as_fn_unset
27022 # as_fn_append VAR VALUE
27023 # ----------------------
27024 # Append the text in VALUE to the end of the definition contained in VAR. Take
27025 # advantage of any shell optimizations that allow amortized linear growth over
27026 # repeated appends, instead of the typical quadratic growth present in naive
27028 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27029 eval 'as_fn_append ()
27040 # as_fn_arith ARG...
27041 # ------------------
27042 # Perform arithmetic evaluation on the ARGs, and store the result in the
27043 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27044 # must be portable across $(()) and expr.
27045 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27046 eval 'as_fn_arith ()
27053 as_val
=`expr "$@" || test $? -eq 1`
27058 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27059 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27065 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27066 as_basename
=basename
27071 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27077 as_me
=`$as_basename -- "$0" ||
27078 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27079 X"$0" : 'X\(//\)$' \| \
27080 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27082 sed '/^.*\/\([^/][^/]*\)\/*$/{
27096 # Avoid depending upon Character Ranges.
27097 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27098 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27099 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27100 as_cr_digits
='0123456789'
27101 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27103 ECHO_C
= ECHO_N
= ECHO_T
=
27104 case `echo -n x` in #(((((
27106 case `echo 'xy\c'` in
27107 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27109 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27116 rm -f conf$$ conf$$.exe conf$$.
file
27117 if test -d conf$$.dir
; then
27118 rm -f conf$$.dir
/conf$$.
file
27121 mkdir conf$$.dir
2>/dev
/null
27123 if (echo >conf$$.
file) 2>/dev
/null
; then
27124 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27126 # ... but there are two gotchas:
27127 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27128 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27129 # In both cases, we have to default to `cp -p'.
27130 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27132 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27140 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27141 rmdir conf$$.dir
2>/dev
/null
27146 # Create "$as_dir" as a directory, including parents if necessary.
27151 -*) as_dir
=.
/$as_dir;;
27153 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27157 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27158 *) as_qdir
=$as_dir;;
27160 as_dirs
="'$as_qdir' $as_dirs"
27161 as_dir
=`$as_dirname -- "$as_dir" ||
27162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27163 X"$as_dir" : 'X\(//\)[^/]' \| \
27164 X"$as_dir" : 'X\(//\)$' \| \
27165 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27166 $as_echo X"$as_dir" |
27167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27171 /^X\(\/\/\)[^/].*/{
27184 test -d "$as_dir" && break
27186 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27187 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27191 if mkdir
-p .
2>/dev
/null
; then
27192 as_mkdir_p
='mkdir -p "$as_dir"'
27194 test -d .
/-p && rmdir .
/-p
27198 if test -x / >/dev
/null
2>&1; then
27199 as_test_x
='test -x'
27201 if ls -dL / >/dev
/null
2>&1; then
27208 if test -d "$1"; then
27214 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27215 ???[sx]*):;;*)false;;esac;fi
27219 as_executable_p
=$as_test_x
27221 # Sed expression to map a string onto a valid CPP name.
27222 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27224 # Sed expression to map a string onto a valid variable name.
27225 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27229 ## ----------------------------------- ##
27230 ## Main body of $CONFIG_STATUS script. ##
27231 ## ----------------------------------- ##
27233 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27236 # Save the log message, to keep $0 and so on meaningful, and to
27237 # report actual input values of CONFIG_FILES etc. instead of their
27238 # values after options handling.
27240 This file was extended by $as_me, which was
27241 generated by GNU Autoconf 2.64. Invocation command line was
27243 CONFIG_FILES = $CONFIG_FILES
27244 CONFIG_HEADERS = $CONFIG_HEADERS
27245 CONFIG_LINKS = $CONFIG_LINKS
27246 CONFIG_COMMANDS = $CONFIG_COMMANDS
27249 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27254 case $ac_config_files in *"
27255 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27258 case $ac_config_headers in *"
27259 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27264 # Files that config.status was made for.
27265 config_files="$ac_config_files"
27266 config_headers="$ac_config_headers"
27267 config_commands="$ac_config_commands"
27271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27273 \`$as_me' instantiates files and other configuration actions
27274 from templates according to the current configuration. Unless the files
27275 and actions are specified as TAGs, all are instantiated by default.
27277 Usage: $0 [OPTION]... [TAG]...
27279 -h, --help print this help, then exit
27280 -V, --version print version number and configuration settings, then exit
27281 -q, --quiet, --silent
27282 do not print progress messages
27283 -d, --debug don't remove temporary files
27284 --recheck update $as_me by reconfiguring in the same conditions
27285 --file=FILE[:TEMPLATE]
27286 instantiate the configuration file FILE
27287 --header=FILE[:TEMPLATE]
27288 instantiate the configuration header FILE
27290 Configuration files:
27293 Configuration headers:
27296 Configuration commands:
27299 Report bugs to the package provider."
27302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27305 configured by $0, generated by GNU Autoconf 2.64,
27306 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27308 Copyright (C) 2009 Free Software Foundation, Inc.
27309 This config.status script is free software; the Free Software Foundation
27310 gives unlimited permission to copy, distribute and modify it."
27315 test -n "\$AWK" || AWK=awk
27318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27319 # The default lists apply if the user does not specify any file.
27325 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27326 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27337 # Handling of the options.
27338 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27340 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27341 $as_echo "$ac_cs_version"; exit ;;
27342 --debug |
--debu |
--deb |
--de |
--d |
-d )
27344 --file |
--fil |
--fi |
--f )
27347 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27349 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27350 ac_need_defaults
=false
;;
27351 --header |
--heade |
--head |
--hea )
27354 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27356 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27357 ac_need_defaults
=false
;;
27359 # Conflict between --help and --header
27360 as_fn_error
"ambiguous option: \`$1'
27361 Try \`$0 --help' for more information.";;
27362 --help |
--hel |
-h )
27363 $as_echo "$ac_cs_usage"; exit ;;
27364 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27365 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27368 # This is an error.
27369 -*) as_fn_error
"unrecognized option: \`$1'
27370 Try \`$0 --help' for more information." ;;
27372 *) as_fn_append ac_config_targets
" $1"
27373 ac_need_defaults
=false
;;
27379 ac_configure_extra_args
=
27381 if $ac_cs_silent; then
27383 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27388 if \$ac_cs_recheck; then
27389 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27391 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27392 CONFIG_SHELL='$SHELL'
27393 export CONFIG_SHELL
27398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27402 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27403 ## Running $as_me. ##
27409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27419 # Handling of arguments.
27420 for ac_config_target
in $ac_config_targets
27422 case $ac_config_target in
27423 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27424 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27425 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27426 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27427 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27428 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27430 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27435 # If the user did not use the arguments to specify the items to instantiate,
27436 # then the envvar interface is used. Set only those that are not.
27437 # We use the long form for the default assignment because of an extremely
27438 # bizarre bug on SunOS 4.1.3.
27439 if $ac_need_defaults; then
27440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27442 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27445 # Have a temporary directory for convenience. Make it in the build tree
27446 # simply because there is no reason against having it here, and in addition,
27447 # creating and moving files from /tmp can sometimes cause problems.
27448 # Hook for its removal unless debugging.
27449 # Note that there is a small window in which the directory will not be cleaned:
27450 # after its creation but before its name has been assigned to `$tmp'.
27454 trap 'exit_status=$?
27455 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27457 trap 'as_fn_exit 1' 1 2 13 15
27459 # Create a (secure) tmp directory for tmp files.
27462 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27463 test -n "$tmp" && test -d "$tmp"
27466 tmp
=.
/conf$$
-$RANDOM
27467 (umask 077 && mkdir
"$tmp")
27468 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27470 # Set up the scripts for CONFIG_FILES section.
27471 # No need to generate them if there are no CONFIG_FILES.
27472 # This happens for instance with `./config.status config.h'.
27473 if test -n "$CONFIG_FILES"; then
27475 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27476 ac_cs_awk_getline
=:
27477 ac_cs_awk_pipe_init
=
27478 ac_cs_awk_read_file
='
27479 while ((getline aline < (F[key])) > 0)
27482 ac_cs_awk_pipe_fini
=
27484 ac_cs_awk_getline
=false
27485 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27486 ac_cs_awk_read_file
='
27488 print "cat " F[key] " &&"
27489 '$ac_cs_awk_pipe_init
27490 # The final `:' finishes the AND list.
27491 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27493 ac_cr
=`echo X | tr X '\015'`
27494 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27495 # But we know of no other shell where ac_cr would be empty at this
27496 # point, so we can use a bashism as a fallback.
27497 if test "x$ac_cr" = x
; then
27498 eval ac_cr
=\$
\'\\r
\'
27500 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27501 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27504 ac_cs_awk_cr
=$ac_cr
27507 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27510 # Create commands to substitute file output variables.
27512 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27513 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27514 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27517 } >conf$
$files.sh
&&
27518 . .
/conf$
$files.sh ||
27519 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27520 rm -f conf$
$files.sh
27523 echo "cat >conf$$subs.awk <<_ACEOF" &&
27524 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27526 } >conf$$subs.sh ||
27527 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27528 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27530 for ac_last_try in false false false false false :; do
27531 . ./conf$$subs.sh ||
27532 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27534 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27535 if test $ac_delim_n = $ac_delim_num; then
27537 elif $ac_last_try; then
27538 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27540 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27543 rm -f conf$$subs.sh
27545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27546 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27550 s/^/S["/; s
/!.
*/"]=/
27560 s/\(.\{148\}\).*/\1/
27562 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27567 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27574 s/\(.\{148\}\).*/\1/
27576 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27580 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27585 ' <conf$$subs.awk | sed '
27590 ' >>$CONFIG_STATUS || ac_write_fail=1
27591 rm -f conf$$subs.awk
27592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27594 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27595 for (key in S) S_is_set[key] = 1
27597 \$ac_cs_awk_pipe_init
27601 nfields = split(line, field, "@
")
27603 len = length(field[1])
27604 for (i = 2; i < nfields; i++) {
27606 keylen = length(key)
27607 if (S_is_set[key]) {
27609 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27610 len += length(value) + length(field[++i])
27615 if (nfields == 3 && !substed) {
27617 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27618 \$ac_cs_awk_read_file
27624 \$ac_cs_awk_pipe_fini
27627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27628 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27629 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27632 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27633 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
27636 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27637 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27638 # trailing colons and then remove the whole line if VPATH becomes empty
27639 # (actually we leave an empty line to preserve line numbers).
27640 if test "x
$srcdir" = x.; then
27641 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27642 s/:*\$(srcdir):*/:/
27643 s/:*\${srcdir}:*/:/
27645 s/^\([^=]*=[ ]*\):*/\1/
27651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27652 fi # test -n "$CONFIG_FILES"
27654 # Set up the scripts for CONFIG_HEADERS section.
27655 # No need to generate them if there are no CONFIG_HEADERS.
27656 # This happens for instance with `./config.status Makefile'.
27657 if test -n "$CONFIG_HEADERS"; then
27658 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27662 # Transform confdefs.h into an awk script `defines.awk', embedded as
27663 # here-document in config.status, that substitutes the proper values into
27664 # config.h.in to produce config.h.
27666 # Create a delimiter string that does not exist in confdefs.h, to ease
27667 # handling of long lines.
27669 for ac_last_try in false false :; do
27670 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27671 if test -z "$ac_t"; then
27673 elif $ac_last_try; then
27674 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
27676 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27680 # For the awk script, D is an array of macro values keyed by name,
27681 # likewise P contains macro parameters if any. Preserve backslash
27682 # newline sequences.
27684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27686 s/.\{148\}/&'"$ac_delim"'/g
27689 s/^[ ]*#[ ]*define[ ][ ]*/ /
27696 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27698 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27703 D["\
1"]=" \
3\\\\\\n
"\\/p
27705 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27710 s/.\{148\}/&'"$ac_delim"'/g
27715 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27718 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27720 ' <confdefs.h | sed '
27721 s/'"$ac_delim"'/"\\\
27722 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27725 for (key in D) D_is_set[key] = 1
27728 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27730 split(line, arg, " ")
27731 if (arg[1] == "#") {
27735 defundef
= substr
(arg
[1], 2)
27738 split(mac1
, mac2
, "(") #)
27740 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27741 if (D_is_set
[macro
]) {
27742 # Preserve the white space surrounding the "#".
27743 print prefix
"define", macro P
[macro
] D
[macro
]
27746 # Replace #undef with comments. This is necessary, for example,
27747 # in the case of _POSIX_SOURCE, which is predefined and required
27748 # on some systems where configure will not decide to define it.
27749 if (defundef
== "undef") {
27750 print
"/*", prefix defundef
, macro
, "*/"
27758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27759 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
27760 fi # test -n "$CONFIG_HEADERS"
27763 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27768 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27770 case $ac_mode$ac_tag in
27772 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
27773 :[FH
]-) ac_tag
=-:-;;
27774 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27791 -) ac_f
="$tmp/stdin";;
27792 *) # Look for the file first in the build tree, then in the source tree
27793 # (if the path is not absolute). The absolute path cannot be DOS-style,
27794 # because $ac_f cannot contain `:'.
27798 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27800 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
27802 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27803 as_fn_append ac_file_inputs
" '$ac_f'"
27806 # Let's still pretend it is `configure' which instantiates (i.e., don't
27807 # use $as_me), people would be surprised to read:
27808 # /* config.h. Generated by config.status. */
27809 configure_input
='Generated from '`
27810 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27812 if test x
"$ac_file" != x-
; then
27813 configure_input
="$ac_file. $configure_input"
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27815 $as_echo "$as_me: creating $ac_file" >&6;}
27817 # Neutralize special characters interpreted by sed in replacement strings.
27818 case $configure_input in #(
27819 *\
&* |
*\|
* |
*\\* )
27820 ac_sed_conf_input
=`$as_echo "$configure_input" |
27821 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27822 *) ac_sed_conf_input
=$configure_input;;
27826 *:-:* |
*:-) cat >"$tmp/stdin" \
27827 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
27832 ac_dir
=`$as_dirname -- "$ac_file" ||
27833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27834 X"$ac_file" : 'X\(//\)[^/]' \| \
27835 X"$ac_file" : 'X\(//\)$' \| \
27836 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27837 $as_echo X"$ac_file" |
27838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27842 /^X\(\/\/\)[^/].*/{
27855 as_dir
="$ac_dir"; as_fn_mkdir_p
27859 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27861 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27862 # A ".." for each directory in $ac_dir_suffix.
27863 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27864 case $ac_top_builddir_sub in
27865 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27866 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27869 ac_abs_top_builddir
=$ac_pwd
27870 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27871 # for backward compatibility:
27872 ac_top_builddir
=$ac_top_build_prefix
27875 .
) # We are building in place.
27877 ac_top_srcdir
=$ac_top_builddir_sub
27878 ac_abs_top_srcdir
=$ac_pwd ;;
27879 [\\/]* | ?
:[\\/]* ) # Absolute name.
27880 ac_srcdir
=$srcdir$ac_dir_suffix;
27881 ac_top_srcdir
=$srcdir
27882 ac_abs_top_srcdir
=$srcdir ;;
27883 *) # Relative name.
27884 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27885 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27886 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27888 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27900 # If the template does not know about datarootdir, expand it.
27901 # FIXME: This hack should be removed a few years after 2.60.
27902 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27913 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27914 *datarootdir
*) ac_datarootdir_seen
=yes;;
27915 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27917 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27920 ac_datarootdir_hack='
27921 s&@datadir@&$datadir&g
27922 s&@docdir@&$docdir&g
27923 s&@infodir@&$infodir&g
27924 s&@localedir@&$localedir&g
27925 s&@mandir@&$mandir&g
27926 s&\\\${datarootdir}&$datarootdir&g' ;;
27930 # Neutralize VPATH when `$srcdir' = `.'.
27931 # Shell code in configure.ac might set extrasub.
27932 # FIXME: do we really want to maintain this feature?
27933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27934 ac_sed_extra="$ac_vpsub
27937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27939 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27940 s|@configure_input@|
$ac_sed_conf_input|
;t t
27941 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27942 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27943 s
&@srcdir@
&$ac_srcdir&;t t
27944 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27945 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27946 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27947 s
&@builddir@
&$ac_builddir&;t t
27948 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27949 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27950 $ac_datarootdir_hack
27952 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27953 if $ac_cs_awk_getline; then
27954 $AWK -f "$tmp/subs.
awk"
27956 $AWK -f "$tmp/subs.
awk" | $SHELL
27958 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27961 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27964 which seems to be undefined. Please make sure it is defined." >&5
27965 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27966 which seems to be undefined. Please make sure it is defined." >&2;}
27970 -) cat "$tmp/out" && rm -f "$tmp/out";;
27971 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27973 || as_fn_error "could not create $ac_file" "$LINENO" 5
27979 if test x"$ac_file" != x-; then
27981 $as_echo "/* $configure_input */" \
27982 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27983 } >"$tmp/config.h" \
27984 || as_fn_error "could not create $ac_file" "$LINENO" 5
27985 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27987 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27990 mv "$tmp/config.h" "$ac_file" \
27991 || as_fn_error "could not create $ac_file" "$LINENO" 5
27994 $as_echo "/* $configure_input */" \
27995 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27996 || as_fn_error "could not create -" "$LINENO" 5
28000 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28001 $as_echo "$as_me: executing $ac_file commands" >&6;}
28006 case $ac_file$ac_mode in
28007 "as":F) chmod +x as ;;
28008 "collect-ld":F) chmod +x collect-ld ;;
28009 "nm":F) chmod +x nm ;;
28011 case ${CONFIG_HEADERS} in
28012 *auto-host.h:config.in*)
28015 # Make sure all the subdirs exist.
28016 for d in $subdirs doc build c-family
28018 test -d $d || mkdir $d
28028 ac_clean_files=$ac_clean_files_save
28030 test $ac_write_fail = 0 ||
28031 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28034 # configure is writing to config.log, and then calls config.status.
28035 # config.status does its own redirection, appending to config.log.
28036 # Unfortunately, on DOS this fails, as config.log is still kept open
28037 # by configure, so config.status won't be able to
write to it
; its
28038 # output is simply discarded. So we exec the FD to /dev/null,
28039 # effectively closing config.log, so it can be properly (re)opened and
28040 # appended to by config.status. When coming back to configure, we
28041 # need to make the FD available again.
28042 if test "$no_create" != yes; then
28044 ac_config_status_args
=
28045 test "$silent" = yes &&
28046 ac_config_status_args
="$ac_config_status_args --quiet"
28048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28051 # would make configure fail if this is the last instruction.
28052 $ac_cs_success || as_fn_exit $?
28054 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28056 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}