2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
648 user_headers_inc_next_post
649 user_headers_inc_next_pre
651 TM_MULTILIB_EXCEPTIONS_CONFIG
660 build_xm_include_list
662 build_install_headers_dir
664 all_selected_languages
682 ORIGINAL_NM_FOR_TARGET
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 ORIGINAL_AS_FOR_TARGET
727 NATIVE_SYSTEM_HEADER_DIR
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
763 SYSROOT_CFLAGS_FOR_TARGET
768 ENABLE_BUILD_WITH_CXX
771 valgrind_path_defines
845 program_transform_name
856 ac_subst_files
='option_includes
859 enable_option_checking
864 enable_generated_files_in_srcdir
874 enable_gather_detailed_mem_stats
875 enable_build_with_cxx
886 with_native_system_header_dir
896 enable_sjlj_exceptions
898 enable_leading_mingw64_underscores
901 enable_win32_registry
907 enable_gnu_indirect_function
908 enable_initfini_array
910 enable_gnu_unique_object
911 enable_linker_build_id
915 enable_maintainer_mode
916 enable_version_specific_runtime_libs
918 enable_libquadmath_support
919 with_linker_hash_style
921 ac_precious_vars
='build_alias
942 # Initialize some variables set by options.
944 ac_init_version
=false
945 ac_unrecognized_opts
=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
956 program_transform_name
=s
,x
,x
,
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir
='${exec_prefix}/bin'
971 sbindir
='${exec_prefix}/sbin'
972 libexecdir
='${exec_prefix}/libexec'
973 datarootdir
='${prefix}/share'
974 datadir
='${datarootdir}'
975 sysconfdir
='${prefix}/etc'
976 sharedstatedir
='${prefix}/com'
977 localstatedir
='${prefix}/var'
978 includedir
='${prefix}/include'
979 oldincludedir
='/usr/include'
980 docdir
='${datarootdir}/doc/${PACKAGE}'
981 infodir
='${datarootdir}/info'
986 libdir
='${exec_prefix}/lib'
987 localedir
='${datarootdir}/locale'
988 mandir
='${datarootdir}/man'
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\
$ac_option
1002 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1012 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1014 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1015 bindir
=$ac_optarg ;;
1017 -build |
--build |
--buil |
--bui |
--bu)
1018 ac_prev
=build_alias
;;
1019 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1020 build_alias
=$ac_optarg ;;
1022 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1023 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1024 ac_prev
=cache_file
;;
1025 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1026 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1027 cache_file
=$ac_optarg ;;
1029 --config-cache |
-C)
1030 cache_file
=config.cache
;;
1032 -datadir |
--datadir |
--datadi |
--datad)
1034 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1035 datadir
=$ac_optarg ;;
1037 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1038 |
--dataroo |
--dataro |
--datar)
1039 ac_prev
=datarootdir
;;
1040 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1041 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1042 datarootdir
=$ac_optarg ;;
1044 -disable-* |
--disable-*)
1045 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1048 as_fn_error
"invalid feature name: $ac_useropt"
1049 ac_useropt_orig
=$ac_useropt
1050 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_
$ac_useropt"
1055 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep
=', ';;
1058 eval enable_
$ac_useropt=no
;;
1060 -docdir |
--docdir |
--docdi |
--doc |
--do)
1062 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1063 docdir
=$ac_optarg ;;
1065 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1067 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1068 dvidir
=$ac_optarg ;;
1070 -enable-* |
--enable-*)
1071 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1074 as_fn_error
"invalid feature name: $ac_useropt"
1075 ac_useropt_orig
=$ac_useropt
1076 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_
$ac_useropt"
1081 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep
=', ';;
1084 eval enable_
$ac_useropt=\
$ac_optarg ;;
1086 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1087 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1088 |
--exec |
--exe |
--ex)
1089 ac_prev
=exec_prefix
;;
1090 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1091 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1092 |
--exec=* |
--exe=* |
--ex=*)
1093 exec_prefix
=$ac_optarg ;;
1095 -gas |
--gas |
--ga |
--g)
1096 # Obsolete; use --with-gas.
1099 -help |
--help |
--hel |
--he |
-h)
1100 ac_init_help
=long
;;
1101 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1102 ac_init_help
=recursive
;;
1103 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1104 ac_init_help
=short
;;
1106 -host |
--host |
--hos |
--ho)
1107 ac_prev
=host_alias
;;
1108 -host=* |
--host=* |
--hos=* |
--ho=*)
1109 host_alias
=$ac_optarg ;;
1111 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1113 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1115 htmldir
=$ac_optarg ;;
1117 -includedir |
--includedir |
--includedi |
--included |
--include \
1118 |
--includ |
--inclu |
--incl |
--inc)
1119 ac_prev
=includedir
;;
1120 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1121 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1122 includedir
=$ac_optarg ;;
1124 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1126 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1127 infodir
=$ac_optarg ;;
1129 -libdir |
--libdir |
--libdi |
--libd)
1131 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1132 libdir
=$ac_optarg ;;
1134 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1135 |
--libexe |
--libex |
--libe)
1136 ac_prev
=libexecdir
;;
1137 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1138 |
--libexe=* |
--libex=* |
--libe=*)
1139 libexecdir
=$ac_optarg ;;
1141 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1142 ac_prev
=localedir
;;
1143 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1144 localedir
=$ac_optarg ;;
1146 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1147 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1148 ac_prev
=localstatedir
;;
1149 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1150 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1151 localstatedir
=$ac_optarg ;;
1153 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1155 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1156 mandir
=$ac_optarg ;;
1158 -nfp |
--nfp |
--nf)
1159 # Obsolete; use --without-fp.
1162 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1163 |
--no-cr |
--no-c |
-n)
1166 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1167 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1170 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1171 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1172 |
--oldin |
--oldi |
--old |
--ol |
--o)
1173 ac_prev
=oldincludedir
;;
1174 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1175 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1176 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1177 oldincludedir
=$ac_optarg ;;
1179 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1181 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1182 prefix
=$ac_optarg ;;
1184 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1185 |
--program-pre |
--program-pr |
--program-p)
1186 ac_prev
=program_prefix
;;
1187 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1188 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1189 program_prefix
=$ac_optarg ;;
1191 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1192 |
--program-suf |
--program-su |
--program-s)
1193 ac_prev
=program_suffix
;;
1194 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1195 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1196 program_suffix
=$ac_optarg ;;
1198 -program-transform-name |
--program-transform-name \
1199 |
--program-transform-nam |
--program-transform-na \
1200 |
--program-transform-n |
--program-transform- \
1201 |
--program-transform |
--program-transfor \
1202 |
--program-transfo |
--program-transf \
1203 |
--program-trans |
--program-tran \
1204 |
--progr-tra |
--program-tr |
--program-t)
1205 ac_prev
=program_transform_name
;;
1206 -program-transform-name=* |
--program-transform-name=* \
1207 |
--program-transform-nam=* |
--program-transform-na=* \
1208 |
--program-transform-n=* |
--program-transform-=* \
1209 |
--program-transform=* |
--program-transfor=* \
1210 |
--program-transfo=* |
--program-transf=* \
1211 |
--program-trans=* |
--program-tran=* \
1212 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1213 program_transform_name
=$ac_optarg ;;
1215 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1217 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1218 pdfdir
=$ac_optarg ;;
1220 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1222 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1225 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1226 |
-silent |
--silent |
--silen |
--sile |
--sil)
1229 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1231 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1233 sbindir
=$ac_optarg ;;
1235 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1236 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1237 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1239 ac_prev
=sharedstatedir
;;
1240 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1241 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1242 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1244 sharedstatedir
=$ac_optarg ;;
1246 -site |
--site |
--sit)
1248 -site=* |
--site=* |
--sit=*)
1251 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1253 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1254 srcdir
=$ac_optarg ;;
1256 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1257 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1258 ac_prev
=sysconfdir
;;
1259 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1260 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1261 sysconfdir
=$ac_optarg ;;
1263 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1264 ac_prev
=target_alias
;;
1265 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1266 target_alias
=$ac_optarg ;;
1268 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1271 -version |
--version |
--versio |
--versi |
--vers |
-V)
1272 ac_init_version
=: ;;
1275 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1278 as_fn_error
"invalid package name: $ac_useropt"
1279 ac_useropt_orig
=$ac_useropt
1280 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep
=', ';;
1288 eval with_
$ac_useropt=\
$ac_optarg ;;
1290 -without-* |
--without-*)
1291 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1294 as_fn_error
"invalid package name: $ac_useropt"
1295 ac_useropt_orig
=$ac_useropt
1296 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep
=', ';;
1304 eval with_
$ac_useropt=no
;;
1307 # Obsolete; use --with-x.
1310 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1311 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1312 ac_prev
=x_includes
;;
1313 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1314 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1315 x_includes
=$ac_optarg ;;
1317 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1318 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1319 ac_prev
=x_libraries
;;
1320 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1321 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1322 x_libraries
=$ac_optarg ;;
1324 -*) as_fn_error
"unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1329 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1333 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1335 eval $ac_envvar=\
$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error
"missing argument to $ac_option"
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1357 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 # Check all directory arguments for consistency.
1363 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val
=\$
$ac_var
1369 # Remove trailing slashes.
1372 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\
$ac_val;;
1375 # Be sure to have absolute directory names.
1377 [\\/$
]* | ?
:[\\/]* ) continue;;
1378 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1380 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1388 target
=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x
; then
1392 if test "x$build_alias" = x
; then
1393 cross_compiling
=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1402 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1404 test "$silent" = yes && exec 6>/dev
/null
1407 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di
=`ls -di .` &&
1409 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error
"working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error
"pwd does not report name of working directory"
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted
=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir
=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1447 ac_srcdir_defaulted
=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1451 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1453 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1465 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 for ac_var
in $ac_precious_vars; do
1468 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1470 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1481 \`configure' configures this package to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1544 --build=BUILD configure
for building on BUILD
[guessed
]
1545 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1546 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1550 if test -n "$ac_init_help"; then
1555 --disable-option-checking ignore unrecognized
--enable/--with options
1556 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1557 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1558 --enable-generated-files-in-srcdir
1559 put copies of generated files
in source dir intended
1560 for creating
source tarballs
for users without
1561 texinfo bison or flex
1562 --disable-largefile omit support
for large files
1563 --enable-werror-always enable -Werror despite compiler version
1564 --enable-checking[=LIST
]
1565 enable expensive run-time checks. With LIST
, enable
1566 only specific categories of checks. Categories are
:
1567 yes,no
,all
,none
,release. Flags are
:
1568 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1569 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1570 --enable-coverage[=LEVEL
]
1571 enable compiler
's code coverage collection. Use to
1572 measure compiler performance and locate unused parts
1573 of the compiler. With LEVEL, specify optimization.
1574 Values are opt, noopt, default is noopt
1575 --enable-gather-detailed-mem-stats
1576 enable detailed memory allocation stats gathering
1577 --enable-build-with-cxx build with C++ compiler instead of C compiler
1578 --enable-multilib enable library support for multiple ABIs
1579 --enable-__cxa_atexit enable __cxa_atexit for C++
1580 --enable-decimal-float={no,yes,bid,dpd}
1581 enable decimal float extension to C. Selecting 'bid
'
1582 or 'dpd
' choses which decimal floating point format
1584 --enable-fixed-point enable fixed-point arithmetic extension to C
1585 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1587 --enable-tls enable or disable generation of tls code overriding
1588 the assembler check for tls support
1589 --enable-objc-gc enable the use of Boehm's garbage collector with the
1590 GNU Objective-C runtime
1591 --disable-shared don
't provide a shared libgcc
1592 --enable-languages=LIST specify which front-ends to build
1593 --disable-rpath do not hardcode runtime library paths
1594 --enable-sjlj-exceptions
1595 arrange to use setjmp/longjmp exception handling
1596 --enable-secureplt enable -msecure-plt by default for PowerPC
1597 --enable-leading-mingw64-underscores
1598 enable leading underscores on 64 bit mingw targets
1599 --enable-cld enable -mcld by default for 32bit x86
1600 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1602 --disable-win32-registry
1603 disable lookup of installation paths in the Registry
1605 --enable-win32-registry enable registry lookup (default)
1606 --enable-win32-registry=KEY
1607 use KEY instead of GCC version as the last portion
1609 --enable-shared[=PKGS] build shared libraries [default=yes]
1610 --enable-static[=PKGS] build static libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1614 --enable-gnu-indirect-function
1615 enable the use of the @gnu_indirect_function to
1617 --enable-initfini-array use .init_array/.fini_array sections
1618 --enable-comdat enable COMDAT group support
1619 --enable-gnu-unique-object
1620 enable the use of the @gnu_unique_object ELF
1621 extension on glibc systems
1622 --enable-linker-build-id
1623 compiler will always pass --build-id to linker
1624 --enable-maintainer-mode
1625 enable make rules and dependencies not useful (and
1626 sometimes confusing) to the casual installer
1627 --enable-version-specific-runtime-libs
1628 specify that runtime libraries should be installed
1629 in a compiler-specific directory
1630 --enable-plugin enable plugin support
1631 --disable-libquadmath-support
1632 disable libquadmath support for Fortran
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-build-libsubdir=DIR Directory where to find libraries for build system
1638 --with-local-prefix=DIR specifies directory to put local include
1639 --with-gxx-include-dir=DIR
1640 specifies directory to put g++ header files
1641 --with-cpp-install-dir=DIR
1642 install the user visible C preprocessor in DIR
1643 (relative to PREFIX) as well as PREFIX/bin
1644 --with-gnu-ld arrange to work with GNU ld
1645 --with-ld arrange to use the specified ld (full pathname)
1646 --with-demangler-in-ld try to use demangler in GNU ld
1647 --with-gnu-as arrange to work with GNU as
1648 --with-as arrange to use the specified as (full pathname)
1649 --with-stabs arrange to use stabs instead of host debug format
1650 --with-dwarf2 force the default debug format to be DWARF 2
1651 --with-native-system-header-dir=dir
1652 use dir as the directory to look for standard
1653 system header files in. Defaults to /usr/include.
1654 --with-build-sysroot=sysroot
1655 use sysroot as the system root during the build
1656 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1657 --with-specs=SPECS add SPECS to driver command-line processing
1658 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1659 --with-bugurl=URL Direct users to URL to report a bug
1660 --with-multilib-list select multilibs (SH and x86-64 only)
1661 --with-gnu-ld assume the C compiler uses GNU ld default=no
1662 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1663 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1664 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1666 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1667 --with-plugin-ld=[ARG
] specify the plugin linker
1668 --with-long-double-128 use
128-bit long double by default
1669 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1671 --with-system-zlib use installed libz
1672 --with-linker-hash-style={sysv
,gnu
,both
}
1673 specify the linker
hash style
1675 Some influential environment variables
:
1676 CC C compiler
command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1679 nonstandard directory
<lib dir
>
1680 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1681 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1682 you have headers
in a nonstandard directory
<include dir
>
1683 CXX C
++ compiler
command
1684 CXXFLAGS C
++ compiler flags
1686 CXXCPP C
++ preprocessor
1687 GMPLIBS How to link GMP
1688 GMPINC How to
find GMP include files
1689 PPLLIBS How to link PPL
1690 PPLINC How to
find PPL include files
1691 CLOOGLIBS How to link CLOOG
1692 CLOOGINC How to
find CLOOG include files
1694 Use these variables to override the choices made by
`configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1697 Report bugs to the package provider.
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1727 .) # We are building in place.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1761 generated by GNU Autoconf 2.64
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1784 *) ac_try_echo
=$ac_try;;
1786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1790 if test -s conftest.err
; then
1791 grep -v '^ *+' conftest.err
>conftest.er1
1792 cat conftest.er1
>&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.
$ac_objext; then :
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.
$ac_ext >&5
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1810 } # ac_fn_c_try_compile
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile
()
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 rm -f conftest.
$ac_objext
1819 if { { ac_try
="$ac_compile"
1821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 } # ac_fn_cxx_try_compile
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1859 *) ac_try_echo
=$ac_try;;
1861 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 if test -s conftest.err
; then
1866 grep -v '^ *+' conftest.err
>conftest.er1
1867 cat conftest.er1
>&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } >/dev
/null
&& {
1872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.
$ac_ext >&5
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1892 ac_fn_c_check_header_mongrel
()
1894 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1895 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1913 if ac_fn_c_try_compile
"$LINENO"; then :
1914 ac_header_compiler
=yes
1916 ac_header_compiler
=no
1918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 if ac_fn_c_try_cpp
"$LINENO"; then :
1930 ac_header_preproc
=yes
1932 ac_header_preproc
=no
1934 rm -f conftest.err conftest.
$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1964 eval "$3=\$ac_header_compiler"
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1972 } # ac_fn_c_check_header_mongrel
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1980 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1981 if { { ac_try
="$ac_link"
1983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>&5
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992 { { case "(($ac_try" in
1993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1994 *) ac_try_echo
=$ac_try;;
1996 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_try") 2>&5
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; }; }; then :
2004 $as_echo "$as_me: program exited with status $ac_status" >&5
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.
$ac_ext >&5
2008 ac_retval
=$ac_status
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile
()
2022 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2033 if ac_fn_c_try_compile
"$LINENO"; then :
2038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2045 } # ac_fn_c_check_header_compile
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 ac_fn_c_compute_int
()
2054 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2070 if ac_fn_c_try_compile
"$LINENO"; then :
2073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 if ac_fn_c_try_compile
"$LINENO"; then :
2087 ac_hi
=$ac_mid; break
2089 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2090 if test $ac_lo -le $ac_mid; then
2094 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2105 static int test_array [1 - 2 * !(($2) < 0)];
2112 if ac_fn_c_try_compile
"$LINENO"; then :
2115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2128 if ac_fn_c_try_compile
"$LINENO"; then :
2129 ac_lo
=$ac_mid; break
2131 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2132 if test $ac_mid -le $ac_hi; then
2136 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2162 if ac_fn_c_try_compile
"$LINENO"; then :
2165 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2170 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2185 FILE *f = fopen ("conftest.val", "w");
2190 long int i = longval ();
2193 fprintf (f, "%ld", i);
2197 unsigned long int i = ulongval ();
2200 fprintf (f, "%lu", i);
2202 /* Do not output a trailing newline, as this causes \r\n confusion
2203 on some platforms. */
2204 return ferror (f) || fclose (f) != 0;
2210 if ac_fn_c_try_run
"$LINENO"; then :
2211 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2215 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2216 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2223 } # ac_fn_c_compute_int
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type
()
2231 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235 $as_echo_n "(cached) " >&6
2238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2250 if ac_fn_c_try_compile
"$LINENO"; then :
2251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2263 if ac_fn_c_try_compile
"$LINENO"; then :
2268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2277 } # ac_fn_c_check_type
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2283 ac_fn_c_find_intX_t
()
2285 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2292 for ac_type
in int
$2_t 'int' 'long int' \
2293 'long long int' 'short int' 'signed char'; do
2294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $ac_includes_default
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2307 if ac_fn_c_try_compile
"$LINENO"; then :
2308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $ac_includes_default
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2322 if ac_fn_c_try_compile
"$LINENO"; then :
2329 eval "$3=\$ac_type" ;;
2332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2336 if test "x$as_val" = x
""no
; then :
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2348 } # ac_fn_c_find_intX_t
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2355 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2356 rm -f conftest.
$ac_objext conftest
$ac_exeext
2357 if { { ac_try
="$ac_link"
2359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_link") 2>conftest.err
2366 if test -s conftest.err; then
2367 grep -v '^ *+' conftest.err >conftest.er1
2368 cat conftest.er1 >&5
2369 mv -f conftest.er1 conftest.err
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && {
2373 test -z "$ac_c_werror_flag" ||
2374 test ! -s conftest.err
2375 } && test -s conftest$ac_exeext && {
2376 test "$cross_compiling" = yes ||
2377 $as_test_x conftest$ac_exeext
2381 $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388 # interfere with the next link command; also delete a directory that is
2389 # left behind by Apple's compiler. We do this before executing the actions.
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 } # ac_fn_c_try_link
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2400 ac_fn_c_find_uintX_t ()
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2409 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2424 if ac_fn_c_try_compile "$LINENO"; then :
2429 eval "$3=\$ac_type" ;;
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 if test "x$as_val" = x""no; then :
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446 } # ac_fn_c_find_uintX_t
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2468 rm -f conftest.err conftest.$ac_ext
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475 } # ac_fn_c_check_header_preproc
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 if { { ac_try="$ac_cpp conftest.$ac_ext"
2485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2486 *) ac_try_echo
=$ac_try;;
2488 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2492 if test -s conftest.err
; then
2493 grep -v '^ *+' conftest.err
>conftest.er1
2494 cat conftest.er1
>&5
2495 mv -f conftest.er1 conftest.err
2497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } >/dev
/null
&& {
2499 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500 test ! -s conftest.err
2504 $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.
$ac_ext >&5
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2512 } # ac_fn_cxx_try_cpp
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc
()
2519 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2529 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2534 rm -f conftest.err conftest.
$ac_ext
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2541 } # ac_fn_cxx_check_header_preproc
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func
()
2548 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2558 #define $2 innocuous_$2
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $2 (); below.
2562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563 <limits.h> exists even on freestanding compilers. */
2566 # include <limits.h>
2568 # include <assert.h>
2573 /* Override any GCC internal prototype to avoid an error.
2574 Use char because int might match the return type of a GCC
2575 builtin and then its argument prototype would still apply. */
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined __stub_$2 || defined __stub___$2
2595 if ac_fn_c_try_link
"$LINENO"; then :
2600 rm -f core conftest.err conftest.
$ac_objext \
2601 conftest
$ac_exeext conftest.
$ac_ext
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2608 } # ac_fn_c_check_func
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link
()
2615 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2616 rm -f conftest.
$ac_objext conftest
$ac_exeext
2617 if { { ac_try
="$ac_link"
2619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link") 2>conftest.err
2626 if test -s conftest.err; then
2627 grep -v '^ *+' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 mv -f conftest.er1 conftest.err
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; } && {
2633 test -z "$ac_cxx_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest$ac_exeext && {
2636 test "$cross_compiling" = yes ||
2637 $as_test_x conftest$ac_exeext
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648 # interfere with the next link command; also delete a directory that is
2649 # left behind by Apple's compiler. We do this before executing the actions.
2650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64. Invocation command line was
2672 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2673 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2674 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2675 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2676 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2678 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2679 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2681 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2682 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2683 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2684 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2685 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2686 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2687 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 $as_echo "PATH: $as_dir"
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2720 ac_must_keep_next=false
2726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728 | -silent | --silent | --silen | --sile | --sil)
2731 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2734 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2736 as_fn_append ac_configure_args1 " '$ac_arg'"
2737 if test $ac_must_keep_next = true; then
2738 ac_must_keep_next=false # Got value, back to normal.
2741 *=* | --config-cache | -C | -disable-* | --disable-* \
2742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744 | -with-* | --with-* | -without-* | --without-* | --x)
2745 case "$ac_configure_args0 " in
2746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2749 -* ) ac_must_keep_next=true ;;
2752 as_fn_append ac_configure_args " '$ac_arg'"
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log. We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766 # Save into config.log some information that might help in debugging.
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2776 # The following way of writing the cache mishandles newlines in values,
2778 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2779 eval ac_val=\$$ac_var
2783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2787 _ | IFS | as_nl) ;; #(
2788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789 *) { eval $ac_var=; unset $ac_var;} ;;
2794 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2795 *${as_nl}ac_space=\ *)
2797 "s/'\''/'\''\\\\'\'''\''/g;
2798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2814 for ac_var in $ac_subst_vars
2816 eval ac_val=\$$ac_var
2818 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 $as_echo "$ac_var='\''$ac_val'\''"
2824 if test -n "$ac_subst_files"; then
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2831 for ac_var in $ac_subst_files
2833 eval ac_val=\$$ac_var
2835 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2837 $as_echo "$ac_var='\''$ac_val'\''"
2842 if test -s confdefs.h; then
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2860 for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2868 $as_echo "/* confdefs.h */" > confdefs.h
2870 # Predefined preprocessor variables.
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2901 if test -n "$CONFIG_SITE"; then
2902 ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904 ac_site_file1=$prefix/share/config.site
2905 ac_site_file2=$prefix/etc/config.site
2907 ac_site_file1=$ac_default_prefix/share/config.site
2908 ac_site_file2=$ac_default_prefix/etc/config.site
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2912 test "x$ac_site_file" = xNONE && continue
2913 if test -r "$ac_site_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916 sed 's/^/| /' "$ac_site_file" >&5
2921 if test -r "$cache_file"; then
2922 # Some versions of bash will fail to source /dev/null (special
2923 # files actually), so we avoid doing that.
2924 if test -f "$cache_file"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929 *) . "./$cache_file";;
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2938 # Check that the precious variables saved in the cache have kept the same
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943 eval ac_new_set=\$ac_env_${ac_var}_set
2944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945 eval ac_new_val=\$ac_env_${ac_var}_value
2946 case $ac_old_set,$ac_new_set in
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2949 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950 ac_cache_corrupted=: ;;
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2953 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2957 if test "x$ac_old_val" != "x$ac_new_val"; then
2958 # differences in whitespace do not lead to failure.
2959 ac_old_val_w=`echo x
$ac_old_val`
2960 ac_new_val_w=`echo x
$ac_new_val`
2961 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2964 ac_cache_corrupted=:
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968 eval $ac_var=\$ac_old_val
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2971 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2976 # Pass precious variables to config.status.
2977 if test "$ac_new_set" = set; then
2979 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2980 *) ac_arg=$ac_var=$ac_new_val ;;
2982 case " $ac_configure_args " in
2983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2984 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2988 if $ac_cache_corrupted; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3013 gcc_version=`cat $srcdir/BASE-VER
`
3015 # Determine the host, build, and target systems
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 for ac_t in install-sh install.sh shtool; do
3019 if test -f "$ac_dir/$ac_t"; then
3021 ac_install_sh="$ac_aux_dir/$ac_t -c"
3026 if test -z "$ac_aux_dir"; then
3027 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3048 ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3064 ac_save_IFS=$IFS; IFS='-'
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3074 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3082 if test "x$host_alias" = x; then
3083 ac_cv_host=$ac_cv_build
3085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3097 ac_save_IFS=$IFS; IFS='-'
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3107 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3115 if test "x$target_alias" = x; then
3116 ac_cv_target=$ac_cv_host
3118 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3140 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146 test "$program_prefix$program_suffix$program_transform_name" = \
3148 program_prefix=${target_alias}-
3150 # Determine the noncanonical target name, for directory use.
3151 case ${build_alias} in
3152 "") build_noncanonical=${build} ;;
3153 *) build_noncanonical=${build_alias} ;;
3156 case ${host_alias} in
3157 "") host_noncanonical=${build_noncanonical} ;;
3158 *) host_noncanonical=${host_alias} ;;
3161 case ${target_alias} in
3162 "") target_noncanonical=${host_noncanonical} ;;
3163 *) target_noncanonical=${target_alias} ;;
3169 # Determine the target- and build-specific subdirectories
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185 withval=$with_build_libsubdir; build_libsubdir="$withval"
3187 build_libsubdir="$build_subdir"
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192 || test -d $srcdir/../host-${host_noncanonical}; then
3193 host_subdir="host-${host_noncanonical}"
3198 target_subdir=${target_noncanonical}
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s
,x
,x
', remove it if useless.
3209 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225 library_path_setting="contains current directory"
3228 library_path_setting="ok"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again.
" "$LINENO" 5
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251 gcc_exec_prefix_setting="contains current directory
"
3254 gcc_exec_prefix_setting="ok
"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok
"; then
3261 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3270 # Specify the local prefix
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275 withval=$with_local_prefix; case "${withval}" in
3276 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3278 *) local_prefix=$with_local_prefix ;;
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285 local_prefix=/usr/local
3288 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir
=
3292 # Specify the g++ header file directory
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296 withval
=$with_gxx_include_dir; case "${withval}" in
3297 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3299 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x
${gcc_gxx_include_dir} = x
; then
3306 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3307 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3309 libstdcxx_incdir
='include/c++/$(version)'
3310 if test x
$host != x
$target; then
3311 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3313 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3317 gcc_gxx_include_dir_add_sysroot
=0
3318 if test "${with_sysroot+set}" = set; then
3319 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3320 if test "${gcc_gxx_without_sysroot}"; then
3321 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3322 gcc_gxx_include_dir_add_sysroot
=1
3327 # Check whether --with-cpp_install_dir was given.
3328 if test "${with_cpp_install_dir+set}" = set; then :
3329 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3330 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3331 elif test x
$withval != xno
; then
3332 cpp_install_dir
=$withval
3337 # We would like to our source tree to be readonly. However when releases or
3338 # pre-releases are generated, the flex/bison generated files as well as the
3339 # various formats of manuals need to be included along with the rest of the
3340 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3344 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3345 # Check whether --enable-generated-files-in-srcdir was given.
3346 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3347 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3349 generated_files_in_srcdir
=no
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3354 $as_echo "$generated_files_in_srcdir" >&6; }
3356 if test "$generated_files_in_srcdir" = "yes"; then
3363 # -------------------
3364 # Find default linker
3365 # -------------------
3369 # Check whether --with-gnu-ld was given.
3370 if test "${with_gnu_ld+set}" = set; then :
3371 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3377 # With pre-defined ld
3379 # Check whether --with-ld was given.
3380 if test "${with_ld+set}" = set; then :
3381 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3384 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3385 if test ! -x "$DEFAULT_LINKER"; then
3386 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3387 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3391 cat >>confdefs.h
<<_ACEOF
3392 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3397 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3399 cat >>confdefs.h
<<_ACEOF
3400 #define HAVE_GNU_LD $gnu_ld
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3405 $as_echo_n "checking whether a default linker was specified... " >&6; }
3406 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3407 if test x
"$gnu_ld_flag" = x
"no"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3409 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3412 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3419 # With demangler in GNU ld
3421 # Check whether --with-demangler-in-ld was given.
3422 if test "${with_demangler_in_ld+set}" = set; then :
3423 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3429 # ----------------------
3430 # Find default assembler
3431 # ----------------------
3435 # Check whether --with-gnu-as was given.
3436 if test "${with_gnu_as+set}" = set; then :
3437 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3444 # Check whether --with-as was given.
3445 if test "${with_as+set}" = set; then :
3446 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3449 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3450 if test ! -x "$DEFAULT_ASSEMBLER"; then
3451 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3452 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3456 cat >>confdefs.h
<<_ACEOF
3457 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3462 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3464 cat >>confdefs.h
<<_ACEOF
3465 #define HAVE_GNU_AS $gnu_as
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3470 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3471 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3472 if test x
"$gas_flag" = x
"no"; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3474 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3477 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3488 # If a non-executable a.out is present (e.g. created by GNU as above even if
3489 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3490 # file, even when creating an executable, so an execution test fails.
3491 # Remove possible default executable files to avoid this.
3493 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3494 # Autoconf includes it.
3495 rm -f a.out a.exe b.out
3497 # Find the native compiler
3499 ac_cpp
='$CPP $CPPFLAGS'
3500 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3503 if test -n "$ac_tool_prefix"; then
3504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3505 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507 $as_echo_n "checking for $ac_word... " >&6; }
3508 if test "${ac_cv_prog_CC+set}" = set; then :
3509 $as_echo_n "(cached) " >&6
3511 if test -n "$CC"; then
3512 ac_cv_prog_CC
="$CC" # Let the user override the test.
3514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3518 test -z "$as_dir" && as_dir
=.
3519 for ac_exec_ext
in '' $ac_executable_extensions; do
3520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3521 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 if test -n "$CC"; then
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3534 $as_echo "$CC" >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3542 if test -z "$ac_cv_prog_CC"; then
3544 # Extract the first word of "gcc", so it can be a program name with args.
3545 set dummy gcc
; ac_word
=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3551 if test -n "$ac_ct_CC"; then
3552 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir
=.
3559 for ac_exec_ext
in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_ac_ct_CC
="gcc"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3572 if test -n "$ac_ct_CC"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3574 $as_echo "$ac_ct_CC" >&6; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3580 if test "x$ac_ct_CC" = x
; then
3583 case $cross_compiling:$ac_tool_warned in
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587 ac_tool_warned
=yes ;;
3595 if test -z "$CC"; then
3596 if test -n "$ac_tool_prefix"; then
3597 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3598 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if test "${ac_cv_prog_CC+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3604 if test -n "$CC"; then
3605 ac_cv_prog_CC
="$CC" # Let the user override the test.
3607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir
=.
3612 for ac_exec_ext
in '' $ac_executable_extensions; do
3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 if test -n "$CC"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3627 $as_echo "$CC" >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3636 if test -z "$CC"; then
3637 # Extract the first word of "cc", so it can be a program name with args.
3638 set dummy cc
; ac_word
=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if test "${ac_cv_prog_CC+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3644 if test -n "$CC"; then
3645 ac_cv_prog_CC
="$CC" # Let the user override the test.
3648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3652 test -z "$as_dir" && as_dir
=.
3653 for ac_exec_ext
in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3656 ac_prog_rejected
=yes
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 if test $ac_prog_rejected = yes; then
3668 # We found a bogon in the path, so make sure we never use it.
3669 set dummy
$ac_cv_prog_CC
3671 if test $# != 0; then
3672 # We chose a different compiler from the bogus one.
3673 # However, it has the same basename, so the bogon will be chosen
3674 # first if we set CC to just the basename; use the full file name.
3676 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3682 if test -n "$CC"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 $as_echo "$CC" >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3692 if test -z "$CC"; then
3693 if test -n "$ac_tool_prefix"; then
3694 for ac_prog
in cl.exe
3696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3697 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if test "${ac_cv_prog_CC+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3703 if test -n "$CC"; then
3704 ac_cv_prog_CC
="$CC" # Let the user override the test.
3706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3710 test -z "$as_dir" && as_dir
=.
3711 for ac_exec_ext
in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 if test -n "$CC"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726 $as_echo "$CC" >&6; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3733 test -n "$CC" && break
3736 if test -z "$CC"; then
3738 for ac_prog
in cl.exe
3740 # Extract the first word of "$ac_prog", so it can be a program name with args.
3741 set dummy
$ac_prog; ac_word
=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$ac_ct_CC"; then
3748 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir
=.
3755 for ac_exec_ext
in '' $ac_executable_extensions; do
3756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3757 ac_cv_prog_ac_ct_CC
="$ac_prog"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3768 if test -n "$ac_ct_CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3770 $as_echo "$ac_ct_CC" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3777 test -n "$ac_ct_CC" && break
3780 if test "x$ac_ct_CC" = x
; then
3783 case $cross_compiling:$ac_tool_warned in
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3787 ac_tool_warned
=yes ;;
3796 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error
"no acceptable C compiler found in \$PATH
3799 See \`config.log' for more details." "$LINENO" 5; }
3801 # Provide some information about the compiler.
3802 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3805 for ac_option
in --version -v -V -qversion; do
3806 { { ac_try
="$ac_compiler $ac_option >&5"
3808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 $as_echo "$ac_try_echo"; } >&5
3813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3815 if test -s conftest.err; then
3817 ... rest of stderr output deleted ...
3818 10q' conftest.err >conftest.er1
3819 cat conftest.er1 >&5
3820 rm -f conftest.er1 conftest.err
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3837 ac_clean_files_save=$ac_clean_files
3838 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3839 # Try to create an executable without -o first, disregard a.out.
3840 # It will help us diagnose broken compilers, and finding out an intuition
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3843 $as_echo_n "checking for C compiler default output file name... " >&6; }
3844 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3846 # The possible output files:
3847 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3850 for ac_file in $ac_files
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3854 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3859 if { { ac_try="$ac_link_default"
3861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3862 *) ac_try_echo
=$ac_try;;
3864 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866 (eval "$ac_link_default") 2>&5
3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869 test $ac_status = 0; }; then :
3870 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3871 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3872 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3873 # so that the user can short-circuit this test for compilers unknown to
3875 for ac_file
in $ac_files ''
3877 test -f "$ac_file" ||
continue
3879 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3882 # We found the default executable, but exeext='' is most
3886 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3888 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3890 # We set ac_cv_exeext here because the later test for it is not
3891 # safe: cross compilers may not add the suffix if given an `-o'
3892 # argument, so we may need to know it at that point already.
3893 # Even if this section looks crufty: it has the advantage of
3900 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3906 $as_echo "$ac_file" >&6; }
3907 if test -z "$ac_file"; then :
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.
$ac_ext >&5
3911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913 { as_fn_set_status
77
3914 as_fn_error
"C compiler cannot create executables
3915 See \`config.log' for more details." "$LINENO" 5; }; }
3917 ac_exeext
=$ac_cv_exeext
3919 # Check that the compiler produces executables we can run. If not, either
3920 # the compiler is broken, or we cross compile.
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3922 $as_echo_n "checking whether the C compiler works... " >&6; }
3923 # If not cross compiling, check that we can run a simple program.
3924 if test "$cross_compiling" != yes; then
3925 if { ac_try
='./$ac_file'
3926 { { case "(($ac_try" in
3927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_try") 2>&5
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }; }; then
3938 if test "$cross_compiling" = maybe; then
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error "cannot run C compiled programs.
3944 If you meant to cross compile
, use \
`--host'.
3945 See \`config.log
' for more details." "$LINENO" 5; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 $as_echo "yes" >&6; }
3952 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3953 ac_clean_files=$ac_clean_files_save
3954 # Check that the compiler produces executables we can run. If not, either
3955 # the compiler is broken, or we cross compile.
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3957 $as_echo_n "checking whether we are cross compiling... " >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3959 $as_echo "$cross_compiling" >&6; }
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3962 $as_echo_n "checking for suffix of executables... " >&6; }
3963 if { { ac_try="$ac_link"
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_link") 2>&5
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3975 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3976 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3978 for ac_file
in conftest.exe conftest conftest.
*; do
3979 test -f "$ac_file" ||
continue
3981 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3982 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3991 See \`config.log' for more details." "$LINENO" 5; }
3993 rm -f conftest
$ac_cv_exeext
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3995 $as_echo "$ac_cv_exeext" >&6; }
3997 rm -f conftest.
$ac_ext
3998 EXEEXT
=$ac_cv_exeext
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4001 $as_echo_n "checking for suffix of object files... " >&6; }
4002 if test "${ac_cv_objext+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4016 rm -f conftest.o conftest.obj
4017 if { { ac_try
="$ac_compile"
4019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 $as_echo "$ac_try_echo"; } >&5
4024 (eval "$ac_compile") 2>&5
4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027 test $ac_status = 0; }; then :
4028 for ac_file in conftest.o conftest.obj conftest.*; do
4029 test -f "$ac_file" || continue;
4031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4037 $as_echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042 as_fn_error "cannot compute suffix of object files
: cannot compile
4043 See \
`config.log' for more details." "$LINENO" 5; }
4045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4048 $as_echo "$ac_cv_objext" >&6; }
4049 OBJEXT=$ac_cv_objext
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4052 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4053 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4054 $as_echo_n "(cached) " >&6
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4070 if ac_fn_c_try_compile "$LINENO"; then :
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4080 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4081 if test $ac_compiler_gnu = yes; then
4086 ac_test_CFLAGS=${CFLAGS+set}
4087 ac_save_CFLAGS=$CFLAGS
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4089 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4090 if test "${ac_cv_prog_cc_g+set}" = set; then :
4091 $as_echo_n "(cached) " >&6
4093 ac_save_c_werror_flag=$ac_c_werror_flag
4094 ac_c_werror_flag=yes
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4108 if ac_fn_c_try_compile "$LINENO"; then :
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4123 if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_c_werror_flag=$ac_save_c_werror_flag
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4139 if ac_fn_c_try_compile "$LINENO"; then :
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 ac_c_werror_flag=$ac_save_c_werror_flag
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4150 $as_echo "$ac_cv_prog_cc_g" >&6; }
4151 if test "$ac_test_CFLAGS" = set; then
4152 CFLAGS=$ac_save_CFLAGS
4153 elif test $ac_cv_prog_cc_g = yes; then
4154 if test "$GCC" = yes; then
4160 if test "$GCC" = yes; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4167 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4168 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4171 ac_cv_prog_cc_c89=no
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4177 #include <sys/types.h>
4178 #include <sys/stat.h>
4179 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4180 struct buf { int x; };
4181 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4182 static char *e (p, i)
4188 static char *f (char * (*g) (char **, int), char **p, ...)
4193 s = g (p, va_arg (v,int));
4198 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4199 function prototypes and stuff, but not '\xHH' hex character constants.
4200 These don't provoke an error unfortunately, instead are silently treated
4201 as 'x'. The following induces an error, until -std is added to get
4202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4203 array size at least. It's necessary to write '\x00'==0 to get something
4204 that's true only with -std. */
4205 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4207 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4208 inside strings and character constants. */
4210 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4212 int test (int i, double x);
4213 struct s1 {int (*f) (int a);};
4214 struct s2 {int (*f) (double a);};
4215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4221 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4229 CC="$ac_save_CC $ac_arg"
4230 if ac_fn_c_try_compile "$LINENO"; then :
4231 ac_cv_prog_cc_c89=$ac_arg
4233 rm -f core conftest.err conftest.$ac_objext
4234 test "x$ac_cv_prog_cc_c89" != "xno" && break
4236 rm -f conftest.$ac_ext
4241 case "x$ac_cv_prog_cc_c89" in
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4244 $as_echo "none needed" >&6; } ;;
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4247 $as_echo "unsupported" >&6; } ;;
4249 CC="$CC $ac_cv_prog_cc_c89"
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4251 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4253 if test "x$ac_cv_prog_cc_c89" != xno; then :
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263 if test "x$CC" != xcc; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4265 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4268 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4270 set dummy $CC; ac_cc=`$as_echo "$2" |
4271 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4272 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4273 $as_echo_n "(cached) " >&6
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4286 # Make sure it works both with $CC and with simple cc.
4287 # We do the test twice because some compilers refuse to overwrite an
4288 # existing .o file with -o, though they will create one.
4289 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4291 if { { case "(($ac_try" in
4292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4293 *) ac_try_echo
=$ac_try;;
4295 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_try") 2>&5
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; } &&
4301 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_try") 2>&5
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; };
4312 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4313 if test "x$CC" != xcc; then
4314 # Test first that cc exists at all.
4315 if { ac_try='cc -c conftest.$ac_ext >&5'
4316 { { case "(($ac_try" in
4317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4318 *) ac_try_echo
=$ac_try;;
4320 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_try") 2>&5
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }; }; then
4326 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4328 if { { case "(($ac_try" in
4329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; } &&
4338 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4340 *) ac_try_echo
=$ac_try;;
4342 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_try") 2>&5
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; };
4352 # cc exists but doesn't like -o.
4353 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4358 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4360 rm -f core conftest
*
4363 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4365 $as_echo "yes" >&6; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4370 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4374 # expand $ac_aux_dir to an absolute path
4375 am_aux_dir
=`cd $ac_aux_dir && pwd`
4377 # FIXME: we rely on the cache variable name because
4378 # there is no other way.
4380 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4381 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4382 if test "$am_t" != yes; then
4383 # Losing compiler, so override with the script.
4384 # FIXME: It is wrong to rewrite CC.
4385 # But if we don't then we get into trouble of one sort or another.
4386 # A longer-term fix would be to have automake use am__CC in this case,
4387 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4388 CC
="$am_aux_dir/compile $CC"
4393 ac_cpp
='$CXXCPP $CPPFLAGS'
4394 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4397 if test -z "$CXX"; then
4398 if test -n "$CCC"; then
4401 if test -n "$ac_tool_prefix"; then
4402 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4405 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407 $as_echo_n "checking for $ac_word... " >&6; }
4408 if test "${ac_cv_prog_CXX+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4411 if test -n "$CXX"; then
4412 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4418 test -z "$as_dir" && as_dir
=.
4419 for ac_exec_ext
in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 if test -n "$CXX"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4434 $as_echo "$CXX" >&6; }
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4441 test -n "$CXX" && break
4444 if test -z "$CXX"; then
4446 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4448 # Extract the first word of "$ac_prog", so it can be a program name with args.
4449 set dummy
$ac_prog; ac_word
=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4455 if test -n "$ac_ct_CXX"; then
4456 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4462 test -z "$as_dir" && as_dir
=.
4463 for ac_exec_ext
in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4476 if test -n "$ac_ct_CXX"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4478 $as_echo "$ac_ct_CXX" >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4485 test -n "$ac_ct_CXX" && break
4488 if test "x$ac_ct_CXX" = x
; then
4491 case $cross_compiling:$ac_tool_warned in
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned
=yes ;;
4503 # Provide some information about the compiler.
4504 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4507 for ac_option
in --version -v -V -qversion; do
4508 { { ac_try
="$ac_compiler $ac_option >&5"
4510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514 $as_echo "$ac_try_echo"; } >&5
4515 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4517 if test -s conftest.err; then
4519 ... rest of stderr output deleted ...
4520 10q' conftest.err >conftest.er1
4521 cat conftest.er1 >&5
4522 rm -f conftest.er1 conftest.err
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4529 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4530 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4547 if ac_fn_cxx_try_compile "$LINENO"; then :
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4557 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4558 if test $ac_compiler_gnu = yes; then
4563 ac_test_CXXFLAGS=${CXXFLAGS+set}
4564 ac_save_CXXFLAGS=$CXXFLAGS
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4566 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4567 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4570 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4571 ac_cxx_werror_flag=yes
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4585 if ac_fn_cxx_try_compile "$LINENO"; then :
4586 ac_cv_prog_cxx_g=yes
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4600 if ac_fn_cxx_try_compile "$LINENO"; then :
4603 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4616 if ac_fn_cxx_try_compile "$LINENO"; then :
4617 ac_cv_prog_cxx_g=yes
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4627 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4628 if test "$ac_test_CXXFLAGS" = set; then
4629 CXXFLAGS=$ac_save_CXXFLAGS
4630 elif test $ac_cv_prog_cxx_g = yes; then
4631 if test "$GXX" = yes; then
4637 if test "$GXX" = yes; then
4644 ac_cpp='$CPP $CPPFLAGS'
4645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4652 if test -n "$ac_tool_prefix"; then
4653 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4654 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4660 if test -n "$GNATBIND"; then
4661 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 GNATBIND=$ac_cv_prog_GNATBIND
4681 if test -n "$GNATBIND"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4683 $as_echo "$GNATBIND" >&6; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4691 if test -z "$ac_cv_prog_GNATBIND"; then
4692 ac_ct_GNATBIND=$GNATBIND
4693 # Extract the first word of "gnatbind", so it can be a program name with args.
4694 set dummy gnatbind; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4698 $as_echo_n "(cached) " >&6
4700 if test -n "$ac_ct_GNATBIND"; then
4701 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4721 if test -n "$ac_ct_GNATBIND"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4723 $as_echo "$ac_ct_GNATBIND" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4729 if test "x$ac_ct_GNATBIND" = x; then
4732 case $cross_compiling:$ac_tool_warned in
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4736 ac_tool_warned=yes ;;
4738 GNATBIND=$ac_ct_GNATBIND
4741 GNATBIND="$ac_cv_prog_GNATBIND"
4744 if test -n "$ac_tool_prefix"; then
4745 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4746 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4752 if test -n "$GNATMAKE"; then
4753 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 GNATMAKE=$ac_cv_prog_GNATMAKE
4773 if test -n "$GNATMAKE"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4775 $as_echo "$GNATMAKE" >&6; }
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4783 if test -z "$ac_cv_prog_GNATMAKE"; then
4784 ac_ct_GNATMAKE=$GNATMAKE
4785 # Extract the first word of "gnatmake", so it can be a program name with args.
4786 set dummy gnatmake; ac_word=$2
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
4792 if test -n "$ac_ct_GNATMAKE"; then
4793 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4813 if test -n "$ac_ct_GNATMAKE"; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4815 $as_echo "$ac_ct_GNATMAKE" >&6; }
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4821 if test "x$ac_ct_GNATMAKE" = x; then
4824 case $cross_compiling:$ac_tool_warned in
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4828 ac_tool_warned=yes ;;
4830 GNATMAKE=$ac_ct_GNATMAKE
4833 GNATMAKE="$ac_cv_prog_GNATMAKE"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4837 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4838 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4839 $as_echo_n "(cached) " >&6
4841 cat >conftest.adb <<EOF
4842 procedure conftest is begin null; end conftest;
4844 acx_cv_cc_gcc_supports_ada=no
4845 # There is a bug in old released versions of GCC which causes the
4846 # driver to exit successfully when the appropriate language module
4847 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4848 # Therefore we must check for the error message as well as an
4849 # unsuccessful exit.
4850 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4851 # given a .adb file, but produce no object file. So we must check
4852 # if an object file was really produced to guard against this.
4853 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4854 if test x"$errors" = x && test -f conftest.$ac_objext; then
4855 acx_cv_cc_gcc_supports_ada=yes
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4860 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4862 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4869 # autoconf is lame and doesn't give us any substitution variable for this.
4870 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4871 NO_MINUS_C_MINUS_O=yes
4873 OUTPUT_OPTION='-o $@'
4878 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4879 # optimizations to be activated explicitly by the toplevel.
4881 */prev-gcc/xgcc*) ;;
4882 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4886 # Determine PICFLAG for target gnatlib.
4892 # PIC is the default on some targets or must not be used.
4894 # PIC is the default on this platform
4895 # Common symbols not allowed in MH_DYLIB files
4896 PICFLAG_FOR_TARGET=-fno-common
4899 # PIC is the default.
4902 # PIC is the default for 64-bit PA HP-UX.
4904 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4906 i[34567]86-*-interix[3-9]*)
4907 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4908 # Instead, we relocate shared libraries at runtime.
4910 i[34567]86-*-nto-qnx*)
4911 # QNX uses GNU C++, but need to define -shared option too, otherwise
4913 PICFLAG_FOR_TARGET='-fPIC -shared'
4915 i[34567]86-pc-msdosdjgpp*)
4916 # DJGPP does not support shared libraries at all.
4919 # On IA64 HP-UX, PIC is the default but the pic flag
4920 # sets the default TLS model and affects inlining.
4921 PICFLAG_FOR_TARGET=-fPIC
4924 # PIC is the default.
4926 rs6000-ibm-aix* | powerpc-ibm-aix*)
4927 # All AIX code is PIC.
4930 # Some targets support both -fPIC and -fpic, but prefer the latter.
4932 i[34567]86-*-* | x86_64-*-*)
4933 PICFLAG_FOR_TARGET=-fpic
4936 PICFLAG_FOR_TARGET=-fpic
4938 # FIXME: Override -fPIC default in libgcc only?
4939 sh-*-linux* | sh[2346lbe]*-*-linux*)
4940 PICFLAG_FOR_TARGET=-fpic
4942 # FIXME: Simplify to sh*-*-netbsd*?
4943 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4944 sh64-*-netbsd* | sh64l*-*-netbsd*)
4945 PICFLAG_FOR_TARGET=-fpic
4947 # Default to -fPIC unless specified otherwise.
4949 PICFLAG_FOR_TARGET=-fPIC
4953 # If the user explicitly uses -fpic/-fPIC, keep that.
4954 case "${CFLAGS_FOR_TARGET}" in
4956 PICFLAG_FOR_TARGET=-fpic
4959 PICFLAG_FOR_TARGET=-fPIC
4965 # -------------------------
4966 # Check C compiler features
4967 # -------------------------
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4977 # On Suns, sometimes $CPP names a directory.
4978 if test -n "$CPP" && test -d "$CPP"; then
4981 if test -z "$CPP"; then
4982 if test "${ac_cv_prog_CPP+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
4985 # Double quotes because CPP needs to be expanded
4986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4989 for ac_c_preproc_warn_flag in '' yes
4991 # Use a header file that comes with gcc, so configuring glibc
4992 # with a fresh cross-compiler works.
4993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4994 # <limits.h> exists even on freestanding compilers.
4995 # On the NeXT, cc -E runs the code through the compiler's parser,
4996 # not just through cpp. "Syntax error" is here to catch this case.
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5000 # include <limits.h>
5002 # include <assert.h>
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5009 # Broken: fails on valid input.
5012 rm -f conftest.err conftest.$ac_ext
5014 # OK, works on sane cases. Now check whether nonexistent headers
5015 # can be detected and how.
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 #include <ac_nonexistent.h>
5020 if ac_fn_c_try_cpp "$LINENO"; then :
5021 # Broken: success on invalid input.
5024 # Passes both tests.
5028 rm -f conftest.err conftest.$ac_ext
5031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032 rm -f conftest.err conftest.
$ac_ext
5033 if $ac_preproc_ok; then :
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5046 $as_echo "$CPP" >&6; }
5048 for ac_c_preproc_warn_flag
in '' yes
5050 # Use a header file that comes with gcc, so configuring glibc
5051 # with a fresh cross-compiler works.
5052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053 # <limits.h> exists even on freestanding compilers.
5054 # On the NeXT, cc -E runs the code through the compiler's parser,
5055 # not just through cpp. "Syntax error" is here to catch this case.
5056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5059 # include <limits.h>
5061 # include <assert.h>
5065 if ac_fn_c_try_cpp
"$LINENO"; then :
5068 # Broken: fails on valid input.
5071 rm -f conftest.err conftest.
$ac_ext
5073 # OK, works on sane cases. Now check whether nonexistent headers
5074 # can be detected and how.
5075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <ac_nonexistent.h>
5079 if ac_fn_c_try_cpp
"$LINENO"; then :
5080 # Broken: success on invalid input.
5083 # Passes both tests.
5087 rm -f conftest.err conftest.
$ac_ext
5090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5091 rm -f conftest.err conftest.
$ac_ext
5092 if $ac_preproc_ok; then :
5095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5097 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5098 See \`config.log' for more details." "$LINENO" 5; }
5102 ac_cpp
='$CPP $CPPFLAGS'
5103 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5109 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5110 if test "${ac_cv_path_GREP+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5113 if test -z "$GREP"; then
5114 ac_path_GREP_found
=false
5115 # Loop through the user's path and test for each of PROGNAME-LIST
5116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5117 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5120 test -z "$as_dir" && as_dir
=.
5121 for ac_prog
in grep ggrep
; do
5122 for ac_exec_ext
in '' $ac_executable_extensions; do
5123 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5124 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5125 # Check for GNU ac_path_GREP and select it if it is found.
5126 # Check for GNU $ac_path_GREP
5127 case `"$ac_path_GREP" --version 2>&1` in
5129 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5132 $as_echo_n 0123456789 >"conftest.in"
5135 cat "conftest.in" "conftest.in" >"conftest.tmp"
5136 mv "conftest.tmp" "conftest.in"
5137 cp "conftest.in" "conftest.nl"
5138 $as_echo 'GREP' >> "conftest.nl"
5139 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5140 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5141 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5142 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5143 # Best one so far, save it but keep looking for a better one
5144 ac_cv_path_GREP
="$ac_path_GREP"
5145 ac_path_GREP_max
=$ac_count
5147 # 10*(2^10) chars as input seems more than enough
5148 test $ac_count -gt 10 && break
5150 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5153 $ac_path_GREP_found && break 3
5158 if test -z "$ac_cv_path_GREP"; then
5159 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162 ac_cv_path_GREP
=$GREP
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5167 $as_echo "$ac_cv_path_GREP" >&6; }
5168 GREP
="$ac_cv_path_GREP"
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5172 $as_echo_n "checking for egrep... " >&6; }
5173 if test "${ac_cv_path_EGREP+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5176 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5177 then ac_cv_path_EGREP
="$GREP -E"
5179 if test -z "$EGREP"; then
5180 ac_path_EGREP_found
=false
5181 # Loop through the user's path and test for each of PROGNAME-LIST
5182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5183 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5186 test -z "$as_dir" && as_dir
=.
5187 for ac_prog
in egrep; do
5188 for ac_exec_ext
in '' $ac_executable_extensions; do
5189 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5190 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5191 # Check for GNU ac_path_EGREP and select it if it is found.
5192 # Check for GNU $ac_path_EGREP
5193 case `"$ac_path_EGREP" --version 2>&1` in
5195 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5198 $as_echo_n 0123456789 >"conftest.in"
5201 cat "conftest.in" "conftest.in" >"conftest.tmp"
5202 mv "conftest.tmp" "conftest.in"
5203 cp "conftest.in" "conftest.nl"
5204 $as_echo 'EGREP' >> "conftest.nl"
5205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5206 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5207 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5209 # Best one so far, save it but keep looking for a better one
5210 ac_cv_path_EGREP
="$ac_path_EGREP"
5211 ac_path_EGREP_max
=$ac_count
5213 # 10*(2^10) chars as input seems more than enough
5214 test $ac_count -gt 10 && break
5216 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5219 $ac_path_EGREP_found && break 3
5224 if test -z "$ac_cv_path_EGREP"; then
5225 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5228 ac_cv_path_EGREP
=$EGREP
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5234 $as_echo "$ac_cv_path_EGREP" >&6; }
5235 EGREP
="$ac_cv_path_EGREP"
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5239 $as_echo_n "checking for ANSI C header files... " >&6; }
5240 if test "${ac_cv_header_stdc+set}" = set; then :
5241 $as_echo_n "(cached) " >&6
5243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5258 if ac_fn_c_try_compile
"$LINENO"; then :
5259 ac_cv_header_stdc
=yes
5261 ac_cv_header_stdc
=no
5263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5265 if test $ac_cv_header_stdc = yes; then
5266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5273 $EGREP "memchr" >/dev
/null
2>&1; then :
5276 ac_cv_header_stdc
=no
5282 if test $ac_cv_header_stdc = yes; then
5283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290 $EGREP "free" >/dev
/null
2>&1; then :
5293 ac_cv_header_stdc
=no
5299 if test $ac_cv_header_stdc = yes; then
5300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5301 if test "$cross_compiling" = yes; then :
5304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5308 #if ((' ' & 0x0FF) == 0x020)
5309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5312 # define ISLOWER(c) \
5313 (('a' <= (c) && (c) <= 'i') \
5314 || ('j' <= (c) && (c) <= 'r') \
5315 || ('s' <= (c) && (c) <= 'z'))
5316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5324 for (i = 0; i < 256; i++)
5325 if (XOR (islower (i), ISLOWER (i))
5326 || toupper (i) != TOUPPER (i))
5331 if ac_fn_c_try_run
"$LINENO"; then :
5334 ac_cv_header_stdc
=no
5336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5337 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5343 $as_echo "$ac_cv_header_stdc" >&6; }
5344 if test $ac_cv_header_stdc = yes; then
5346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5351 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5352 inttypes.h stdint.h unistd.h
5354 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5355 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5357 eval as_val
=\$
$as_ac_Header
5358 if test "x$as_val" = x
""yes; then :
5359 cat >>confdefs.h
<<_ACEOF
5360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5369 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5370 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5377 if test "$MINIX" = yes; then
5379 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5382 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5385 $as_echo "#define _MINIX 1" >>confdefs.h
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5391 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5392 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5398 # define __EXTENSIONS__ 1
5399 $ac_includes_default
5408 if ac_fn_c_try_compile
"$LINENO"; then :
5409 ac_cv_safe_to_define___extensions__
=yes
5411 ac_cv_safe_to_define___extensions__
=no
5413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5416 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5417 test $ac_cv_safe_to_define___extensions__ = yes &&
5418 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5420 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5422 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5424 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5426 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5430 ac_cpp
='$CPP $CPPFLAGS'
5431 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5435 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5436 # On Suns, sometimes $CPP names a directory.
5437 if test -n "$CPP" && test -d "$CPP"; then
5440 if test -z "$CPP"; then
5441 if test "${ac_cv_prog_CPP+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5444 # Double quotes because CPP needs to be expanded
5445 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5448 for ac_c_preproc_warn_flag
in '' yes
5450 # Use a header file that comes with gcc, so configuring glibc
5451 # with a fresh cross-compiler works.
5452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453 # <limits.h> exists even on freestanding compilers.
5454 # On the NeXT, cc -E runs the code through the compiler's parser,
5455 # not just through cpp. "Syntax error" is here to catch this case.
5456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5459 # include <limits.h>
5461 # include <assert.h>
5465 if ac_fn_c_try_cpp
"$LINENO"; then :
5468 # Broken: fails on valid input.
5471 rm -f conftest.err conftest.
$ac_ext
5473 # OK, works on sane cases. Now check whether nonexistent headers
5474 # can be detected and how.
5475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477 #include <ac_nonexistent.h>
5479 if ac_fn_c_try_cpp
"$LINENO"; then :
5480 # Broken: success on invalid input.
5483 # Passes both tests.
5487 rm -f conftest.err conftest.
$ac_ext
5490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5491 rm -f conftest.err conftest.
$ac_ext
5492 if $ac_preproc_ok; then :
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5505 $as_echo "$CPP" >&6; }
5507 for ac_c_preproc_warn_flag
in '' yes
5509 # Use a header file that comes with gcc, so configuring glibc
5510 # with a fresh cross-compiler works.
5511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512 # <limits.h> exists even on freestanding compilers.
5513 # On the NeXT, cc -E runs the code through the compiler's parser,
5514 # not just through cpp. "Syntax error" is here to catch this case.
5515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5518 # include <limits.h>
5520 # include <assert.h>
5524 if ac_fn_c_try_cpp
"$LINENO"; then :
5527 # Broken: fails on valid input.
5530 rm -f conftest.err conftest.
$ac_ext
5532 # OK, works on sane cases. Now check whether nonexistent headers
5533 # can be detected and how.
5534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <ac_nonexistent.h>
5538 if ac_fn_c_try_cpp
"$LINENO"; then :
5539 # Broken: success on invalid input.
5542 # Passes both tests.
5546 rm -f conftest.err conftest.
$ac_ext
5549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5550 rm -f conftest.err conftest.
$ac_ext
5551 if $ac_preproc_ok; then :
5554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5556 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5557 See \`config.log' for more details." "$LINENO" 5; }
5561 ac_cpp
='$CPP $CPPFLAGS'
5562 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5567 $as_echo_n "checking for inline... " >&6; }
5568 if test "${ac_cv_c_inline+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5572 for ac_kw
in inline __inline__ __inline
; do
5573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5577 static $ac_kw foo_t static_foo () {return 0; }
5578 $ac_kw foo_t foo () {return 0; }
5582 if ac_fn_c_try_compile
"$LINENO"; then :
5583 ac_cv_c_inline
=$ac_kw
5585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5586 test "$ac_cv_c_inline" != no
&& break
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5591 $as_echo "$ac_cv_c_inline" >&6; }
5593 case $ac_cv_c_inline in
5596 case $ac_cv_c_inline in
5598 *) ac_val
=$ac_cv_c_inline;;
5600 cat >>confdefs.h
<<_ACEOF
5602 #define inline $ac_val
5609 # Check whether --enable-largefile was given.
5610 if test "${enable_largefile+set}" = set; then :
5611 enableval
=$enable_largefile;
5614 if test "$enable_largefile" != no
; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5617 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5618 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5621 ac_cv_sys_largefile_CC
=no
5622 if test "$GCC" != yes; then
5625 # IRIX 6.2 and later do not support large files by default,
5626 # so use the C compiler's -n32 option if that helps.
5627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #include <sys/types.h>
5630 /* Check that off_t can represent 2**63 - 1 correctly.
5631 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5632 since some C++ compilers masquerading as C compilers
5633 incorrectly reject 9223372036854775807. */
5634 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5636 && LARGE_OFF_T % 2147483647 == 1)
5646 if ac_fn_c_try_compile
"$LINENO"; then :
5649 rm -f core conftest.err conftest.
$ac_objext
5651 if ac_fn_c_try_compile
"$LINENO"; then :
5652 ac_cv_sys_largefile_CC
=' -n32'; break
5654 rm -f core conftest.err conftest.
$ac_objext
5658 rm -f conftest.
$ac_ext
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5662 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5663 if test "$ac_cv_sys_largefile_CC" != no
; then
5664 CC
=$CC$ac_cv_sys_largefile_CC
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5668 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5669 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <sys/types.h>
5676 /* Check that off_t can represent 2**63 - 1 correctly.
5677 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5678 since some C++ compilers masquerading as C compilers
5679 incorrectly reject 9223372036854775807. */
5680 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5681 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5682 && LARGE_OFF_T % 2147483647 == 1)
5692 if ac_fn_c_try_compile
"$LINENO"; then :
5693 ac_cv_sys_file_offset_bits
=no
; break
5695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #define _FILE_OFFSET_BITS 64
5699 #include <sys/types.h>
5700 /* Check that off_t can represent 2**63 - 1 correctly.
5701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5702 since some C++ compilers masquerading as C compilers
5703 incorrectly reject 9223372036854775807. */
5704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5706 && LARGE_OFF_T % 2147483647 == 1)
5716 if ac_fn_c_try_compile
"$LINENO"; then :
5717 ac_cv_sys_file_offset_bits
=64; break
5719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5720 ac_cv_sys_file_offset_bits
=unknown
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5725 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5726 case $ac_cv_sys_file_offset_bits in #(
5729 cat >>confdefs.h
<<_ACEOF
5730 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5735 if test $ac_cv_sys_file_offset_bits = unknown
; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5737 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5738 if test "${ac_cv_sys_large_files+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 #include <sys/types.h>
5745 /* Check that off_t can represent 2**63 - 1 correctly.
5746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5747 since some C++ compilers masquerading as C compilers
5748 incorrectly reject 9223372036854775807. */
5749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5751 && LARGE_OFF_T % 2147483647 == 1)
5761 if ac_fn_c_try_compile
"$LINENO"; then :
5762 ac_cv_sys_large_files
=no
; break
5764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767 #define _LARGE_FILES 1
5768 #include <sys/types.h>
5769 /* Check that off_t can represent 2**63 - 1 correctly.
5770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771 since some C++ compilers masquerading as C compilers
5772 incorrectly reject 9223372036854775807. */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775 && LARGE_OFF_T % 2147483647 == 1)
5785 if ac_fn_c_try_compile
"$LINENO"; then :
5786 ac_cv_sys_large_files
=1; break
5788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5789 ac_cv_sys_large_files
=unknown
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5794 $as_echo "$ac_cv_sys_large_files" >&6; }
5795 case $ac_cv_sys_large_files in #(
5798 cat >>confdefs.h
<<_ACEOF
5799 #define _LARGE_FILES $ac_cv_sys_large_files
5808 # sizeof(char) is 1 by definition.
5809 # The cast to long int works around a bug in the HP C Compiler
5810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5812 # This bug is HP SR number 8606223364.
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5814 $as_echo_n "checking size of void *... " >&6; }
5815 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5818 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5821 if test "$ac_cv_type_void_p" = yes; then
5822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5824 { as_fn_set_status
77
5825 as_fn_error
"cannot compute sizeof (void *)
5826 See \`config.log' for more details." "$LINENO" 5; }; }
5828 ac_cv_sizeof_void_p
=0
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5834 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5838 cat >>confdefs.h
<<_ACEOF
5839 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5843 # The cast to long int works around a bug in the HP C Compiler
5844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5846 # This bug is HP SR number 8606223364.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5848 $as_echo_n "checking size of short... " >&6; }
5849 if test "${ac_cv_sizeof_short+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5852 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5855 if test "$ac_cv_type_short" = yes; then
5856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 { as_fn_set_status
77
5859 as_fn_error
"cannot compute sizeof (short)
5860 See \`config.log' for more details." "$LINENO" 5; }; }
5862 ac_cv_sizeof_short
=0
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5868 $as_echo "$ac_cv_sizeof_short" >&6; }
5872 cat >>confdefs.h
<<_ACEOF
5873 #define SIZEOF_SHORT $ac_cv_sizeof_short
5877 # The cast to long int works around a bug in the HP C Compiler
5878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5880 # This bug is HP SR number 8606223364.
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5882 $as_echo_n "checking size of int... " >&6; }
5883 if test "${ac_cv_sizeof_int+set}" = set; then :
5884 $as_echo_n "(cached) " >&6
5886 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5889 if test "$ac_cv_type_int" = yes; then
5890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5892 { as_fn_set_status
77
5893 as_fn_error
"cannot compute sizeof (int)
5894 See \`config.log' for more details." "$LINENO" 5; }; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5902 $as_echo "$ac_cv_sizeof_int" >&6; }
5906 cat >>confdefs.h
<<_ACEOF
5907 #define SIZEOF_INT $ac_cv_sizeof_int
5911 # The cast to long int works around a bug in the HP C Compiler
5912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5914 # This bug is HP SR number 8606223364.
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5916 $as_echo_n "checking size of long... " >&6; }
5917 if test "${ac_cv_sizeof_long+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
5920 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5923 if test "$ac_cv_type_long" = yes; then
5924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5926 { as_fn_set_status
77
5927 as_fn_error
"cannot compute sizeof (long)
5928 See \`config.log' for more details." "$LINENO" 5; }; }
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5936 $as_echo "$ac_cv_sizeof_long" >&6; }
5940 cat >>confdefs.h
<<_ACEOF
5941 #define SIZEOF_LONG $ac_cv_sizeof_long
5945 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5946 if test "x$ac_cv_type_long_long" = x
""yes; then :
5948 cat >>confdefs.h
<<_ACEOF
5949 #define HAVE_LONG_LONG 1
5952 # The cast to long int works around a bug in the HP C Compiler
5953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5955 # This bug is HP SR number 8606223364.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5957 $as_echo_n "checking size of long long... " >&6; }
5958 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5961 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5964 if test "$ac_cv_type_long_long" = yes; then
5965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 { as_fn_set_status
77
5968 as_fn_error
"cannot compute sizeof (long long)
5969 See \`config.log' for more details." "$LINENO" 5; }; }
5971 ac_cv_sizeof_long_long
=0
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5977 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5981 cat >>confdefs.h
<<_ACEOF
5982 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5988 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5989 if test "x$ac_cv_type___int64" = x
""yes; then :
5991 cat >>confdefs.h
<<_ACEOF
5992 #define HAVE___INT64 1
5995 # The cast to long int works around a bug in the HP C Compiler
5996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5998 # This bug is HP SR number 8606223364.
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6000 $as_echo_n "checking size of __int64... " >&6; }
6001 if test "${ac_cv_sizeof___int64+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6004 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6007 if test "$ac_cv_type___int64" = yes; then
6008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010 { as_fn_set_status
77
6011 as_fn_error
"cannot compute sizeof (__int64)
6012 See \`config.log' for more details." "$LINENO" 5; }; }
6014 ac_cv_sizeof___int64
=0
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6020 $as_echo "$ac_cv_sizeof___int64" >&6; }
6024 cat >>confdefs.h
<<_ACEOF
6025 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6031 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6032 case $ac_cv_c_int8_t in #(
6036 cat >>confdefs.h
<<_ACEOF
6037 #define int8_t $ac_cv_c_int8_t
6042 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6043 case $ac_cv_c_int16_t in #(
6047 cat >>confdefs.h
<<_ACEOF
6048 #define int16_t $ac_cv_c_int16_t
6053 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6054 case $ac_cv_c_int32_t in #(
6058 cat >>confdefs.h
<<_ACEOF
6059 #define int32_t $ac_cv_c_int32_t
6064 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6065 case $ac_cv_c_int64_t in #(
6069 cat >>confdefs.h
<<_ACEOF
6070 #define int64_t $ac_cv_c_int64_t
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6077 $as_echo_n "checking for long long int... " >&6; }
6078 if test "${ac_cv_type_long_long_int+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6084 /* For now, do not test the preprocessor; as of 2007 there are too many
6085 implementations with broken preprocessors. Perhaps this can
6086 be revisited in 2012. In the meantime, code should not expect
6087 #if to work with literals wider than 32 bits. */
6088 /* Test literals. */
6089 long long int ll = 9223372036854775807ll;
6090 long long int nll = -9223372036854775807LL;
6091 unsigned long long int ull = 18446744073709551615ULL;
6092 /* Test constant expressions. */
6093 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6095 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6101 /* Test availability of runtime routines for shift and division. */
6102 long long int llmax = 9223372036854775807ll;
6103 unsigned long long int ullmax = 18446744073709551615ull;
6104 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6105 | (llmax / ll) | (llmax % ll)
6106 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6107 | (ullmax / ull) | (ullmax % ull));
6113 if ac_fn_c_try_link
"$LINENO"; then :
6114 if test "$cross_compiling" = yes; then :
6115 ac_cv_type_long_long_int
=yes
6117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6122 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6123 # define LLONG_MAX (HALF - 1 + HALF)
6128 long long int n = 1;
6132 long long int m = n << i;
6135 if (LLONG_MAX / 2 < m)
6143 if ac_fn_c_try_run
"$LINENO"; then :
6144 ac_cv_type_long_long_int
=yes
6146 ac_cv_type_long_long_int
=no
6148 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6149 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6153 ac_cv_type_long_long_int
=no
6155 rm -f core conftest.err conftest.
$ac_objext \
6156 conftest
$ac_exeext conftest.
$ac_ext
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6159 $as_echo "$ac_cv_type_long_long_int" >&6; }
6160 if test $ac_cv_type_long_long_int = yes; then
6162 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6168 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6169 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6171 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6174 test $ac_cv_type_long_long_int = yes \
6175 && ac_type
='long long int' \
6176 || ac_type
='long int'
6178 cat >>confdefs.h
<<_ACEOF
6179 #define intmax_t $ac_type
6186 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6189 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6192 for ac_type
in 'int' 'long int' 'long long int'; do
6193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 $ac_includes_default
6199 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6206 if ac_fn_c_try_compile
"$LINENO"; then :
6208 cat >>confdefs.h
<<_ACEOF
6209 #define intptr_t $ac_type
6214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6215 test -z "$ac_type" && break
6220 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6221 case $ac_cv_c_uint8_t in #(
6225 $as_echo "#define _UINT8_T 1" >>confdefs.h
6228 cat >>confdefs.h
<<_ACEOF
6229 #define uint8_t $ac_cv_c_uint8_t
6234 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6235 case $ac_cv_c_uint16_t in #(
6240 cat >>confdefs.h
<<_ACEOF
6241 #define uint16_t $ac_cv_c_uint16_t
6246 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6247 case $ac_cv_c_uint32_t in #(
6251 $as_echo "#define _UINT32_T 1" >>confdefs.h
6254 cat >>confdefs.h
<<_ACEOF
6255 #define uint32_t $ac_cv_c_uint32_t
6260 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6261 case $ac_cv_c_uint64_t in #(
6265 $as_echo "#define _UINT64_T 1" >>confdefs.h
6268 cat >>confdefs.h
<<_ACEOF
6269 #define uint64_t $ac_cv_c_uint64_t
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6276 $as_echo_n "checking for unsigned long long int... " >&6; }
6277 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
6280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6283 /* For now, do not test the preprocessor; as of 2007 there are too many
6284 implementations with broken preprocessors. Perhaps this can
6285 be revisited in 2012. In the meantime, code should not expect
6286 #if to work with literals wider than 32 bits. */
6287 /* Test literals. */
6288 long long int ll = 9223372036854775807ll;
6289 long long int nll = -9223372036854775807LL;
6290 unsigned long long int ull = 18446744073709551615ULL;
6291 /* Test constant expressions. */
6292 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6294 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6300 /* Test availability of runtime routines for shift and division. */
6301 long long int llmax = 9223372036854775807ll;
6302 unsigned long long int ullmax = 18446744073709551615ull;
6303 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6304 | (llmax / ll) | (llmax % ll)
6305 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6306 | (ullmax / ull) | (ullmax % ull));
6312 if ac_fn_c_try_link
"$LINENO"; then :
6313 ac_cv_type_unsigned_long_long_int
=yes
6315 ac_cv_type_unsigned_long_long_int
=no
6317 rm -f core conftest.err conftest.
$ac_objext \
6318 conftest
$ac_exeext conftest.
$ac_ext
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6321 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6322 if test $ac_cv_type_unsigned_long_long_int = yes; then
6324 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6330 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6331 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6333 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6336 test $ac_cv_type_unsigned_long_long_int = yes \
6337 && ac_type
='unsigned long long int' \
6338 || ac_type
='unsigned long int'
6340 cat >>confdefs.h
<<_ACEOF
6341 #define uintmax_t $ac_type
6348 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6349 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6351 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6354 for ac_type
in 'unsigned int' 'unsigned long int' \
6355 'unsigned long long int'; do
6356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 $ac_includes_default
6362 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6369 if ac_fn_c_try_compile
"$LINENO"; then :
6371 cat >>confdefs.h
<<_ACEOF
6372 #define uintptr_t $ac_type
6377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6378 test -z "$ac_type" && break
6396 # ---------------------
6397 # Warnings and checking
6398 # ---------------------
6400 # Check $CC warning features (if it's GCC).
6401 # We want to use -pedantic, but we don't want warnings about
6404 # * overlong strings
6405 # * C++11 narrowing conversions in { }
6406 # So, we only use -pedantic if we can disable those warnings.
6409 save_CFLAGS
="$CFLAGS"
6410 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6411 # Do the check with the no- prefix removed since gcc silently
6412 # accepts any -Wno-* option on purpose
6413 case $real_option in
6414 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6415 *) option
=$real_option ;;
6417 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6420 $as_echo_n "checking whether $CC supports $option... " >&6; }
6421 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6422 $as_echo_n "(cached) " >&6
6425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6436 if ac_fn_c_try_compile
"$LINENO"; then :
6437 eval "$as_acx_Woption=yes"
6439 eval "$as_acx_Woption=no"
6441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6444 eval ac_res
=\$
$as_acx_Woption
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6446 $as_echo "$ac_res" >&6; }
6447 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6448 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6451 CFLAGS
="$save_CFLAGS"
6454 save_CFLAGS
="$CFLAGS"
6455 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6456 # Do the check with the no- prefix removed since gcc silently
6457 # accepts any -Wno-* option on purpose
6458 case $real_option in
6459 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6460 *) option
=$real_option ;;
6462 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6465 $as_echo_n "checking whether $CC supports $option... " >&6; }
6466 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6467 $as_echo_n "(cached) " >&6
6470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6481 if ac_fn_c_try_compile
"$LINENO"; then :
6482 eval "$as_acx_Woption=yes"
6484 eval "$as_acx_Woption=no"
6486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6489 eval ac_res
=\$
$as_acx_Woption
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6491 $as_echo "$ac_res" >&6; }
6492 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6493 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6496 CFLAGS
="$save_CFLAGS"
6499 save_CFLAGS
="$CFLAGS"
6500 for real_option
in -Wmissing-format-attribute; do
6501 # Do the check with the no- prefix removed since gcc silently
6502 # accepts any -Wno-* option on purpose
6503 case $real_option in
6504 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6505 *) option
=$real_option ;;
6507 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6510 $as_echo_n "checking whether $CC supports $option... " >&6; }
6511 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6512 $as_echo_n "(cached) " >&6
6515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6526 if ac_fn_c_try_compile
"$LINENO"; then :
6527 eval "$as_acx_Woption=yes"
6529 eval "$as_acx_Woption=no"
6531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6534 eval ac_res
=\$
$as_acx_Woption
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6536 $as_echo "$ac_res" >&6; }
6537 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6538 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6541 CFLAGS
="$save_CFLAGS"
6544 save_CFLAGS
="$CFLAGS"
6545 for real_option
in -Wold-style-definition -Wc++-compat; do
6546 # Do the check with the no- prefix removed since gcc silently
6547 # accepts any -Wno-* option on purpose
6548 case $real_option in
6549 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6550 *) option
=$real_option ;;
6552 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6555 $as_echo_n "checking whether $CC supports $option... " >&6; }
6556 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6557 $as_echo_n "(cached) " >&6
6560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6571 if ac_fn_c_try_compile
"$LINENO"; then :
6572 eval "$as_acx_Woption=yes"
6574 eval "$as_acx_Woption=no"
6576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6579 eval ac_res
=\$
$as_acx_Woption
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6581 $as_echo "$ac_res" >&6; }
6582 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6583 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6586 CFLAGS
="$save_CFLAGS"
6588 # Do the check with the no- prefix removed from the warning options
6589 # since gcc silently accepts any -Wno-* option on purpose
6590 if test "$GCC" = yes; then :
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6592 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6593 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6596 save_CFLAGS
="$CFLAGS"
6597 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6609 if ac_fn_c_try_compile
"$LINENO"; then :
6610 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6612 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6615 CFLAGS
="$save_CFLAGS"
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6618 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6619 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6620 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6625 # Check whether --enable-werror-always was given.
6626 if test "${enable_werror_always+set}" = set; then :
6627 enableval
=$enable_werror_always;
6629 enable_werror_always
=no
6632 if test $enable_werror_always = yes; then :
6633 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6638 # The above macros do nothing if the compiler is not GCC. However, the
6639 # Makefile has more goo to add other flags, so these variables are used
6640 # to enable warnings only for GCC.
6643 if test "x$GCC" = "xyes"; then
6644 warn_cflags
='$(GCC_WARN_CFLAGS)'
6645 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6650 # Disable exceptions and RTTI if building with g++
6652 save_CFLAGS
="$CFLAGS"
6653 for real_option
in -fno-exceptions -fno-rtti; do
6654 # Do the check with the no- prefix removed since gcc silently
6655 # accepts any -Wno-* option on purpose
6656 case $real_option in
6657 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6658 *) option
=$real_option ;;
6660 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6663 $as_echo_n "checking whether $CC supports $option... " >&6; }
6664 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6665 $as_echo_n "(cached) " >&6
6668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6679 if ac_fn_c_try_compile
"$LINENO"; then :
6680 eval "$as_acx_Woption=yes"
6682 eval "$as_acx_Woption=no"
6684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6687 eval ac_res
=\$
$as_acx_Woption
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6689 $as_echo "$ac_res" >&6; }
6690 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6691 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6694 CFLAGS
="$save_CFLAGS"
6697 # Enable expensive internal checks
6699 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6703 # Check whether --enable-checking was given.
6704 if test "${enable_checking+set}" = set; then :
6705 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6708 # Determine the default checks.
6709 if test x
$is_release = x
; then
6710 ac_checking_flags
=yes
6712 ac_checking_flags
=release
6716 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6717 for check
in release
$ac_checking_flags
6720 # these set all the flags to specific states
6721 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6722 ac_fold_checking
= ; ac_gc_checking
=1 ;
6723 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6724 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6725 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6726 ac_types_checking
=1 ;;
6727 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6728 ac_fold_checking
= ; ac_gc_checking
= ;
6729 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6730 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6731 ac_tree_checking
= ; ac_valgrind_checking
= ;
6732 ac_types_checking
= ;;
6733 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6734 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6735 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6736 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6737 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6738 ac_types_checking
=1 ;;
6739 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6740 ac_fold_checking
= ; ac_gc_checking
= ;
6741 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6742 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6743 ac_tree_checking
= ; ac_valgrind_checking
= ;
6744 ac_types_checking
= ;;
6745 # these enable particular checks
6746 assert
) ac_assert_checking
=1 ;;
6747 df
) ac_df_checking
=1 ;;
6748 fold) ac_fold_checking
=1 ;;
6749 gc
) ac_gc_checking
=1 ;;
6750 gcac
) ac_gc_always_collect
=1 ;;
6751 gimple
) ac_gimple_checking
=1 ;;
6752 misc
) ac_checking
=1 ;;
6753 rtl
) ac_rtl_checking
=1 ;;
6754 rtlflag
) ac_rtlflag_checking
=1 ;;
6755 runtime
) ac_runtime_checking
=1 ;;
6756 tree
) ac_tree_checking
=1 ;;
6757 types
) ac_types_checking
=1 ;;
6758 valgrind
) ac_valgrind_checking
=1 ;;
6759 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6765 if test x
$ac_checking != x
; then
6767 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6769 nocommon_flag
=-fno-common
6772 if test x
$ac_df_checking != x
; then
6774 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6777 if test x
$ac_assert_checking != x
; then
6779 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6782 if test x
$ac_gimple_checking != x
; then
6784 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6788 if test x
$ac_runtime_checking != x
; then
6790 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6793 if test x
$ac_tree_checking != x
; then
6795 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6797 TREEBROWSER
=tree-browser.o
6799 if test x
$ac_types_checking != x
; then
6801 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6805 if test x
$ac_rtl_checking != x
; then
6807 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6810 if test x
$ac_rtlflag_checking != x
; then
6812 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6815 if test x
$ac_gc_checking != x
; then
6817 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6820 if test x
$ac_gc_always_collect != x
; then
6822 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6825 if test x
$ac_fold_checking != x
; then
6827 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6830 valgrind_path_defines
=
6833 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6834 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6842 if test x
$ac_valgrind_checking != x
; then
6843 # It is certainly possible that there's valgrind but no valgrind.h.
6844 # GCC relies on making annotations so we must have both.
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6846 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 #include <valgrind/memcheck.h>
6850 #ifndef VALGRIND_DISCARD
6851 #error VALGRIND_DISCARD not defined
6854 if ac_fn_c_try_cpp
"$LINENO"; then :
6855 gcc_cv_header_valgrind_memcheck_h
=yes
6857 gcc_cv_header_valgrind_memcheck_h
=no
6859 rm -f conftest.err conftest.
$ac_ext
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6861 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6863 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #include <memcheck.h>
6867 #ifndef VALGRIND_DISCARD
6868 #error VALGRIND_DISCARD not defined
6871 if ac_fn_c_try_cpp
"$LINENO"; then :
6872 gcc_cv_header_memcheck_h
=yes
6874 gcc_cv_header_memcheck_h
=no
6876 rm -f conftest.err conftest.
$ac_ext
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6878 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6880 # Prepare PATH_SEPARATOR.
6881 # The user is always right.
6882 if test "${PATH_SEPARATOR+set}" != set; then
6883 echo "#! /bin/sh" >conf$$.sh
6884 echo "exit 0" >>conf$$.sh
6886 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6894 # Find out how to test for executable files. Don't use a zero-byte file,
6895 # as systems may use methods other than mode bits to determine executability.
6896 cat >conf$$.
file <<_ASEOF
6900 chmod +x conf$$.
file
6901 if test -x conf$$.
file >/dev
/null
2>&1; then
6902 ac_executable_p
="test -x"
6904 ac_executable_p
="test -f"
6908 # Extract the first word of "valgrind", so it can be a program name with args.
6909 set dummy valgrind
; ac_word
=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6913 $as_echo_n "(cached) " >&6
6915 case "$valgrind_path" in
6917 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6920 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6921 for ac_dir
in $PATH; do
6923 test -z "$ac_dir" && ac_dir
=.
6924 for ac_exec_ext
in '' $ac_executable_extensions; do
6925 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6926 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6927 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6937 valgrind_path
="$ac_cv_path_valgrind_path"
6938 if test -n "$valgrind_path"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6940 $as_echo "$valgrind_path" >&6; }
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 if test "x$valgrind_path" = "x" \
6947 ||
(test $have_valgrind_h = no \
6948 && test $gcc_cv_header_memcheck_h = no \
6949 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6950 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6952 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6953 valgrind_command
="$valgrind_path -q"
6955 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6957 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6959 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6962 if test $gcc_cv_header_memcheck_h = yes; then
6964 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6971 # Enable code coverage collection
6972 # Check whether --enable-coverage was given.
6973 if test "${enable_coverage+set}" = set; then :
6974 enableval
=$enable_coverage; case "${enableval}" in
6976 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6979 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6982 # a.k.a. --disable-coverage
6986 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6995 # Check whether --enable-gather-detailed-mem-stats was given.
6996 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6997 enableval
=$enable_gather_detailed_mem_stats;
6999 enable_gather_detailed_mem_stats
=no
7002 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7004 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
7008 # -------------------------------
7009 # Miscenalleous configure options
7010 # -------------------------------
7012 # See if we are building gcc with C++.
7013 # Check whether --enable-build-with-cxx was given.
7014 if test "${enable_build_with_cxx+set}" = set; then :
7015 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
7017 ENABLE_BUILD_WITH_CXX
=no
7021 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7023 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7029 # Check whether --with-stabs was given.
7030 if test "${with_stabs+set}" = set; then :
7031 withval
=$with_stabs; stabs
="$with_stabs"
7037 # Determine whether or not multilibs are enabled.
7038 # Check whether --enable-multilib was given.
7039 if test "${enable_multilib+set}" = set; then :
7040 enableval
=$enable_multilib;
7047 # Enable __cxa_atexit for C++.
7048 # Check whether --enable-__cxa_atexit was given.
7049 if test "${enable___cxa_atexit+set}" = set; then :
7050 enableval
=$enable___cxa_atexit;
7054 # Enable C extension for decimal float if target supports it.
7056 # Check whether --enable-decimal-float was given.
7057 if test "${enable_decimal_float+set}" = set; then :
7058 enableval
=$enable_decimal_float;
7059 case $enable_decimal_float in
7060 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7061 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7062 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7068 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7069 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7071 enable_decimal_float
=yes
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7075 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7076 enable_decimal_float
=no
7083 # x86's use BID format instead of DPD
7084 case x
$enable_decimal_float in
7087 i?
86*-*-* | x86_64
*-*-*)
7088 enable_decimal_float
=bid
7091 enable_decimal_float
=dpd
7094 default_decimal_float
=$enable_decimal_float
7097 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7098 # dependency on libdecnumber.
7099 default_decimal_float
=dpd
7106 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7108 cat >>confdefs.h
<<_ACEOF
7109 #define ENABLE_DECIMAL_FLOAT $dfp
7113 # Use default_decimal_float for dependency.
7114 enable_decimal_float
=$default_decimal_float
7116 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7118 cat >>confdefs.h
<<_ACEOF
7119 #define ENABLE_DECIMAL_BID_FORMAT $bid
7123 # Enable C extension for fixed-point arithmetic.
7124 # Check whether --enable-fixed-point was given.
7125 if test "${enable_fixed_point+set}" = set; then :
7126 enableval
=$enable_fixed_point;
7131 enable_fixed_point
=yes
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7138 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7139 enable_fixed_point
=no
7142 enable_fixed_point
=yes
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7148 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7149 enable_fixed_point
=no
7157 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7159 cat >>confdefs.h
<<_ACEOF
7160 #define ENABLE_FIXED_POINT $fixedpoint
7165 # Pass with no value to take the default
7166 # Pass with a value to specify a thread package
7167 # Check whether --enable-threads was given.
7168 if test "${enable_threads+set}" = set; then :
7169 enableval
=$enable_threads;
7175 # Check whether --enable-tls was given.
7176 if test "${enable_tls+set}" = set; then :
7177 enableval
=$enable_tls;
7180 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7181 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7189 # Check whether --enable-objc-gc was given.
7190 if test "${enable_objc_gc+set}" = set; then :
7191 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7202 # Check whether --with-dwarf2 was given.
7203 if test "${with_dwarf2+set}" = set; then :
7204 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7210 # Check whether --enable-shared was given.
7211 if test "${enable_shared+set}" = set; then :
7212 enableval
=$enable_shared;
7213 case $enable_shared in
7217 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7218 for pkg
in $enableval; do
7219 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7234 # Check whether --with-native-system-header-dir was given.
7235 if test "${with_native_system_header_dir+set}" = set; then :
7236 withval
=$with_native_system_header_dir;
7237 case ${with_native_system_header_dir} in
7238 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7239 /* |
[A-Za-z
]:[\\/]*) ;;
7240 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7242 configured_native_system_header_dir
="${withval}"
7245 configured_native_system_header_dir
=
7250 # Check whether --with-build-sysroot was given.
7251 if test "${with_build_sysroot+set}" = set; then :
7252 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7253 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7256 SYSROOT_CFLAGS_FOR_TARGET
=
7262 # Check whether --with-sysroot was given.
7263 if test "${with_sysroot+set}" = set; then :
7264 withval
=$with_sysroot;
7265 case ${with_sysroot} in
7266 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7267 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7270 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7271 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7273 if test "x$prefix" = xNONE
; then
7274 test_prefix
=/usr
/local
7278 if test "x$exec_prefix" = xNONE
; then
7279 test_exec_prefix
=$test_prefix
7281 test_exec_prefix
=$exec_prefix
7283 case ${TARGET_SYSTEM_ROOT} in
7284 "${test_prefix}"|
"${test_prefix}/"*|\
7285 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7286 '${prefix}'|
'${prefix}/'*|\
7287 '${exec_prefix}'|
'${exec_prefix}/'*)
7288 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7289 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7296 TARGET_SYSTEM_ROOT_DEFINE
=
7297 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7306 # Check whether --with-specs was given.
7307 if test "${with_specs+set}" = set; then :
7308 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7318 # Check whether --with-pkgversion was given.
7319 if test "${with_pkgversion+set}" = set; then :
7320 withval
=$with_pkgversion; case "$withval" in
7321 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7323 *) PKGVERSION
="($withval) " ;;
7334 # Check whether --with-bugurl was given.
7335 if test "${with_bugurl+set}" = set; then :
7336 withval
=$with_bugurl; case "$withval" in
7337 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7340 *) BUGURL
="$withval"
7344 BUGURL
="http://gcc.gnu.org/bugs.html"
7354 REPORT_BUGS_TO
="<$BUGURL>"
7355 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7362 # Sanity check enable_languages in case someone does not run the toplevel
7363 # configure # script.
7364 # Check whether --enable-languages was given.
7365 if test "${enable_languages+set}" = set; then :
7366 enableval
=$enable_languages; case ,${enable_languages}, in
7368 # go safe -- we cannot be much sure without the toplevel
7370 # analysis of which target libs are present and usable
7374 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7379 enable_languages
=c
,${enable_languages}
7388 # Check whether --with-multilib-list was given.
7389 if test "${with_multilib_list+set}" = set; then :
7390 withval
=$with_multilib_list; :
7392 with_multilib_list
=default
7396 # -------------------------
7397 # Checks for other programs
7398 # -------------------------
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7401 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7403 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7404 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7405 $as_echo_n "(cached) " >&6
7407 cat >conftest.
make <<\_ACEOF
7410 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7412 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7413 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7415 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7417 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7421 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7423 $as_echo "yes" >&6; }
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 SET_MAKE
="MAKE=${MAKE-make}"
7432 # Find some useful tools
7433 for ac_prog
in gawk mawk nawk
awk
7435 # Extract the first word of "$ac_prog", so it can be a program name with args.
7436 set dummy
$ac_prog; ac_word
=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if test "${ac_cv_prog_AWK+set}" = set; then :
7440 $as_echo_n "(cached) " >&6
7442 if test -n "$AWK"; then
7443 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir
=.
7450 for ac_exec_ext
in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_prog_AWK
="$ac_prog"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 if test -n "$AWK"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7465 $as_echo "$AWK" >&6; }
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7472 test -n "$AWK" && break
7475 # We need awk to create options.c and options.h.
7476 # Bail out if it's missing.
7478 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7482 $as_echo_n "checking whether ln -s works... " >&6; }
7483 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7484 $as_echo_n "(cached) " >&6
7486 rm -f conftestdata_t
7487 echo >conftestdata_f
7488 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7490 gcc_cv_prog_LN_S
="ln -s"
7492 if ln conftestdata_f conftestdata_t
2>/dev
/null
7496 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7498 gcc_cv_prog_LN_S
="cp -p"
7504 rm -f conftestdata_f conftestdata_t
7507 LN_S
="$gcc_cv_prog_LN_S"
7508 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7510 $as_echo "yes" >&6; }
7512 if test "$gcc_cv_prog_LN_S" = "ln"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7514 $as_echo "no, using ln" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7517 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7522 $as_echo_n "checking whether ln works... " >&6; }
7523 if test "${acx_cv_prog_LN+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7526 rm -f conftestdata_t
7527 echo >conftestdata_f
7528 if ln conftestdata_f conftestdata_t
2>/dev
/null
7534 rm -f conftestdata_f conftestdata_t
7537 if test $acx_cv_prog_LN = no
; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7540 $as_echo "no, using $LN" >&6; }
7542 LN
="$acx_cv_prog_LN"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7544 $as_echo "yes" >&6; }
7547 if test -n "$ac_tool_prefix"; then
7548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7549 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7555 if test -n "$RANLIB"; then
7556 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir
=.
7563 for ac_exec_ext
in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 RANLIB
=$ac_cv_prog_RANLIB
7576 if test -n "$RANLIB"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7578 $as_echo "$RANLIB" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7586 if test -z "$ac_cv_prog_RANLIB"; then
7587 ac_ct_RANLIB
=$RANLIB
7588 # Extract the first word of "ranlib", so it can be a program name with args.
7589 set dummy ranlib
; ac_word
=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7593 $as_echo_n "(cached) " >&6
7595 if test -n "$ac_ct_RANLIB"; then
7596 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir
=.
7603 for ac_exec_ext
in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7616 if test -n "$ac_ct_RANLIB"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7618 $as_echo "$ac_ct_RANLIB" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7624 if test "x$ac_ct_RANLIB" = x
; then
7627 case $cross_compiling:$ac_tool_warned in
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631 ac_tool_warned
=yes ;;
7633 RANLIB
=$ac_ct_RANLIB
7636 RANLIB
="$ac_cv_prog_RANLIB"
7642 # Find a good install program. We prefer a C program (faster),
7643 # so one script is as good as another. But avoid the broken or
7644 # incompatible versions:
7645 # SysV /etc/install, /usr/sbin/install
7646 # SunOS /usr/etc/install
7647 # IRIX /sbin/install
7649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7651 # ./install, which can be erroneously created by make from ./install.sh.
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7653 $as_echo_n "checking for a BSD compatible install... " >&6; }
7654 if test -z "$INSTALL"; then
7655 if test "${ac_cv_path_install+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7658 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7659 for ac_dir
in $PATH; do
7660 # Account for people who put trailing slashes in PATH elements.
7662 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7664 # OSF1 and SCO ODT 3.0 have their own names for install.
7665 for ac_prog
in ginstall scoinst
install; do
7666 if test -f $ac_dir/$ac_prog; then
7667 if test $ac_prog = install &&
7668 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7669 # AIX install. It has an incompatible calling convention.
7670 # OSF/1 installbsd also uses dspmsg, but is usable.
7673 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7684 if test "${ac_cv_path_install+set}" = set; then
7685 INSTALL
="$ac_cv_path_install"
7687 # As a last resort, use the slow shell script. We don't cache a
7688 # path for INSTALL within a source directory, because that will
7689 # break other packages using the cache if that directory is
7690 # removed, or if the path is relative.
7691 INSTALL
="$ac_install_sh"
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7695 $as_echo "$INSTALL" >&6; }
7697 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7698 # It thinks the first close brace ends the variable substitution.
7699 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7701 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7704 # See if cmp has --ignore-initial.
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7706 $as_echo_n "checking for cmp's capabilities... " >&6; }
7707 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7708 $as_echo_n "(cached) " >&6
7712 gcc_cv_prog_cmp_skip
=slowcompare
7713 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7714 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7717 gcc_cv_prog_cmp_skip
=gnucompare
7720 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7721 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7722 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7725 gcc_cv_prog_cmp_skip
=fastcompare
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7733 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7734 make_compare_target
=$gcc_cv_prog_cmp_skip
7738 # See if we have the mktemp command.
7739 # Extract the first word of "mktemp", so it can be a program name with args.
7740 set dummy mktemp
; ac_word
=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7744 $as_echo_n "(cached) " >&6
7746 if test -n "$have_mktemp_command"; then
7747 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7753 test -z "$as_dir" && as_dir
=.
7754 for ac_exec_ext
in '' $ac_executable_extensions; do
7755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7756 ac_cv_prog_have_mktemp_command
="yes"
7757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7767 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7768 if test -n "$have_mktemp_command"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7770 $as_echo "$have_mktemp_command" >&6; }
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7778 # See if makeinfo has been installed and is modern enough
7779 # that we can use it.
7781 # Extract the first word of "makeinfo", so it can be a program name with args.
7782 set dummy makeinfo
; ac_word
=$2
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7788 if test -n "$MAKEINFO"; then
7789 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7795 test -z "$as_dir" && as_dir
=.
7796 for ac_exec_ext
in '' $ac_executable_extensions; do
7797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798 ac_cv_prog_MAKEINFO
="makeinfo"
7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 MAKEINFO
=$ac_cv_prog_MAKEINFO
7809 if test -n "$MAKEINFO"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7811 $as_echo "$MAKEINFO" >&6; }
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7818 if test -n "$MAKEINFO"; then
7819 # Found it, now check the version.
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7821 $as_echo_n "checking for modern makeinfo... " >&6; }
7822 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7823 $as_echo_n "(cached) " >&6
7825 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7826 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7828 case $ac_prog_version in
7829 '') gcc_cv_prog_makeinfo_modern
=no
;;
7830 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7831 *) gcc_cv_prog_makeinfo_modern
=no
;;
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7836 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7838 gcc_cv_prog_makeinfo_modern
=no
7840 if test $gcc_cv_prog_makeinfo_modern = no
; then
7841 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7844 if test $gcc_cv_prog_makeinfo_modern = no
; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7846 *** Makeinfo is missing or too old.
7847 *** Info documentation will not be built." >&5
7848 $as_echo "$as_me: WARNING:
7849 *** Makeinfo is missing or too old.
7850 *** Info documentation will not be built." >&2;}
7857 # Is pod2man recent enough to regenerate manpages?
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7859 $as_echo_n "checking for recent Pod::Man... " >&6; }
7860 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7862 $as_echo "yes" >&6; }
7863 GENERATED_MANPAGES
=generated-manpages
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7871 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7876 # Extract the first word of "$ac_prog", so it can be a program name with args.
7877 set dummy
$ac_prog; ac_word
=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if test "${ac_cv_prog_FLEX+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7883 if test -n "$FLEX"; then
7884 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7890 test -z "$as_dir" && as_dir
=.
7891 for ac_exec_ext
in '' $ac_executable_extensions; do
7892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7893 ac_cv_prog_FLEX
="$ac_prog"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 FLEX
=$ac_cv_prog_FLEX
7904 if test -n "$FLEX"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7906 $as_echo "$FLEX" >&6; }
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7913 test -n "$FLEX" && break
7915 test -n "$FLEX" || FLEX
="$MISSING flex"
7919 for ac_prog
in bison
7921 # Extract the first word of "$ac_prog", so it can be a program name with args.
7922 set dummy
$ac_prog; ac_word
=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if test "${ac_cv_prog_BISON+set}" = set; then :
7926 $as_echo_n "(cached) " >&6
7928 if test -n "$BISON"; then
7929 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7935 test -z "$as_dir" && as_dir
=.
7936 for ac_exec_ext
in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_prog_BISON
="$ac_prog"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 BISON
=$ac_cv_prog_BISON
7949 if test -n "$BISON"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7951 $as_echo "$BISON" >&6; }
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7958 test -n "$BISON" && break
7960 test -n "$BISON" || BISON
="$MISSING bison"
7963 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7964 # check for build == host before using them.
7967 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7968 && test -d ..
/binutils
; then
7969 NM
='${objdir}/../binutils/nm-new'
7971 # Extract the first word of "nm", so it can be a program name with args.
7972 set dummy nm
; ac_word
=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if test "${ac_cv_prog_NM+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7978 if test -n "$NM"; then
7979 ac_cv_prog_NM
="$NM" # Let the user override the test.
7981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7985 test -z "$as_dir" && as_dir
=.
7986 for ac_exec_ext
in '' $ac_executable_extensions; do
7987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8000 if test -n "$NM"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8002 $as_echo "$NM" >&6; }
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8012 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8013 && test -d ..
/binutils
; then
8014 AR
='${objdir}/../binutils/ar'
8016 # Extract the first word of "ar", so it can be a program name with args.
8017 set dummy
ar; ac_word
=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if test "${ac_cv_prog_AR+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
8023 if test -n "$AR"; then
8024 ac_cv_prog_AR
="$AR" # Let the user override the test.
8026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8030 test -z "$as_dir" && as_dir
=.
8031 for ac_exec_ext
in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8045 if test -n "$AR"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8047 $as_echo "$AR" >&6; }
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8057 # --------------------
8058 # Checks for C headers
8059 # --------------------
8061 # Need to reject headers which give warnings, so that the -Werror bootstrap
8062 # works later. *sigh* This needs to come before all header checks.
8064 ac_c_preproc_warn_flag
=yes
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8067 $as_echo_n "checking for ANSI C header files... " >&6; }
8068 if test "${ac_cv_header_stdc+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8086 if ac_fn_c_try_compile
"$LINENO"; then :
8087 ac_cv_header_stdc
=yes
8089 ac_cv_header_stdc
=no
8091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8093 if test $ac_cv_header_stdc = yes; then
8094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8101 $EGREP "memchr" >/dev
/null
2>&1; then :
8104 ac_cv_header_stdc
=no
8110 if test $ac_cv_header_stdc = yes; then
8111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8118 $EGREP "free" >/dev
/null
2>&1; then :
8121 ac_cv_header_stdc
=no
8127 if test $ac_cv_header_stdc = yes; then
8128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8129 if test "$cross_compiling" = yes; then :
8132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8136 #if ((' ' & 0x0FF) == 0x020)
8137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8140 # define ISLOWER(c) \
8141 (('a' <= (c) && (c) <= 'i') \
8142 || ('j' <= (c) && (c) <= 'r') \
8143 || ('s' <= (c) && (c) <= 'z'))
8144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8152 for (i = 0; i < 256; i++)
8153 if (XOR (islower (i), ISLOWER (i))
8154 || toupper (i) != TOUPPER (i))
8159 if ac_fn_c_try_run
"$LINENO"; then :
8162 ac_cv_header_stdc
=no
8164 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8165 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8171 $as_echo "$ac_cv_header_stdc" >&6; }
8172 if test $ac_cv_header_stdc = yes; then
8174 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8179 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8180 if test "${ac_cv_header_time+set}" = set; then :
8181 $as_echo_n "(cached) " >&6
8183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 #include <sys/types.h>
8186 #include <sys/time.h>
8192 if ((struct tm *) 0)
8198 if ac_fn_c_try_compile
"$LINENO"; then :
8199 ac_cv_header_time
=yes
8201 ac_cv_header_time
=no
8203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8206 $as_echo "$ac_cv_header_time" >&6; }
8207 if test $ac_cv_header_time = yes; then
8209 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8214 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8215 if test "${gcc_cv_header_string+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8221 #include <strings.h>
8230 if ac_fn_c_try_compile
"$LINENO"; then :
8231 gcc_cv_header_string
=yes
8233 gcc_cv_header_string
=no
8235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8238 $as_echo "$gcc_cv_header_string" >&6; }
8239 if test $gcc_cv_header_string = yes; then
8241 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8246 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8247 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 #include <sys/types.h>
8253 #include <sys/wait.h>
8255 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8258 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8266 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8271 if ac_fn_c_try_compile
"$LINENO"; then :
8272 ac_cv_header_sys_wait_h
=yes
8274 ac_cv_header_sys_wait_h
=no
8276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8279 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8280 if test $ac_cv_header_sys_wait_h = yes; then
8282 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8286 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8287 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8288 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8289 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8291 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8292 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8293 eval as_val
=\$
$as_ac_Header
8294 if test "x$as_val" = x
""yes; then :
8295 cat >>confdefs.h
<<_ACEOF
8296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8303 # Check for thread headers.
8304 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8305 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8311 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8312 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8319 # These tests can't be done till we know if we have limits.h.
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8321 $as_echo_n "checking for CHAR_BIT... " >&6; }
8322 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 #ifdef HAVE_LIMITS_H
8334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8335 $EGREP "found" >/dev
/null
2>&1; then :
8336 gcc_cv_decl_char_bit
=yes
8338 gcc_cv_decl_char_bit
=no
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8345 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8346 if test $gcc_cv_decl_char_bit = no
; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8348 $as_echo_n "checking number of bits in a byte... " >&6; }
8349 if test "${gcc_cv_c_nbby+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8354 while test $i -lt 65; do
8355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8362 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8363 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8369 if ac_fn_c_try_compile
"$LINENO"; then :
8370 gcc_cv_c_nbby
=$i; break
8372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8375 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8379 $as_echo "$gcc_cv_c_nbby" >&6; }
8380 if test $gcc_cv_c_nbby = failed
; then
8381 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8384 cat >>confdefs.h
<<_ACEOF
8385 #define CHAR_BIT $gcc_cv_c_nbby
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8391 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8392 if test "${ac_cv_c_bigendian+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8395 ac_cv_c_bigendian
=unknown
8396 # See if we're dealing with a universal compiler.
8397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #ifndef __APPLE_CC__
8400 not a universal capable compiler
8405 if ac_fn_c_try_compile
"$LINENO"; then :
8407 # Check for potential -arch flags. It is not universal unless
8408 # there are at least two -arch flags with different values.
8411 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8412 if test -n "$ac_prev"; then
8414 i?
86 | x86_64 | ppc | ppc64
)
8415 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8418 ac_cv_c_bigendian
=universal
8424 elif test "x$ac_word" = "x-arch"; then
8429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8430 if test $ac_cv_c_bigendian = unknown
; then
8431 # See if sys/param.h defines the BYTE_ORDER macro.
8432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434 #include <sys/types.h>
8435 #include <sys/param.h>
8440 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8441 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8450 if ac_fn_c_try_compile
"$LINENO"; then :
8451 # It does; now see whether it defined to BIG_ENDIAN or not.
8452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 #include <sys/types.h>
8455 #include <sys/param.h>
8460 #if BYTE_ORDER != BIG_ENDIAN
8468 if ac_fn_c_try_compile
"$LINENO"; then :
8469 ac_cv_c_bigendian
=yes
8471 ac_cv_c_bigendian
=no
8473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8477 if test $ac_cv_c_bigendian = unknown
; then
8478 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8486 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8494 if ac_fn_c_try_compile
"$LINENO"; then :
8495 # It does; now see whether it defined to _BIG_ENDIAN or not.
8496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8511 if ac_fn_c_try_compile
"$LINENO"; then :
8512 ac_cv_c_bigendian
=yes
8514 ac_cv_c_bigendian
=no
8516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8520 if test $ac_cv_c_bigendian = unknown
; then
8521 # Compile a test program.
8522 if test "$cross_compiling" = yes; then :
8523 # Try to guess by grepping values from an object file.
8524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 short int ascii_mm[] =
8527 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8528 short int ascii_ii[] =
8529 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8530 int use_ascii (int i) {
8531 return ascii_mm[i] + ascii_ii[i];
8533 short int ebcdic_ii[] =
8534 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8535 short int ebcdic_mm[] =
8536 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8537 int use_ebcdic (int i) {
8538 return ebcdic_mm[i] + ebcdic_ii[i];
8545 return use_ascii (foo) == use_ebcdic (foo);
8550 if ac_fn_c_try_compile
"$LINENO"; then :
8551 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8552 ac_cv_c_bigendian
=yes
8554 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8555 if test "$ac_cv_c_bigendian" = unknown
; then
8556 ac_cv_c_bigendian
=no
8558 # finding both strings is unlikely to happen, but who knows?
8559 ac_cv_c_bigendian
=unknown
8563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567 $ac_includes_default
8572 /* Are we little or big endian? From Harbison&Steele. */
8576 char c[sizeof (long int)];
8579 return u.c[sizeof (long int) - 1] == 1;
8585 if ac_fn_c_try_run
"$LINENO"; then :
8586 ac_cv_c_bigendian
=no
8588 ac_cv_c_bigendian
=yes
8590 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8591 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8597 $as_echo "$ac_cv_c_bigendian" >&6; }
8598 case $ac_cv_c_bigendian in #(
8600 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8606 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8610 as_fn_error
"unknown endianness
8611 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8615 # ----------------------
8616 # Checks for C++ headers
8617 # ----------------------
8620 ac_cpp
='$CXXCPP $CPPFLAGS'
8621 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8625 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8626 if test -z "$CXXCPP"; then
8627 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8630 # Double quotes because CXXCPP needs to be expanded
8631 for CXXCPP
in "$CXX -E" "/lib/cpp"
8634 for ac_cxx_preproc_warn_flag
in '' yes
8636 # Use a header file that comes with gcc, so configuring glibc
8637 # with a fresh cross-compiler works.
8638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8639 # <limits.h> exists even on freestanding compilers.
8640 # On the NeXT, cc -E runs the code through the compiler's parser,
8641 # not just through cpp. "Syntax error" is here to catch this case.
8642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8645 # include <limits.h>
8647 # include <assert.h>
8651 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8654 # Broken: fails on valid input.
8657 rm -f conftest.err conftest.
$ac_ext
8659 # OK, works on sane cases. Now check whether nonexistent headers
8660 # can be detected and how.
8661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663 #include <ac_nonexistent.h>
8665 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8666 # Broken: success on invalid input.
8669 # Passes both tests.
8673 rm -f conftest.err conftest.
$ac_ext
8676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8677 rm -f conftest.err conftest.
$ac_ext
8678 if $ac_preproc_ok; then :
8683 ac_cv_prog_CXXCPP
=$CXXCPP
8686 CXXCPP
=$ac_cv_prog_CXXCPP
8688 ac_cv_prog_CXXCPP
=$CXXCPP
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8691 $as_echo "$CXXCPP" >&6; }
8693 for ac_cxx_preproc_warn_flag
in '' yes
8695 # Use a header file that comes with gcc, so configuring glibc
8696 # with a fresh cross-compiler works.
8697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8698 # <limits.h> exists even on freestanding compilers.
8699 # On the NeXT, cc -E runs the code through the compiler's parser,
8700 # not just through cpp. "Syntax error" is here to catch this case.
8701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8704 # include <limits.h>
8706 # include <assert.h>
8710 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8713 # Broken: fails on valid input.
8716 rm -f conftest.err conftest.
$ac_ext
8718 # OK, works on sane cases. Now check whether nonexistent headers
8719 # can be detected and how.
8720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 #include <ac_nonexistent.h>
8724 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8725 # Broken: success on invalid input.
8728 # Passes both tests.
8732 rm -f conftest.err conftest.
$ac_ext
8735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8736 rm -f conftest.err conftest.
$ac_ext
8737 if $ac_preproc_ok; then :
8740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8743 See \`config.log' for more details." >&5
8744 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8745 See \`config.log' for more details." >&2;}; }
8749 ac_cpp
='$CPP $CPPFLAGS'
8750 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8751 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8752 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8756 ac_cpp
='$CXXCPP $CPPFLAGS'
8757 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8758 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8759 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8764 for ac_header
in unordered_map
8766 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8767 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8768 cat >>confdefs.h
<<_ACEOF
8769 #define HAVE_UNORDERED_MAP 1
8775 for ac_header
in tr1/unordered_map
8777 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8778 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8779 cat >>confdefs.h
<<_ACEOF
8780 #define HAVE_TR1_UNORDERED_MAP 1
8786 for ac_header
in ext
/hash_map
8788 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8789 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8790 cat >>confdefs.h
<<_ACEOF
8791 #define HAVE_EXT_HASH_MAP 1
8799 ac_cpp
='$CPP $CPPFLAGS'
8800 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8801 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8802 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8810 # These libraries may be used by collect2.
8811 # We may need a special search path to get them linked.
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8813 $as_echo_n "checking for collect2 libraries... " >&6; }
8814 if test "${gcc_cv_collect2_libs+set}" = set; then :
8815 $as_echo_n "(cached) " >&6
8818 for libs
in '' -lld -lmld \
8819 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8820 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8826 /* Override any GCC internal prototype to avoid an error.
8827 Use char because int might match the return type of a GCC
8828 builtin and then its argument prototype would still apply. */
8841 if ac_fn_c_try_link
"$LINENO"; then :
8842 gcc_cv_collect2_libs
="$libs"; break
8844 rm -f core conftest.err conftest.
$ac_objext \
8845 conftest
$ac_exeext conftest.
$ac_ext
8848 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8851 $as_echo "$gcc_cv_collect2_libs" >&6; }
8852 case $gcc_cv_collect2_libs in
8854 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8858 # When building Ada code on Alpha, we need exc_resume which is usually in
8859 # -lexc. So test for it.
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8863 $as_echo_n "checking for library containing exc_resume... " >&6; }
8864 if test "${ac_cv_search_exc_resume+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8867 ac_func_search_save_LIBS
=$LIBS
8868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8871 /* Override any GCC internal prototype to avoid an error.
8872 Use char because int might match the return type of a GCC
8873 builtin and then its argument prototype would still apply. */
8881 return exc_resume ();
8886 for ac_lib
in '' exc
; do
8887 if test -z "$ac_lib"; then
8888 ac_res
="none required"
8891 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8893 if ac_fn_c_try_link
"$LINENO"; then :
8894 ac_cv_search_exc_resume
=$ac_res
8896 rm -f core conftest.err conftest.
$ac_objext \
8898 if test "${ac_cv_search_exc_resume+set}" = set; then :
8902 if test "${ac_cv_search_exc_resume+set}" = set; then :
8905 ac_cv_search_exc_resume
=no
8908 LIBS
=$ac_func_search_save_LIBS
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8911 $as_echo "$ac_cv_search_exc_resume" >&6; }
8912 ac_res
=$ac_cv_search_exc_resume
8913 if test "$ac_res" != no
; then :
8914 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8922 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8926 $as_echo_n "checking for library containing kstat_open... " >&6; }
8927 if test "${ac_cv_search_kstat_open+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8930 ac_func_search_save_LIBS
=$LIBS
8931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8944 return kstat_open ();
8949 for ac_lib
in '' kstat
; do
8950 if test -z "$ac_lib"; then
8951 ac_res
="none required"
8954 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8956 if ac_fn_c_try_link
"$LINENO"; then :
8957 ac_cv_search_kstat_open
=$ac_res
8959 rm -f core conftest.err conftest.
$ac_objext \
8961 if test "${ac_cv_search_kstat_open+set}" = set; then :
8965 if test "${ac_cv_search_kstat_open+set}" = set; then :
8968 ac_cv_search_kstat_open
=no
8971 LIBS
=$ac_func_search_save_LIBS
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8974 $as_echo "$ac_cv_search_kstat_open" >&6; }
8975 ac_res
=$ac_cv_search_kstat_open
8976 if test "$ac_res" != no
; then :
8977 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8981 EXTRA_GCC_LIBS
="$LIBS"
8985 # Some systems put ldexp and frexp in libm instead of libc; assume
8986 # they're both in the same place. jcf-dump needs them.
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8990 $as_echo_n "checking for library containing ldexp... " >&6; }
8991 if test "${ac_cv_search_ldexp+set}" = set; then :
8992 $as_echo_n "(cached) " >&6
8994 ac_func_search_save_LIBS
=$LIBS
8995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8998 /* Override any GCC internal prototype to avoid an error.
8999 Use char because int might match the return type of a GCC
9000 builtin and then its argument prototype would still apply. */
9013 for ac_lib
in '' m
; do
9014 if test -z "$ac_lib"; then
9015 ac_res
="none required"
9018 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9020 if ac_fn_c_try_link
"$LINENO"; then :
9021 ac_cv_search_ldexp
=$ac_res
9023 rm -f core conftest.err conftest.
$ac_objext \
9025 if test "${ac_cv_search_ldexp+set}" = set; then :
9029 if test "${ac_cv_search_ldexp+set}" = set; then :
9032 ac_cv_search_ldexp
=no
9035 LIBS
=$ac_func_search_save_LIBS
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9038 $as_echo "$ac_cv_search_ldexp" >&6; }
9039 ac_res
=$ac_cv_search_ldexp
9040 if test "$ac_res" != no
; then :
9041 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9049 # Use <inttypes.h> only if it exists,
9050 # doesn't clash with <sys/types.h>, and declares intmax_t.
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9052 $as_echo_n "checking for inttypes.h... " >&6; }
9053 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
9056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 #include <sys/types.h>
9059 #include <inttypes.h>
9068 if ac_fn_c_try_compile
"$LINENO"; then :
9069 gcc_cv_header_inttypes_h
=yes
9071 gcc_cv_header_inttypes_h
=no
9073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9077 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9078 if test $gcc_cv_header_inttypes_h = yes; then
9080 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9086 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9087 sysconf strsignal getrusage nl_langinfo \
9088 gettimeofday mbstowcs wcswidth mmap setlocale \
9089 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9091 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9092 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9093 eval as_val
=\$
$as_ac_var
9094 if test "x$as_val" = x
""yes; then :
9095 cat >>confdefs.h
<<_ACEOF
9096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9103 if test x
$ac_cv_func_mbstowcs = xyes
; then
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9105 $as_echo_n "checking whether mbstowcs works... " >&6; }
9106 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9107 $as_echo_n "(cached) " >&6
9109 if test "$cross_compiling" = yes; then :
9110 gcc_cv_func_mbstowcs_works
=yes
9112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9121 if ac_fn_c_try_run
"$LINENO"; then :
9122 gcc_cv_func_mbstowcs_works
=yes
9124 gcc_cv_func_mbstowcs_works
=no
9126 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9127 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9132 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9133 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9135 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9140 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9141 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9145 cat >>confdefs.h
<<_ACEOF
9151 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9152 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9156 cat >>confdefs.h
<<_ACEOF
9157 #define caddr_t char *
9164 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9165 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9166 gcc_header_sys_mman_h
=yes
9168 gcc_header_sys_mman_h
=no
9171 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9172 if test "x$ac_cv_func_mmap" = x
""yes; then :
9178 if test "$gcc_header_sys_mman_h" != yes \
9179 ||
test "$gcc_func_mmap" != yes; then
9180 gcc_cv_func_mmap_file
=no
9181 gcc_cv_func_mmap_dev_zero
=no
9182 gcc_cv_func_mmap_anon
=no
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9185 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9186 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9189 # Add a system to this blacklist if
9190 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9191 # memory area containing the same data that you'd get if you applied
9192 # read() to the same fd. The only system known to have a problem here
9193 # is VMS, where text files have record structure.
9196 gcc_cv_func_mmap_file
=no
;;
9198 gcc_cv_func_mmap_file
=yes;;
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9202 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9204 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9205 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9206 $as_echo_n "(cached) " >&6
9208 # Add a system to this blacklist if it has mmap() but /dev/zero
9209 # does not exist, or if mmapping /dev/zero does not give anonymous
9210 # zeroed pages with both the following properties:
9211 # 1. If you map N consecutive pages in with one call, and then
9212 # unmap any subset of those pages, the pages that were not
9213 # explicitly unmapped remain accessible.
9214 # 2. If you map two adjacent blocks of memory and then unmap them
9215 # both at once, they must both go away.
9216 # Systems known to be in this category are Windows (all variants),
9219 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9220 gcc_cv_func_mmap_dev_zero
=no
;;
9222 gcc_cv_func_mmap_dev_zero
=yes;;
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9226 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9228 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9230 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9231 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 #include <sys/types.h>
9237 #include <sys/mman.h>
9240 #ifndef MAP_ANONYMOUS
9241 #define MAP_ANONYMOUS MAP_ANON
9247 int n = MAP_ANONYMOUS;
9252 if ac_fn_c_try_compile
"$LINENO"; then :
9253 gcc_cv_decl_map_anon
=yes
9255 gcc_cv_decl_map_anon
=no
9257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9260 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9262 if test $gcc_cv_decl_map_anon = no
; then
9263 gcc_cv_func_mmap_anon
=no
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9266 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9267 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9270 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9271 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9272 # doesn't give anonymous zeroed pages with the same properties listed
9273 # above for use of /dev/zero.
9274 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9276 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9277 gcc_cv_func_mmap_anon
=no
;;
9279 gcc_cv_func_mmap_anon
=yes;;
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9283 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9287 if test $gcc_cv_func_mmap_file = yes; then
9289 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9292 if test $gcc_cv_func_mmap_dev_zero = yes; then
9294 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9297 if test $gcc_cv_func_mmap_anon = yes; then
9299 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9306 # Under VMS, vfork works very differently than on Unix. The standard test
9307 # won't work, and it isn't easily adaptable. It makes more sense to
9309 ac_cv_func_vfork_works
=yes
9312 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9313 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9317 cat >>confdefs.h
<<_ACEOF
9323 for ac_header
in vfork.h
9325 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9326 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9327 cat >>confdefs.h
<<_ACEOF
9328 #define HAVE_VFORK_H 1
9334 for ac_func
in fork vfork
9336 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9337 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9338 eval as_val
=\$
$as_ac_var
9339 if test "x$as_val" = x
""yes; then :
9340 cat >>confdefs.h
<<_ACEOF
9341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9347 if test "x$ac_cv_func_fork" = xyes
; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9349 $as_echo_n "checking for working fork... " >&6; }
9350 if test "${ac_cv_func_fork_works+set}" = set; then :
9351 $as_echo_n "(cached) " >&6
9353 if test "$cross_compiling" = yes; then :
9354 ac_cv_func_fork_works
=cross
9356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 $ac_includes_default
9363 /* By Ruediger Kuhlmann. */
9370 if ac_fn_c_try_run
"$LINENO"; then :
9371 ac_cv_func_fork_works
=yes
9373 ac_cv_func_fork_works
=no
9375 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9376 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9381 $as_echo "$ac_cv_func_fork_works" >&6; }
9384 ac_cv_func_fork_works
=$ac_cv_func_fork
9386 if test "x$ac_cv_func_fork_works" = xcross
; then
9388 *-*-amigaos* |
*-*-msdosdjgpp*)
9389 # Override, as these systems have only a dummy fork() stub
9390 ac_cv_func_fork_works
=no
9393 ac_cv_func_fork_works
=yes
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9397 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9399 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9400 if test "x$ac_cv_func_vfork" = xyes
; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9402 $as_echo_n "checking for working vfork... " >&6; }
9403 if test "${ac_cv_func_vfork_works+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9406 if test "$cross_compiling" = yes; then :
9407 ac_cv_func_vfork_works
=cross
9409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 /* Thanks to Paul Eggert for this test. */
9412 $ac_includes_default
9413 #include <sys/wait.h>
9417 /* On some sparc systems, changes by the child to local and incoming
9418 argument registers are propagated back to the parent. The compiler
9419 is told about this with #include <vfork.h>, but some compilers
9420 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9421 static variable whose address is put into a register that is
9422 clobbered by the vfork. */
9425 sparc_address_test (int arg)
9427 sparc_address_test (arg) int arg;
9448 pid_t parent = getpid ();
9451 sparc_address_test (0);
9456 /* Here is another test for sparc vfork register problems. This
9457 test uses lots of local variables, at least as many local
9458 variables as main has allocated so far including compiler
9459 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9460 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9461 reuse the register of parent for one of the local variables,
9462 since it will think that parent can't possibly be used any more
9463 in this routine. Assigning to the local variable will thus
9464 munge parent in the parent process. */
9466 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9467 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9468 /* Convince the compiler that p..p7 are live; otherwise, it might
9469 use the same hardware register for all 8 local variables. */
9470 if (p != p1 || p != p2 || p != p3 || p != p4
9471 || p != p5 || p != p6 || p != p7)
9474 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9475 from child file descriptors. If the child closes a descriptor
9476 before it execs or exits, this munges the parent's descriptor
9477 as well. Test for this by closing stdout in the child. */
9478 _exit(close(fileno(stdout)) != 0);
9483 while (wait(&status) != child)
9486 /* Was there some problem with vforking? */
9489 /* Did the child fail? (This shouldn't happen.) */
9492 /* Did the vfork/compiler bug occur? */
9493 || parent != getpid()
9495 /* Did the file descriptor bug occur? */
9496 || fstat(fileno(stdout), &st) != 0
9501 if ac_fn_c_try_run
"$LINENO"; then :
9502 ac_cv_func_vfork_works
=yes
9504 ac_cv_func_vfork_works
=no
9506 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9507 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9512 $as_echo "$ac_cv_func_vfork_works" >&6; }
9515 if test "x$ac_cv_func_fork_works" = xcross
; then
9516 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9518 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9521 if test "x$ac_cv_func_vfork_works" = xyes
; then
9523 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9527 $as_echo "#define vfork fork" >>confdefs.h
9530 if test "x$ac_cv_func_fork_works" = xyes
; then
9532 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9537 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9538 # iconv() prototype.
9540 if test "X$prefix" = "XNONE"; then
9541 acl_final_prefix
="$ac_default_prefix"
9543 acl_final_prefix
="$prefix"
9545 if test "X$exec_prefix" = "XNONE"; then
9546 acl_final_exec_prefix
='${prefix}'
9548 acl_final_exec_prefix
="$exec_prefix"
9550 acl_save_prefix
="$prefix"
9551 prefix
="$acl_final_prefix"
9552 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9553 prefix
="$acl_save_prefix"
9556 # Check whether --with-gnu-ld was given.
9557 if test "${with_gnu_ld+set}" = set; then :
9558 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9563 # Prepare PATH_SEPARATOR.
9564 # The user is always right.
9565 if test "${PATH_SEPARATOR+set}" != set; then
9566 echo "#! /bin/sh" >conf$$.sh
9567 echo "exit 0" >>conf$$.sh
9569 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9577 if test "$GCC" = yes; then
9578 # Check if gcc -print-prog-name=ld gives a path.
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9580 $as_echo_n "checking for ld used by GCC... " >&6; }
9583 # gcc leaves a trailing carriage return which upsets mingw
9584 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9586 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9589 # Accept absolute paths.
9590 [\\/]* |
[A-Za-z
]:[\\/]*)
9591 re_direlt
='/[^/][^/]*/\.\./'
9592 # Canonicalize the path of ld
9593 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9594 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9595 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9597 test -z "$LD" && LD
="$ac_prog"
9600 # If it fails, then pretend we aren't using GCC.
9604 # If it is relative, then search for the first ld in PATH.
9608 elif test "$with_gnu_ld" = yes; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9610 $as_echo_n "checking for GNU ld... " >&6; }
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9613 $as_echo_n "checking for non-GNU ld... " >&6; }
9615 if test "${acl_cv_path_LD+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
9618 if test -z "$LD"; then
9619 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9620 for ac_dir
in $PATH; do
9621 test -z "$ac_dir" && ac_dir
=.
9622 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9623 acl_cv_path_LD
="$ac_dir/$ac_prog"
9624 # Check to see if the program is GNU ld. I'd rather use --version,
9625 # but apparently some GNU ld's only accept -v.
9626 # Break only if it was the GNU/non-GNU ld that we prefer.
9627 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9628 test "$with_gnu_ld" != no
&& break
9630 test "$with_gnu_ld" != yes && break
9636 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9640 LD
="$acl_cv_path_LD"
9641 if test -n "$LD"; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9643 $as_echo "$LD" >&6; }
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 $as_echo "no" >&6; }
9648 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9650 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9651 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9652 $as_echo_n "(cached) " >&6
9654 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9655 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9656 acl_cv_prog_gnu_ld
=yes
9658 acl_cv_prog_gnu_ld
=no
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9662 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9663 with_gnu_ld
=$acl_cv_prog_gnu_ld
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9668 $as_echo_n "checking for shared library run path origin... " >&6; }
9669 if test "${acl_cv_rpath+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9673 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9674 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9681 $as_echo "$acl_cv_rpath" >&6; }
9683 libext
="$acl_cv_libext"
9684 shlibext
="$acl_cv_shlibext"
9685 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9686 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9687 hardcode_direct
="$acl_cv_hardcode_direct"
9688 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9689 # Check whether --enable-rpath was given.
9690 if test "${enable_rpath+set}" = set; then :
9691 enableval
=$enable_rpath; :
9705 acl_save_prefix
="$prefix"
9706 prefix
="$acl_final_prefix"
9707 acl_save_exec_prefix
="$exec_prefix"
9708 exec_prefix
="$acl_final_exec_prefix"
9710 eval additional_includedir
=\"$includedir\"
9711 eval additional_libdir
=\"$libdir\"
9713 exec_prefix
="$acl_save_exec_prefix"
9714 prefix
="$acl_save_prefix"
9717 # Check whether --with-libiconv-prefix was given.
9718 if test "${with_libiconv_prefix+set}" = set; then :
9719 withval
=$with_libiconv_prefix;
9720 if test "X$withval" = "Xno"; then
9723 if test "X$withval" = "X"; then
9725 acl_save_prefix
="$prefix"
9726 prefix
="$acl_final_prefix"
9727 acl_save_exec_prefix
="$exec_prefix"
9728 exec_prefix
="$acl_final_exec_prefix"
9730 eval additional_includedir
=\"$includedir\"
9731 eval additional_libdir
=\"$libdir\"
9733 exec_prefix
="$acl_save_exec_prefix"
9734 prefix
="$acl_save_prefix"
9737 additional_includedir
="$withval/include"
9738 additional_libdir
="$withval/lib"
9749 names_already_handled
=
9750 names_next_round
='iconv '
9751 while test -n "$names_next_round"; do
9752 names_this_round
="$names_next_round"
9754 for name
in $names_this_round; do
9756 for n
in $names_already_handled; do
9757 if test "$n" = "$name"; then
9762 if test -z "$already_handled"; then
9763 names_already_handled
="$names_already_handled $name"
9764 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9765 eval value
=\"\
$HAVE_LIB$uppername\"
9766 if test -n "$value"; then
9767 if test "$value" = yes; then
9768 eval value
=\"\
$LIB$uppername\"
9769 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9770 eval value
=\"\
$LTLIB$uppername\"
9771 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9780 if test $use_additional = yes; then
9781 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9782 found_dir
="$additional_libdir"
9783 found_so
="$additional_libdir/lib$name.$shlibext"
9784 if test -f "$additional_libdir/lib$name.la"; then
9785 found_la
="$additional_libdir/lib$name.la"
9788 if test -f "$additional_libdir/lib$name.$libext"; then
9789 found_dir
="$additional_libdir"
9790 found_a
="$additional_libdir/lib$name.$libext"
9791 if test -f "$additional_libdir/lib$name.la"; then
9792 found_la
="$additional_libdir/lib$name.la"
9797 if test "X$found_dir" = "X"; then
9798 for x
in $LDFLAGS $LTLIBICONV; do
9800 acl_save_prefix
="$prefix"
9801 prefix
="$acl_final_prefix"
9802 acl_save_exec_prefix
="$exec_prefix"
9803 exec_prefix
="$acl_final_exec_prefix"
9805 exec_prefix
="$acl_save_exec_prefix"
9806 prefix
="$acl_save_prefix"
9810 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9811 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9813 found_so
="$dir/lib$name.$shlibext"
9814 if test -f "$dir/lib$name.la"; then
9815 found_la
="$dir/lib$name.la"
9818 if test -f "$dir/lib$name.$libext"; then
9820 found_a
="$dir/lib$name.$libext"
9821 if test -f "$dir/lib$name.la"; then
9822 found_la
="$dir/lib$name.la"
9828 if test "X$found_dir" != "X"; then
9833 if test "X$found_dir" != "X"; then
9834 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9835 if test "X$found_so" != "X"; then
9836 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9837 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9840 for x
in $ltrpathdirs; do
9841 if test "X$x" = "X$found_dir"; then
9846 if test -z "$haveit"; then
9847 ltrpathdirs
="$ltrpathdirs $found_dir"
9849 if test "$hardcode_direct" = yes; then
9850 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9852 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9853 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9855 for x
in $rpathdirs; do
9856 if test "X$x" = "X$found_dir"; then
9861 if test -z "$haveit"; then
9862 rpathdirs
="$rpathdirs $found_dir"
9866 for x
in $LDFLAGS $LIBICONV; do
9868 acl_save_prefix
="$prefix"
9869 prefix
="$acl_final_prefix"
9870 acl_save_exec_prefix
="$exec_prefix"
9871 exec_prefix
="$acl_final_exec_prefix"
9873 exec_prefix
="$acl_save_exec_prefix"
9874 prefix
="$acl_save_prefix"
9876 if test "X$x" = "X-L$found_dir"; then
9881 if test -z "$haveit"; then
9882 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9884 if test "$hardcode_minus_L" != no
; then
9885 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9887 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9893 if test "X$found_a" != "X"; then
9894 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9896 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9899 additional_includedir
=
9900 case "$found_dir" in
9902 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9903 additional_includedir
="$basedir/include"
9906 if test "X$additional_includedir" != "X"; then
9907 if test "X$additional_includedir" != "X/usr/include"; then
9909 if test "X$additional_includedir" = "X/usr/local/include"; then
9910 if test -n "$GCC"; then
9912 linux
*) haveit
=yes;;
9916 if test -z "$haveit"; then
9917 for x
in $CPPFLAGS $INCICONV; do
9919 acl_save_prefix
="$prefix"
9920 prefix
="$acl_final_prefix"
9921 acl_save_exec_prefix
="$exec_prefix"
9922 exec_prefix
="$acl_final_exec_prefix"
9924 exec_prefix
="$acl_save_exec_prefix"
9925 prefix
="$acl_save_prefix"
9927 if test "X$x" = "X-I$additional_includedir"; then
9932 if test -z "$haveit"; then
9933 if test -d "$additional_includedir"; then
9934 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9940 if test -n "$found_la"; then
9941 save_libdir
="$libdir"
9943 */* |
*\\*) .
"$found_la" ;;
9944 *) .
"./$found_la" ;;
9946 libdir
="$save_libdir"
9947 for dep
in $dependency_libs; do
9950 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9951 if test "X$additional_libdir" != "X/usr/lib"; then
9953 if test "X$additional_libdir" = "X/usr/local/lib"; then
9954 if test -n "$GCC"; then
9956 linux
*) haveit
=yes;;
9960 if test -z "$haveit"; then
9962 for x
in $LDFLAGS $LIBICONV; do
9964 acl_save_prefix
="$prefix"
9965 prefix
="$acl_final_prefix"
9966 acl_save_exec_prefix
="$exec_prefix"
9967 exec_prefix
="$acl_final_exec_prefix"
9969 exec_prefix
="$acl_save_exec_prefix"
9970 prefix
="$acl_save_prefix"
9972 if test "X$x" = "X-L$additional_libdir"; then
9977 if test -z "$haveit"; then
9978 if test -d "$additional_libdir"; then
9979 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9983 for x
in $LDFLAGS $LTLIBICONV; do
9985 acl_save_prefix
="$prefix"
9986 prefix
="$acl_final_prefix"
9987 acl_save_exec_prefix
="$exec_prefix"
9988 exec_prefix
="$acl_final_exec_prefix"
9990 exec_prefix
="$acl_save_exec_prefix"
9991 prefix
="$acl_save_prefix"
9993 if test "X$x" = "X-L$additional_libdir"; then
9998 if test -z "$haveit"; then
9999 if test -d "$additional_libdir"; then
10000 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10007 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10008 if test "$enable_rpath" != no
; then
10010 for x
in $rpathdirs; do
10011 if test "X$x" = "X$dir"; then
10016 if test -z "$haveit"; then
10017 rpathdirs
="$rpathdirs $dir"
10020 for x
in $ltrpathdirs; do
10021 if test "X$x" = "X$dir"; then
10026 if test -z "$haveit"; then
10027 ltrpathdirs
="$ltrpathdirs $dir"
10032 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10035 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10038 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10039 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10045 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10046 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10052 if test "X$rpathdirs" != "X"; then
10053 if test -n "$hardcode_libdir_separator"; then
10055 for found_dir
in $rpathdirs; do
10056 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10058 acl_save_libdir
="$libdir"
10060 eval flag
=\"$hardcode_libdir_flag_spec\"
10061 libdir
="$acl_save_libdir"
10062 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10064 for found_dir
in $rpathdirs; do
10065 acl_save_libdir
="$libdir"
10066 libdir
="$found_dir"
10067 eval flag
=\"$hardcode_libdir_flag_spec\"
10068 libdir
="$acl_save_libdir"
10069 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10073 if test "X$ltrpathdirs" != "X"; then
10074 for found_dir
in $ltrpathdirs; do
10075 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10080 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10082 ac_cpp
='$CXXCPP $CPPFLAGS'
10083 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10084 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10085 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10092 am_save_CPPFLAGS
="$CPPFLAGS"
10094 for element
in $INCICONV; do
10096 for x
in $CPPFLAGS; do
10098 acl_save_prefix
="$prefix"
10099 prefix
="$acl_final_prefix"
10100 acl_save_exec_prefix
="$exec_prefix"
10101 exec_prefix
="$acl_final_exec_prefix"
10103 exec_prefix
="$acl_save_exec_prefix"
10104 prefix
="$acl_save_prefix"
10106 if test "X$x" = "X$element"; then
10111 if test -z "$haveit"; then
10112 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10118 $as_echo_n "checking for iconv... " >&6; }
10119 if test "${am_cv_func_iconv+set}" = set; then :
10120 $as_echo_n "(cached) " >&6
10123 am_cv_func_iconv
="no, consider installing GNU libiconv"
10125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127 #include <stdlib.h>
10132 iconv_t cd = iconv_open("","");
10133 iconv(cd,NULL,NULL,NULL,NULL);
10139 if ac_fn_cxx_try_link
"$LINENO"; then :
10140 am_cv_func_iconv
=yes
10142 rm -f core conftest.err conftest.
$ac_objext \
10143 conftest
$ac_exeext conftest.
$ac_ext
10144 if test "$am_cv_func_iconv" != yes; then
10145 am_save_LIBS
="$LIBS"
10146 LIBS
="$LIBS $LIBICONV"
10147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 #include <stdlib.h>
10154 iconv_t cd = iconv_open("","");
10155 iconv(cd,NULL,NULL,NULL,NULL);
10161 if ac_fn_cxx_try_link
"$LINENO"; then :
10162 am_cv_lib_iconv
=yes
10163 am_cv_func_iconv
=yes
10165 rm -f core conftest.err conftest.
$ac_objext \
10166 conftest
$ac_exeext conftest.
$ac_ext
10167 LIBS
="$am_save_LIBS"
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10172 $as_echo "$am_cv_func_iconv" >&6; }
10173 if test "$am_cv_func_iconv" = yes; then
10175 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10178 if test "$am_cv_lib_iconv" = yes; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10180 $as_echo_n "checking how to link with libiconv... " >&6; }
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10182 $as_echo "$LIBICONV" >&6; }
10184 CPPFLAGS
="$am_save_CPPFLAGS"
10191 if test "$am_cv_func_iconv" = yes; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10193 $as_echo_n "checking for iconv declaration... " >&6; }
10194 if test "${am_cv_proto_iconv+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10201 #include <stdlib.h>
10207 #if defined(__STDC__) || defined(__cplusplus)
10208 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10221 if ac_fn_cxx_try_compile
"$LINENO"; then :
10222 am_cv_proto_iconv_arg1
=""
10224 am_cv_proto_iconv_arg1
="const"
10226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10227 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);"
10230 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10232 }$am_cv_proto_iconv" >&5
10234 }$am_cv_proto_iconv" >&6; }
10236 cat >>confdefs.h
<<_ACEOF
10237 #define ICONV_CONST $am_cv_proto_iconv_arg1
10243 ac_cpp
='$CPP $CPPFLAGS'
10244 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10254 am_save_CPPFLAGS
="$CPPFLAGS"
10256 for element
in $INCICONV; do
10258 for x
in $CPPFLAGS; do
10260 acl_save_prefix
="$prefix"
10261 prefix
="$acl_final_prefix"
10262 acl_save_exec_prefix
="$exec_prefix"
10263 exec_prefix
="$acl_final_exec_prefix"
10265 exec_prefix
="$acl_save_exec_prefix"
10266 prefix
="$acl_save_prefix"
10268 if test "X$x" = "X$element"; then
10273 if test -z "$haveit"; then
10274 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10280 $as_echo_n "checking for iconv... " >&6; }
10281 if test "${am_cv_func_iconv+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10285 am_cv_func_iconv
="no, consider installing GNU libiconv"
10287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h. */
10289 #include <stdlib.h>
10294 iconv_t cd = iconv_open("","");
10295 iconv(cd,NULL,NULL,NULL,NULL);
10301 if ac_fn_c_try_link
"$LINENO"; then :
10302 am_cv_func_iconv
=yes
10304 rm -f core conftest.err conftest.
$ac_objext \
10305 conftest
$ac_exeext conftest.
$ac_ext
10306 if test "$am_cv_func_iconv" != yes; then
10307 am_save_LIBS
="$LIBS"
10308 LIBS
="$LIBS $LIBICONV"
10309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311 #include <stdlib.h>
10316 iconv_t cd = iconv_open("","");
10317 iconv(cd,NULL,NULL,NULL,NULL);
10323 if ac_fn_c_try_link
"$LINENO"; then :
10324 am_cv_lib_iconv
=yes
10325 am_cv_func_iconv
=yes
10327 rm -f core conftest.err conftest.
$ac_objext \
10328 conftest
$ac_exeext conftest.
$ac_ext
10329 LIBS
="$am_save_LIBS"
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10334 $as_echo "$am_cv_func_iconv" >&6; }
10335 if test "$am_cv_func_iconv" = yes; then
10337 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10340 if test "$am_cv_lib_iconv" = yes; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10342 $as_echo_n "checking how to link with libiconv... " >&6; }
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10344 $as_echo "$LIBICONV" >&6; }
10346 CPPFLAGS
="$am_save_CPPFLAGS"
10353 if test "$am_cv_func_iconv" = yes; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10355 $as_echo_n "checking for iconv declaration... " >&6; }
10356 if test "${am_cv_proto_iconv+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10363 #include <stdlib.h>
10369 #if defined(__STDC__) || defined(__cplusplus)
10370 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10383 if ac_fn_c_try_compile
"$LINENO"; then :
10384 am_cv_proto_iconv_arg1
=""
10386 am_cv_proto_iconv_arg1
="const"
10388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10389 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);"
10392 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10394 }$am_cv_proto_iconv" >&5
10396 }$am_cv_proto_iconv" >&6; }
10398 cat >>confdefs.h
<<_ACEOF
10399 #define ICONV_CONST $am_cv_proto_iconv_arg1
10406 # Until we have in-tree GNU iconv:
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10412 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10413 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10414 $as_echo_n "(cached) " >&6
10416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 #include <locale.h>
10427 if ac_fn_c_try_link
"$LINENO"; then :
10428 am_cv_val_LC_MESSAGES
=yes
10430 am_cv_val_LC_MESSAGES
=no
10432 rm -f core conftest.err conftest.
$ac_objext \
10433 conftest
$ac_exeext conftest.
$ac_ext
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10436 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10437 if test $am_cv_val_LC_MESSAGES = yes; then
10439 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10446 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10447 if test "${am_cv_langinfo_codeset+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 #include <langinfo.h>
10456 char* cs = nl_langinfo(CODESET);
10461 if ac_fn_c_try_link
"$LINENO"; then :
10462 am_cv_langinfo_codeset
=yes
10464 am_cv_langinfo_codeset
=no
10466 rm -f core conftest.err conftest.
$ac_objext \
10467 conftest
$ac_exeext conftest.
$ac_ext
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10471 $as_echo "$am_cv_langinfo_codeset" >&6; }
10472 if test $am_cv_langinfo_codeset = yes; then
10474 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10479 # We will need to find libiberty.h and ansidecl.h
10480 saved_CFLAGS
="$CFLAGS"
10481 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10482 saved_CXXFLAGS
="$CXXFLAGS"
10483 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10484 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10485 strsignal strstr stpcpy strverscmp \
10486 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10487 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
10489 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10491 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10492 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10493 $as_echo_n "(cached) " >&6
10495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10498 #define $ac_tr_decl 1
10500 #include "ansidecl.h"
10501 #include "system.h"
10507 char *(*pfn) = (char *(*)) $ac_func ;
10513 if ac_fn_c_try_compile
"$LINENO"; then :
10514 eval "gcc_cv_have_decl_$ac_func=yes"
10516 eval "gcc_cv_have_decl_$ac_func=no"
10518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10521 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10523 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10524 #define $ac_tr_decl 1
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10530 #define $ac_tr_decl 0
10538 for ac_func
in getrlimit setrlimit getrusage
10540 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10542 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10543 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10544 $as_echo_n "(cached) " >&6
10546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10549 #define $ac_tr_decl 1
10551 #include "ansidecl.h"
10552 #include "system.h"
10553 #ifdef HAVE_SYS_RESOURCE_H
10554 #include <sys/resource.h>
10562 char *(*pfn) = (char *(*)) $ac_func ;
10568 if ac_fn_c_try_compile
"$LINENO"; then :
10569 eval "gcc_cv_have_decl_$ac_func=yes"
10571 eval "gcc_cv_have_decl_$ac_func=no"
10573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10576 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10578 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10579 #define $ac_tr_decl 1
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10585 #define $ac_tr_decl 0
10593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10596 #include "ansidecl.h"
10597 #include "system.h"
10598 #ifdef HAVE_SYS_RESOURCE_H
10599 #include <sys/resource.h>
10610 if ac_fn_c_try_compile
"$LINENO"; then :
10614 $as_echo "#define rlim_t long" >>confdefs.h
10617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10619 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10620 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10621 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10622 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10623 for ac_func
in ldgetname
10625 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10627 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10628 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10629 $as_echo_n "(cached) " >&6
10631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10634 #define $ac_tr_decl 1
10636 #include "ansidecl.h"
10637 #include "system.h"
10638 #ifdef HAVE_LDFCN_H
10649 char *(*pfn) = (char *(*)) $ac_func ;
10655 if ac_fn_c_try_compile
"$LINENO"; then :
10656 eval "gcc_cv_have_decl_$ac_func=yes"
10658 eval "gcc_cv_have_decl_$ac_func=no"
10660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10663 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10666 #define $ac_tr_decl 1
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10672 #define $ac_tr_decl 0
10680 for ac_func
in times
10682 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10684 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10685 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10686 $as_echo_n "(cached) " >&6
10688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10691 #define $ac_tr_decl 1
10693 #include "ansidecl.h"
10694 #include "system.h"
10695 #ifdef HAVE_SYS_TIMES_H
10696 #include <sys/times.h>
10704 char *(*pfn) = (char *(*)) $ac_func ;
10710 if ac_fn_c_try_compile
"$LINENO"; then :
10711 eval "gcc_cv_have_decl_$ac_func=yes"
10713 eval "gcc_cv_have_decl_$ac_func=no"
10715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10718 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10721 #define $ac_tr_decl 1
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10727 #define $ac_tr_decl 0
10735 for ac_func
in sigaltstack
10737 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10739 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10740 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10741 $as_echo_n "(cached) " >&6
10743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10746 #define $ac_tr_decl 1
10748 #include "ansidecl.h"
10749 #include "system.h"
10750 #include <signal.h>
10757 char *(*pfn) = (char *(*)) $ac_func ;
10763 if ac_fn_c_try_compile
"$LINENO"; then :
10764 eval "gcc_cv_have_decl_$ac_func=yes"
10766 eval "gcc_cv_have_decl_$ac_func=no"
10768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10771 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10773 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10774 #define $ac_tr_decl 1
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10780 #define $ac_tr_decl 0
10788 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10790 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10792 ac_cpp
='$CXXCPP $CPPFLAGS'
10793 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10794 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10795 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10797 for ac_func
in madvise
10799 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10801 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10802 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10803 $as_echo_n "(cached) " >&6
10805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10808 #define $ac_tr_decl 1
10810 #include "ansidecl.h"
10811 #include "system.h"
10818 char *(*pfn) = (char *(*)) $ac_func ;
10824 if ac_fn_cxx_try_compile
"$LINENO"; then :
10825 eval "gcc_cv_have_decl_$ac_func=yes"
10827 eval "gcc_cv_have_decl_$ac_func=no"
10829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10832 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10834 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10835 #define $ac_tr_decl 1
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10841 #define $ac_tr_decl 0
10849 ac_cpp
='$CPP $CPPFLAGS'
10850 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10851 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10852 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10855 for ac_func
in madvise
10857 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10859 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10860 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10861 $as_echo_n "(cached) " >&6
10863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10866 #define $ac_tr_decl 1
10868 #include "ansidecl.h"
10869 #include "system.h"
10876 char *(*pfn) = (char *(*)) $ac_func ;
10882 if ac_fn_c_try_compile
"$LINENO"; then :
10883 eval "gcc_cv_have_decl_$ac_func=yes"
10885 eval "gcc_cv_have_decl_$ac_func=no"
10887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10890 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10892 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10893 #define $ac_tr_decl 1
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10899 #define $ac_tr_decl 0
10909 # More time-related stuff.
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10911 $as_echo_n "checking for struct tms... " >&6; }
10912 if test "${ac_cv_struct_tms+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10917 /* end confdefs.h. */
10919 #include "ansidecl.h"
10920 #include "system.h"
10921 #ifdef HAVE_SYS_TIMES_H
10922 #include <sys/times.h>
10933 if ac_fn_c_try_compile
"$LINENO"; then :
10934 ac_cv_struct_tms
=yes
10936 ac_cv_struct_tms
=no
10938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10941 $as_echo "$ac_cv_struct_tms" >&6; }
10942 if test $ac_cv_struct_tms = yes; then
10944 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10948 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10949 # revisit after autoconf 2.50.
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10951 $as_echo_n "checking for clock_t... " >&6; }
10952 if test "${gcc_cv_type_clock_t+set}" = set; then :
10953 $as_echo_n "(cached) " >&6
10956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10959 #include "ansidecl.h"
10960 #include "system.h"
10970 if ac_fn_c_try_compile
"$LINENO"; then :
10971 gcc_cv_type_clock_t
=yes
10973 gcc_cv_type_clock_t
=no
10975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10978 $as_echo "$gcc_cv_type_clock_t" >&6; }
10979 if test $gcc_cv_type_clock_t = yes; then
10981 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10985 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10986 CFLAGS
="$saved_CFLAGS"
10987 CXXFLAGS
="$saved_CXXFLAGS"
10989 # mkdir takes a single argument on some systems.
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10991 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10992 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 #include <sys/types.h>
10999 #ifdef HAVE_SYS_STAT_H
11000 # include <sys/stat.h>
11002 #ifdef HAVE_UNISTD_H
11003 # include <unistd.h>
11005 #ifdef HAVE_DIRECT_H
11006 # include <direct.h>
11016 if ac_fn_c_try_compile
"$LINENO"; then :
11017 gcc_cv_mkdir_takes_one_arg
=no
11019 gcc_cv_mkdir_takes_one_arg
=yes
11021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11024 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11025 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11027 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11038 # With Setjmp/Longjmp based exception handling.
11039 # Check whether --enable-sjlj-exceptions was given.
11040 if test "${enable_sjlj_exceptions+set}" = set; then :
11041 enableval
=$enable_sjlj_exceptions; case $target in
11043 if test $enableval != yes; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11045 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11050 force_sjlj_exceptions
=yes
11054 force_sjlj_exceptions
=yes
11058 force_sjlj_exceptions
=no
11063 if test $force_sjlj_exceptions = yes; then
11064 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11066 cat >>confdefs.h
<<_ACEOF
11067 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11072 # --------------------------------------------------------
11073 # Build, host, and target specific configuration fragments
11074 # --------------------------------------------------------
11076 # Collect build-machine-specific information.
11077 .
${srcdir}/config.build
11079 # Collect host-machine-specific information.
11080 .
${srcdir}/config.
host
11084 # Collect target-machine-specific information.
11085 .
${srcdir}/config.gcc
11087 extra_objs
="${host_extra_objs} ${extra_objs}"
11088 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11090 # Default the target-machine variables that were not explicitly set.
11091 if test x
"$tm_file" = x
11092 then tm_file
=$cpu_type/$cpu_type.h
; fi
11094 if test x
"$extra_headers" = x
11095 then extra_headers
=; fi
11097 if test x
$md_file = x
11098 then md_file
=$cpu_type/$cpu_type.md
; fi
11100 if test x
$out_file = x
11101 then out_file
=$cpu_type/$cpu_type.c
; fi
11103 if test x
"$tmake_file" = x
11104 then tmake_file
=$cpu_type/t-
$cpu_type
11107 # Support --enable-initfini-array.
11108 if test x
$enable_initfini_array != xno
; then
11109 tm_file
="${tm_file} initfini-array.h"
11112 if test x
"$dwarf2" = xyes
11113 then tm_file
="$tm_file tm-dwarf2.h"
11116 # Say what files are being used for the output code and MD file.
11117 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11118 echo "Using \`$srcdir/config/$md_file' as machine description file."
11120 # If any of the xm_file variables contain nonexistent files, warn
11121 # about them and drop them.
11124 for x
in $build_xm_file; do
11125 if test -f $srcdir/config
/$x
11127 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11128 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11131 build_xm_file
="$bx"
11134 for x
in $host_xm_file; do
11135 if test -f $srcdir/config
/$x
11137 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11138 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11144 for x
in $xm_file; do
11145 if test -f $srcdir/config
/$x
11147 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11148 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11154 for f
in $tm_file; do
11157 if test $count = ax
; then
11158 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11160 echo "Using the following target machine macro files:"
11161 for f
in $tm_file; do
11162 echo " $srcdir/config/$f"
11166 if test x
$need_64bit_hwint = xyes
; then
11168 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11172 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11174 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11179 for f
in $host_xm_file; do
11182 if test $count = a
; then
11184 elif test $count = ax
; then
11185 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11187 echo "Using the following host machine macro files:"
11188 for f
in $host_xm_file; do
11189 echo " $srcdir/config/$f"
11192 echo "Using ${out_host_hook_obj} for host machine hooks."
11194 if test "$host_xm_file" != "$build_xm_file"; then
11196 for f
in $build_xm_file; do
11199 if test $count = a
; then
11201 elif test $count = ax
; then
11202 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11204 echo "Using the following build machine macro files:"
11205 for f
in $build_xm_file; do
11206 echo " $srcdir/config/$f"
11211 if test -n "$configured_native_system_header_dir"; then
11212 native_system_header_dir
=$configured_native_system_header_dir
11214 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11218 powerpc
*-*-darwin*)
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11220 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11221 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11227 #include <sys/cdefs.h>
11228 #include <sys/signal.h>
11229 #include <ucontext.h>
11230 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11233 if ac_fn_c_try_compile
"$LINENO"; then :
11234 gcc_cv_mcontext_underscores
=no
11236 gcc_cv_mcontext_underscores
=yes
11238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11241 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11242 if test $gcc_cv_mcontext_underscores = yes; then
11244 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11254 # Check if a valid thread package
11255 case ${enable_threads} in
11258 target_thread_file
='single'
11262 target_thread_file
='single'
11264 aix | dce | lynx | mipssde | posix | rtems | \
11265 single | tpf | vxworks | win32
)
11266 target_thread_file
=${enable_threads}
11269 echo "${enable_threads} is an unknown thread package" 1>&2
11274 if test x
${thread_file} = x
; then
11275 # No thread file set by target-specific clauses in config.gcc,
11276 # so use file chosen by default logic above
11277 thread_file
=${target_thread_file}
11285 if test x
$enable___cxa_atexit = xyes || \
11286 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11287 if test x
$host = x
$target; then
11289 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11290 # keyed to flag_use_cxa_atexit
11295 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11296 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11299 echo "__cxa_atexit can't be enabled on this target"
11305 # We can't check for __cxa_atexit when building a cross, so assume
11309 if test x
$use_cxa_atexit = xyes
; then
11311 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11316 # Look for a file containing extra machine modes.
11317 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11318 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11321 cat >>confdefs.h
<<_ACEOF
11322 #define EXTRA_MODES_FILE "config/$extra_modes"
11327 # Convert extra_options into a form suitable for Makefile use.
11330 for f
in $extra_options; do
11331 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11332 all_opt_files
="$all_opt_files $srcdir/config/$f"
11336 # auto-host.h is the file containing items generated by autoconf and is
11337 # the first file included by config.h.
11338 # If host=build, it is correct to have bconfig include auto-host.h
11339 # as well. If host!=build, we are in error and need to do more
11340 # work to find out the build config parameters.
11341 if test x
$host = x
$build
11343 build_auto
=auto-host.h
11345 # We create a subdir, then run autoconf in the subdir.
11346 # To prevent recursion we set host and build for the new
11347 # invocation of configure to the build for this invocation
11354 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11355 *) realsrcdir
=..
/${srcdir};;
11357 saved_CFLAGS
="${CFLAGS}"
11358 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11359 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11360 ${realsrcdir}/configure \
11361 --enable-languages=${enable_languages-all} \
11362 --target=$target_alias --host=$build_alias --build=$build_alias
11363 CFLAGS
="${saved_CFLAGS}"
11365 # We just finished tests for the build machine, so rename
11366 # the file auto-build.h in the gcc directory.
11367 mv auto-host.h ..
/auto-build.h
11370 build_auto
=auto-build.h
11374 tm_file
="${tm_file} defaults.h"
11375 tm_p_file
="${tm_p_file} tm-preds.h"
11376 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11377 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11378 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11379 # put this back in temporarily.
11380 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11386 # Compile in configure arguments.
11387 if test -f configargs.h
; then
11388 # Being re-configured.
11389 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11390 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11392 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11395 # Double all backslashes and backslash all quotes to turn
11396 # gcc_config_arguments into a C string.
11397 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11398 $gcc_config_arguments
11400 gcc_config_arguments_str
=`cat conftest.out`
11403 cat > configargs.h
<<EOF
11404 /* Generated automatically. */
11405 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11406 static const char thread_model[] = "$thread_file";
11408 static const struct {
11409 const char *name, *value;
11410 } configure_default_options[] = $configure_default_options;
11413 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11414 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11415 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11416 if test -f $srcdir/REVISION
; then
11417 gcc_REVISION
=`cat $srcdir/REVISION`
11421 cat > plugin-version.h
<<EOF
11422 #include "configargs.h"
11424 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11425 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11426 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11427 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11429 static char basever[] = "$gcc_BASEVER";
11430 static char datestamp[] = "$gcc_DATESTAMP";
11431 static char devphase[] = "$gcc_DEVPHASE";
11432 static char revision[] = "$gcc_REVISION";
11434 /* FIXME plugins: We should make the version information more precise.
11435 One way to do is to add a checksum. */
11437 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11438 devphase, revision,
11439 configuration_arguments};
11442 # Internationalization
11443 # If we haven't got the data from the intl directory,
11444 # assume NLS is disabled.
11453 if test -f ..
/intl
/config.intl
; then
11454 . ..
/intl
/config.intl
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11457 $as_echo_n "checking whether NLS is requested... " >&6; }
11458 if test x
"$USE_NLS" != xyes
; then
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11463 $as_echo "yes" >&6; }
11465 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11469 $as_echo_n "checking for catalogs to be installed... " >&6; }
11470 # Look for .po and .gmo files in the source directory.
11473 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11474 # If there aren't any .gmo files the shell will give us the
11475 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11477 case "$cat" in *\
**)
11480 # The quadruple backslash is collapsed to a double backslash
11481 # by the backticks, then collapsed again by the double quotes,
11482 # leaving us with one backslash in the sed expression (right
11483 # before the dot that mustn't act as a wildcard).
11484 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11485 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11486 # The user is allowed to set LINGUAS to a list of languages to
11487 # install catalogs for. If it's empty that means "all of them."
11488 if test "x$LINGUAS" = x
; then
11489 CATALOGS
="$CATALOGS $cat"
11490 XLINGUAS
="$XLINGUAS $lang"
11492 case "$LINGUAS" in *$lang*)
11493 CATALOGS
="$CATALOGS $cat"
11494 XLINGUAS
="$XLINGUAS $lang"
11499 LINGUAS
="$XLINGUAS"
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11501 $as_echo "$LINGUAS" >&6; }
11514 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11515 # -liconv on the link line twice.
11516 case "$LIBINTL" in *$LIBICONV*)
11520 # Check whether --enable-secureplt was given.
11521 if test "${enable_secureplt+set}" = set; then :
11522 enableval
=$enable_secureplt;
11526 # Check whether --enable-leading-mingw64-underscores was given.
11527 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11528 enableval
=$enable_leading_mingw64_underscores;
11531 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11533 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11537 # Check whether --enable-cld was given.
11538 if test "${enable_cld+set}" = set; then :
11539 enableval
=$enable_cld;
11545 # Check whether --enable-frame-pointer was given.
11546 if test "${enable_frame_pointer+set}" = set; then :
11547 enableval
=$enable_frame_pointer;
11551 linux
* | darwin
[8912]*)
11552 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11554 enable_frame_pointer
=no
11557 enable_frame_pointer
=yes
11564 # Windows32 Registry support for specifying GCC installation paths.
11565 # Check whether --enable-win32-registry was given.
11566 if test "${enable_win32_registry+set}" = set; then :
11567 enableval
=$enable_win32_registry;
11572 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11573 if test "x$enable_win32_registry" != xno
; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11575 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11576 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
11579 ac_func_search_save_LIBS
=$LIBS
11580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11583 /* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11589 char RegOpenKeyExA ();
11593 return RegOpenKeyExA ();
11598 for ac_lib
in '' advapi32
; do
11599 if test -z "$ac_lib"; then
11600 ac_res
="none required"
11603 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11605 if ac_fn_c_try_link
"$LINENO"; then :
11606 ac_cv_search_RegOpenKeyExA
=$ac_res
11608 rm -f core conftest.err conftest.
$ac_objext \
11610 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11614 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11617 ac_cv_search_RegOpenKeyExA
=no
11619 rm conftest.
$ac_ext
11620 LIBS
=$ac_func_search_save_LIBS
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11623 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11624 ac_res
=$ac_cv_search_RegOpenKeyExA
11625 if test "$ac_res" != no
; then :
11626 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11629 enable_win32_registry
=no
11634 if test "x$enable_win32_registry" != xno
; then
11636 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11639 if test "x$enable_win32_registry" != xyes \
11640 && test "x$enable_win32_registry" != x
; then
11642 cat >>confdefs.h
<<_ACEOF
11643 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11651 # Get an absolute path to the GCC top-level source directory
11652 holddir
=`${PWDCMD-pwd}`
11654 topdir
=`${PWDCMD-pwd}`
11657 # Conditionalize the makefile for this host machine.
11659 for f
in ${host_xmake_file}
11661 if test -f ${srcdir}/config
/$f
11663 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11667 # Conditionalize the makefile for this target machine.
11669 for f
in ${tmake_file}
11671 if test -f ${srcdir}/config
/$f
11673 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11676 tmake_file
="${tmake_file_}"
11678 out_object_file
=`basename $out_file .c`.o
11679 common_out_object_file
=`basename $common_out_file .c`.o
11681 tm_file_list
="options.h"
11682 tm_include_list
="options.h insn-constants.h"
11683 for f
in $tm_file; do
11686 f
=`echo $f | sed 's/^..//'`
11687 tm_file_list
="${tm_file_list} $f"
11688 tm_include_list
="${tm_include_list} $f"
11691 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11692 tm_include_list
="${tm_include_list} $f"
11695 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11696 tm_include_list
="${tm_include_list} config/$f"
11703 for f
in $tm_p_file; do
11706 tm_p_file_list
="${tm_p_file_list} $f"
11707 tm_p_include_list
="${tm_p_include_list} $f"
11710 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11711 tm_p_include_list
="${tm_p_include_list} config/$f"
11717 for f
in $xm_file; do
11720 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11721 xm_include_list
="${xm_include_list} $f"
11724 xm_file_list
="${xm_file_list} $f"
11725 xm_include_list
="${xm_include_list} $f"
11728 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11729 xm_include_list
="${xm_include_list} config/$f"
11735 host_xm_include_list
=
11736 for f
in $host_xm_file; do
11739 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11740 host_xm_include_list
="${host_xm_include_list} $f"
11743 host_xm_file_list
="${host_xm_file_list} $f"
11744 host_xm_include_list
="${host_xm_include_list} $f"
11747 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11748 host_xm_include_list
="${host_xm_include_list} config/$f"
11753 build_xm_file_list
=
11754 for f
in $build_xm_file; do
11757 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11758 build_xm_include_list
="${build_xm_include_list} $f"
11760 auto-build.h | auto-host.h
)
11761 build_xm_file_list
="${build_xm_file_list} $f"
11762 build_xm_include_list
="${build_xm_include_list} $f"
11765 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11766 build_xm_include_list
="${build_xm_include_list} config/$f"
11771 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11772 # cross-compiler which does not use the native headers and libraries.
11773 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11776 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11778 if test "x$with_build_sysroot" != x
; then
11779 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11781 # This value is used, even on a native system, because
11782 # CROSS_SYSTEM_HEADER_DIR is just
11783 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11784 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11787 if test x
$host != x
$target
11789 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11791 SYSTEM_HEADER_DIR
=$build_system_header_dir
11792 case "$host","$target" in
11793 # Darwin crosses can use the host system's libraries and headers,
11794 # because of the fat library support. Of course, it must be the
11795 # same version of Darwin on both sides. Allow the user to
11796 # just say --target=foo-darwin without a version number to mean
11797 # "the version on this system".
11798 *-*-darwin*,*-*-darwin*)
11799 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11800 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11801 if test $hostos = $targetos -o $targetos = darwin
; then
11803 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11808 i?
86-*-*,x86_64-
*-* \
11809 | powerpc
*-*-*,powerpc64
*-*-*)
11810 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11815 if test "x$with_headers" = x
; then
11822 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11823 SYSTEM_HEADER_DIR
=$build_system_header_dir
11826 # If this is a cross-compiler that does not
11827 # have its own set of headers then define
11830 # If this is using newlib, without having the headers available now,
11831 # then define inhibit_libc in LIBGCC2_CFLAGS.
11832 # This prevents libgcc2 from containing any code which requires libc
11834 : ${inhibit_libc=false}
11835 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11836 test x
$with_newlib = xyes
; } &&
11837 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11842 # When building gcc with a cross-compiler, we need to adjust things so
11843 # that the generator programs are still built with the native compiler.
11844 # Also, we cannot run fixincludes.
11846 # These are the normal (build=host) settings:
11847 CC_FOR_BUILD
='$(CC)'
11848 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11849 BUILD_LDFLAGS
='$(LDFLAGS)'
11850 STMP_FIXINC
=stmp-fixinc
11852 # And these apply if build != host, or we are generating coverage data
11853 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11855 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11856 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11859 # Expand extra_headers to include complete path.
11860 # This substitutes for lots of t-* files.
11861 extra_headers_list
=
11862 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11863 for file in ${extra_headers} ; do
11864 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11867 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11868 if test x
"$use_gcc_tgmath" = xyes
11869 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11872 # Define collect2 in Makefile.
11873 case $host_can_use_collect2 in
11875 *) collect2
='collect2$(exeext)' ;;
11879 # Add a definition of USE_COLLECT2 if system wants one.
11880 case $use_collect2 in
11881 no
) use_collect2
= ;;
11884 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11885 xm_defines
="${xm_defines} USE_COLLECT2"
11886 case $host_can_use_collect2 in
11888 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11895 cat >>confdefs.h
<<_ACEOF
11896 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11900 # ---------------------------
11901 # Assembler & linker features
11902 # ---------------------------
11904 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11905 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11906 # However when ld-new is first executed from the build tree, libtool will
11907 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11908 # to the build tree. While doing this we need to use the previous-stage
11909 # linker, or we have an infinite loop. The presence of a shell script as
11910 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11911 # the gcc/collect-ld script. So we need to know how libtool works, or
11912 # exec-tool will fail.
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11918 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11923 macro_version
='2.2.7a'
11924 macro_revision
='1.3134'
11938 ltmain
="$ac_aux_dir/ltmain.sh"
11940 # Backslashify metacharacters that are still active within
11941 # double-quoted strings.
11942 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11944 # Same as above, but do not quote variable references.
11945 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11947 # Sed substitution to delay expansion of an escaped shell variable in a
11948 # double_quote_subst'ed string.
11949 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11951 # Sed substitution to delay expansion of an escaped single quote.
11952 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11954 # Sed substitution to avoid accidental globbing in evaled expressions
11955 no_glob_subst
='s/\*/\\\*/g'
11957 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11959 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11962 $as_echo_n "checking how to print strings... " >&6; }
11963 # Test print first, because it will be a builtin if present.
11964 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11965 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11967 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11970 # Use this function as a fallback that always works.
11971 func_fallback_echo ()
11973 eval 'cat <<_LTECHO_EOF
11977 ECHO='func_fallback_echo
'
11980 # func_echo_all arg...
11981 # Invoke $ECHO with all args, space-separated.
11988 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11989 $as_echo "printf" >&6; } ;;
11990 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11991 $as_echo "print -r" >&6; } ;;
11992 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11993 $as_echo "cat" >&6; } ;;
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12010 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12011 if test "${ac_cv_path_SED+set}" = set; then :
12012 $as_echo_n "(cached) " >&6
12014 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12015 for ac_i in 1 2 3 4 5 6 7; do
12016 ac_script="$ac_script$as_nl$ac_script"
12018 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12019 { ac_script=; unset ac_script;}
12020 if test -z "$SED"; then
12021 ac_path_SED_found=false
12022 # Loop through the user's path and
test for each of PROGNAME-LIST
12023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12024 for as_dir
in $PATH
12027 test -z "$as_dir" && as_dir
=.
12028 for ac_prog
in sed gsed
; do
12029 for ac_exec_ext
in '' $ac_executable_extensions; do
12030 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12031 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12032 # Check for GNU ac_path_SED and select it if it is found.
12033 # Check for GNU $ac_path_SED
12034 case `"$ac_path_SED" --version 2>&1` in
12036 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12039 $as_echo_n 0123456789 >"conftest.in"
12042 cat "conftest.in" "conftest.in" >"conftest.tmp"
12043 mv "conftest.tmp" "conftest.in"
12044 cp "conftest.in" "conftest.nl"
12045 $as_echo '' >> "conftest.nl"
12046 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12047 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12048 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12049 if test $ac_count -gt ${ac_path_SED_max-0}; then
12050 # Best one so far, save it but keep looking for a better one
12051 ac_cv_path_SED
="$ac_path_SED"
12052 ac_path_SED_max
=$ac_count
12054 # 10*(2^10) chars as input seems more than enough
12055 test $ac_count -gt 10 && break
12057 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12060 $ac_path_SED_found && break 3
12065 if test -z "$ac_cv_path_SED"; then
12066 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12069 ac_cv_path_SED
=$SED
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12074 $as_echo "$ac_cv_path_SED" >&6; }
12075 SED
="$ac_cv_path_SED"
12078 test -z "$SED" && SED
=sed
12079 Xsed
="$SED -e 1s/^X//"
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12092 $as_echo_n "checking for fgrep... " >&6; }
12093 if test "${ac_cv_path_FGREP+set}" = set; then :
12094 $as_echo_n "(cached) " >&6
12096 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12097 then ac_cv_path_FGREP
="$GREP -F"
12099 if test -z "$FGREP"; then
12100 ac_path_FGREP_found
=false
12101 # Loop through the user's path and test for each of PROGNAME-LIST
12102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12103 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12106 test -z "$as_dir" && as_dir
=.
12107 for ac_prog
in fgrep
; do
12108 for ac_exec_ext
in '' $ac_executable_extensions; do
12109 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12110 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12111 # Check for GNU ac_path_FGREP and select it if it is found.
12112 # Check for GNU $ac_path_FGREP
12113 case `"$ac_path_FGREP" --version 2>&1` in
12115 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12118 $as_echo_n 0123456789 >"conftest.in"
12121 cat "conftest.in" "conftest.in" >"conftest.tmp"
12122 mv "conftest.tmp" "conftest.in"
12123 cp "conftest.in" "conftest.nl"
12124 $as_echo 'FGREP' >> "conftest.nl"
12125 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12126 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12127 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12128 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12129 # Best one so far, save it but keep looking for a better one
12130 ac_cv_path_FGREP
="$ac_path_FGREP"
12131 ac_path_FGREP_max
=$ac_count
12133 # 10*(2^10) chars as input seems more than enough
12134 test $ac_count -gt 10 && break
12136 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12139 $ac_path_FGREP_found && break 3
12144 if test -z "$ac_cv_path_FGREP"; then
12145 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12148 ac_cv_path_FGREP
=$FGREP
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12154 $as_echo "$ac_cv_path_FGREP" >&6; }
12155 FGREP
="$ac_cv_path_FGREP"
12158 test -z "$GREP" && GREP
=grep
12178 # Check whether --with-gnu-ld was given.
12179 if test "${with_gnu_ld+set}" = set; then :
12180 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12186 if test "$GCC" = yes; then
12187 # Check if gcc -print-prog-name=ld gives a path.
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12189 $as_echo_n "checking for ld used by $CC... " >&6; }
12192 # gcc leaves a trailing carriage return which upsets mingw
12193 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12195 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12198 # Accept absolute paths.
12200 re_direlt
='/[^/][^/]*/\.\./'
12201 # Canonicalize the pathname of ld
12202 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12203 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12204 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12206 test -z "$LD" && LD
="$ac_prog"
12209 # If it fails, then pretend we aren't using GCC.
12213 # If it is relative, then search for the first ld in PATH.
12214 with_gnu_ld
=unknown
12217 elif test "$with_gnu_ld" = yes; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12219 $as_echo_n "checking for GNU ld... " >&6; }
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12222 $as_echo_n "checking for non-GNU ld... " >&6; }
12224 if test "${lt_cv_path_LD+set}" = set; then :
12225 $as_echo_n "(cached) " >&6
12227 if test -z "$LD"; then
12228 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12229 for ac_dir
in $PATH; do
12231 test -z "$ac_dir" && ac_dir
=.
12232 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12233 lt_cv_path_LD
="$ac_dir/$ac_prog"
12234 # Check to see if the program is GNU ld. I'd rather use --version,
12235 # but apparently some variants of GNU ld only accept -v.
12236 # Break only if it was the GNU/non-GNU ld that we prefer.
12237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12238 *GNU
* |
*'with BFD'*)
12239 test "$with_gnu_ld" != no
&& break
12242 test "$with_gnu_ld" != yes && break
12249 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12253 LD
="$lt_cv_path_LD"
12254 if test -n "$LD"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12256 $as_echo "$LD" >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12261 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12263 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12264 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12268 case `$LD -v 2>&1 </dev/null` in
12269 *GNU
* |
*'with BFD'*)
12270 lt_cv_prog_gnu_ld
=yes
12273 lt_cv_prog_gnu_ld
=no
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12278 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12279 with_gnu_ld
=$lt_cv_prog_gnu_ld
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12290 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12291 if test "${lt_cv_path_NM+set}" = set; then :
12292 $as_echo_n "(cached) " >&6
12294 if test -n "$NM"; then
12295 # Let the user override the test.
12296 lt_cv_path_NM
="$NM"
12298 lt_nm_to_check
="${ac_tool_prefix}nm"
12299 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12300 lt_nm_to_check
="$lt_nm_to_check nm"
12302 for lt_tmp_nm
in $lt_nm_to_check; do
12303 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12304 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12306 test -z "$ac_dir" && ac_dir
=.
12307 tmp_nm
="$ac_dir/$lt_tmp_nm"
12308 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12309 # Check to see if the nm accepts a BSD-compat flag.
12310 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12311 # nm: unknown option "B" ignored
12312 # Tru64's nm complains that /dev/null is an invalid object file
12313 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12314 */dev
/null
* |
*'Invalid file or object type'*)
12315 lt_cv_path_NM
="$tmp_nm -B"
12319 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12321 lt_cv_path_NM
="$tmp_nm -p"
12325 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12326 continue # so that we can try to find one that supports BSD flags
12335 : ${lt_cv_path_NM=no}
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12339 $as_echo "$lt_cv_path_NM" >&6; }
12340 if test "$lt_cv_path_NM" != "no"; then
12341 NM
="$lt_cv_path_NM"
12343 # Didn't find any BSD compatible name lister, look for dumpbin.
12344 if test -n "$DUMPBIN"; then :
12345 # Let the user override the test.
12347 if test -n "$ac_tool_prefix"; then
12348 for ac_prog
in dumpbin
"link -dump"
12350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12351 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353 $as_echo_n "checking for $ac_word... " >&6; }
12354 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12357 if test -n "$DUMPBIN"; then
12358 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12361 for as_dir
in $PATH
12364 test -z "$as_dir" && as_dir
=.
12365 for ac_exec_ext
in '' $ac_executable_extensions; do
12366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12367 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 DUMPBIN
=$ac_cv_prog_DUMPBIN
12378 if test -n "$DUMPBIN"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12380 $as_echo "$DUMPBIN" >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12387 test -n "$DUMPBIN" && break
12390 if test -z "$DUMPBIN"; then
12391 ac_ct_DUMPBIN
=$DUMPBIN
12392 for ac_prog
in dumpbin
"link -dump"
12394 # Extract the first word of "$ac_prog", so it can be a program name with args.
12395 set dummy
$ac_prog; ac_word
=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 $as_echo_n "checking for $ac_word... " >&6; }
12398 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12401 if test -n "$ac_ct_DUMPBIN"; then
12402 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12405 for as_dir
in $PATH
12408 test -z "$as_dir" && as_dir
=.
12409 for ac_exec_ext
in '' $ac_executable_extensions; do
12410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12411 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12422 if test -n "$ac_ct_DUMPBIN"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12424 $as_echo "$ac_ct_DUMPBIN" >&6; }
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12431 test -n "$ac_ct_DUMPBIN" && break
12434 if test "x$ac_ct_DUMPBIN" = x
; then
12437 case $cross_compiling:$ac_tool_warned in
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12441 ac_tool_warned
=yes ;;
12443 DUMPBIN
=$ac_ct_DUMPBIN
12447 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12449 DUMPBIN
="$DUMPBIN -symbols"
12457 if test "$DUMPBIN" != ":"; then
12461 test -z "$NM" && NM
=nm
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12469 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12470 if test "${lt_cv_nm_interface+set}" = set; then :
12471 $as_echo_n "(cached) " >&6
12473 lt_cv_nm_interface
="BSD nm"
12474 echo "int some_variable = 0;" > conftest.
$ac_ext
12475 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12476 (eval "$ac_compile" 2>conftest.err
)
12477 cat conftest.err
>&5
12478 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12479 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12480 cat conftest.err
>&5
12481 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12482 cat conftest.out
>&5
12483 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12484 lt_cv_nm_interface
="MS dumpbin"
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12489 $as_echo "$lt_cv_nm_interface" >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12492 $as_echo_n "checking whether ln -s works... " >&6; }
12494 if test "$LN_S" = "ln -s"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12496 $as_echo "yes" >&6; }
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12499 $as_echo "no, using $LN_S" >&6; }
12502 # find the maximum length of command line arguments
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12504 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12505 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
12513 # On DJGPP, this test can blow up pretty badly due to problems in libc
12514 # (any single argument exceeding 2000 bytes causes a buffer overrun
12515 # during glob expansion). Even if it were fixed, the result of this
12516 # check would be larger than it should be.
12517 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12521 # Under GNU Hurd, this test is not required because there is
12522 # no limit to the length of command line arguments.
12523 # Libtool will interpret -1 as no limit whatsoever
12524 lt_cv_sys_max_cmd_len
=-1;
12527 cygwin
* | mingw
* | cegcc
*)
12528 # On Win9x/ME, this test blows up -- it succeeds, but takes
12529 # about 5 minutes as the teststring grows exponentially.
12530 # Worse, since 9x/ME are not pre-emptively multitasking,
12531 # you end up with a "frozen" computer, even though with patience
12532 # the test eventually succeeds (with a max line length of 256k).
12533 # Instead, let's just punt: use the minimum linelength reported by
12534 # all of the supported platforms: 8192 (on NT/2K/XP).
12535 lt_cv_sys_max_cmd_len
=8192;
12539 # On MiNT this can take a long time and run out of memory.
12540 lt_cv_sys_max_cmd_len
=8192;
12544 # On AmigaOS with pdksh, this test takes hours, literally.
12545 # So we just punt and use a minimum line length of 8192.
12546 lt_cv_sys_max_cmd_len
=8192;
12549 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12550 # This has been around since 386BSD, at least. Likely further.
12551 if test -x /sbin
/sysctl
; then
12552 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12553 elif test -x /usr
/sbin
/sysctl
; then
12554 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12556 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12558 # And add a safety zone
12559 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12560 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12564 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12565 lt_cv_sys_max_cmd_len
=196608
12569 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12570 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12571 # nice to cause kernel panics so lets avoid the loop below.
12572 # First set a reasonable default.
12573 lt_cv_sys_max_cmd_len
=16384
12575 if test -x /sbin
/sysconfig
; then
12576 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12577 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12582 lt_cv_sys_max_cmd_len
=102400
12584 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12585 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12586 if test -n "$kargmax"; then
12587 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12589 lt_cv_sys_max_cmd_len
=32768
12593 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12594 if test -n "$lt_cv_sys_max_cmd_len"; then
12595 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12596 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12598 # Make teststring a little bigger before we do anything with it.
12599 # a 1K string should be a reasonable start.
12600 for i
in 1 2 3 4 5 6 7 8 ; do
12601 teststring
=$teststring$teststring
12603 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12604 # If test is not a shell built-in, we'll probably end up computing a
12605 # maximum length that is only half of the actual maximum length, but
12607 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12608 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12609 test $i != 17 # 1/2 MB should be enough
12612 teststring
=$teststring$teststring
12614 # Only check the string length outside the loop.
12615 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12617 # Add a significant safety factor because C++ compilers can tack on
12618 # massive amounts of additional arguments before passing them to the
12619 # linker. It appears as though 1/2 is a usable value.
12620 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12627 if test -n $lt_cv_sys_max_cmd_len ; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12629 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12632 $as_echo "none" >&6; }
12634 max_cmd_len
=$lt_cv_sys_max_cmd_len
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12646 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12647 # Try some XSI features
12649 ( _lt_dummy
="a/b/c"
12650 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12652 && eval 'test $(( 1 + 1 )) -eq 2 \
12653 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12656 $as_echo "$xsi_shell" >&6; }
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12660 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12662 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12664 && lt_shell_append=yes
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12666 $as_echo "$lt_shell_append" >&6; }
12669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12679 # test EBCDIC or ASCII
12680 case `echo X|tr X '\101'` in
12681 A) # ASCII based system
12682 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12683 lt_SP2NL='tr \040 \012'
12684 lt_NL2SP='tr \015\012 \040\040'
12686 *) # EBCDIC based system
12687 lt_SP2NL='tr \100 \n'
12688 lt_NL2SP='tr \r\n \100\100'
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12701 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12702 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12703 $as_echo_n "(cached
) " >&6
12705 lt_cv_ld_reload_flag='-r'
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12708 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12709 reload_flag=$lt_cv_ld_reload_flag
12710 case $reload_flag in
12712 *) reload_flag=" $reload_flag" ;;
12714 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12717 if test "$GCC" = yes; then
12718 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12720 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12733 if test -n "$ac_tool_prefix"; then
12734 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12735 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12737 $as_echo_n "checking
for $ac_word...
" >&6; }
12738 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12739 $as_echo_n "(cached
) " >&6
12741 if test -n "$OBJDUMP"; then
12742 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12751 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12761 OBJDUMP=$ac_cv_prog_OBJDUMP
12762 if test -n "$OBJDUMP"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12764 $as_echo "$OBJDUMP" >&6; }
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12767 $as_echo "no
" >&6; }
12772 if test -z "$ac_cv_prog_OBJDUMP"; then
12773 ac_ct_OBJDUMP=$OBJDUMP
12774 # Extract the first word of "objdump
", so it can be a program name with args.
12775 set dummy objdump; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12777 $as_echo_n "checking
for $ac_word...
" >&6; }
12778 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12779 $as_echo_n "(cached
) " >&6
12781 if test -n "$ac_ct_OBJDUMP"; then
12782 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12801 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12802 if test -n "$ac_ct_OBJDUMP"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12804 $as_echo "$ac_ct_OBJDUMP" >&6; }
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12807 $as_echo "no
" >&6; }
12810 if test "x
$ac_ct_OBJDUMP" = x; then
12813 case $cross_compiling:$ac_tool_warned in
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12816 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12817 ac_tool_warned=yes ;;
12819 OBJDUMP=$ac_ct_OBJDUMP
12822 OBJDUMP="$ac_cv_prog_OBJDUMP"
12825 test -z "$OBJDUMP" && OBJDUMP=objdump
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12836 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12837 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12838 $as_echo_n "(cached
) " >&6
12840 lt_cv_file_magic_cmd='$MAGIC_CMD'
12841 lt_cv_file_magic_test_file=
12842 lt_cv_deplibs_check_method='unknown'
12843 # Need to set the preceding variable on all platforms that support
12844 # interlibrary dependencies.
12845 # 'none' -- dependencies not supported.
12846 # `unknown' -- same as none, but documents that we really don't know.
12847 # 'pass_all' -- all dependencies passed with no checks.
12848 # 'test_compile' -- check by making test program.
12849 # 'file_magic [[regex]]' -- check by looking for files in library path
12850 # which responds to the $file_magic_cmd with a given extended regex.
12851 # If you have `file' or equivalent on your system and you're not sure
12852 # whether `pass_all' will *always* work, you probably want this one.
12856 lt_cv_deplibs_check_method=pass_all
12860 lt_cv_deplibs_check_method=pass_all
12864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12865 lt_cv_file_magic_cmd='/usr/bin/file -L'
12866 lt_cv_file_magic_test_file=/shlib/libc.so
12870 # func_win32_libid is a shell function defined in ltmain.sh
12871 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12872 lt_cv_file_magic_cmd='func_win32_libid'
12876 # Base MSYS/MinGW do not provide the 'file' command needed by
12877 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12878 # unless we find 'file', for example because we are cross-compiling.
12879 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12880 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12881 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12882 lt_cv_file_magic_cmd='func_win32_libid'
12884 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12885 lt_cv_file_magic_cmd='$OBJDUMP -f'
12890 # use the weaker test based on 'objdump'. See mingw*.
12891 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12892 lt_cv_file_magic_cmd='$OBJDUMP -f'
12895 darwin* | rhapsody*)
12896 lt_cv_deplibs_check_method=pass_all
12899 freebsd* | dragonfly*)
12900 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12903 # Not sure whether the presence of OpenBSD here was a mistake.
12904 # Let's accept both of them until this is cleared up.
12905 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12906 lt_cv_file_magic_cmd=/usr/bin/file
12907 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12911 lt_cv_deplibs_check_method=pass_all
12916 lt_cv_deplibs_check_method=pass_all
12920 lt_cv_deplibs_check_method=pass_all
12923 hpux10.20* | hpux11*)
12924 lt_cv_file_magic_cmd=/usr/bin/file
12927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12928 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12931 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]'
12932 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12935 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12936 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12942 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12946 irix5* | irix6* | nonstopux*)
12948 *-32|*"-32 ") libmagic=32-bit;;
12949 *-n32|*"-n32 ") libmagic=N32;;
12950 *-64|*"-64 ") libmagic=64-bit;;
12951 *) libmagic=never-match;;
12953 lt_cv_deplibs_check_method=pass_all
12956 # This must be Linux ELF.
12957 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12958 lt_cv_deplibs_check_method=pass_all
12962 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12971 lt_cv_file_magic_cmd=/usr/bin/file
12972 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12976 lt_cv_deplibs_check_method=pass_all
12980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12987 osf3* | osf4* | osf5*)
12988 lt_cv_deplibs_check_method=pass_all
12992 lt_cv_deplibs_check_method=pass_all
12996 lt_cv_deplibs_check_method=pass_all
12999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13000 lt_cv_deplibs_check_method=pass_all
13004 case $host_vendor in
13006 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]'
13007 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13010 lt_cv_deplibs_check_method=pass_all
13013 lt_cv_file_magic_cmd='/bin/file'
13014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13017 lt_cv_file_magic_cmd='/bin/file'
13018 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13019 lt_cv_file_magic_test_file=/lib/libc.so
13022 lt_cv_deplibs_check_method=pass_all
13025 lt_cv_deplibs_check_method=pass_all
13031 lt_cv_deplibs_check_method=pass_all
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13037 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13038 file_magic_cmd=$lt_cv_file_magic_cmd
13039 deplibs_check_method=$lt_cv_deplibs_check_method
13040 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13053 if test -n "$ac_tool_prefix"; then
13054 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13055 set dummy ${ac_tool_prefix}ar; ac_word=$2
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13057 $as_echo_n "checking
for $ac_word...
" >&6; }
13058 if test "${ac_cv_prog_AR+set}" = set; then :
13059 $as_echo_n "(cached
) " >&6
13061 if test -n "$AR"; then
13062 ac_cv_prog_AR="$AR" # Let the user override the test.
13064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13065 for as_dir in $PATH
13068 test -z "$as_dir" && as_dir=.
13069 for ac_exec_ext in '' $ac_executable_extensions; do
13070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13071 ac_cv_prog_AR="${ac_tool_prefix}ar"
13072 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13082 if test -n "$AR"; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13084 $as_echo "$AR" >&6; }
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13087 $as_echo "no
" >&6; }
13092 if test -z "$ac_cv_prog_AR"; then
13094 # Extract the first word of "ar", so it can be a program name with args.
13095 set dummy ar; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13097 $as_echo_n "checking
for $ac_word...
" >&6; }
13098 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13099 $as_echo_n "(cached
) " >&6
13101 if test -n "$ac_ct_AR"; then
13102 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13108 test -z "$as_dir" && as_dir=.
13109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13111 ac_cv_prog_ac_ct_AR="ar"
13112 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13121 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13122 if test -n "$ac_ct_AR"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13124 $as_echo "$ac_ct_AR" >&6; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13127 $as_echo "no
" >&6; }
13130 if test "x
$ac_ct_AR" = x; then
13133 case $cross_compiling:$ac_tool_warned in
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13136 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13137 ac_tool_warned=yes ;;
13142 AR="$ac_cv_prog_AR"
13145 test -z "$AR" && AR=ar
13146 test -z "$AR_FLAGS" && AR_FLAGS=cru
13158 if test -n "$ac_tool_prefix"; then
13159 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13160 set dummy ${ac_tool_prefix}strip; ac_word=$2
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13162 $as_echo_n "checking
for $ac_word...
" >&6; }
13163 if test "${ac_cv_prog_STRIP+set}" = set; then :
13164 $as_echo_n "(cached
) " >&6
13166 if test -n "$STRIP"; then
13167 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170 for as_dir in $PATH
13173 test -z "$as_dir" && as_dir=.
13174 for ac_exec_ext in '' $ac_executable_extensions; do
13175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13176 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13177 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13186 STRIP=$ac_cv_prog_STRIP
13187 if test -n "$STRIP"; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13189 $as_echo "$STRIP" >&6; }
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13192 $as_echo "no
" >&6; }
13197 if test -z "$ac_cv_prog_STRIP"; then
13199 # Extract the first word of "strip
", so it can be a program name with args.
13200 set dummy strip; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13202 $as_echo_n "checking
for $ac_word...
" >&6; }
13203 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13204 $as_echo_n "(cached
) " >&6
13206 if test -n "$ac_ct_STRIP"; then
13207 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13216 ac_cv_prog_ac_ct_STRIP="strip
"
13217 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13226 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13227 if test -n "$ac_ct_STRIP"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13229 $as_echo "$ac_ct_STRIP" >&6; }
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13232 $as_echo "no
" >&6; }
13235 if test "x
$ac_ct_STRIP" = x; then
13238 case $cross_compiling:$ac_tool_warned in
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13241 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13242 ac_tool_warned=yes ;;
13247 STRIP="$ac_cv_prog_STRIP"
13250 test -z "$STRIP" && STRIP=:
13257 if test -n "$ac_tool_prefix"; then
13258 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13259 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13261 $as_echo_n "checking
for $ac_word...
" >&6; }
13262 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13263 $as_echo_n "(cached
) " >&6
13265 if test -n "$RANLIB"; then
13266 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13275 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13276 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13285 RANLIB=$ac_cv_prog_RANLIB
13286 if test -n "$RANLIB"; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13288 $as_echo "$RANLIB" >&6; }
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13291 $as_echo "no
" >&6; }
13296 if test -z "$ac_cv_prog_RANLIB"; then
13297 ac_ct_RANLIB=$RANLIB
13298 # Extract the first word of "ranlib
", so it can be a program name with args.
13299 set dummy ranlib; ac_word=$2
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13301 $as_echo_n "checking
for $ac_word...
" >&6; }
13302 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13303 $as_echo_n "(cached
) " >&6
13305 if test -n "$ac_ct_RANLIB"; then
13306 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309 for as_dir in $PATH
13312 test -z "$as_dir" && as_dir=.
13313 for ac_exec_ext in '' $ac_executable_extensions; do
13314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13315 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13316 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13325 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13326 if test -n "$ac_ct_RANLIB"; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13328 $as_echo "$ac_ct_RANLIB" >&6; }
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13331 $as_echo "no
" >&6; }
13334 if test "x
$ac_ct_RANLIB" = x; then
13337 case $cross_compiling:$ac_tool_warned in
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13340 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13341 ac_tool_warned=yes ;;
13343 RANLIB=$ac_ct_RANLIB
13346 RANLIB="$ac_cv_prog_RANLIB"
13349 test -z "$RANLIB" && RANLIB=:
13356 # Determine commands to create old-style static archives.
13357 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13358 old_postinstall_cmds='chmod 644 $oldlib'
13359 old_postuninstall_cmds=
13361 if test -n "$RANLIB"; then
13364 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13367 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13370 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13375 lock_old_archive_extraction=yes ;;
13377 lock_old_archive_extraction=no ;;
13418 # If no C compiler was specified, use CC.
13421 # If no C compiler flags were specified, use CFLAGS.
13422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13424 # Allow CC to be a program name with arguments.
13428 # Check for command to grab the raw symbol name followed by C symbol from nm.
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13430 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13431 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13432 $as_echo_n "(cached
) " >&6
13435 # These are sane defaults that work on at least a few old systems.
13436 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13438 # Character class describing NM global symbol codes.
13439 symcode='[BCDEGRST]'
13441 # Regexp to match symbols that can be accessed directly from C.
13442 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13444 # Define system-specific variables.
13449 cygwin* | mingw* | pw32* | cegcc*)
13450 symcode='[ABCDGISTW]'
13453 if test "$host_cpu" = ia64; then
13454 symcode='[ABCDEGRST]'
13457 irix* | nonstopux*)
13458 symcode='[BCDEGRST]'
13461 symcode='[BCDEGQRST]'
13472 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13480 # If we're using GNU nm, then use its standard symbol codes.
13481 case `$NM -V 2>&1` in
13482 *GNU* | *'with BFD'*)
13483 symcode='[ABCDGIRSTW]' ;;
13486 # Transform an extracted symbol line into a proper C declaration.
13487 # Some systems (esp. on ia64) link data and code symbols differently,
13488 # so use this general approach.
13489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13491 # Transform an extracted symbol line into symbol name and symbol address
13492 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13493 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'"
13495 # Handle CRLF in mingw tool chain
13499 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13503 # Try without a prefix underscore, then with it.
13504 for ac_symprfx in "" "_
"; do
13506 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13507 symxfrm="\\1 $ac_symprfx\\2 \\2"
13509 # Write the raw and C identifiers.
13510 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13511 # Fake it for dumpbin and say T for any non-static function
13512 # and D for any global variable.
13513 # Also find C++ and __fastcall symbols from MSVC++,
13514 # which start with @ or ?.
13515 lt_cv_sys_global_symbol_pipe="$AWK '"\
13516 " {last_section=section; section=\$ 3};"\
13517 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13518 " \$ 0!~/External *\|/{next};"\
13519 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13520 " {if(hide[section]) next};"\
13521 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13522 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13523 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13524 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13525 " ' prfx
=^
$ac_symprfx"
13527 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13530 # Check to see that the pipe works correctly.
13534 cat > conftest.$ac_ext <<_LT_EOF
13539 void nm_test_func(void);
13540 void nm_test_func(void){}
13544 int main(){nm_test_var='a';nm_test_func();return(0);}
13547 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13548 (eval $ac_compile) 2>&5
13550 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13551 test $ac_status = 0; }; then
13552 # Now try to grab the symbols.
13554 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13555 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13558 test $ac_status = 0; } && test -s "$nlist"; then
13559 # Try sorting and uniquifying the output.
13560 if sort "$nlist" | uniq > "$nlist"T; then
13561 mv -f "$nlist"T "$nlist"
13566 # Make sure that we snagged all the symbols we need.
13567 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13568 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13569 cat <<_LT_EOF > conftest.$ac_ext
13575 # Now generate the symbol file.
13576 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13578 cat <<_LT_EOF >> conftest.$ac_ext
13580 /* The mapping between symbol names and symbols. */
13585 lt__PROGRAM__LTX_preloaded_symbols[] =
13587 { "@PROGRAM@
", (void *) 0 },
13589 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13590 cat <<\_LT_EOF >> conftest.$ac_ext
13594 /* This works around a problem in FreeBSD linker */
13595 #ifdef FREEBSD_WORKAROUND
13596 static const void *lt_preloaded_setup() {
13597 return lt__PROGRAM__LTX_preloaded_symbols;
13605 # Now try linking the two files.
13606 mv conftest.$ac_objext conftstm.$ac_objext
13607 lt_save_LIBS="$LIBS"
13608 lt_save_CFLAGS="$CFLAGS"
13609 LIBS="conftstm.
$ac_objext"
13610 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13611 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13612 (eval $ac_link) 2>&5
13614 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13615 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13618 LIBS="$lt_save_LIBS"
13619 CFLAGS="$lt_save_CFLAGS"
13621 echo "cannot
find nm_test_func
in $nlist" >&5
13624 echo "cannot
find nm_test_var
in $nlist" >&5
13627 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13630 echo "$progname: failed program was
:" >&5
13631 cat conftest.$ac_ext >&5
13633 rm -rf conftest* conftst*
13635 # Do not use the global_symbol_pipe unless it works.
13636 if test "$pipe_works" = yes; then
13639 lt_cv_sys_global_symbol_pipe=
13645 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13646 lt_cv_sys_global_symbol_to_cdecl=
13648 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13650 $as_echo "failed
" >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13653 $as_echo "ok
" >&6; }
13677 # Check whether --enable-libtool-lock was given.
13678 if test "${enable_libtool_lock+set}" = set; then :
13679 enableval=$enable_libtool_lock;
13682 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13684 # Some flags need to be propagated to the compiler or linker for good
13688 # Find out which ABI we are using.
13689 echo 'int i;' > conftest.$ac_ext
13690 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13691 (eval $ac_compile) 2>&5
13693 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13694 test $ac_status = 0; }; then
13695 case `/usr/bin/file conftest.$ac_objext` in
13697 HPUX_IA64_MODE="32"
13700 HPUX_IA64_MODE="64"
13707 # Find out which ABI we are using.
13708 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13709 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13710 (eval $ac_compile) 2>&5
13712 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13713 test $ac_status = 0; }; then
13714 if test "$lt_cv_prog_gnu_ld" = yes; then
13715 case `/usr/bin/file conftest.$ac_objext` in
13717 LD="${LD-ld} -melf32bsmip"
13720 LD="${LD-ld} -melf32bmipn32"
13723 LD="${LD-ld} -melf64bmip"
13727 case `/usr/bin/file conftest.$ac_objext` in
13743 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13744 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13745 # Find out which ABI we are using.
13746 echo 'int i;' > conftest.$ac_ext
13747 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13748 (eval $ac_compile) 2>&5
13750 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13751 test $ac_status = 0; }; then
13752 case `/usr/bin/file conftest.o` in
13755 x86_64-*kfreebsd*-gnu)
13756 LD="${LD-ld} -m elf_i386_fbsd
"
13759 LD="${LD-ld} -m elf_i386
"
13761 ppc64-*linux*|powerpc64-*linux*)
13762 LD="${LD-ld} -m elf32ppclinux
"
13765 LD="${LD-ld} -m elf_s390
"
13768 LD="${LD-ld} -m elf32_sparc
"
13774 x86_64-*kfreebsd*-gnu)
13775 LD="${LD-ld} -m elf_x86_64_fbsd
"
13778 LD="${LD-ld} -m elf_x86_64
"
13780 ppc*-*linux*|powerpc*-*linux*)
13781 LD="${LD-ld} -m elf64ppc
"
13783 s390*-*linux*|s390*-*tpf*)
13784 LD="${LD-ld} -m elf64_s390
"
13787 LD="${LD-ld} -m elf64_sparc
"
13797 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13798 SAVE_CFLAGS="$CFLAGS"
13799 CFLAGS="$CFLAGS -belf"
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13801 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13802 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13803 $as_echo_n "(cached
) " >&6
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13822 if ac_fn_c_try_link "$LINENO"; then :
13823 lt_cv_cc_needs_belf=yes
13825 lt_cv_cc_needs_belf=no
13827 rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
13830 ac_cpp='$CPP $CPPFLAGS'
13831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13837 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13838 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13839 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13840 CFLAGS="$SAVE_CFLAGS"
13844 # Find out which ABI we are using.
13845 echo 'int i;' > conftest.$ac_ext
13846 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13847 (eval $ac_compile) 2>&5
13849 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13850 test $ac_status = 0; }; then
13851 case `/usr/bin/file conftest.o` in
13853 case $lt_cv_prog_gnu_ld in
13854 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13856 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13868 need_locks="$enable_libtool_lock"
13872 rhapsody* | darwin*)
13873 if test -n "$ac_tool_prefix"; then
13874 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13875 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13877 $as_echo_n "checking
for $ac_word...
" >&6; }
13878 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13879 $as_echo_n "(cached
) " >&6
13881 if test -n "$DSYMUTIL"; then
13882 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885 for as_dir in $PATH
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13891 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13892 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13901 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13902 if test -n "$DSYMUTIL"; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13904 $as_echo "$DSYMUTIL" >&6; }
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13907 $as_echo "no
" >&6; }
13912 if test -z "$ac_cv_prog_DSYMUTIL"; then
13913 ac_ct_DSYMUTIL=$DSYMUTIL
13914 # Extract the first word of "dsymutil
", so it can be a program name with args.
13915 set dummy dsymutil; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13917 $as_echo_n "checking
for $ac_word...
" >&6; }
13918 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13919 $as_echo_n "(cached
) " >&6
13921 if test -n "$ac_ct_DSYMUTIL"; then
13922 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13931 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13932 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13941 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13942 if test -n "$ac_ct_DSYMUTIL"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13944 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13947 $as_echo "no
" >&6; }
13950 if test "x
$ac_ct_DSYMUTIL" = x; then
13953 case $cross_compiling:$ac_tool_warned in
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13956 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13957 ac_tool_warned=yes ;;
13959 DSYMUTIL=$ac_ct_DSYMUTIL
13962 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13965 if test -n "$ac_tool_prefix"; then
13966 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13967 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13969 $as_echo_n "checking
for $ac_word...
" >&6; }
13970 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13971 $as_echo_n "(cached
) " >&6
13973 if test -n "$NMEDIT"; then
13974 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977 for as_dir in $PATH
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
13982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13983 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13984 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13993 NMEDIT=$ac_cv_prog_NMEDIT
13994 if test -n "$NMEDIT"; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13996 $as_echo "$NMEDIT" >&6; }
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13999 $as_echo "no
" >&6; }
14004 if test -z "$ac_cv_prog_NMEDIT"; then
14005 ac_ct_NMEDIT=$NMEDIT
14006 # Extract the first word of "nmedit
", so it can be a program name with args.
14007 set dummy nmedit; ac_word=$2
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14009 $as_echo_n "checking
for $ac_word...
" >&6; }
14010 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14011 $as_echo_n "(cached
) " >&6
14013 if test -n "$ac_ct_NMEDIT"; then
14014 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14020 test -z "$as_dir" && as_dir=.
14021 for ac_exec_ext in '' $ac_executable_extensions; do
14022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14023 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14033 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14034 if test -n "$ac_ct_NMEDIT"; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14036 $as_echo "$ac_ct_NMEDIT" >&6; }
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14039 $as_echo "no
" >&6; }
14042 if test "x
$ac_ct_NMEDIT" = x; then
14045 case $cross_compiling:$ac_tool_warned in
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14048 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14049 ac_tool_warned=yes ;;
14051 NMEDIT=$ac_ct_NMEDIT
14054 NMEDIT="$ac_cv_prog_NMEDIT"
14057 if test -n "$ac_tool_prefix"; then
14058 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14059 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14061 $as_echo_n "checking
for $ac_word...
" >&6; }
14062 if test "${ac_cv_prog_LIPO+set}" = set; then :
14063 $as_echo_n "(cached
) " >&6
14065 if test -n "$LIPO"; then
14066 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069 for as_dir in $PATH
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
14074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14075 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14076 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14085 LIPO=$ac_cv_prog_LIPO
14086 if test -n "$LIPO"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14088 $as_echo "$LIPO" >&6; }
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14091 $as_echo "no
" >&6; }
14096 if test -z "$ac_cv_prog_LIPO"; then
14098 # Extract the first word of "lipo
", so it can be a program name with args.
14099 set dummy lipo; ac_word=$2
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14101 $as_echo_n "checking
for $ac_word...
" >&6; }
14102 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14103 $as_echo_n "(cached
) " >&6
14105 if test -n "$ac_ct_LIPO"; then
14106 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14112 test -z "$as_dir" && as_dir=.
14113 for ac_exec_ext in '' $ac_executable_extensions; do
14114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14115 ac_cv_prog_ac_ct_LIPO="lipo
"
14116 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14125 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14126 if test -n "$ac_ct_LIPO"; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14128 $as_echo "$ac_ct_LIPO" >&6; }
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14131 $as_echo "no
" >&6; }
14134 if test "x
$ac_ct_LIPO" = x; then
14137 case $cross_compiling:$ac_tool_warned in
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14140 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14141 ac_tool_warned=yes ;;
14146 LIPO="$ac_cv_prog_LIPO"
14149 if test -n "$ac_tool_prefix"; then
14150 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14151 set dummy ${ac_tool_prefix}otool; ac_word=$2
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14153 $as_echo_n "checking
for $ac_word...
" >&6; }
14154 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14155 $as_echo_n "(cached
) " >&6
14157 if test -n "$OTOOL"; then
14158 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161 for as_dir in $PATH
14164 test -z "$as_dir" && as_dir=.
14165 for ac_exec_ext in '' $ac_executable_extensions; do
14166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14167 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14177 OTOOL=$ac_cv_prog_OTOOL
14178 if test -n "$OTOOL"; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14180 $as_echo "$OTOOL" >&6; }
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14183 $as_echo "no
" >&6; }
14188 if test -z "$ac_cv_prog_OTOOL"; then
14190 # Extract the first word of "otool
", so it can be a program name with args.
14191 set dummy otool; ac_word=$2
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14193 $as_echo_n "checking
for $ac_word...
" >&6; }
14194 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14195 $as_echo_n "(cached
) " >&6
14197 if test -n "$ac_ct_OTOOL"; then
14198 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14201 for as_dir in $PATH
14204 test -z "$as_dir" && as_dir=.
14205 for ac_exec_ext in '' $ac_executable_extensions; do
14206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14207 ac_cv_prog_ac_ct_OTOOL="otool
"
14208 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14217 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14218 if test -n "$ac_ct_OTOOL"; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14220 $as_echo "$ac_ct_OTOOL" >&6; }
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14223 $as_echo "no
" >&6; }
14226 if test "x
$ac_ct_OTOOL" = x; then
14229 case $cross_compiling:$ac_tool_warned in
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14232 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14233 ac_tool_warned=yes ;;
14238 OTOOL="$ac_cv_prog_OTOOL"
14241 if test -n "$ac_tool_prefix"; then
14242 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14243 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14245 $as_echo_n "checking
for $ac_word...
" >&6; }
14246 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14247 $as_echo_n "(cached
) " >&6
14249 if test -n "$OTOOL64"; then
14250 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14259 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14260 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14269 OTOOL64=$ac_cv_prog_OTOOL64
14270 if test -n "$OTOOL64"; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14272 $as_echo "$OTOOL64" >&6; }
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14275 $as_echo "no
" >&6; }
14280 if test -z "$ac_cv_prog_OTOOL64"; then
14281 ac_ct_OTOOL64=$OTOOL64
14282 # Extract the first word of "otool64
", so it can be a program name with args.
14283 set dummy otool64; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14285 $as_echo_n "checking
for $ac_word...
" >&6; }
14286 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14287 $as_echo_n "(cached
) " >&6
14289 if test -n "$ac_ct_OTOOL64"; then
14290 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14296 test -z "$as_dir" && as_dir=.
14297 for ac_exec_ext in '' $ac_executable_extensions; do
14298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14299 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14300 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14309 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14310 if test -n "$ac_ct_OTOOL64"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14312 $as_echo "$ac_ct_OTOOL64" >&6; }
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14315 $as_echo "no
" >&6; }
14318 if test "x
$ac_ct_OTOOL64" = x; then
14321 case $cross_compiling:$ac_tool_warned in
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14324 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14325 ac_tool_warned=yes ;;
14327 OTOOL64=$ac_ct_OTOOL64
14330 OTOOL64="$ac_cv_prog_OTOOL64"
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14360 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14361 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14362 $as_echo_n "(cached
) " >&6
14364 lt_cv_apple_cc_single_mod=no
14365 if test -z "${LT_MULTI_MODULE}"; then
14366 # By default we will add the -single_module flag. You can override
14367 # by either setting the environment variable LT_MULTI_MODULE
14368 # non-empty at configure time, or by adding -multi_module to the
14370 rm -rf libconftest.dylib*
14371 echo "int foo
(void
){return 1;}" > conftest.c
14372 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14373 -dynamiclib -Wl,-single_module conftest.c
" >&5
14374 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14375 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14377 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14378 lt_cv_apple_cc_single_mod=yes
14380 cat conftest.err >&5
14382 rm -rf libconftest.dylib*
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14387 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14389 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14390 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14391 $as_echo_n "(cached
) " >&6
14393 lt_cv_ld_exported_symbols_list=no
14394 save_LDFLAGS=$LDFLAGS
14395 echo "_main
" > conftest.sym
14396 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14408 if ac_fn_c_try_link "$LINENO"; then :
14409 lt_cv_ld_exported_symbols_list=yes
14411 lt_cv_ld_exported_symbols_list=no
14413 rm -f core conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LDFLAGS="$save_LDFLAGS"
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14419 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14421 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14422 if test "${lt_cv_ld_force_load+set}" = set; then :
14423 $as_echo_n "(cached
) " >&6
14425 lt_cv_ld_force_load=no
14426 cat > conftest.c << _LT_EOF
14427 int forced_loaded() { return 2;}
14429 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14430 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14431 echo "$AR cru libconftest.a conftest.o
" >&5
14432 $AR cru libconftest.a conftest.o 2>&5
14433 cat > conftest.c << _LT_EOF
14434 int main() { return 0;}
14436 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14437 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14439 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14440 lt_cv_ld_force_load=yes
14442 cat conftest.err >&5
14444 rm -f conftest.err libconftest.a conftest conftest.c
14445 rm -rf conftest.dSYM
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14449 $as_echo "$lt_cv_ld_force_load" >&6; }
14451 rhapsody* | darwin1.[012])
14452 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14454 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14455 darwin*) # darwin 5.x on
14456 # if running on 10.5 or later, the deployment target defaults
14457 # to the OS version, if on x86, and 10.4, the deployment
14458 # target defaults to 10.4. Don't you love it?
14459 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14460 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14461 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14463 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14465 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14469 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14470 _lt_dar_single_mod='$single_module'
14472 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14473 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14475 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14477 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14478 _lt_dsymutil='~$DSYMUTIL $lib || :'
14485 for ac_header in dlfcn.h
14487 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14488 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14489 cat >>confdefs.h <<_ACEOF
14490 #define HAVE_DLFCN_H 1
14507 enable_win32_dll=no
14510 # Check whether --enable-shared was given.
14511 if test "${enable_shared+set}" = set; then :
14512 enableval=$enable_shared; p=${PACKAGE-default}
14514 yes) enable_shared=yes ;;
14515 no) enable_shared=no ;;
14518 # Look at the argument we got. We use all the common list separators.
14519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14520 for pkg in $enableval; do
14522 if test "X
$pkg" = "X
$p"; then
14541 # Check whether --enable-static was given.
14542 if test "${enable_static+set}" = set; then :
14543 enableval=$enable_static; p=${PACKAGE-default}
14545 yes) enable_static=yes ;;
14546 no) enable_static=no ;;
14549 # Look at the argument we got. We use all the common list separators.
14550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14551 for pkg in $enableval; do
14553 if test "X
$pkg" = "X
$p"; then
14573 # Check whether --with-pic was given.
14574 if test "${with_pic+set}" = set; then :
14575 withval=$with_pic; pic_mode="$withval"
14581 test -z "$pic_mode" && pic_mode=default
14589 # Check whether --enable-fast-install was given.
14590 if test "${enable_fast_install+set}" = set; then :
14591 enableval=$enable_fast_install; p=${PACKAGE-default}
14593 yes) enable_fast_install=yes ;;
14594 no) enable_fast_install=no ;;
14596 enable_fast_install=no
14597 # Look at the argument we got. We use all the common list separators.
14598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14599 for pkg in $enableval; do
14601 if test "X
$pkg" = "X
$p"; then
14602 enable_fast_install=yes
14609 enable_fast_install=yes
14622 # This can be used to rebuild libtool when needed
14623 LIBTOOL_DEPS="$ltmain"
14625 # Always use our own libtool.
14626 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14653 test -z "$LN_S" && LN_S="ln -s"
14668 if test -n "${ZSH_VERSION+set}" ; then
14669 setopt NO_GLOB_SUBST
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14673 $as_echo_n "checking
for objdir...
" >&6; }
14674 if test "${lt_cv_objdir+set}" = set; then :
14675 $as_echo_n "(cached
) " >&6
14677 rm -f .libs 2>/dev/null
14678 mkdir .libs 2>/dev/null
14679 if test -d .libs; then
14682 # MS-DOS does not allow filenames that begin with a dot.
14685 rmdir .libs 2>/dev/null
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14688 $as_echo "$lt_cv_objdir" >&6; }
14689 objdir=$lt_cv_objdir
14695 cat >>confdefs.h <<_ACEOF
14696 #define LT_OBJDIR "$lt_cv_objdir/"
14704 # AIX sometimes has problems with the GCC collect2 program. For some
14705 # reason, if we set the COLLECT_NAMES environment variable, the problems
14706 # vanish in a puff of smoke.
14707 if test "X
${COLLECT_NAMES+set}" != Xset; then
14709 export COLLECT_NAMES
14714 # Global variables:
14716 can_build_shared=yes
14718 # All known linkers require a `.a' archive for static linking (except MSVC,
14719 # which needs '.lib').
14722 with_gnu_ld="$lt_cv_prog_gnu_ld"
14725 old_CFLAGS="$CFLAGS"
14727 # Set sane defaults for various variables
14728 test -z "$CC" && CC=cc
14729 test -z "$LTCC" && LTCC=$CC
14730 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14731 test -z "$LD" && LD=ld
14732 test -z "$ac_objext" && ac_objext=o
14734 for cc_temp in $compiler""; do
14736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14742 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14745 # Only perform the check for file, if the check method requires it
14746 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14747 case $deplibs_check_method in
14749 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14751 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14752 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14753 $as_echo_n "(cached
) " >&6
14757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14760 lt_save_MAGIC_CMD="$MAGIC_CMD"
14761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14762 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14763 for ac_dir in $ac_dummy; do
14765 test -z "$ac_dir" && ac_dir=.
14766 if test -f $ac_dir/${ac_tool_prefix}file; then
14767 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14768 if test -n "$file_magic_test_file"; then
14769 case $deplibs_check_method in
14771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14774 $EGREP "$file_magic_regex" > /dev/null; then
14779 *** Warning: the command libtool uses to detect shared libraries,
14780 *** $file_magic_cmd, produces output that libtool cannot recognize.
14781 *** The result is that libtool may fail to recognize shared libraries
14782 *** as such. This will affect the creation of libtool libraries that
14783 *** depend on shared libraries, but programs linked with such libtool
14784 *** libraries will work regardless of this problem. Nevertheless, you
14785 *** may want to report the problem to your system manager and/or to
14786 *** bug-libtool@gnu.org
14796 MAGIC_CMD="$lt_save_MAGIC_CMD"
14801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14802 if test -n "$MAGIC_CMD"; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14804 $as_echo "$MAGIC_CMD" >&6; }
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14807 $as_echo "no
" >&6; }
14814 if test -z "$lt_cv_path_MAGIC_CMD"; then
14815 if test -n "$ac_tool_prefix"; then
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14817 $as_echo_n "checking
for file...
" >&6; }
14818 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14819 $as_echo_n "(cached
) " >&6
14823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14826 lt_save_MAGIC_CMD="$MAGIC_CMD"
14827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14828 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14829 for ac_dir in $ac_dummy; do
14831 test -z "$ac_dir" && ac_dir=.
14832 if test -f $ac_dir/file; then
14833 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14834 if test -n "$file_magic_test_file"; then
14835 case $deplibs_check_method in
14837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14840 $EGREP "$file_magic_regex" > /dev/null; then
14845 *** Warning: the command libtool uses to detect shared libraries,
14846 *** $file_magic_cmd, produces output that libtool cannot recognize.
14847 *** The result is that libtool may fail to recognize shared libraries
14848 *** as such. This will affect the creation of libtool libraries that
14849 *** depend on shared libraries, but programs linked with such libtool
14850 *** libraries will work regardless of this problem. Nevertheless, you
14851 *** may want to report the problem to your system manager and/or to
14852 *** bug-libtool@gnu.org
14862 MAGIC_CMD="$lt_save_MAGIC_CMD"
14867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14868 if test -n "$MAGIC_CMD"; then
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14870 $as_echo "$MAGIC_CMD" >&6; }
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14873 $as_echo "no
" >&6; }
14886 # Use C for the default configuration in the libtool script
14890 ac_cpp='$CPP $CPPFLAGS'
14891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14896 # Source file extension for C test sources.
14899 # Object file extension for compiled C test sources.
14903 # Code to be used in simple compile tests
14904 lt_simple_compile_test_code="int some_variable
= 0;"
14906 # Code to be used in simple link tests
14907 lt_simple_link_test_code='int main(){return(0);}'
14915 # If no C compiler was specified, use CC.
14918 # If no C compiler flags were specified, use CFLAGS.
14919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14921 # Allow CC to be a program name with arguments.
14924 # Save the default compiler, since it gets overwritten when the other
14925 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14926 compiler_DEFAULT=$CC
14928 # save warnings/boilerplate of simple test code
14929 ac_outfile=conftest.$ac_objext
14930 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14932 _lt_compiler_boilerplate=`cat conftest.err`
14935 ac_outfile=conftest.$ac_objext
14936 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14938 _lt_linker_boilerplate=`cat conftest.err`
14943 ## There is no encapsulation within the following macros, do not change
14944 ## the running order or otherwise move them around unless you know exactly
14945 ## what you are doing...
14946 if test -n "$compiler"; then
14948 lt_prog_compiler_no_builtin_flag=
14950 if test "$GCC" = yes; then
14951 case $cc_basename in
14953 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14955 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14959 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14960 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14961 $as_echo_n "(cached
) " >&6
14963 lt_cv_prog_compiler_rtti_exceptions=no
14964 ac_outfile=conftest.$ac_objext
14965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14966 lt_compiler_flag="-fno-rtti -fno-exceptions"
14967 # Insert the option either (1) after the last *FLAGS variable, or
14968 # (2) before a word containing "conftest.
", or (3) at the end.
14969 # Note that $ac_compile itself does not contain backslashes and begins
14970 # with a dollar sign (not a hyphen), so the echo should work correctly.
14971 # The option is referenced via a variable to avoid confusing sed.
14972 lt_compile=`echo "$ac_compile" | $SED \
14973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14975 -e 's:$: $lt_compiler_flag:'`
14976 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14977 (eval "$lt_compile" 2>conftest.err)
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14981 if (exit $ac_status) && test -s "$ac_outfile"; then
14982 # The compiler can only warn and ignore the option if not recognized
14983 # So say no if there are warnings other than the usual output.
14984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14987 lt_cv_prog_compiler_rtti_exceptions=yes
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14994 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14996 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14997 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15009 lt_prog_compiler_wl=
15010 lt_prog_compiler_pic=
15011 lt_prog_compiler_static=
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15014 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15016 if test "$GCC" = yes; then
15017 lt_prog_compiler_wl='-Wl,'
15018 lt_prog_compiler_static='-static'
15022 # All AIX code is PIC.
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 now supports IA64 processor
15025 lt_prog_compiler_static='-Bstatic'
15032 # see comment about AmigaOS4 .so support
15033 lt_prog_compiler_pic='-fPIC'
15036 # FIXME: we need at least 68020 code to build shared libraries, but
15037 # adding the `-m68020' flag to GCC prevents building anything better,
15039 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15044 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15045 # PIC is the default for these OSes.
15048 mingw* | cygwin* | pw32* | os2* | cegcc*)
15049 # This hack is so that the source file can tell whether it is being
15050 # built for inclusion in a dll (and should export symbols for example).
15051 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15052 # (--disable-auto-import) libraries
15053 lt_prog_compiler_pic='-DDLL_EXPORT'
15056 darwin* | rhapsody*)
15057 # PIC is the default on this platform
15058 # Common symbols not allowed in MH_DYLIB files
15059 lt_prog_compiler_pic='-fno-common'
15063 # PIC is the default for Haiku.
15064 # The "-static" flag exists, but is broken.
15065 lt_prog_compiler_static=
15069 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15070 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15071 # sets the default TLS model and affects inlining.
15077 lt_prog_compiler_pic='-fPIC'
15083 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15084 # Instead, we relocate shared libraries at runtime.
15088 # Just because we use GCC doesn't mean we suddenly get shared libraries
15089 # on systems that don't support them.
15090 lt_prog_compiler_can_build_shared=no
15095 # QNX uses GNU C++, but need to define -shared option too, otherwise
15096 # it will coredump.
15097 lt_prog_compiler_pic='-fPIC -shared'
15101 if test -d /usr/nec; then
15102 lt_prog_compiler_pic=-Kconform_pic
15107 lt_prog_compiler_pic='-fPIC'
15111 case $cc_basename in
15112 nvcc*) # Cuda Compiler Driver 2.2
15113 lt_prog_compiler_wl='-Xlinker '
15114 lt_prog_compiler_pic='-Xcompiler -fPIC'
15118 # PORTME Check for flag to pass linker flags through the system compiler.
15121 lt_prog_compiler_wl='-Wl,'
15122 if test "$host_cpu" = ia64; then
15123 # AIX 5 now supports IA64 processor
15124 lt_prog_compiler_static='-Bstatic'
15126 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15130 mingw* | cygwin* | pw32* | os2* | cegcc*)
15131 # This hack is so that the source file can tell whether it is being
15132 # built for inclusion in a dll (and should export symbols for example).
15133 lt_prog_compiler_pic='-DDLL_EXPORT'
15136 hpux9* | hpux10* | hpux11*)
15137 lt_prog_compiler_wl='-Wl,'
15138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15139 # not for PA HP-UX.
15145 lt_prog_compiler_pic='+Z'
15148 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15149 lt_prog_compiler_static='${wl}-a ${wl}archive'
15152 irix5* | irix6* | nonstopux*)
15153 lt_prog_compiler_wl='-Wl,'
15154 # PIC (with -KPIC) is the default.
15155 lt_prog_compiler_static='-non_shared'
15158 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15159 case $cc_basename in
15160 # old Intel for x86_64 which still supported -KPIC.
15162 lt_prog_compiler_wl='-Wl,'
15163 lt_prog_compiler_pic='-KPIC'
15164 lt_prog_compiler_static='-static'
15166 # icc used to be incompatible with GCC.
15167 # ICC 10 doesn't accept -KPIC any more.
15169 lt_prog_compiler_wl='-Wl,'
15170 lt_prog_compiler_pic='-fPIC'
15171 lt_prog_compiler_static='-static'
15173 # Lahey Fortran 8.1.
15175 lt_prog_compiler_wl='-Wl,'
15176 lt_prog_compiler_pic='--shared'
15177 lt_prog_compiler_static='--static'
15179 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15180 # Portland Group compilers (*not* the Pentium gcc compiler,
15181 # which looks to be a dead project)
15182 lt_prog_compiler_wl='-Wl,'
15183 lt_prog_compiler_pic='-fpic'
15184 lt_prog_compiler_static='-Bstatic'
15187 lt_prog_compiler_wl='-Wl,'
15188 # All Alpha code is PIC.
15189 lt_prog_compiler_static='-non_shared'
15191 xl* | bgxl* | bgf* | mpixl*)
15192 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15193 lt_prog_compiler_wl='-Wl,'
15194 lt_prog_compiler_pic='-qpic'
15195 lt_prog_compiler_static='-qstaticlink'
15198 case `$CC -V 2>&1 | sed 5q` in
15199 *Sun\ F* | *Sun*Fortran*)
15200 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15201 lt_prog_compiler_pic='-KPIC'
15202 lt_prog_compiler_static='-Bstatic'
15203 lt_prog_compiler_wl=''
15207 lt_prog_compiler_pic='-KPIC'
15208 lt_prog_compiler_static='-Bstatic'
15209 lt_prog_compiler_wl='-Wl,'
15217 lt_prog_compiler_pic='-KPIC'
15218 lt_prog_compiler_static='-Bstatic'
15222 # QNX uses GNU C++, but need to define -shared option too, otherwise
15223 # it will coredump.
15224 lt_prog_compiler_pic='-fPIC -shared'
15227 osf3* | osf4* | osf5*)
15228 lt_prog_compiler_wl='-Wl,'
15229 # All OSF/1 code is PIC.
15230 lt_prog_compiler_static='-non_shared'
15234 lt_prog_compiler_static='-non_shared'
15238 lt_prog_compiler_pic='-KPIC'
15239 lt_prog_compiler_static='-Bstatic'
15240 case $cc_basename in
15241 f77* | f90* | f95*)
15242 lt_prog_compiler_wl='-Qoption ld ';;
15244 lt_prog_compiler_wl='-Wl,';;
15249 lt_prog_compiler_wl='-Qoption ld '
15250 lt_prog_compiler_pic='-PIC'
15251 lt_prog_compiler_static='-Bstatic'
15254 sysv4 | sysv4.2uw2* | sysv4.3*)
15255 lt_prog_compiler_wl='-Wl,'
15256 lt_prog_compiler_pic='-KPIC'
15257 lt_prog_compiler_static='-Bstatic'
15261 if test -d /usr/nec ;then
15262 lt_prog_compiler_pic='-Kconform_pic'
15263 lt_prog_compiler_static='-Bstatic'
15267 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15268 lt_prog_compiler_wl='-Wl,'
15269 lt_prog_compiler_pic='-KPIC'
15270 lt_prog_compiler_static='-Bstatic'
15274 lt_prog_compiler_wl='-Wl,'
15275 lt_prog_compiler_can_build_shared=no
15279 lt_prog_compiler_pic='-pic'
15280 lt_prog_compiler_static='-Bstatic'
15284 lt_prog_compiler_can_build_shared=no
15290 # For platforms which do not support PIC, -DPIC is meaningless:
15292 lt_prog_compiler_pic=
15295 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15299 $as_echo "$lt_prog_compiler_pic" >&6; }
15307 # Check to make sure the PIC flag actually works.
15309 if test -n "$lt_prog_compiler_pic"; then
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15311 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15312 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15313 $as_echo_n "(cached
) " >&6
15315 lt_cv_prog_compiler_pic_works=no
15316 ac_outfile=conftest.$ac_objext
15317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15318 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15319 # Insert the option either (1) after the last *FLAGS variable, or
15320 # (2) before a word containing "conftest.
", or (3) at the end.
15321 # Note that $ac_compile itself does not contain backslashes and begins
15322 # with a dollar sign (not a hyphen), so the echo should work correctly.
15323 # The option is referenced via a variable to avoid confusing sed.
15324 lt_compile=`echo "$ac_compile" | $SED \
15325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15327 -e 's:$: $lt_compiler_flag:'`
15328 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15329 (eval "$lt_compile" 2>conftest.err)
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15333 if (exit $ac_status) && test -s "$ac_outfile"; then
15334 # The compiler can only warn and ignore the option if not recognized
15335 # So say no if there are warnings other than the usual output.
15336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15339 lt_cv_prog_compiler_pic_works=yes
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15346 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15348 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15349 case $lt_prog_compiler_pic in
15351 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15354 lt_prog_compiler_pic=
15355 lt_prog_compiler_can_build_shared=no
15366 # Check to make sure the static flag actually works.
15368 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15370 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15371 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15372 $as_echo_n "(cached
) " >&6
15374 lt_cv_prog_compiler_static_works=no
15375 save_LDFLAGS="$LDFLAGS"
15376 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15377 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15378 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15379 # The linker can only warn and ignore the option if not recognized
15380 # So say no if there are warnings
15381 if test -s conftest.err; then
15382 # Append any errors to the config.log.
15383 cat conftest.err 1>&5
15384 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15386 if diff conftest.exp conftest.er2 >/dev/null; then
15387 lt_cv_prog_compiler_static_works=yes
15390 lt_cv_prog_compiler_static_works=yes
15394 LDFLAGS="$save_LDFLAGS"
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15398 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15400 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15403 lt_prog_compiler_static=
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15413 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15414 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15415 $as_echo_n "(cached
) " >&6
15417 lt_cv_prog_compiler_c_o=no
15418 $RM -r conftest 2>/dev/null
15422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15424 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15425 # Insert the option either (1) after the last *FLAGS variable, or
15426 # (2) before a word containing "conftest.
", or (3) at the end.
15427 # Note that $ac_compile itself does not contain backslashes and begins
15428 # with a dollar sign (not a hyphen), so the echo should work correctly.
15429 lt_compile=`echo "$ac_compile" | $SED \
15430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15432 -e 's:$: $lt_compiler_flag:'`
15433 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15434 (eval "$lt_compile" 2>out/conftest.err)
15436 cat out/conftest.err >&5
15437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15440 # The compiler can only warn and ignore the option if not recognized
15441 # So say no if there are warnings
15442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15445 lt_cv_prog_compiler_c_o=yes
15450 # SGI C++ compiler will create directory out/ii_files/ for
15451 # template instantiation
15452 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15453 $RM out/* && rmdir out
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15460 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15468 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15469 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15470 $as_echo_n "(cached
) " >&6
15472 lt_cv_prog_compiler_c_o=no
15473 $RM -r conftest 2>/dev/null
15477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15479 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15480 # Insert the option either (1) after the last *FLAGS variable, or
15481 # (2) before a word containing "conftest.
", or (3) at the end.
15482 # Note that $ac_compile itself does not contain backslashes and begins
15483 # with a dollar sign (not a hyphen), so the echo should work correctly.
15484 lt_compile=`echo "$ac_compile" | $SED \
15485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15487 -e 's:$: $lt_compiler_flag:'`
15488 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15489 (eval "$lt_compile" 2>out/conftest.err)
15491 cat out/conftest.err >&5
15492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15493 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15495 # The compiler can only warn and ignore the option if not recognized
15496 # So say no if there are warnings
15497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15498 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15499 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15500 lt_cv_prog_compiler_c_o=yes
15505 # SGI C++ compiler will create directory out/ii_files/ for
15506 # template instantiation
15507 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15508 $RM out/* && rmdir out
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15515 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15520 hard_links="nottested
"
15521 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15522 # do not overwrite the value of need_locks provided by the user
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15524 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15529 ln conftest.a conftest.b 2>&5 || hard_links=no
15530 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15532 $as_echo "$hard_links" >&6; }
15533 if test "$hard_links" = no; then
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15535 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15548 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15551 allow_undefined_flag=
15552 always_export_symbols=no
15554 archive_expsym_cmds=
15555 compiler_needs_object=no
15556 enable_shared_with_static_runtimes=no
15557 export_dynamic_flag_spec=
15558 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15559 hardcode_automatic=no
15561 hardcode_direct_absolute=no
15562 hardcode_libdir_flag_spec=
15563 hardcode_libdir_flag_spec_ld=
15564 hardcode_libdir_separator=
15565 hardcode_minus_L=no
15566 hardcode_shlibpath_var=unsupported
15568 link_all_deplibs=unknown
15570 module_expsym_cmds=
15571 old_archive_from_new_cmds=
15572 old_archive_from_expsyms_cmds=
15573 thread_safe_flag_spec=
15574 whole_archive_flag_spec=
15575 # include_expsyms should be a list of space-separated symbols to be *always*
15576 # included in the symbol list
15578 # exclude_expsyms can be an extended regexp of symbols to exclude
15579 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15580 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15581 # as well as any symbol that contains `d'.
15582 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15583 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15584 # platforms (ab)use it in PIC code, but their linkers get confused if
15585 # the symbol is explicitly referenced. Since portable code cannot
15586 # rely on this symbol name, it's probably fine to never include it in
15587 # preloaded symbol tables.
15588 # Exclude shared library initialization/finalization symbols.
15589 extract_expsyms_cmds=
15592 cygwin* | mingw* | pw32* | cegcc*)
15593 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15594 # When not using gcc, we currently assume that we are using
15595 # Microsoft Visual C++.
15596 if test "$GCC" != yes; then
15601 # we just hope/assume this is gcc and not c89 (= MSVC++)
15611 # On some targets, GNU ld is compatible enough with the native linker
15612 # that we're better off using the native interface for both.
15613 lt_use_gnu_ld_interface=no
15614 if test "$with_gnu_ld" = yes; then
15617 # The AIX port of GNU ld has always aspired to compatibility
15618 # with the native linker. However, as the warning in the GNU ld
15619 # block says, versions before 2.19.5* couldn't really create working
15620 # shared libraries, regardless of the interface used.
15621 case `$LD -v 2>&1` in
15622 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15623 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15624 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15626 lt_use_gnu_ld_interface=yes
15631 lt_use_gnu_ld_interface=yes
15636 if test "$lt_use_gnu_ld_interface" = yes; then
15637 # If archive_cmds runs LD, not CC, wlarc should be empty
15640 # Set some defaults for GNU ld with shared library support. These
15641 # are reset later if shared libraries are not supported. Putting them
15642 # here allows them to be overridden if necessary.
15643 runpath_var=LD_RUN_PATH
15644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15645 export_dynamic_flag_spec='${wl}--export-dynamic'
15646 # ancient GNU ld didn't support --whole-archive et. al.
15647 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15648 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15650 whole_archive_flag_spec=
15652 supports_anon_versioning=no
15653 case `$LD -v 2>&1` in
15654 *GNU\ gold*) supports_anon_versioning=yes ;;
15655 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15656 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15657 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15658 *\ 2.11.*) ;; # other 2.11 versions
15659 *) supports_anon_versioning=yes ;;
15662 # See if GNU ld supports shared libraries.
15665 # On AIX/PPC, the GNU linker is very broken
15666 if test "$host_cpu" != ia64; then
15670 *** Warning: the GNU linker, at least up to release 2.19, is reported
15671 *** to be unable to reliably create shared libraries on AIX.
15672 *** Therefore, libtool is disabling shared libraries support. If you
15673 *** really care for shared libraries, you may want to install binutils
15674 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15675 *** You will then need to restart the configuration process.
15684 # see comment about AmigaOS4 .so support
15685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15686 archive_expsym_cmds=''
15689 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)'
15690 hardcode_libdir_flag_spec
='-L$libdir'
15691 hardcode_minus_L
=yes
15697 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15698 allow_undefined_flag
=unsupported
15699 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15700 # support --undefined. This deserves some investigation. FIXME
15701 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15707 cygwin
* | mingw
* | pw32
* | cegcc
*)
15708 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15709 # as there is no search path for DLLs.
15710 hardcode_libdir_flag_spec
='-L$libdir'
15711 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15712 allow_undefined_flag
=unsupported
15713 always_export_symbols
=no
15714 enable_shared_with_static_runtimes
=yes
15715 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15717 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15718 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15719 # If the export-symbols file already is a .def file (1st line
15720 # is EXPORTS), use it as is; otherwise, prepend...
15721 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15722 cp $export_symbols $output_objdir/$soname.def;
15724 echo EXPORTS > $output_objdir/$soname.def;
15725 cat $export_symbols >> $output_objdir/$soname.def;
15727 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15734 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15735 link_all_deplibs
=yes
15740 hardcode_shlibpath_var
=no
15741 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15742 export_dynamic_flag_spec
='${wl}-E'
15743 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15744 # Instead, shared libraries are loaded at an image base (0x10000000 by
15745 # default) and relocated if they conflict, which is a slow very memory
15746 # consuming and fragmenting process. To avoid this, we pick a random,
15747 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15748 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15749 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15750 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'
15753 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15755 if test "$host_os" = linux-dietlibc
; then
15756 case $cc_basename in
15757 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15760 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15761 && test "$tmp_diet" = no
15764 tmp_sharedflag
='-shared'
15765 case $cc_basename,$host_cpu in
15766 pgcc
*) # Portland Group C compiler
15767 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'
15768 tmp_addflag
=' $pic_flag'
15770 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15771 # Portland Group f77 and f90 compilers
15772 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'
15773 tmp_addflag
=' $pic_flag -Mnomain' ;;
15774 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15775 tmp_addflag
=' -i_dynamic' ;;
15776 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15777 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15778 ifc
* | ifort
*) # Intel Fortran compiler
15779 tmp_addflag
=' -nofor_main' ;;
15780 lf95
*) # Lahey Fortran 8.1
15781 whole_archive_flag_spec
=
15782 tmp_sharedflag
='--shared' ;;
15783 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15784 tmp_sharedflag
='-qmkshrobj'
15786 nvcc
*) # Cuda Compiler Driver 2.2
15787 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'
15788 compiler_needs_object
=yes
15791 case `$CC -V 2>&1 | sed 5q` in
15792 *Sun\ C
*) # Sun C 5.9
15793 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'
15794 compiler_needs_object
=yes
15795 tmp_sharedflag
='-G' ;;
15796 *Sun\ F
*) # Sun Fortran 8.3
15797 tmp_sharedflag
='-G' ;;
15799 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801 if test "x$supports_anon_versioning" = xyes
; then
15802 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15804 echo "local: *; };" >> $output_objdir/$libname.ver~
15805 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15808 case $cc_basename in
15809 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15810 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15811 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15812 hardcode_libdir_flag_spec
=
15813 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15814 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15815 if test "x$supports_anon_versioning" = xyes
; then
15816 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15818 echo "local: *; };" >> $output_objdir/$libname.ver~
15819 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15829 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15830 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15833 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15834 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15839 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15843 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15844 *** create shared libraries on Solaris systems. Therefore, libtool
15845 *** is disabling shared libraries support. We urge you to upgrade GNU
15846 *** binutils to release 2.9.1 or newer. Another option is to modify
15847 *** your PATH or compiler configuration so that the native linker is
15848 *** used, and then restart.
15851 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15852 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15853 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15859 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15860 case `$LD -v 2>&1` in
15861 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15865 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15866 *** reliably create shared libraries on SCO systems. Therefore, libtool
15867 *** is disabling shared libraries support. We urge you to upgrade GNU
15868 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15869 *** your PATH or compiler configuration so that the native linker is
15870 *** used, and then restart.
15875 # For security reasons, it is highly recommended that you always
15876 # use absolute paths for naming shared libraries, and exclude the
15877 # DT_RUNPATH tag from executables and libraries. But doing so
15878 # requires that you compile everything twice, which is a pain.
15879 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15880 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15881 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15882 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15891 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15893 hardcode_direct
=yes
15894 hardcode_shlibpath_var
=no
15898 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15899 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15900 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15907 if test "$ld_shlibs" = no
; then
15909 hardcode_libdir_flag_spec
=
15910 export_dynamic_flag_spec
=
15911 whole_archive_flag_spec
=
15914 # PORTME fill in a description of your system's linker (not GNU ld)
15917 allow_undefined_flag
=unsupported
15918 always_export_symbols
=yes
15919 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'
15920 # Note: this linker hardcodes the directories in LIBPATH if there
15921 # are no directories specified by -L.
15922 hardcode_minus_L
=yes
15923 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15924 # Neither direct hardcoding nor static linking is supported with a
15926 hardcode_direct
=unsupported
15931 if test "$host_cpu" = ia64
; then
15932 # On IA64, the linker does run time linking by default, so we don't
15933 # have to do anything special.
15934 aix_use_runtimelinking
=no
15935 exp_sym_flag
='-Bexport'
15938 # If we're using GNU nm, then we don't want the "-C" option.
15939 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15940 # Also, AIX nm treats weak defined symbols like other global
15941 # defined symbols, whereas GNU nm marks them as "W".
15942 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15943 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'
15945 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'
15947 aix_use_runtimelinking
=no
15949 # Test if we are trying to use run time linking or normal
15950 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15951 # need to do runtime linking.
15952 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15953 for ld_flag
in $LDFLAGS; do
15954 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15955 aix_use_runtimelinking
=yes
15962 exp_sym_flag
='-bexport'
15963 no_entry_flag
='-bnoentry'
15966 # When large executables or shared objects are built, AIX ld can
15967 # have problems creating the table of contents. If linking a library
15968 # or program results in "error TOC overflow" add -mminimal-toc to
15969 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15970 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15973 hardcode_direct
=yes
15974 hardcode_direct_absolute
=yes
15975 hardcode_libdir_separator
=':'
15976 link_all_deplibs
=yes
15977 file_list_spec
='${wl}-f,'
15979 if test "$GCC" = yes; then
15980 case $host_os in aix4.
[012]|aix4.
[012].
*)
15981 # We only want to do this on AIX 4.2 and lower, the check
15982 # below for broken collect2 doesn't work under 4.3+
15983 collect2name
=`${CC} -print-prog-name=collect2`
15984 if test -f "$collect2name" &&
15985 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15987 # We have reworked collect2
15990 # We have old collect2
15991 hardcode_direct
=unsupported
15992 # It fails to find uninstalled libraries when the uninstalled
15993 # path is not listed in the libpath. Setting hardcode_minus_L
15994 # to unsupported forces relinking
15995 hardcode_minus_L
=yes
15996 hardcode_libdir_flag_spec
='-L$libdir'
15997 hardcode_libdir_separator
=
16001 shared_flag
='-shared'
16002 if test "$aix_use_runtimelinking" = yes; then
16003 shared_flag
="$shared_flag "'${wl}-G'
16007 if test "$host_cpu" = ia64
; then
16008 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16009 # chokes on -Wl,-G. The following line is correct:
16012 if test "$aix_use_runtimelinking" = yes; then
16013 shared_flag
='${wl}-G'
16015 shared_flag
='${wl}-bM:SRE'
16020 export_dynamic_flag_spec
='${wl}-bexpall'
16021 # It seems that -bexpall does not export symbols beginning with
16022 # underscore (_), so it is better to generate a list of symbols to export.
16023 always_export_symbols
=yes
16024 if test "$aix_use_runtimelinking" = yes; then
16025 # Warning - without using the other runtime loading flags (-brtl),
16026 # -berok will link without error, but may produce a broken library.
16027 allow_undefined_flag
='-berok'
16028 # Determine the default libpath from the value encoded in an
16029 # empty executable.
16030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16041 if ac_fn_c_try_link
"$LINENO"; then :
16043 lt_aix_libpath_sed
='
16044 /Import File Strings/,/^$/ {
16050 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16051 # Check for a 64-bit object if we didn't find anything.
16052 if test -z "$aix_libpath"; then
16053 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16056 rm -f core conftest.err conftest.
$ac_objext \
16057 conftest
$ac_exeext conftest.
$ac_ext
16058 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16060 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16061 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"
16063 if test "$host_cpu" = ia64
; then
16064 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16065 allow_undefined_flag
="-z nodefs"
16066 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"
16068 # Determine the default libpath from the value encoded in an
16069 # empty executable.
16070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16081 if ac_fn_c_try_link
"$LINENO"; then :
16083 lt_aix_libpath_sed
='
16084 /Import File Strings/,/^$/ {
16090 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16091 # Check for a 64-bit object if we didn't find anything.
16092 if test -z "$aix_libpath"; then
16093 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16096 rm -f core conftest.err conftest.
$ac_objext \
16097 conftest
$ac_exeext conftest.
$ac_ext
16098 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16100 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16101 # Warning - without using the other run time loading flags,
16102 # -berok will link without error, but may produce a broken library.
16103 no_undefined_flag
=' ${wl}-bernotok'
16104 allow_undefined_flag
=' ${wl}-berok'
16105 if test "$with_gnu_ld" = yes; then
16106 # We only use this code for GNU lds that support --whole-archive.
16107 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16109 # Exported symbols can be pulled into shared objects from archives
16110 whole_archive_flag_spec
='$convenience'
16112 archive_cmds_need_lc
=yes
16113 # This is similar to how AIX traditionally builds its shared libraries.
16114 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'
16122 # see comment about AmigaOS4 .so support
16123 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16124 archive_expsym_cmds
=''
16127 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)'
16128 hardcode_libdir_flag_spec
='-L$libdir'
16129 hardcode_minus_L
=yes
16135 export_dynamic_flag_spec
=-rdynamic
16138 cygwin
* | mingw
* | pw32
* | cegcc
*)
16139 # When not using gcc, we currently assume that we are using
16140 # Microsoft Visual C++.
16141 # hardcode_libdir_flag_spec is actually meaningless, as there is
16142 # no search path for DLLs.
16143 hardcode_libdir_flag_spec
=' '
16144 allow_undefined_flag
=unsupported
16145 # Tell ltmain to make .lib files, not .a files.
16147 # Tell ltmain to make .dll files, not .so files.
16149 # FIXME: Setting linknames here is a bad hack.
16150 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16151 # The linker will automatically build a .lib file if we build a DLL.
16152 old_archive_from_new_cmds
='true'
16153 # FIXME: Should let the user specify the lib program.
16154 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16155 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16156 enable_shared_with_static_runtimes
=yes
16159 darwin
* | rhapsody
*)
16162 archive_cmds_need_lc
=no
16164 hardcode_automatic
=yes
16165 hardcode_shlibpath_var
=unsupported
16166 if test "$lt_cv_ld_force_load" = "yes"; then
16167 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\"`'
16169 whole_archive_flag_spec
=''
16171 link_all_deplibs
=yes
16172 allow_undefined_flag
="$_lt_dar_allow_undefined"
16173 case $cc_basename in
16174 ifort
*) _lt_dar_can_shared
=yes ;;
16175 *) _lt_dar_can_shared
=$GCC ;;
16177 if test "$_lt_dar_can_shared" = "yes"; then
16178 output_verbose_link_cmd
=func_echo_all
16179 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16180 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16181 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}"
16182 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}"
16191 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192 hardcode_libdir_flag_spec
='-L$libdir'
16193 hardcode_shlibpath_var
=no
16196 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16197 # support. Future versions do this automatically, but an explicit c++rt0.o
16198 # does not break anything, and helps significantly (at the cost of a little
16201 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16202 hardcode_libdir_flag_spec
='-R$libdir'
16203 hardcode_direct
=yes
16204 hardcode_shlibpath_var
=no
16207 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16209 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16210 hardcode_direct
=yes
16211 hardcode_minus_L
=yes
16212 hardcode_shlibpath_var
=no
16215 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16216 freebsd
* | dragonfly
*)
16217 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16218 hardcode_libdir_flag_spec
='-R$libdir'
16219 hardcode_direct
=yes
16220 hardcode_shlibpath_var
=no
16224 if test "$GCC" = yes; then
16225 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'
16227 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'
16229 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16230 hardcode_libdir_separator
=:
16231 hardcode_direct
=yes
16233 # hardcode_minus_L: Not really in the search PATH,
16234 # but as the default location of the library.
16235 hardcode_minus_L
=yes
16236 export_dynamic_flag_spec
='${wl}-E'
16240 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16241 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16243 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16245 if test "$with_gnu_ld" = no
; then
16246 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16247 hardcode_libdir_flag_spec_ld
='+b $libdir'
16248 hardcode_libdir_separator
=:
16249 hardcode_direct
=yes
16250 hardcode_direct_absolute
=yes
16251 export_dynamic_flag_spec
='${wl}-E'
16252 # hardcode_minus_L: Not really in the search PATH,
16253 # but as the default location of the library.
16254 hardcode_minus_L
=yes
16259 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16262 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16265 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16268 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16274 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16277 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16281 # Older versions of the 11.00 compiler do not understand -b yet
16282 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16284 $as_echo_n "checking if $CC understands -b... " >&6; }
16285 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16286 $as_echo_n "(cached) " >&6
16288 lt_cv_prog_compiler__b
=no
16289 save_LDFLAGS
="$LDFLAGS"
16290 LDFLAGS
="$LDFLAGS -b"
16291 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16292 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16293 # The linker can only warn and ignore the option if not recognized
16294 # So say no if there are warnings
16295 if test -s conftest.err
; then
16296 # Append any errors to the config.log.
16297 cat conftest.err
1>&5
16298 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16299 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16300 if diff conftest.exp conftest.er2
>/dev
/null
; then
16301 lt_cv_prog_compiler__b
=yes
16304 lt_cv_prog_compiler__b
=yes
16308 LDFLAGS
="$save_LDFLAGS"
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16312 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16314 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16315 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16317 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16323 if test "$with_gnu_ld" = no
; then
16324 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16325 hardcode_libdir_separator
=:
16330 hardcode_shlibpath_var
=no
16333 hardcode_direct
=yes
16334 hardcode_direct_absolute
=yes
16335 export_dynamic_flag_spec
='${wl}-E'
16337 # hardcode_minus_L: Not really in the search PATH,
16338 # but as the default location of the library.
16339 hardcode_minus_L
=yes
16345 irix5
* | irix6
* | nonstopux
*)
16346 if test "$GCC" = yes; then
16347 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'
16348 # Try to use the -exported_symbol ld option, if it does not
16349 # work, assume that -exports_file does not work either and
16350 # implicitly export all symbols.
16351 save_LDFLAGS
="$LDFLAGS"
16352 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16357 if ac_fn_c_try_link
"$LINENO"; then :
16358 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'
16361 rm -f core conftest.err conftest.
$ac_objext \
16362 conftest
$ac_exeext conftest.
$ac_ext
16363 LDFLAGS
="$save_LDFLAGS"
16365 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'
16366 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'
16368 archive_cmds_need_lc
='no'
16369 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16370 hardcode_libdir_separator
=:
16372 link_all_deplibs
=yes
16376 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16377 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16379 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16381 hardcode_libdir_flag_spec
='-R$libdir'
16382 hardcode_direct
=yes
16383 hardcode_shlibpath_var
=no
16387 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16388 hardcode_direct
=yes
16389 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16390 hardcode_libdir_separator
=:
16391 hardcode_shlibpath_var
=no
16398 if test -f /usr
/libexec
/ld.so
; then
16399 hardcode_direct
=yes
16400 hardcode_shlibpath_var
=no
16401 hardcode_direct_absolute
=yes
16402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16403 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16404 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16405 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16406 export_dynamic_flag_spec
='${wl}-E'
16409 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16410 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16411 hardcode_libdir_flag_spec
='-R$libdir'
16414 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16415 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16425 hardcode_libdir_flag_spec
='-L$libdir'
16426 hardcode_minus_L
=yes
16427 allow_undefined_flag
=unsupported
16428 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'
16429 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16433 if test "$GCC" = yes; then
16434 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16435 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'
16437 allow_undefined_flag
=' -expect_unresolved \*'
16438 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'
16440 archive_cmds_need_lc
='no'
16441 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16442 hardcode_libdir_separator
=:
16445 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16446 if test "$GCC" = yes; then
16447 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16448 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'
16449 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16451 allow_undefined_flag
=' -expect_unresolved \*'
16452 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'
16453 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~
16454 $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'
16456 # Both c and cxx compiler support -rpath directly
16457 hardcode_libdir_flag_spec
='-rpath $libdir'
16459 archive_cmds_need_lc
='no'
16460 hardcode_libdir_separator
=:
16464 no_undefined_flag
=' -z defs'
16465 if test "$GCC" = yes; then
16467 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16468 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16469 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16471 case `$CC -V 2>&1` in
16474 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16475 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16476 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16480 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16481 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16482 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16486 hardcode_libdir_flag_spec
='-R$libdir'
16487 hardcode_shlibpath_var
=no
16489 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16491 # The compiler driver will combine and reorder linker options,
16492 # but understands `-z linker_flag'. GCC discards it without `$wl',
16493 # but is careful enough not to reorder.
16494 # Supported since Solaris 2.6 (maybe 2.5.1?)
16495 if test "$GCC" = yes; then
16496 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16498 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16502 link_all_deplibs
=yes
16506 if test "x$host_vendor" = xsequent
; then
16507 # Use $CC to link under sequent, because it throws in some extra .o
16508 # files that make .init and .fini sections work.
16509 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16513 hardcode_libdir_flag_spec
='-L$libdir'
16514 hardcode_direct
=yes
16515 hardcode_minus_L
=yes
16516 hardcode_shlibpath_var
=no
16520 case $host_vendor in
16522 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523 hardcode_direct
=yes # is this really true???
16526 ## LD is ld it makes a PLAMLIB
16527 ## CC just makes a GrossModule.
16528 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16529 reload_cmds
='$CC -r -o $output$reload_objs'
16533 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16537 runpath_var
='LD_RUN_PATH'
16538 hardcode_shlibpath_var
=no
16542 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543 hardcode_shlibpath_var
=no
16544 export_dynamic_flag_spec
='-Bexport'
16548 if test -d /usr
/nec
; then
16549 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16550 hardcode_shlibpath_var
=no
16551 runpath_var
=LD_RUN_PATH
16552 hardcode_runpath_var
=yes
16557 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16558 no_undefined_flag
='${wl}-z,text'
16559 archive_cmds_need_lc
=no
16560 hardcode_shlibpath_var
=no
16561 runpath_var
='LD_RUN_PATH'
16563 if test "$GCC" = yes; then
16564 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16565 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16567 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16568 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16572 sysv5
* | sco3.2v5
* | sco5v6
*)
16573 # Note: We can NOT use -z defs as we might desire, because we do not
16574 # link with -lc, and that would cause any symbols used from libc to
16575 # always be unresolved, which means just about no library would
16576 # ever link correctly. If we're not using GNU ld we use -z text
16577 # though, which does catch some bad symbols but isn't as heavy-handed
16579 no_undefined_flag
='${wl}-z,text'
16580 allow_undefined_flag
='${wl}-z,nodefs'
16581 archive_cmds_need_lc
=no
16582 hardcode_shlibpath_var
=no
16583 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16584 hardcode_libdir_separator
=':'
16585 link_all_deplibs
=yes
16586 export_dynamic_flag_spec
='${wl}-Bexport'
16587 runpath_var
='LD_RUN_PATH'
16589 if test "$GCC" = yes; then
16590 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16591 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16593 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16594 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16599 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16600 hardcode_libdir_flag_spec
='-L$libdir'
16601 hardcode_shlibpath_var
=no
16609 if test x
$host_vendor = xsni
; then
16611 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16612 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16619 $as_echo "$ld_shlibs" >&6; }
16620 test "$ld_shlibs" = no
&& can_build_shared
=no
16622 with_gnu_ld
=$with_gnu_ld
16639 # Do we need to explicitly link libc?
16641 case "x$archive_cmds_need_lc" in
16643 # Assume -lc should be added
16644 archive_cmds_need_lc
=yes
16646 if test "$enable_shared" = yes && test "$GCC" = yes; then
16647 case $archive_cmds in
16649 # FIXME: we may have to deal with multi-command sequences.
16652 # Test whether the compiler implicitly links with -lc since on some
16653 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16654 # to ld, don't add -lc before -lgcc.
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16656 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16657 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16658 $as_echo_n "(cached) " >&6
16661 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16664 (eval $ac_compile) 2>&5
16666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16667 test $ac_status = 0; } 2>conftest.err
; then
16670 libobjs
=conftest.
$ac_objext
16672 wl
=$lt_prog_compiler_wl
16673 pic_flag
=$lt_prog_compiler_pic
16679 lt_save_allow_undefined_flag
=$allow_undefined_flag
16680 allow_undefined_flag
=
16681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16682 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16685 test $ac_status = 0; }
16687 lt_cv_archive_cmds_need_lc
=no
16689 lt_cv_archive_cmds_need_lc
=yes
16691 allow_undefined_flag
=$lt_save_allow_undefined_flag
16693 cat conftest.err
1>&5
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16699 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16700 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16864 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16866 if test "$GCC" = yes; then
16868 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16869 *) lt_awk_arg
="/^libraries:/" ;;
16872 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16873 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16875 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16876 case $lt_search_path_spec in
16878 # if the path contains ";" then we assume it to be the separator
16879 # otherwise default to the standard path separator (i.e. ":") - it is
16880 # assumed that no part of a normal pathname contains ";" but that should
16881 # okay in the real world where ";" in dirpaths is itself problematic.
16882 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16885 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16888 # Ok, now we have the path, separated by spaces, we can step through it
16889 # and add multilib dir if necessary.
16890 lt_tmp_lt_search_path_spec
=
16891 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16892 for lt_sys_path
in $lt_search_path_spec; do
16893 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16894 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16896 test -d "$lt_sys_path" && \
16897 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16900 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16901 BEGIN {RS=" "; FS="/|\n";} {
16904 for (lt_i = NF; lt_i > 0; lt_i--) {
16905 if ($lt_i != "" && $lt_i != ".") {
16906 if ($lt_i == "..") {
16909 if (lt_count == 0) {
16910 lt_foo="/" $lt_i lt_foo;
16917 if (lt_foo != "") { lt_freq[lt_foo]++; }
16918 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16920 # AWK program above erroneously prepends '/' to C:/dos/paths
16923 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16924 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16926 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16928 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16930 library_names_spec
=
16931 libname_spec
='lib$name'
16935 postuninstall_cmds
=
16939 shlibpath_overrides_runpath
=unknown
16941 dynamic_linker
="$host_os ld.so"
16942 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16943 need_lib_prefix
=unknown
16944 hardcode_into_libs
=no
16946 # when you set need_version to no, make sure it does not cause -set_version
16947 # flags to be left without arguments
16948 need_version
=unknown
16953 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16954 shlibpath_var
=LIBPATH
16956 # AIX 3 has no versioning support, so we append a major version to the name.
16957 soname_spec
='${libname}${release}${shared_ext}$major'
16964 hardcode_into_libs
=yes
16965 if test "$host_cpu" = ia64
; then
16966 # AIX 5 supports IA64
16967 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16968 shlibpath_var
=LD_LIBRARY_PATH
16970 # With GCC up to 2.95.x, collect2 would create an import file
16971 # for dependence libraries. The import file would start with
16972 # the line `#! .'. This would cause the generated library to
16973 # depend on `.', always an invalid library. This was fixed in
16974 # development snapshots of GCC prior to 3.0.
16976 aix4 | aix4.
[01] | aix4.
[01].
*)
16977 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16979 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16982 can_build_shared
=no
16986 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16987 # soname into executable. Probably we can add versioning support to
16988 # collect2, so additional links can be useful in future.
16989 if test "$aix_use_runtimelinking" = yes; then
16990 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16991 # instead of lib<name>.a to let people know that these are not
16992 # typical AIX shared libraries.
16993 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995 # We preserve .a as extension for shared libraries through AIX4.2
16996 # and later when we are not doing run time linking.
16997 library_names_spec
='${libname}${release}.a $libname.a'
16998 soname_spec
='${libname}${release}${shared_ext}$major'
17000 shlibpath_var
=LIBPATH
17007 # Since July 2007 AmigaOS4 officially supports .so libraries.
17008 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17012 library_names_spec
='$libname.ixlibrary $libname.a'
17013 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17014 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'
17020 library_names_spec
='${libname}${shared_ext}'
17021 dynamic_linker
="$host_os ld.so"
17022 shlibpath_var
=LIBRARY_PATH
17028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17029 soname_spec
='${libname}${release}${shared_ext}$major'
17030 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17031 shlibpath_var
=LD_LIBRARY_PATH
17032 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17033 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17034 # the default ld.so.conf also contains /usr/contrib/lib and
17035 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17036 # libtool to hard-code these into programs
17039 cygwin
* | mingw
* | pw32
* | cegcc
*)
17040 version_type
=windows
17045 case $GCC,$host_os in
17046 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17047 library_names_spec
='$libname.dll.a'
17048 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17049 postinstall_cmds
='base_file=`basename \${file}`~
17050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17051 dldir=$destdir/`dirname \$dlpath`~
17052 test -d \$dldir || mkdir -p \$dldir~
17053 $install_prog $dir/$dlname \$dldir/$dlname~
17054 chmod a+x \$dldir/$dlname~
17055 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17056 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17058 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17059 dlpath=$dir/\$dldll~
17061 shlibpath_overrides_runpath
=yes
17065 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17066 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17068 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17071 # MinGW DLLs use traditional 'lib' prefix
17072 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17075 # pw32 DLLs use 'pw' prefix rather than 'lib'
17076 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17082 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17085 dynamic_linker
='Win32 ld.exe'
17086 # FIXME: first we should search . and the directory the executable is in
17090 darwin
* | rhapsody
*)
17091 dynamic_linker
="$host_os dyld"
17092 version_type
=darwin
17095 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17096 soname_spec
='${libname}${release}${major}$shared_ext'
17097 shlibpath_overrides_runpath
=yes
17098 shlibpath_var
=DYLD_LIBRARY_PATH
17099 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17101 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17102 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17109 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17110 soname_spec
='${libname}${release}${shared_ext}$major'
17111 shlibpath_var
=LD_LIBRARY_PATH
17114 freebsd
* | dragonfly
*)
17115 # DragonFly does not have aout. When/if they implement a new
17116 # versioning mechanism, adjust this.
17117 if test -x /usr
/bin
/objformat
; then
17118 objformat
=`/usr/bin/objformat`
17121 freebsd
[23].
*) objformat
=aout
;;
17122 *) objformat
=elf
;;
17125 version_type
=freebsd-
$objformat
17126 case $version_type in
17128 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17133 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17137 shlibpath_var
=LD_LIBRARY_PATH
17140 shlibpath_overrides_runpath
=yes
17142 freebsd3.
[01]* | freebsdelf3.
[01]*)
17143 shlibpath_overrides_runpath
=yes
17144 hardcode_into_libs
=yes
17146 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17147 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17148 shlibpath_overrides_runpath
=no
17149 hardcode_into_libs
=yes
17151 *) # from 4.6 on, and DragonFly
17152 shlibpath_overrides_runpath
=yes
17153 hardcode_into_libs
=yes
17162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17163 soname_spec
='${libname}${release}${shared_ext}$major'
17164 shlibpath_var
=LD_LIBRARY_PATH
17165 hardcode_into_libs
=yes
17172 dynamic_linker
="$host_os runtime_loader"
17173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17174 soname_spec
='${libname}${release}${shared_ext}$major'
17175 shlibpath_var
=LIBRARY_PATH
17176 shlibpath_overrides_runpath
=yes
17177 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17178 hardcode_into_libs
=yes
17181 hpux9
* | hpux10
* | hpux11
*)
17182 # Give a soname corresponding to the major version so that dld.sl refuses to
17183 # link against other versions.
17190 hardcode_into_libs
=yes
17191 dynamic_linker
="$host_os dld.so"
17192 shlibpath_var
=LD_LIBRARY_PATH
17193 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 soname_spec
='${libname}${release}${shared_ext}$major'
17196 if test "X$HPUX_IA64_MODE" = X32
; then
17197 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17199 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17201 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17205 hardcode_into_libs
=yes
17206 dynamic_linker
="$host_os dld.sl"
17207 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17208 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210 soname_spec
='${libname}${release}${shared_ext}$major'
17211 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17212 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17216 dynamic_linker
="$host_os dld.sl"
17217 shlibpath_var
=SHLIB_PATH
17218 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17219 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220 soname_spec
='${libname}${release}${shared_ext}$major'
17223 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17224 postinstall_cmds
='chmod 555 $lib'
17225 # or fails outright, so override atomically:
17226 install_override_mode
=555
17233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17234 soname_spec
='${libname}${release}${shared_ext}$major'
17235 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17236 shlibpath_var
=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath
=no
17238 hardcode_into_libs
=yes
17241 irix5
* | irix6
* | nonstopux
*)
17243 nonstopux
*) version_type
=nonstopux
;;
17245 if test "$lt_cv_prog_gnu_ld" = yes; then
17253 soname_spec
='${libname}${release}${shared_ext}$major'
17254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17256 irix5
* | nonstopux
*)
17257 libsuff
= shlibsuff
=
17260 case $LD in # libtool.m4 will add one of these switches to LD
17261 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17262 libsuff
= shlibsuff
= libmagic
=32-bit;;
17263 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17264 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17265 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17266 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17267 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17271 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17272 shlibpath_overrides_runpath
=no
17273 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17274 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17275 hardcode_into_libs
=yes
17278 # No shared lib support for Linux oldld, aout, or coff.
17279 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17283 # This must be Linux ELF.
17284 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289 soname_spec
='${libname}${release}${shared_ext}$major'
17290 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17291 shlibpath_var
=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath
=no
17294 # Some binutils ld are patched to set DT_RUNPATH
17295 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17296 $as_echo_n "(cached) " >&6
17298 lt_cv_shlibpath_overrides_runpath
=no
17299 save_LDFLAGS
=$LDFLAGS
17300 save_libdir
=$libdir
17301 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17302 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17304 /* end confdefs.h. */
17314 if ac_fn_c_try_link
"$LINENO"; then :
17315 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17316 lt_cv_shlibpath_overrides_runpath
=yes
17319 rm -f core conftest.err conftest.
$ac_objext \
17320 conftest
$ac_exeext conftest.
$ac_ext
17321 LDFLAGS
=$save_LDFLAGS
17322 libdir
=$save_libdir
17326 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17328 # This implies no fast_install, which is unacceptable.
17329 # Some rework will be needed to allow for fast_install
17330 # before this can be enabled.
17331 hardcode_into_libs
=yes
17333 # Append ld.so.conf contents to the search path
17334 if test -f /etc
/ld.so.conf
; then
17335 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' ' '`
17336 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17339 # We used to test for /lib/ld.so.1 and disable shared libraries on
17340 # powerpc, because MkLinux only supported shared libraries with the
17341 # GNU dynamic linker. Since this was broken with cross compilers,
17342 # most powerpc-linux boxes support dynamic linking these days and
17343 # people can always --disable-shared, the test was removed, and we
17344 # assume the GNU/Linux dynamic linker is in use.
17345 dynamic_linker
='GNU/Linux ld.so'
17352 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17354 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17355 dynamic_linker
='NetBSD (a.out) ld.so'
17357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17358 soname_spec
='${libname}${release}${shared_ext}$major'
17359 dynamic_linker
='NetBSD ld.elf_so'
17361 shlibpath_var
=LD_LIBRARY_PATH
17362 shlibpath_overrides_runpath
=yes
17363 hardcode_into_libs
=yes
17368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 shlibpath_var
=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath
=yes
17377 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec
='${libname}${release}${shared_ext}$major'
17379 shlibpath_var
=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath
=no
17381 hardcode_into_libs
=yes
17382 dynamic_linker
='ldqnx.so'
17387 sys_lib_dlsearch_path_spec
="/usr/lib"
17389 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17391 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17392 *) need_version
=no
;;
17394 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17395 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17396 shlibpath_var
=LD_LIBRARY_PATH
17397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17399 openbsd2.
[89] | openbsd2.
[89].
*)
17400 shlibpath_overrides_runpath
=no
17403 shlibpath_overrides_runpath
=yes
17407 shlibpath_overrides_runpath
=yes
17412 libname_spec
='$name'
17415 library_names_spec
='$libname${shared_ext} $libname.a'
17416 dynamic_linker
='OS/2 ld.exe'
17417 shlibpath_var
=LIBPATH
17420 osf3
* | osf4
* | osf5
*)
17424 soname_spec
='${libname}${release}${shared_ext}$major'
17425 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426 shlibpath_var
=LD_LIBRARY_PATH
17427 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17428 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17440 soname_spec
='${libname}${release}${shared_ext}$major'
17441 shlibpath_var
=LD_LIBRARY_PATH
17442 shlibpath_overrides_runpath
=yes
17443 hardcode_into_libs
=yes
17444 # ldd complains unless libraries are executable
17445 postinstall_cmds
='chmod +x $lib'
17450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17451 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17452 shlibpath_var
=LD_LIBRARY_PATH
17453 shlibpath_overrides_runpath
=yes
17454 if test "$with_gnu_ld" = yes; then
17462 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17463 soname_spec
='${libname}${release}${shared_ext}$major'
17464 shlibpath_var
=LD_LIBRARY_PATH
17465 case $host_vendor in
17467 shlibpath_overrides_runpath
=no
17469 runpath_var
=LD_RUN_PATH
17477 shlibpath_overrides_runpath
=no
17478 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17484 if test -d /usr
/nec
;then
17486 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17487 soname_spec
='$libname${shared_ext}.$major'
17488 shlibpath_var
=LD_LIBRARY_PATH
17492 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17493 version_type
=freebsd-elf
17496 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17497 soname_spec
='${libname}${release}${shared_ext}$major'
17498 shlibpath_var
=LD_LIBRARY_PATH
17499 shlibpath_overrides_runpath
=yes
17500 hardcode_into_libs
=yes
17501 if test "$with_gnu_ld" = yes; then
17502 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17504 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17507 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17511 sys_lib_dlsearch_path_spec
='/usr/lib'
17515 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17519 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520 shlibpath_var
=LD_LIBRARY_PATH
17521 shlibpath_overrides_runpath
=no
17522 hardcode_into_libs
=yes
17527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528 soname_spec
='${libname}${release}${shared_ext}$major'
17529 shlibpath_var
=LD_LIBRARY_PATH
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17537 $as_echo "$dynamic_linker" >&6; }
17538 test "$dynamic_linker" = no
&& can_build_shared
=no
17540 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17541 if test "$GCC" = yes; then
17542 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17545 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17546 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17548 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17549 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17644 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17646 if test -n "$hardcode_libdir_flag_spec" ||
17647 test -n "$runpath_var" ||
17648 test "X$hardcode_automatic" = "Xyes" ; then
17650 # We can hardcode non-existent directories.
17651 if test "$hardcode_direct" != no
&&
17652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17653 # have to relink, otherwise we might link with an installed library
17654 # when we should be linking with a yet-to-be-installed one
17655 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17656 test "$hardcode_minus_L" != no
; then
17657 # Linking always hardcodes the temporary library directory.
17658 hardcode_action
=relink
17660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17661 hardcode_action
=immediate
17664 # We cannot hardcode anything, or else we can only hardcode existing
17666 hardcode_action
=unsupported
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17669 $as_echo "$hardcode_action" >&6; }
17671 if test "$hardcode_action" = relink ||
17672 test "$inherit_rpath" = yes; then
17673 # Fast installation is not supported
17674 enable_fast_install
=no
17675 elif test "$shlibpath_overrides_runpath" = yes ||
17676 test "$enable_shared" = no
; then
17677 # Fast installation is not necessary
17678 enable_fast_install
=needless
17686 if test "x$enable_dlopen" != xyes
; then
17687 enable_dlopen
=unknown
17688 enable_dlopen_self
=unknown
17689 enable_dlopen_self_static
=unknown
17696 lt_cv_dlopen
="load_add_on"
17698 lt_cv_dlopen_self
=yes
17701 mingw
* | pw32
* | cegcc
*)
17702 lt_cv_dlopen
="LoadLibrary"
17707 lt_cv_dlopen
="dlopen"
17712 # if libdl is installed we need to link against it
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17714 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17716 $as_echo_n "(cached) " >&6
17718 ac_check_lib_save_LIBS
=$LIBS
17720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17723 /* Override any GCC internal prototype to avoid an error.
17724 Use char because int might match the return type of a GCC
17725 builtin and then its argument prototype would still apply. */
17738 if ac_fn_c_try_link
"$LINENO"; then :
17739 ac_cv_lib_dl_dlopen
=yes
17741 ac_cv_lib_dl_dlopen
=no
17743 rm -f core conftest.err conftest.
$ac_objext \
17744 conftest
$ac_exeext conftest.
$ac_ext
17745 LIBS
=$ac_check_lib_save_LIBS
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17748 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17749 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17750 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17753 lt_cv_dlopen
="dyld"
17755 lt_cv_dlopen_self
=yes
17762 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17763 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17764 lt_cv_dlopen
="shl_load"
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17767 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17768 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17769 $as_echo_n "(cached) " >&6
17771 ac_check_lib_save_LIBS
=$LIBS
17773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17776 /* Override any GCC internal prototype to avoid an error.
17777 Use char because int might match the return type of a GCC
17778 builtin and then its argument prototype would still apply. */
17786 return shl_load ();
17791 if ac_fn_c_try_link
"$LINENO"; then :
17792 ac_cv_lib_dld_shl_load
=yes
17794 ac_cv_lib_dld_shl_load
=no
17796 rm -f core conftest.err conftest.
$ac_objext \
17797 conftest
$ac_exeext conftest.
$ac_ext
17798 LIBS
=$ac_check_lib_save_LIBS
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17801 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17802 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17803 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17805 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17806 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17807 lt_cv_dlopen
="dlopen"
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17810 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17812 $as_echo_n "(cached) " >&6
17814 ac_check_lib_save_LIBS
=$LIBS
17816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17819 /* Override any GCC internal prototype to avoid an error.
17820 Use char because int might match the return type of a GCC
17821 builtin and then its argument prototype would still apply. */
17834 if ac_fn_c_try_link
"$LINENO"; then :
17835 ac_cv_lib_dl_dlopen
=yes
17837 ac_cv_lib_dl_dlopen
=no
17839 rm -f core conftest.err conftest.
$ac_objext \
17840 conftest
$ac_exeext conftest.
$ac_ext
17841 LIBS
=$ac_check_lib_save_LIBS
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17844 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17845 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17846 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17849 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17850 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17851 $as_echo_n "(cached) " >&6
17853 ac_check_lib_save_LIBS
=$LIBS
17854 LIBS
="-lsvld $LIBS"
17855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17856 /* end confdefs.h. */
17858 /* Override any GCC internal prototype to avoid an error.
17859 Use char because int might match the return type of a GCC
17860 builtin and then its argument prototype would still apply. */
17873 if ac_fn_c_try_link
"$LINENO"; then :
17874 ac_cv_lib_svld_dlopen
=yes
17876 ac_cv_lib_svld_dlopen
=no
17878 rm -f core conftest.err conftest.
$ac_objext \
17879 conftest
$ac_exeext conftest.
$ac_ext
17880 LIBS
=$ac_check_lib_save_LIBS
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17883 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17884 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17885 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17888 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17889 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17890 $as_echo_n "(cached) " >&6
17892 ac_check_lib_save_LIBS
=$LIBS
17894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17895 /* end confdefs.h. */
17897 /* Override any GCC internal prototype to avoid an error.
17898 Use char because int might match the return type of a GCC
17899 builtin and then its argument prototype would still apply. */
17907 return dld_link ();
17912 if ac_fn_c_try_link
"$LINENO"; then :
17913 ac_cv_lib_dld_dld_link
=yes
17915 ac_cv_lib_dld_dld_link
=no
17917 rm -f core conftest.err conftest.
$ac_objext \
17918 conftest
$ac_exeext conftest.
$ac_ext
17919 LIBS
=$ac_check_lib_save_LIBS
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17922 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17923 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17924 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17945 if test "x$lt_cv_dlopen" != xno
; then
17951 case $lt_cv_dlopen in
17953 save_CPPFLAGS
="$CPPFLAGS"
17954 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17956 save_LDFLAGS
="$LDFLAGS"
17957 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17960 LIBS
="$lt_cv_dlopen_libs $LIBS"
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17963 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17964 if test "${lt_cv_dlopen_self+set}" = set; then :
17965 $as_echo_n "(cached) " >&6
17967 if test "$cross_compiling" = yes; then :
17968 lt_cv_dlopen_self
=cross
17970 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17971 lt_status
=$lt_dlunknown
17972 cat > conftest.
$ac_ext <<_LT_EOF
17973 #line 17973 "configure"
17974 #include "confdefs.h"
17983 # define LT_DLGLOBAL RTLD_GLOBAL
17986 # define LT_DLGLOBAL DL_GLOBAL
17988 # define LT_DLGLOBAL 0
17992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17993 find out it does not work in some platform. */
17994 #ifndef LT_DLLAZY_OR_NOW
17996 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17999 # define LT_DLLAZY_OR_NOW DL_LAZY
18002 # define LT_DLLAZY_OR_NOW RTLD_NOW
18005 # define LT_DLLAZY_OR_NOW DL_NOW
18007 # define LT_DLLAZY_OR_NOW 0
18014 /* When -fvisbility=hidden is used, assume the code has been annotated
18015 correspondingly for the symbols needed. */
18016 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18017 void fnord () __attribute__((visibility("default")));
18020 void fnord () { int i=42; }
18023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18024 int status = $lt_dlunknown;
18028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18031 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18032 else puts (dlerror ());
18034 /* dlclose (self); */
18042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18043 (eval $ac_link) 2>&5
18045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18046 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18047 (.
/conftest
; exit; ) >&5 2>/dev
/null
18049 case x
$lt_status in
18050 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18051 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18052 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18055 # compilation failed
18056 lt_cv_dlopen_self
=no
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18064 $as_echo "$lt_cv_dlopen_self" >&6; }
18066 if test "x$lt_cv_dlopen_self" = xyes
; then
18067 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18069 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18070 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18071 $as_echo_n "(cached) " >&6
18073 if test "$cross_compiling" = yes; then :
18074 lt_cv_dlopen_self_static
=cross
18076 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18077 lt_status
=$lt_dlunknown
18078 cat > conftest.
$ac_ext <<_LT_EOF
18079 #line 18079 "configure"
18080 #include "confdefs.h"
18089 # define LT_DLGLOBAL RTLD_GLOBAL
18092 # define LT_DLGLOBAL DL_GLOBAL
18094 # define LT_DLGLOBAL 0
18098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18099 find out it does not work in some platform. */
18100 #ifndef LT_DLLAZY_OR_NOW
18102 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18105 # define LT_DLLAZY_OR_NOW DL_LAZY
18108 # define LT_DLLAZY_OR_NOW RTLD_NOW
18111 # define LT_DLLAZY_OR_NOW DL_NOW
18113 # define LT_DLLAZY_OR_NOW 0
18120 /* When -fvisbility=hidden is used, assume the code has been annotated
18121 correspondingly for the symbols needed. */
18122 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18123 void fnord () __attribute__((visibility("default")));
18126 void fnord () { int i=42; }
18129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18130 int status = $lt_dlunknown;
18134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18137 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18138 else puts (dlerror ());
18140 /* dlclose (self); */
18148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18149 (eval $ac_link) 2>&5
18151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18152 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18153 (.
/conftest
; exit; ) >&5 2>/dev
/null
18155 case x
$lt_status in
18156 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18157 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18158 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18161 # compilation failed
18162 lt_cv_dlopen_self_static
=no
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18170 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18173 CPPFLAGS
="$save_CPPFLAGS"
18174 LDFLAGS
="$save_LDFLAGS"
18179 case $lt_cv_dlopen_self in
18180 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18181 *) enable_dlopen_self
=unknown
;;
18184 case $lt_cv_dlopen_self_static in
18185 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18186 *) enable_dlopen_self_static
=unknown
;;
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18209 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18210 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18211 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18212 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18214 $as_echo "yes" >&6; }
18216 # FIXME - insert some real tests, host_os isn't really good enough
18219 if test -n "$STRIP" ; then
18220 striplib
="$STRIP -x"
18221 old_striplib
="$STRIP -S"
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18223 $as_echo "yes" >&6; }
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18226 $as_echo "no" >&6; }
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18231 $as_echo "no" >&6; }
18247 # Report which library types will actually be built
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18249 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18251 $as_echo "$can_build_shared" >&6; }
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18254 $as_echo_n "checking whether to build shared libraries... " >&6; }
18255 test "$can_build_shared" = "no" && enable_shared
=no
18257 # On AIX, shared libraries and static libraries use the same namespace, and
18258 # are all built from PIC.
18261 test "$enable_shared" = yes && enable_static
=no
18262 if test -n "$RANLIB"; then
18263 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18264 postinstall_cmds
='$RANLIB $lib'
18269 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18270 test "$enable_shared" = yes && enable_static
=no
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18275 $as_echo "$enable_shared" >&6; }
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18278 $as_echo_n "checking whether to build static libraries... " >&6; }
18279 # Make sure either enable_shared or enable_static is yes.
18280 test "$enable_shared" = yes || enable_static
=yes
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18282 $as_echo "$enable_static" >&6; }
18289 ac_cpp
='$CPP $CPPFLAGS'
18290 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18291 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18292 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18296 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18297 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18298 (test "X$CXX" != "Xg++"))) ; then
18300 ac_cpp
='$CXXCPP $CPPFLAGS'
18301 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18302 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18303 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18305 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18306 if test -z "$CXXCPP"; then
18307 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18308 $as_echo_n "(cached) " >&6
18310 # Double quotes because CXXCPP needs to be expanded
18311 for CXXCPP
in "$CXX -E" "/lib/cpp"
18313 ac_preproc_ok
=false
18314 for ac_cxx_preproc_warn_flag
in '' yes
18316 # Use a header file that comes with gcc, so configuring glibc
18317 # with a fresh cross-compiler works.
18318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18319 # <limits.h> exists even on freestanding compilers.
18320 # On the NeXT, cc -E runs the code through the compiler's parser,
18321 # not just through cpp. "Syntax error" is here to catch this case.
18322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18325 # include <limits.h>
18327 # include <assert.h>
18331 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18334 # Broken: fails on valid input.
18337 rm -f conftest.err conftest.
$ac_ext
18339 # OK, works on sane cases. Now check whether nonexistent headers
18340 # can be detected and how.
18341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18343 #include <ac_nonexistent.h>
18345 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18346 # Broken: success on invalid input.
18349 # Passes both tests.
18353 rm -f conftest.err conftest.
$ac_ext
18356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18357 rm -f conftest.err conftest.
$ac_ext
18358 if $ac_preproc_ok; then :
18363 ac_cv_prog_CXXCPP
=$CXXCPP
18366 CXXCPP
=$ac_cv_prog_CXXCPP
18368 ac_cv_prog_CXXCPP
=$CXXCPP
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18371 $as_echo "$CXXCPP" >&6; }
18372 ac_preproc_ok
=false
18373 for ac_cxx_preproc_warn_flag
in '' yes
18375 # Use a header file that comes with gcc, so configuring glibc
18376 # with a fresh cross-compiler works.
18377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18378 # <limits.h> exists even on freestanding compilers.
18379 # On the NeXT, cc -E runs the code through the compiler's parser,
18380 # not just through cpp. "Syntax error" is here to catch this case.
18381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18382 /* end confdefs.h. */
18384 # include <limits.h>
18386 # include <assert.h>
18390 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18393 # Broken: fails on valid input.
18396 rm -f conftest.err conftest.
$ac_ext
18398 # OK, works on sane cases. Now check whether nonexistent headers
18399 # can be detected and how.
18400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18402 #include <ac_nonexistent.h>
18404 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18405 # Broken: success on invalid input.
18408 # Passes both tests.
18412 rm -f conftest.err conftest.
$ac_ext
18415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18416 rm -f conftest.err conftest.
$ac_ext
18417 if $ac_preproc_ok; then :
18420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18422 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18423 See \`config.log' for more details." "$LINENO" 5; }
18427 ac_cpp
='$CPP $CPPFLAGS'
18428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18433 _lt_caught_CXX_error
=yes
18437 ac_cpp
='$CXXCPP $CPPFLAGS'
18438 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18439 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18440 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18442 archive_cmds_need_lc_CXX
=no
18443 allow_undefined_flag_CXX
=
18444 always_export_symbols_CXX
=no
18445 archive_expsym_cmds_CXX
=
18446 compiler_needs_object_CXX
=no
18447 export_dynamic_flag_spec_CXX
=
18448 hardcode_direct_CXX
=no
18449 hardcode_direct_absolute_CXX
=no
18450 hardcode_libdir_flag_spec_CXX
=
18451 hardcode_libdir_flag_spec_ld_CXX
=
18452 hardcode_libdir_separator_CXX
=
18453 hardcode_minus_L_CXX
=no
18454 hardcode_shlibpath_var_CXX
=unsupported
18455 hardcode_automatic_CXX
=no
18456 inherit_rpath_CXX
=no
18458 module_expsym_cmds_CXX
=
18459 link_all_deplibs_CXX
=unknown
18460 old_archive_cmds_CXX
=$old_archive_cmds
18461 reload_flag_CXX
=$reload_flag
18462 reload_cmds_CXX
=$reload_cmds
18463 no_undefined_flag_CXX
=
18464 whole_archive_flag_spec_CXX
=
18465 enable_shared_with_static_runtimes_CXX
=no
18467 # Source file extension for C++ test sources.
18470 # Object file extension for compiled C++ test sources.
18474 # No sense in running all these tests if we already determined that
18475 # the CXX compiler isn't working. Some variables (like enable_shared)
18476 # are currently assumed to apply to all compilers on this platform,
18477 # and will be corrupted by setting them based on a non-working compiler.
18478 if test "$_lt_caught_CXX_error" != yes; then
18479 # Code to be used in simple compile tests
18480 lt_simple_compile_test_code
="int some_variable = 0;"
18482 # Code to be used in simple link tests
18483 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18485 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18492 # If no C compiler was specified, use CC.
18495 # If no C compiler flags were specified, use CFLAGS.
18496 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18498 # Allow CC to be a program name with arguments.
18502 # save warnings/boilerplate of simple test code
18503 ac_outfile
=conftest.
$ac_objext
18504 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18505 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18506 _lt_compiler_boilerplate
=`cat conftest.err`
18509 ac_outfile
=conftest.
$ac_objext
18510 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18511 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18512 _lt_linker_boilerplate
=`cat conftest.err`
18516 # Allow CC to be a program name with arguments.
18521 lt_save_with_gnu_ld
=$with_gnu_ld
18522 lt_save_path_LD
=$lt_cv_path_LD
18523 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18524 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18526 $as_unset lt_cv_prog_gnu_ld
18528 if test -n "${lt_cv_path_LDCXX+set}"; then
18529 lt_cv_path_LD
=$lt_cv_path_LDCXX
18531 $as_unset lt_cv_path_LD
18533 test -z "${LDCXX+set}" || LD
=$LDCXX
18537 for cc_temp
in $compiler""; do
18539 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18540 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18545 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18548 if test -n "$compiler"; then
18549 # We don't want -fno-exception when compiling C++ code, so set the
18550 # no_builtin_flag separately
18551 if test "$GXX" = yes; then
18552 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18554 lt_prog_compiler_no_builtin_flag_CXX
=
18557 if test "$GXX" = yes; then
18558 # Set up default GNU C++ configuration
18562 # Check whether --with-gnu-ld was given.
18563 if test "${with_gnu_ld+set}" = set; then :
18564 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18570 if test "$GCC" = yes; then
18571 # Check if gcc -print-prog-name=ld gives a path.
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18573 $as_echo_n "checking for ld used by $CC... " >&6; }
18576 # gcc leaves a trailing carriage return which upsets mingw
18577 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18579 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18582 # Accept absolute paths.
18584 re_direlt
='/[^/][^/]*/\.\./'
18585 # Canonicalize the pathname of ld
18586 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18587 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18588 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18590 test -z "$LD" && LD
="$ac_prog"
18593 # If it fails, then pretend we aren't using GCC.
18597 # If it is relative, then search for the first ld in PATH.
18598 with_gnu_ld
=unknown
18601 elif test "$with_gnu_ld" = yes; then
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18603 $as_echo_n "checking for GNU ld... " >&6; }
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18606 $as_echo_n "checking for non-GNU ld... " >&6; }
18608 if test "${lt_cv_path_LD+set}" = set; then :
18609 $as_echo_n "(cached) " >&6
18611 if test -z "$LD"; then
18612 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18613 for ac_dir
in $PATH; do
18615 test -z "$ac_dir" && ac_dir
=.
18616 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18617 lt_cv_path_LD
="$ac_dir/$ac_prog"
18618 # Check to see if the program is GNU ld. I'd rather use --version,
18619 # but apparently some variants of GNU ld only accept -v.
18620 # Break only if it was the GNU/non-GNU ld that we prefer.
18621 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18622 *GNU
* |
*'with BFD'*)
18623 test "$with_gnu_ld" != no
&& break
18626 test "$with_gnu_ld" != yes && break
18633 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18637 LD
="$lt_cv_path_LD"
18638 if test -n "$LD"; then
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18640 $as_echo "$LD" >&6; }
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18643 $as_echo "no" >&6; }
18645 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18647 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18648 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18649 $as_echo_n "(cached) " >&6
18651 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18652 case `$LD -v 2>&1 </dev/null` in
18653 *GNU
* |
*'with BFD'*)
18654 lt_cv_prog_gnu_ld
=yes
18657 lt_cv_prog_gnu_ld
=no
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18662 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18663 with_gnu_ld
=$lt_cv_prog_gnu_ld
18671 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18672 # archiving commands below assume that GNU ld is being used.
18673 if test "$with_gnu_ld" = yes; then
18674 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18675 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'
18677 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18678 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18680 # If archive_cmds runs LD, not CC, wlarc should be empty
18681 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18682 # investigate it a little bit more. (MM)
18685 # ancient GNU ld didn't support --whole-archive et. al.
18686 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18687 $GREP 'no-whole-archive' > /dev
/null
; then
18688 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18690 whole_archive_flag_spec_CXX
=
18696 # A generic and very simple default shared library creation
18697 # command for GNU C++ for the case where it uses the native
18698 # linker, instead of GNU ld. If possible, this setting should
18699 # overridden to take advantage of the native linker features on
18700 # the platform it is being used on.
18701 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18704 # Commands to make compiler produce verbose output that lists
18705 # what "hidden" libraries, object files and flags are used when
18706 # linking a shared library.
18707 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18715 # PORTME: fill in a description of your system's C++ link characteristics
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18717 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18721 # FIXME: insert proper C++ library support
18725 if test "$host_cpu" = ia64
; then
18726 # On IA64, the linker does run time linking by default, so we don't
18727 # have to do anything special.
18728 aix_use_runtimelinking
=no
18729 exp_sym_flag
='-Bexport'
18732 aix_use_runtimelinking
=no
18734 # Test if we are trying to use run time linking or normal
18735 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18736 # need to do runtime linking.
18737 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18738 for ld_flag
in $LDFLAGS; do
18741 aix_use_runtimelinking
=yes
18749 exp_sym_flag
='-bexport'
18750 no_entry_flag
='-bnoentry'
18753 # When large executables or shared objects are built, AIX ld can
18754 # have problems creating the table of contents. If linking a library
18755 # or program results in "error TOC overflow" add -mminimal-toc to
18756 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18757 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18759 archive_cmds_CXX
=''
18760 hardcode_direct_CXX
=yes
18761 hardcode_direct_absolute_CXX
=yes
18762 hardcode_libdir_separator_CXX
=':'
18763 link_all_deplibs_CXX
=yes
18764 file_list_spec_CXX
='${wl}-f,'
18766 if test "$GXX" = yes; then
18767 case $host_os in aix4.
[012]|aix4.
[012].
*)
18768 # We only want to do this on AIX 4.2 and lower, the check
18769 # below for broken collect2 doesn't work under 4.3+
18770 collect2name
=`${CC} -print-prog-name=collect2`
18771 if test -f "$collect2name" &&
18772 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18774 # We have reworked collect2
18777 # We have old collect2
18778 hardcode_direct_CXX
=unsupported
18779 # It fails to find uninstalled libraries when the uninstalled
18780 # path is not listed in the libpath. Setting hardcode_minus_L
18781 # to unsupported forces relinking
18782 hardcode_minus_L_CXX
=yes
18783 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18784 hardcode_libdir_separator_CXX
=
18787 shared_flag
='-shared'
18788 if test "$aix_use_runtimelinking" = yes; then
18789 shared_flag
="$shared_flag "'${wl}-G'
18793 if test "$host_cpu" = ia64
; then
18794 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18795 # chokes on -Wl,-G. The following line is correct:
18798 if test "$aix_use_runtimelinking" = yes; then
18799 shared_flag
='${wl}-G'
18801 shared_flag
='${wl}-bM:SRE'
18806 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18807 # It seems that -bexpall does not export symbols beginning with
18808 # underscore (_), so it is better to generate a list of symbols to
18810 always_export_symbols_CXX
=yes
18811 if test "$aix_use_runtimelinking" = yes; then
18812 # Warning - without using the other runtime loading flags (-brtl),
18813 # -berok will link without error, but may produce a broken library.
18814 allow_undefined_flag_CXX
='-berok'
18815 # Determine the default libpath from the value encoded in an empty
18817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18818 /* end confdefs.h. */
18828 if ac_fn_cxx_try_link
"$LINENO"; then :
18830 lt_aix_libpath_sed
='
18831 /Import File Strings/,/^$/ {
18837 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18838 # Check for a 64-bit object if we didn't find anything.
18839 if test -z "$aix_libpath"; then
18840 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18843 rm -f core conftest.err conftest.
$ac_objext \
18844 conftest
$ac_exeext conftest.
$ac_ext
18845 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18847 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18849 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"
18851 if test "$host_cpu" = ia64
; then
18852 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18853 allow_undefined_flag_CXX
="-z nodefs"
18854 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"
18856 # Determine the default libpath from the value encoded in an
18857 # empty executable.
18858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18859 /* end confdefs.h. */
18869 if ac_fn_cxx_try_link
"$LINENO"; then :
18871 lt_aix_libpath_sed
='
18872 /Import File Strings/,/^$/ {
18878 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18879 # Check for a 64-bit object if we didn't find anything.
18880 if test -z "$aix_libpath"; then
18881 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18884 rm -f core conftest.err conftest.
$ac_objext \
18885 conftest
$ac_exeext conftest.
$ac_ext
18886 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18888 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18889 # Warning - without using the other run time loading flags,
18890 # -berok will link without error, but may produce a broken library.
18891 no_undefined_flag_CXX
=' ${wl}-bernotok'
18892 allow_undefined_flag_CXX
=' ${wl}-berok'
18893 if test "$with_gnu_ld" = yes; then
18894 # We only use this code for GNU lds that support --whole-archive.
18895 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18897 # Exported symbols can be pulled into shared objects from archives
18898 whole_archive_flag_spec_CXX
='$convenience'
18900 archive_cmds_need_lc_CXX
=yes
18901 # This is similar to how AIX traditionally builds its shared
18903 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'
18909 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18910 allow_undefined_flag_CXX
=unsupported
18911 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18912 # support --undefined. This deserves some investigation. FIXME
18913 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18920 case $cc_basename in
18922 # FIXME: insert proper C++ library support
18928 cygwin
* | mingw
* | pw32
* | cegcc
*)
18929 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18930 # as there is no search path for DLLs.
18931 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18932 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18933 allow_undefined_flag_CXX
=unsupported
18934 always_export_symbols_CXX
=no
18935 enable_shared_with_static_runtimes_CXX
=yes
18937 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18938 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'
18939 # If the export-symbols file already is a .def file (1st line
18940 # is EXPORTS), use it as is; otherwise, prepend...
18941 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18942 cp $export_symbols $output_objdir/$soname.def;
18944 echo EXPORTS > $output_objdir/$soname.def;
18945 cat $export_symbols >> $output_objdir/$soname.def;
18947 $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'
18952 darwin
* | rhapsody
*)
18955 archive_cmds_need_lc_CXX
=no
18956 hardcode_direct_CXX
=no
18957 hardcode_automatic_CXX
=yes
18958 hardcode_shlibpath_var_CXX
=unsupported
18959 if test "$lt_cv_ld_force_load" = "yes"; then
18960 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\"`'
18962 whole_archive_flag_spec_CXX
=''
18964 link_all_deplibs_CXX
=yes
18965 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18966 case $cc_basename in
18967 ifort
*) _lt_dar_can_shared
=yes ;;
18968 *) _lt_dar_can_shared
=$GCC ;;
18970 if test "$_lt_dar_can_shared" = "yes"; then
18971 output_verbose_link_cmd
=func_echo_all
18972 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}"
18973 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18974 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}"
18975 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}"
18976 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18977 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}"
18978 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}"
18988 case $cc_basename in
18990 # FIXME: insert proper C++ library support
18994 # Green Hills C++ Compiler
18995 # FIXME: insert proper C++ library support
18999 # FIXME: insert proper C++ library support
19006 # C++ shared libraries reported to be fairly broken before
19012 archive_cmds_need_lc_CXX
=no
19015 freebsd
* | dragonfly
*)
19016 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19025 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19026 link_all_deplibs_CXX
=yes
19030 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19031 hardcode_libdir_separator_CXX
=:
19032 export_dynamic_flag_spec_CXX
='${wl}-E'
19033 hardcode_direct_CXX
=yes
19034 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19035 # but as the default
19036 # location of the library.
19038 case $cc_basename in
19040 # FIXME: insert proper C++ library support
19044 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'
19045 # Commands to make compiler produce verbose output that lists
19046 # what "hidden" libraries, object files and flags are used when
19047 # linking a shared library.
19049 # There doesn't appear to be a way to prevent this compiler from
19050 # explicitly linking system object files so we need to strip them
19051 # from the output so that they don't get included in the library
19053 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"'
19056 if test "$GXX" = yes; then
19057 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'
19059 # FIXME: insert proper C++ library support
19067 if test $with_gnu_ld = no
; then
19068 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19069 hardcode_libdir_separator_CXX
=:
19075 export_dynamic_flag_spec_CXX
='${wl}-E'
19081 hardcode_direct_CXX
=no
19082 hardcode_shlibpath_var_CXX
=no
19085 hardcode_direct_CXX
=yes
19086 hardcode_direct_absolute_CXX
=yes
19087 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19088 # but as the default
19089 # location of the library.
19093 case $cc_basename in
19095 # FIXME: insert proper C++ library support
19101 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19104 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19107 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19110 # Commands to make compiler produce verbose output that lists
19111 # what "hidden" libraries, object files and flags are used when
19112 # linking a shared library.
19114 # There doesn't appear to be a way to prevent this compiler from
19115 # explicitly linking system object files so we need to strip them
19116 # from the output so that they don't get included in the library
19118 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"'
19121 if test "$GXX" = yes; then
19122 if test $with_gnu_ld = no
; then
19125 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19128 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19131 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'
19136 # FIXME: insert proper C++ library support
19144 hardcode_direct_CXX
=no
19145 hardcode_shlibpath_var_CXX
=no
19146 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19147 export_dynamic_flag_spec_CXX
='${wl}-E'
19148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19149 # Instead, shared libraries are loaded at an image base (0x10000000 by
19150 # default) and relocated if they conflict, which is a slow very memory
19151 # consuming and fragmenting process. To avoid this, we pick a random,
19152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19153 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19154 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'
19155 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'
19158 case $cc_basename in
19161 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'
19163 # Archives containing C++ object files must be created using
19164 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19165 # necessary to make sure instantiated templates are included
19167 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19170 if test "$GXX" = yes; then
19171 if test "$with_gnu_ld" = no
; then
19172 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'
19174 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'
19177 link_all_deplibs_CXX
=yes
19180 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19181 hardcode_libdir_separator_CXX
=:
19182 inherit_rpath_CXX
=yes
19185 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19186 case $cc_basename in
19188 # Kuck and Associates, Inc. (KAI) C++ Compiler
19190 # KCC will only create a shared library if the output file
19191 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19192 # to its proper name (with version) after linking.
19193 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'
19194 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'
19195 # Commands to make compiler produce verbose output that lists
19196 # what "hidden" libraries, object files and flags are used when
19197 # linking a shared library.
19199 # There doesn't appear to be a way to prevent this compiler from
19200 # explicitly linking system object files so we need to strip them
19201 # from the output so that they don't get included in the library
19203 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"'
19205 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19206 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19208 # Archives containing C++ object files must be created using
19209 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19210 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19215 # version 8.0 and above of icpc choke on multiply defined symbols
19216 # if we add $predep_objects and $postdep_objects, however 7.1 and
19217 # earlier do not add the objects themselves.
19218 case `$CC -V 2>&1` in
19220 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19221 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'
19223 *) # Version 8.0 or newer
19226 ia64
*) tmp_idyn
=' -i_dynamic';;
19228 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19229 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'
19232 archive_cmds_need_lc_CXX
=no
19233 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19234 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19235 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19238 # Portland Group C++ compiler
19240 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19241 prelink_cmds_CXX
='tpldir=Template.dir~
19243 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19244 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19245 old_archive_cmds_CXX
='tpldir=Template.dir~
19247 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19248 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19250 archive_cmds_CXX
='tpldir=Template.dir~
19252 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19253 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19254 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19256 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19257 $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'
19259 *) # Version 6 and above use weak symbols
19260 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19261 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'
19265 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19266 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19267 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'
19271 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19272 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'
19274 runpath_var
=LD_RUN_PATH
19275 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19276 hardcode_libdir_separator_CXX
=:
19278 # Commands to make compiler produce verbose output that lists
19279 # what "hidden" libraries, object files and flags are used when
19280 # linking a shared library.
19282 # There doesn't appear to be a way to prevent this compiler from
19283 # explicitly linking system object files so we need to strip them
19284 # from the output so that they don't get included in the library
19286 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'
19288 xl
* | mpixl
* | bgxl
*)
19289 # IBM XL 8.0 on PPC, with GNU ld
19290 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19291 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19292 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19293 if test "x$supports_anon_versioning" = xyes
; then
19294 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19296 echo "local: *; };" >> $output_objdir/$libname.ver~
19297 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19301 case `$CC -V 2>&1 | sed 5q` in
19304 no_undefined_flag_CXX
=' -zdefs'
19305 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19306 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'
19307 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19308 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'
19309 compiler_needs_object_CXX
=yes
19311 # Not sure whether something based on
19312 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19314 output_verbose_link_cmd
='func_echo_all'
19316 # Archives containing C++ object files must be created using
19317 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19318 # necessary to make sure instantiated templates are included
19320 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19328 # FIXME: insert proper C++ library support
19333 # FIXME: insert proper C++ library support
19338 case $cc_basename in
19340 # FIXME: insert proper C++ library support
19344 # FIXME: insert proper C++ library support
19351 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19352 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19354 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19355 hardcode_direct_CXX
=yes
19356 hardcode_shlibpath_var_CXX
=no
19358 # Workaround some broken pre-1.5 toolchains
19359 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19367 # C++ shared libraries are fairly broken
19372 if test -f /usr
/libexec
/ld.so
; then
19373 hardcode_direct_CXX
=yes
19374 hardcode_shlibpath_var_CXX
=no
19375 hardcode_direct_absolute_CXX
=yes
19376 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19377 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19379 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19380 export_dynamic_flag_spec_CXX
='${wl}-E'
19381 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19383 output_verbose_link_cmd
=func_echo_all
19389 osf3
* | osf4
* | osf5
*)
19390 case $cc_basename in
19392 # Kuck and Associates, Inc. (KAI) C++ Compiler
19394 # KCC will only create a shared library if the output file
19395 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19396 # to its proper name (with version) after linking.
19397 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'
19399 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19400 hardcode_libdir_separator_CXX
=:
19402 # Archives containing C++ object files must be created using
19403 # the KAI C++ compiler.
19405 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19406 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19410 # Rational C++ 2.4.1
19411 # FIXME: insert proper C++ library support
19417 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19418 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'
19419 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19422 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19423 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'
19424 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19425 echo "-hidden">> $lib.exp~
19426 $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~
19428 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19432 hardcode_libdir_separator_CXX
=:
19434 # Commands to make compiler produce verbose output that lists
19435 # what "hidden" libraries, object files and flags are used when
19436 # linking a shared library.
19438 # There doesn't appear to be a way to prevent this compiler from
19439 # explicitly linking system object files so we need to strip them
19440 # from the output so that they don't get included in the library
19442 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"'
19445 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19446 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19449 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'
19452 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'
19456 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19457 hardcode_libdir_separator_CXX
=:
19459 # Commands to make compiler produce verbose output that lists
19460 # what "hidden" libraries, object files and flags are used when
19461 # linking a shared library.
19462 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19465 # FIXME: insert proper C++ library support
19473 # FIXME: insert proper C++ library support
19478 case $cc_basename in
19481 # FIXME: insert proper C++ library support
19486 # FIXME: insert proper C++ library support
19490 # FIXME: insert proper C++ library support
19497 case $cc_basename in
19499 # Sun C++ 4.2, 5.x and Centerline C++
19500 archive_cmds_need_lc_CXX
=yes
19501 no_undefined_flag_CXX
=' -zdefs'
19502 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19503 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19504 $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'
19506 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19507 hardcode_shlibpath_var_CXX
=no
19509 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19511 # The compiler driver will combine and reorder linker options,
19512 # but understands `-z linker_flag'.
19513 # Supported since Solaris 2.6 (maybe 2.5.1?)
19514 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19517 link_all_deplibs_CXX
=yes
19519 output_verbose_link_cmd
='func_echo_all'
19521 # Archives containing C++ object files must be created using
19522 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19523 # necessary to make sure instantiated templates are included
19525 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19528 # Green Hills C++ Compiler
19529 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19531 # The C++ compiler must be used to create the archive.
19532 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19535 # GNU C++ compiler with Solaris linker
19536 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19537 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19538 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19539 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19540 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19541 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19543 # Commands to make compiler produce verbose output that lists
19544 # what "hidden" libraries, object files and flags are used when
19545 # linking a shared library.
19546 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19548 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19550 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19551 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19552 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19554 # Commands to make compiler produce verbose output that lists
19555 # what "hidden" libraries, object files and flags are used when
19556 # linking a shared library.
19557 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19560 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19562 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19564 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19572 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19573 no_undefined_flag_CXX
='${wl}-z,text'
19574 archive_cmds_need_lc_CXX
=no
19575 hardcode_shlibpath_var_CXX
=no
19576 runpath_var
='LD_RUN_PATH'
19578 case $cc_basename in
19580 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19581 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19584 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19585 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19590 sysv5
* | sco3.2v5
* | sco5v6
*)
19591 # Note: We can NOT use -z defs as we might desire, because we do not
19592 # link with -lc, and that would cause any symbols used from libc to
19593 # always be unresolved, which means just about no library would
19594 # ever link correctly. If we're not using GNU ld we use -z text
19595 # though, which does catch some bad symbols but isn't as heavy-handed
19597 no_undefined_flag_CXX
='${wl}-z,text'
19598 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19599 archive_cmds_need_lc_CXX
=no
19600 hardcode_shlibpath_var_CXX
=no
19601 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19602 hardcode_libdir_separator_CXX
=':'
19603 link_all_deplibs_CXX
=yes
19604 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19605 runpath_var
='LD_RUN_PATH'
19607 case $cc_basename in
19609 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19610 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19611 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19612 '"$old_archive_cmds_CXX"
19613 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19614 '"$reload_cmds_CXX"
19617 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19618 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19624 case $cc_basename in
19626 # NonStop-UX NCC 3.20
19627 # FIXME: insert proper C++ library support
19631 # FIXME: insert proper C++ library support
19638 # FIXME: insert proper C++ library support
19643 # FIXME: insert proper C++ library support
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19649 $as_echo "$ld_shlibs_CXX" >&6; }
19650 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19656 ## There is no encapsulation within the following macros, do not change
19657 ## the running order or otherwise move them around unless you know exactly
19658 ## what you are doing...
19659 # Dependencies to place before and after the object being linked:
19660 predep_objects_CXX
=
19661 postdep_objects_CXX
=
19664 compiler_lib_search_path_CXX
=
19666 cat > conftest.
$ac_ext <<_LT_EOF
19670 Foo (void) { a = 0; }
19676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19677 (eval $ac_compile) 2>&5
19679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19680 test $ac_status = 0; }; then
19681 # Parse the compiler output and extract the necessary
19682 # objects, libraries and library flags.
19684 # Sentinel used to keep track of whether or not we are before
19685 # the conftest object file.
19686 pre_test_object_deps_done
=no
19688 for p
in `eval "$output_verbose_link_cmd"`; do
19692 # Some compilers place space between "-{L,R}" and the path.
19693 # Remove the space.
19694 if test $p = "-L" ||
19695 test $p = "-R"; then
19702 if test "$pre_test_object_deps_done" = no
; then
19705 # Internal compiler library paths should come after those
19706 # provided the user. The postdeps already come after the
19707 # user supplied libs so there is no need to process them.
19708 if test -z "$compiler_lib_search_path_CXX"; then
19709 compiler_lib_search_path_CXX
="${prev}${p}"
19711 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19714 # The "-l" case would never come before the object being
19715 # linked, so don't bother handling this case.
19718 if test -z "$postdeps_CXX"; then
19719 postdeps_CXX
="${prev}${p}"
19721 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19727 # This assumes that the test object file only shows up
19728 # once in the compiler output.
19729 if test "$p" = "conftest.$objext"; then
19730 pre_test_object_deps_done
=yes
19734 if test "$pre_test_object_deps_done" = no
; then
19735 if test -z "$predep_objects_CXX"; then
19736 predep_objects_CXX
="$p"
19738 predep_objects_CXX
="$predep_objects_CXX $p"
19741 if test -z "$postdep_objects_CXX"; then
19742 postdep_objects_CXX
="$p"
19744 postdep_objects_CXX
="$postdep_objects_CXX $p"
19749 *) ;; # Ignore the rest.
19757 echo "libtool.m4: error: problem compiling CXX test program"
19760 $RM -f confest.
$objext
19762 # PORTME: override above test on systems where it is broken
19765 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19766 # hack all around it, let's just trust "g++" to DTRT.
19767 predep_objects_CXX
=
19768 postdep_objects_CXX
=
19773 case `$CC -V 2>&1 | sed 5q` in
19777 # The more standards-conforming stlport4 library is
19778 # incompatible with the Cstd library. Avoid specifying
19779 # it if it's in CXXFLAGS. Ignore libCrun as
19780 # -library=stlport4 depends on it.
19781 case " $CXX $CXXFLAGS " in
19782 *" -library=stlport4 "*)
19783 solaris_use_stlport4
=yes
19787 if test "$solaris_use_stlport4" != yes; then
19788 postdeps_CXX
='-library=Cstd -library=Crun'
19795 case $cc_basename in
19797 # The more standards-conforming stlport4 library is
19798 # incompatible with the Cstd library. Avoid specifying
19799 # it if it's in CXXFLAGS. Ignore libCrun as
19800 # -library=stlport4 depends on it.
19801 case " $CXX $CXXFLAGS " in
19802 *" -library=stlport4 "*)
19803 solaris_use_stlport4
=yes
19807 # Adding this requires a known-good setup of shared libraries for
19808 # Sun compiler versions before 5.6, else PIC objects from an old
19809 # archive will be linked into the output, leading to subtle bugs.
19810 if test "$solaris_use_stlport4" != yes; then
19811 postdeps_CXX
='-library=Cstd -library=Crun'
19819 case " $postdeps_CXX " in
19820 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19822 compiler_lib_search_dirs_CXX
=
19823 if test -n "${compiler_lib_search_path_CXX}"; then
19824 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19857 lt_prog_compiler_wl_CXX
=
19858 lt_prog_compiler_pic_CXX
=
19859 lt_prog_compiler_static_CXX
=
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19862 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19864 # C++ specific cases for pic, static, wl, etc.
19865 if test "$GXX" = yes; then
19866 lt_prog_compiler_wl_CXX
='-Wl,'
19867 lt_prog_compiler_static_CXX
='-static'
19871 # All AIX code is PIC.
19872 if test "$host_cpu" = ia64
; then
19873 # AIX 5 now supports IA64 processor
19874 lt_prog_compiler_static_CXX
='-Bstatic'
19881 # see comment about AmigaOS4 .so support
19882 lt_prog_compiler_pic_CXX
='-fPIC'
19885 # FIXME: we need at least 68020 code to build shared libraries, but
19886 # adding the `-m68020' flag to GCC prevents building anything better,
19888 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19893 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19894 # PIC is the default for these OSes.
19896 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19897 # This hack is so that the source file can tell whether it is being
19898 # built for inclusion in a dll (and should export symbols for example).
19899 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19900 # (--disable-auto-import) libraries
19901 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19903 darwin
* | rhapsody
*)
19904 # PIC is the default on this platform
19905 # Common symbols not allowed in MH_DYLIB files
19906 lt_prog_compiler_pic_CXX
='-fno-common'
19909 # DJGPP does not support shared libraries at all
19910 lt_prog_compiler_pic_CXX
=
19913 # PIC is the default for Haiku.
19914 # The "-static" flag exists, but is broken.
19915 lt_prog_compiler_static_CXX
=
19918 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19919 # Instead, we relocate shared libraries at runtime.
19922 if test -d /usr
/nec
; then
19923 lt_prog_compiler_pic_CXX
=-Kconform_pic
19927 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19928 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19929 # sets the default TLS model and affects inlining.
19934 lt_prog_compiler_pic_CXX
='-fPIC'
19939 # QNX uses GNU C++, but need to define -shared option too, otherwise
19940 # it will coredump.
19941 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19944 lt_prog_compiler_pic_CXX
='-fPIC'
19950 # All AIX code is PIC.
19951 if test "$host_cpu" = ia64
; then
19952 # AIX 5 now supports IA64 processor
19953 lt_prog_compiler_static_CXX
='-Bstatic'
19955 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19959 case $cc_basename in
19961 # Green Hills C++ Compiler
19962 # _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"
19967 case $cc_basename in
19969 lt_prog_compiler_pic_CXX
='-KPIC'
19972 # Green Hills C++ Compiler
19973 lt_prog_compiler_pic_CXX
='-pic'
19979 freebsd
* | dragonfly
*)
19980 # FreeBSD uses GNU C++
19982 hpux9
* | hpux10
* | hpux11
*)
19983 case $cc_basename in
19985 lt_prog_compiler_wl_CXX
='-Wl,'
19986 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19987 if test "$host_cpu" != ia64
; then
19988 lt_prog_compiler_pic_CXX
='+Z'
19992 lt_prog_compiler_wl_CXX
='-Wl,'
19993 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19999 lt_prog_compiler_pic_CXX
='+Z'
20008 # This is c89, which is MS Visual C++ (no shared libs)
20009 # Anyone wants to do a port?
20011 irix5
* | irix6
* | nonstopux
*)
20012 case $cc_basename in
20014 lt_prog_compiler_wl_CXX
='-Wl,'
20015 lt_prog_compiler_static_CXX
='-non_shared'
20016 # CC pic flag -KPIC is the default.
20022 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20023 case $cc_basename in
20026 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20027 lt_prog_compiler_pic_CXX
='-fPIC'
20030 # old Intel C++ for x86_64 which still supported -KPIC.
20031 lt_prog_compiler_wl_CXX
='-Wl,'
20032 lt_prog_compiler_pic_CXX
='-KPIC'
20033 lt_prog_compiler_static_CXX
='-static'
20036 # Intel C++, used to be incompatible with GCC.
20037 # ICC 10 doesn't accept -KPIC any more.
20038 lt_prog_compiler_wl_CXX
='-Wl,'
20039 lt_prog_compiler_pic_CXX
='-fPIC'
20040 lt_prog_compiler_static_CXX
='-static'
20043 # Portland Group C++ compiler
20044 lt_prog_compiler_wl_CXX
='-Wl,'
20045 lt_prog_compiler_pic_CXX
='-fpic'
20046 lt_prog_compiler_static_CXX
='-Bstatic'
20050 # Make sure the PIC flag is empty. It appears that all Alpha
20051 # Linux and Compaq Tru64 Unix objects are PIC.
20052 lt_prog_compiler_pic_CXX
=
20053 lt_prog_compiler_static_CXX
='-non_shared'
20055 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20056 # IBM XL 8.0, 9.0 on PPC and BlueGene
20057 lt_prog_compiler_wl_CXX
='-Wl,'
20058 lt_prog_compiler_pic_CXX
='-qpic'
20059 lt_prog_compiler_static_CXX
='-qstaticlink'
20062 case `$CC -V 2>&1 | sed 5q` in
20065 lt_prog_compiler_pic_CXX
='-KPIC'
20066 lt_prog_compiler_static_CXX
='-Bstatic'
20067 lt_prog_compiler_wl_CXX
='-Qoption ld '
20078 case $cc_basename in
20080 lt_prog_compiler_pic_CXX
='-W c,exportall'
20089 # QNX uses GNU C++, but need to define -shared option too, otherwise
20090 # it will coredump.
20091 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20093 osf3
* | osf4
* | osf5
*)
20094 case $cc_basename in
20096 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20099 # Rational C++ 2.4.1
20100 lt_prog_compiler_pic_CXX
='-pic'
20103 # Digital/Compaq C++
20104 lt_prog_compiler_wl_CXX
='-Wl,'
20105 # Make sure the PIC flag is empty. It appears that all Alpha
20106 # Linux and Compaq Tru64 Unix objects are PIC.
20107 lt_prog_compiler_pic_CXX
=
20108 lt_prog_compiler_static_CXX
='-non_shared'
20117 case $cc_basename in
20119 # Sun C++ 4.2, 5.x and Centerline C++
20120 lt_prog_compiler_pic_CXX
='-KPIC'
20121 lt_prog_compiler_static_CXX
='-Bstatic'
20122 lt_prog_compiler_wl_CXX
='-Qoption ld '
20125 # Green Hills C++ Compiler
20126 lt_prog_compiler_pic_CXX
='-PIC'
20133 case $cc_basename in
20136 lt_prog_compiler_pic_CXX
='-pic'
20137 lt_prog_compiler_static_CXX
='-Bstatic'
20141 lt_prog_compiler_pic_CXX
='-pic'
20147 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20148 case $cc_basename in
20150 lt_prog_compiler_wl_CXX
='-Wl,'
20151 lt_prog_compiler_pic_CXX
='-KPIC'
20152 lt_prog_compiler_static_CXX
='-Bstatic'
20157 case $cc_basename in
20159 # NonStop-UX NCC 3.20
20160 lt_prog_compiler_pic_CXX
='-KPIC'
20169 lt_prog_compiler_can_build_shared_CXX
=no
20175 # For platforms which do not support PIC, -DPIC is meaningless:
20177 lt_prog_compiler_pic_CXX
=
20180 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20184 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20189 # Check to make sure the PIC flag actually works.
20191 if test -n "$lt_prog_compiler_pic_CXX"; then
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20193 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20194 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20195 $as_echo_n "(cached) " >&6
20197 lt_cv_prog_compiler_pic_works_CXX
=no
20198 ac_outfile
=conftest.
$ac_objext
20199 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20200 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20201 # Insert the option either (1) after the last *FLAGS variable, or
20202 # (2) before a word containing "conftest.", or (3) at the end.
20203 # Note that $ac_compile itself does not contain backslashes and begins
20204 # with a dollar sign (not a hyphen), so the echo should work correctly.
20205 # The option is referenced via a variable to avoid confusing sed.
20206 lt_compile
=`echo "$ac_compile" | $SED \
20207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20209 -e 's:$: $lt_compiler_flag:'`
20210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20211 (eval "$lt_compile" 2>conftest.err
)
20213 cat conftest.err
>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 if (exit $ac_status) && test -s "$ac_outfile"; then
20216 # The compiler can only warn and ignore the option if not recognized
20217 # So say no if there are warnings other than the usual output.
20218 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20219 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20220 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20221 lt_cv_prog_compiler_pic_works_CXX
=yes
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20228 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20230 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20231 case $lt_prog_compiler_pic_CXX in
20233 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20236 lt_prog_compiler_pic_CXX
=
20237 lt_prog_compiler_can_build_shared_CXX
=no
20245 # Check to make sure the static flag actually works.
20247 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20249 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20250 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20251 $as_echo_n "(cached) " >&6
20253 lt_cv_prog_compiler_static_works_CXX
=no
20254 save_LDFLAGS
="$LDFLAGS"
20255 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20256 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20257 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20258 # The linker can only warn and ignore the option if not recognized
20259 # So say no if there are warnings
20260 if test -s conftest.err
; then
20261 # Append any errors to the config.log.
20262 cat conftest.err
1>&5
20263 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20264 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20265 if diff conftest.exp conftest.er2
>/dev
/null
; then
20266 lt_cv_prog_compiler_static_works_CXX
=yes
20269 lt_cv_prog_compiler_static_works_CXX
=yes
20273 LDFLAGS
="$save_LDFLAGS"
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20277 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20279 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20282 lt_prog_compiler_static_CXX
=
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20290 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20291 $as_echo_n "(cached) " >&6
20293 lt_cv_prog_compiler_c_o_CXX
=no
20294 $RM -r conftest
2>/dev
/null
20298 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20300 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20301 # Insert the option either (1) after the last *FLAGS variable, or
20302 # (2) before a word containing "conftest.", or (3) at the end.
20303 # Note that $ac_compile itself does not contain backslashes and begins
20304 # with a dollar sign (not a hyphen), so the echo should work correctly.
20305 lt_compile
=`echo "$ac_compile" | $SED \
20306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20308 -e 's:$: $lt_compiler_flag:'`
20309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20310 (eval "$lt_compile" 2>out
/conftest.err
)
20312 cat out
/conftest.err
>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20316 # The compiler can only warn and ignore the option if not recognized
20317 # So say no if there are warnings
20318 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20319 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20320 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20321 lt_cv_prog_compiler_c_o_CXX
=yes
20326 # SGI C++ compiler will create directory out/ii_files/ for
20327 # template instantiation
20328 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20329 $RM out
/* && rmdir out
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20336 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20342 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20343 $as_echo_n "(cached) " >&6
20345 lt_cv_prog_compiler_c_o_CXX
=no
20346 $RM -r conftest
2>/dev
/null
20350 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20352 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20353 # Insert the option either (1) after the last *FLAGS variable, or
20354 # (2) before a word containing "conftest.", or (3) at the end.
20355 # Note that $ac_compile itself does not contain backslashes and begins
20356 # with a dollar sign (not a hyphen), so the echo should work correctly.
20357 lt_compile
=`echo "$ac_compile" | $SED \
20358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20360 -e 's:$: $lt_compiler_flag:'`
20361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20362 (eval "$lt_compile" 2>out
/conftest.err
)
20364 cat out
/conftest.err
>&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20368 # The compiler can only warn and ignore the option if not recognized
20369 # So say no if there are warnings
20370 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20371 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20372 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20373 lt_cv_prog_compiler_c_o_CXX
=yes
20378 # SGI C++ compiler will create directory out/ii_files/ for
20379 # template instantiation
20380 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20381 $RM out
/* && rmdir out
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20388 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20393 hard_links
="nottested"
20394 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20395 # do not overwrite the value of need_locks provided by the user
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20397 $as_echo_n "checking if we can lock with hard links... " >&6; }
20400 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20402 ln conftest.a conftest.b
2>&5 || hard_links
=no
20403 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20405 $as_echo "$hard_links" >&6; }
20406 if test "$hard_links" = no
; then
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20408 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20418 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20420 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20423 # If we're using GNU nm, then we don't want the "-C" option.
20424 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20425 # Also, AIX nm treats weak defined symbols like other global defined
20426 # symbols, whereas GNU nm marks them as "W".
20427 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20428 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'
20430 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'
20434 export_symbols_cmds_CXX
="$ltdll_cmds"
20436 cygwin
* | mingw
* | cegcc
*)
20437 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'
20440 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20443 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20446 $as_echo "$ld_shlibs_CXX" >&6; }
20447 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20449 with_gnu_ld_CXX
=$with_gnu_ld
20457 # Do we need to explicitly link libc?
20459 case "x$archive_cmds_need_lc_CXX" in
20461 # Assume -lc should be added
20462 archive_cmds_need_lc_CXX
=yes
20464 if test "$enable_shared" = yes && test "$GCC" = yes; then
20465 case $archive_cmds_CXX in
20467 # FIXME: we may have to deal with multi-command sequences.
20470 # Test whether the compiler implicitly links with -lc since on some
20471 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20472 # to ld, don't add -lc before -lgcc.
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20474 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20475 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20476 $as_echo_n "(cached) " >&6
20479 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20482 (eval $ac_compile) 2>&5
20484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20485 test $ac_status = 0; } 2>conftest.err
; then
20488 libobjs
=conftest.
$ac_objext
20490 wl
=$lt_prog_compiler_wl_CXX
20491 pic_flag
=$lt_prog_compiler_pic_CXX
20497 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20498 allow_undefined_flag_CXX
=
20499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20500 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20503 test $ac_status = 0; }
20505 lt_cv_archive_cmds_need_lc_CXX
=no
20507 lt_cv_archive_cmds_need_lc_CXX
=yes
20509 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20511 cat conftest.err
1>&5
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20517 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20518 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20589 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20591 library_names_spec
=
20592 libname_spec
='lib$name'
20596 postuninstall_cmds
=
20600 shlibpath_overrides_runpath
=unknown
20602 dynamic_linker
="$host_os ld.so"
20603 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20604 need_lib_prefix
=unknown
20605 hardcode_into_libs
=no
20607 # when you set need_version to no, make sure it does not cause -set_version
20608 # flags to be left without arguments
20609 need_version
=unknown
20614 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20615 shlibpath_var
=LIBPATH
20617 # AIX 3 has no versioning support, so we append a major version to the name.
20618 soname_spec
='${libname}${release}${shared_ext}$major'
20625 hardcode_into_libs
=yes
20626 if test "$host_cpu" = ia64
; then
20627 # AIX 5 supports IA64
20628 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20629 shlibpath_var
=LD_LIBRARY_PATH
20631 # With GCC up to 2.95.x, collect2 would create an import file
20632 # for dependence libraries. The import file would start with
20633 # the line `#! .'. This would cause the generated library to
20634 # depend on `.', always an invalid library. This was fixed in
20635 # development snapshots of GCC prior to 3.0.
20637 aix4 | aix4.
[01] | aix4.
[01].
*)
20638 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20640 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20643 can_build_shared
=no
20647 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20648 # soname into executable. Probably we can add versioning support to
20649 # collect2, so additional links can be useful in future.
20650 if test "$aix_use_runtimelinking" = yes; then
20651 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20652 # instead of lib<name>.a to let people know that these are not
20653 # typical AIX shared libraries.
20654 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20656 # We preserve .a as extension for shared libraries through AIX4.2
20657 # and later when we are not doing run time linking.
20658 library_names_spec
='${libname}${release}.a $libname.a'
20659 soname_spec
='${libname}${release}${shared_ext}$major'
20661 shlibpath_var
=LIBPATH
20668 # Since July 2007 AmigaOS4 officially supports .so libraries.
20669 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20673 library_names_spec
='$libname.ixlibrary $libname.a'
20674 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20675 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'
20681 library_names_spec
='${libname}${shared_ext}'
20682 dynamic_linker
="$host_os ld.so"
20683 shlibpath_var
=LIBRARY_PATH
20689 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20690 soname_spec
='${libname}${release}${shared_ext}$major'
20691 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20692 shlibpath_var
=LD_LIBRARY_PATH
20693 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20694 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20695 # the default ld.so.conf also contains /usr/contrib/lib and
20696 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20697 # libtool to hard-code these into programs
20700 cygwin
* | mingw
* | pw32
* | cegcc
*)
20701 version_type
=windows
20706 case $GCC,$host_os in
20707 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20708 library_names_spec
='$libname.dll.a'
20709 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20710 postinstall_cmds
='base_file=`basename \${file}`~
20711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20712 dldir=$destdir/`dirname \$dlpath`~
20713 test -d \$dldir || mkdir -p \$dldir~
20714 $install_prog $dir/$dlname \$dldir/$dlname~
20715 chmod a+x \$dldir/$dlname~
20716 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20717 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20719 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20720 dlpath=$dir/\$dldll~
20722 shlibpath_overrides_runpath
=yes
20726 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20727 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20731 # MinGW DLLs use traditional 'lib' prefix
20732 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20735 # pw32 DLLs use 'pw' prefix rather than 'lib'
20736 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20742 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20745 dynamic_linker
='Win32 ld.exe'
20746 # FIXME: first we should search . and the directory the executable is in
20750 darwin
* | rhapsody
*)
20751 dynamic_linker
="$host_os dyld"
20752 version_type
=darwin
20755 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20756 soname_spec
='${libname}${release}${major}$shared_ext'
20757 shlibpath_overrides_runpath
=yes
20758 shlibpath_var
=DYLD_LIBRARY_PATH
20759 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20761 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20769 soname_spec
='${libname}${release}${shared_ext}$major'
20770 shlibpath_var
=LD_LIBRARY_PATH
20773 freebsd
* | dragonfly
*)
20774 # DragonFly does not have aout. When/if they implement a new
20775 # versioning mechanism, adjust this.
20776 if test -x /usr
/bin
/objformat
; then
20777 objformat
=`/usr/bin/objformat`
20780 freebsd
[23].
*) objformat
=aout
;;
20781 *) objformat
=elf
;;
20784 version_type
=freebsd-
$objformat
20785 case $version_type in
20787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20792 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20796 shlibpath_var
=LD_LIBRARY_PATH
20799 shlibpath_overrides_runpath
=yes
20801 freebsd3.
[01]* | freebsdelf3.
[01]*)
20802 shlibpath_overrides_runpath
=yes
20803 hardcode_into_libs
=yes
20805 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20806 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20807 shlibpath_overrides_runpath
=no
20808 hardcode_into_libs
=yes
20810 *) # from 4.6 on, and DragonFly
20811 shlibpath_overrides_runpath
=yes
20812 hardcode_into_libs
=yes
20821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20822 soname_spec
='${libname}${release}${shared_ext}$major'
20823 shlibpath_var
=LD_LIBRARY_PATH
20824 hardcode_into_libs
=yes
20831 dynamic_linker
="$host_os runtime_loader"
20832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20833 soname_spec
='${libname}${release}${shared_ext}$major'
20834 shlibpath_var
=LIBRARY_PATH
20835 shlibpath_overrides_runpath
=yes
20836 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20837 hardcode_into_libs
=yes
20840 hpux9
* | hpux10
* | hpux11
*)
20841 # Give a soname corresponding to the major version so that dld.sl refuses to
20842 # link against other versions.
20849 hardcode_into_libs
=yes
20850 dynamic_linker
="$host_os dld.so"
20851 shlibpath_var
=LD_LIBRARY_PATH
20852 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20853 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20854 soname_spec
='${libname}${release}${shared_ext}$major'
20855 if test "X$HPUX_IA64_MODE" = X32
; then
20856 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20858 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20860 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20864 hardcode_into_libs
=yes
20865 dynamic_linker
="$host_os dld.sl"
20866 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20867 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20869 soname_spec
='${libname}${release}${shared_ext}$major'
20870 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20871 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20875 dynamic_linker
="$host_os dld.sl"
20876 shlibpath_var
=SHLIB_PATH
20877 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20879 soname_spec
='${libname}${release}${shared_ext}$major'
20882 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20883 postinstall_cmds
='chmod 555 $lib'
20884 # or fails outright, so override atomically:
20885 install_override_mode
=555
20892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20893 soname_spec
='${libname}${release}${shared_ext}$major'
20894 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20895 shlibpath_var
=LD_LIBRARY_PATH
20896 shlibpath_overrides_runpath
=no
20897 hardcode_into_libs
=yes
20900 irix5
* | irix6
* | nonstopux
*)
20902 nonstopux
*) version_type
=nonstopux
;;
20904 if test "$lt_cv_prog_gnu_ld" = yes; then
20912 soname_spec
='${libname}${release}${shared_ext}$major'
20913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20915 irix5
* | nonstopux
*)
20916 libsuff
= shlibsuff
=
20919 case $LD in # libtool.m4 will add one of these switches to LD
20920 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20921 libsuff
= shlibsuff
= libmagic
=32-bit;;
20922 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20923 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20924 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20925 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20926 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20930 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20931 shlibpath_overrides_runpath
=no
20932 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20933 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20934 hardcode_into_libs
=yes
20937 # No shared lib support for Linux oldld, aout, or coff.
20938 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20942 # This must be Linux ELF.
20943 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20948 soname_spec
='${libname}${release}${shared_ext}$major'
20949 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20950 shlibpath_var
=LD_LIBRARY_PATH
20951 shlibpath_overrides_runpath
=no
20953 # Some binutils ld are patched to set DT_RUNPATH
20954 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20955 $as_echo_n "(cached) " >&6
20957 lt_cv_shlibpath_overrides_runpath
=no
20958 save_LDFLAGS
=$LDFLAGS
20959 save_libdir
=$libdir
20960 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20961 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20963 /* end confdefs.h. */
20973 if ac_fn_cxx_try_link
"$LINENO"; then :
20974 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20975 lt_cv_shlibpath_overrides_runpath
=yes
20978 rm -f core conftest.err conftest.
$ac_objext \
20979 conftest
$ac_exeext conftest.
$ac_ext
20980 LDFLAGS
=$save_LDFLAGS
20981 libdir
=$save_libdir
20985 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20987 # This implies no fast_install, which is unacceptable.
20988 # Some rework will be needed to allow for fast_install
20989 # before this can be enabled.
20990 hardcode_into_libs
=yes
20992 # Append ld.so.conf contents to the search path
20993 if test -f /etc
/ld.so.conf
; then
20994 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' ' '`
20995 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20998 # We used to test for /lib/ld.so.1 and disable shared libraries on
20999 # powerpc, because MkLinux only supported shared libraries with the
21000 # GNU dynamic linker. Since this was broken with cross compilers,
21001 # most powerpc-linux boxes support dynamic linking these days and
21002 # people can always --disable-shared, the test was removed, and we
21003 # assume the GNU/Linux dynamic linker is in use.
21004 dynamic_linker
='GNU/Linux ld.so'
21011 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21013 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21014 dynamic_linker
='NetBSD (a.out) ld.so'
21016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21017 soname_spec
='${libname}${release}${shared_ext}$major'
21018 dynamic_linker
='NetBSD ld.elf_so'
21020 shlibpath_var
=LD_LIBRARY_PATH
21021 shlibpath_overrides_runpath
=yes
21022 hardcode_into_libs
=yes
21027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21028 shlibpath_var
=LD_LIBRARY_PATH
21029 shlibpath_overrides_runpath
=yes
21036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec
='${libname}${release}${shared_ext}$major'
21038 shlibpath_var
=LD_LIBRARY_PATH
21039 shlibpath_overrides_runpath
=no
21040 hardcode_into_libs
=yes
21041 dynamic_linker
='ldqnx.so'
21046 sys_lib_dlsearch_path_spec
="/usr/lib"
21048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21050 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21051 *) need_version
=no
;;
21053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21054 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21055 shlibpath_var
=LD_LIBRARY_PATH
21056 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21058 openbsd2.
[89] | openbsd2.
[89].
*)
21059 shlibpath_overrides_runpath
=no
21062 shlibpath_overrides_runpath
=yes
21066 shlibpath_overrides_runpath
=yes
21071 libname_spec
='$name'
21074 library_names_spec
='$libname${shared_ext} $libname.a'
21075 dynamic_linker
='OS/2 ld.exe'
21076 shlibpath_var
=LIBPATH
21079 osf3
* | osf4
* | osf5
*)
21083 soname_spec
='${libname}${release}${shared_ext}$major'
21084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21085 shlibpath_var
=LD_LIBRARY_PATH
21086 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21087 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21099 soname_spec
='${libname}${release}${shared_ext}$major'
21100 shlibpath_var
=LD_LIBRARY_PATH
21101 shlibpath_overrides_runpath
=yes
21102 hardcode_into_libs
=yes
21103 # ldd complains unless libraries are executable
21104 postinstall_cmds
='chmod +x $lib'
21109 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21110 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21111 shlibpath_var
=LD_LIBRARY_PATH
21112 shlibpath_overrides_runpath
=yes
21113 if test "$with_gnu_ld" = yes; then
21121 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21122 soname_spec
='${libname}${release}${shared_ext}$major'
21123 shlibpath_var
=LD_LIBRARY_PATH
21124 case $host_vendor in
21126 shlibpath_overrides_runpath
=no
21128 runpath_var
=LD_RUN_PATH
21136 shlibpath_overrides_runpath
=no
21137 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21143 if test -d /usr
/nec
;then
21145 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21146 soname_spec
='$libname${shared_ext}.$major'
21147 shlibpath_var
=LD_LIBRARY_PATH
21151 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21152 version_type
=freebsd-elf
21155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21156 soname_spec
='${libname}${release}${shared_ext}$major'
21157 shlibpath_var
=LD_LIBRARY_PATH
21158 shlibpath_overrides_runpath
=yes
21159 hardcode_into_libs
=yes
21160 if test "$with_gnu_ld" = yes; then
21161 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21163 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21166 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21170 sys_lib_dlsearch_path_spec
='/usr/lib'
21174 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21179 shlibpath_var
=LD_LIBRARY_PATH
21180 shlibpath_overrides_runpath
=no
21181 hardcode_into_libs
=yes
21186 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21187 soname_spec
='${libname}${release}${shared_ext}$major'
21188 shlibpath_var
=LD_LIBRARY_PATH
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21196 $as_echo "$dynamic_linker" >&6; }
21197 test "$dynamic_linker" = no
&& can_build_shared
=no
21199 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21200 if test "$GCC" = yes; then
21201 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21204 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21205 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21207 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21208 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21249 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21250 hardcode_action_CXX
=
21251 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21252 test -n "$runpath_var_CXX" ||
21253 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21255 # We can hardcode non-existent directories.
21256 if test "$hardcode_direct_CXX" != no
&&
21257 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21258 # have to relink, otherwise we might link with an installed library
21259 # when we should be linking with a yet-to-be-installed one
21260 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21261 test "$hardcode_minus_L_CXX" != no
; then
21262 # Linking always hardcodes the temporary library directory.
21263 hardcode_action_CXX
=relink
21265 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21266 hardcode_action_CXX
=immediate
21269 # We cannot hardcode anything, or else we can only hardcode existing
21271 hardcode_action_CXX
=unsupported
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21274 $as_echo "$hardcode_action_CXX" >&6; }
21276 if test "$hardcode_action_CXX" = relink ||
21277 test "$inherit_rpath_CXX" = yes; then
21278 # Fast installation is not supported
21279 enable_fast_install
=no
21280 elif test "$shlibpath_overrides_runpath" = yes ||
21281 test "$enable_shared" = no
; then
21282 # Fast installation is not necessary
21283 enable_fast_install
=needless
21292 fi # test -n "$compiler"
21298 with_gnu_ld
=$lt_save_with_gnu_ld
21299 lt_cv_path_LDCXX
=$lt_cv_path_LD
21300 lt_cv_path_LD
=$lt_save_path_LD
21301 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21302 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21303 fi # test "$_lt_caught_CXX_error" != yes
21306 ac_cpp
='$CPP $CPPFLAGS'
21307 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21308 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21309 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21326 # Only expand once:
21332 # Identify the assembler which will work hand-in-glove with the newly
21333 # built GCC, so that we can examine its features. This is the assembler
21334 # which will be driven by the driver program.
21336 # If build != host, and we aren't building gas in-tree, we identify a
21337 # build->target assembler and hope that it will have the same features
21338 # as the host->target assembler we'll be using.
21339 gcc_cv_gas_major_version
=
21340 gcc_cv_gas_minor_version
=
21341 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21343 if test "${gcc_cv_as+set}" = set; then :
21347 if test -x "$DEFAULT_ASSEMBLER"; then
21348 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21349 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21350 && test -f ..
/gas
/Makefile \
21351 && test x
$build = x
$host; then
21352 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21353 elif test -x as
$build_exeext; then
21354 # Build using assembler in the current directory.
21355 gcc_cv_as
=.
/as
$build_exeext
21356 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21357 gcc_cv_as
="$AS_FOR_TARGET"
21359 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21360 set dummy
$AS_FOR_TARGET; ac_word
=$2
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21362 $as_echo_n "checking for $ac_word... " >&6; }
21363 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21364 $as_echo_n "(cached) " >&6
21368 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21372 for as_dir
in $PATH
21375 test -z "$as_dir" && as_dir
=.
21376 for ac_exec_ext
in '' $ac_executable_extensions; do
21377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21378 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21389 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21390 if test -n "$gcc_cv_as"; then
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21392 $as_echo "$gcc_cv_as" >&6; }
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21395 $as_echo "no" >&6; }
21402 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21404 case "$ORIGINAL_AS_FOR_TARGET" in
21405 .
/as | .
/as
$build_exeext) ;;
21406 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21411 $as_echo_n "checking what assembler to use... " >&6; }
21412 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21413 # Single tree build which includes gas. We want to prefer it
21414 # over whatever linker top-level may have detected, since
21415 # we'll use what we're building after installation anyway.
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21417 $as_echo "newly built gas" >&6; }
21419 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21420 for f
in $gcc_cv_as_bfd_srcdir/configure \
21421 $gcc_cv_as_gas_srcdir/configure \
21422 $gcc_cv_as_gas_srcdir/configure.
in \
21423 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21424 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21425 if test x
$gcc_cv_gas_version != x
; then
21429 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21430 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21431 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21432 case $gcc_cv_gas_patch_version in
21433 "") gcc_cv_gas_patch_version
="0" ;;
21435 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21436 + $gcc_cv_gas_minor_version \) \* 1000 \
21437 + $gcc_cv_gas_patch_version`
21439 in_tree_gas_is_elf
=no
21440 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21441 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21442 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21444 in_tree_gas_is_elf
=yes
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21448 $as_echo "$gcc_cv_as" >&6; }
21452 # Identify the linker which will work hand-in-glove with the newly
21453 # built GCC, so that we can examine its features. This is the linker
21454 # which will be driven by the driver program.
21456 # If build != host, and we aren't building gas in-tree, we identify a
21457 # build->target linker and hope that it will have the same features
21458 # as the host->target linker we'll be using.
21459 gcc_cv_gld_major_version
=
21460 gcc_cv_gld_minor_version
=
21461 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21462 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21464 if test "${gcc_cv_ld+set}" = set; then :
21468 if test -x "$DEFAULT_LINKER"; then
21469 gcc_cv_ld
="$DEFAULT_LINKER"
21470 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21471 && test -f ..
/ld
/Makefile \
21472 && test x
$build = x
$host; then
21473 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21474 elif test -x collect-ld
$build_exeext; then
21475 # Build using linker in the current directory.
21476 gcc_cv_ld
=.
/collect-ld
$build_exeext
21477 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21478 gcc_cv_ld
="$LD_FOR_TARGET"
21480 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21481 set dummy
$LD_FOR_TARGET; ac_word
=$2
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21483 $as_echo_n "checking for $ac_word... " >&6; }
21484 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21485 $as_echo_n "(cached) " >&6
21489 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21493 for as_dir
in $PATH
21496 test -z "$as_dir" && as_dir
=.
21497 for ac_exec_ext
in '' $ac_executable_extensions; do
21498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21499 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21510 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21511 if test -n "$gcc_cv_ld"; then
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21513 $as_echo "$gcc_cv_ld" >&6; }
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21516 $as_echo "no" >&6; }
21523 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21524 PLUGIN_LD
=`basename $gcc_cv_ld`
21526 # Check whether --with-plugin-ld was given.
21527 if test "${with_plugin_ld+set}" = set; then :
21528 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21529 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21530 PLUGIN_LD
="$withval"
21536 cat >>confdefs.h
<<_ACEOF
21537 #define PLUGIN_LD "$PLUGIN_LD"
21541 # Check to see if we are using gold instead of ld
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21543 $as_echo_n "checking whether we are using gold... " >&6; }
21545 if test x
$gcc_cv_ld != x
; then
21546 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21547 |
grep "GNU gold" > /dev
/null
; then
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21552 $as_echo "$ld_is_gold" >&6; }
21554 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21556 case "$ORIGINAL_LD_FOR_TARGET" in
21557 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21558 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21563 $as_echo_n "checking what linker to use... " >&6; }
21564 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21565 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21566 # Single tree build which includes ld. We want to prefer it
21567 # over whatever linker top-level may have detected, since
21568 # we'll use what we're building after installation anyway.
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21570 $as_echo "newly built ld" >&6; }
21572 in_tree_ld_is_elf
=no
21573 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21574 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21575 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21576 in_tree_ld_is_elf
=yes
21577 elif test "$ld_is_gold" = yes; then
21578 in_tree_ld_is_elf
=yes
21580 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
21582 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21583 if test x
$gcc_cv_gld_version != x
; then
21587 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21588 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21591 $as_echo "$gcc_cv_ld" >&6; }
21595 # Figure out what nm we will be using.
21596 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21597 if test "${gcc_cv_nm+set}" = set; then :
21601 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21602 && test -f ..
/binutils
/Makefile \
21603 && test x
$build = x
$host; then
21604 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21605 elif test -x nm
$build_exeext; then
21606 gcc_cv_nm
=.
/nm
$build_exeext
21607 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21608 gcc_cv_nm
="$NM_FOR_TARGET"
21610 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21611 set dummy
$NM_FOR_TARGET; ac_word
=$2
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21613 $as_echo_n "checking for $ac_word... " >&6; }
21614 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21615 $as_echo_n "(cached) " >&6
21619 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21623 for as_dir
in $PATH
21626 test -z "$as_dir" && as_dir
=.
21627 for ac_exec_ext
in '' $ac_executable_extensions; do
21628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21629 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21640 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21641 if test -n "$gcc_cv_nm"; then
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21643 $as_echo "$gcc_cv_nm" >&6; }
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21646 $as_echo "no" >&6; }
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21654 $as_echo_n "checking what nm to use... " >&6; }
21655 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21656 # Single tree build which includes binutils.
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21658 $as_echo "newly built nm" >&6; }
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21662 $as_echo "$gcc_cv_nm" >&6; }
21666 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21668 case "$ORIGINAL_NM_FOR_TARGET" in
21669 .
/nm | .
/nm
$build_exeext) ;;
21670 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21675 # Figure out what objdump we will be using.
21676 if test "${gcc_cv_objdump+set}" = set; then :
21680 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21681 && test -f ..
/binutils
/Makefile \
21682 && test x
$build = x
$host; then
21683 # Single tree build which includes binutils.
21684 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21685 elif test -x objdump
$build_exeext; then
21686 gcc_cv_objdump
=.
/objdump
$build_exeext
21687 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21688 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21690 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21691 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21693 $as_echo_n "checking for $ac_word... " >&6; }
21694 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21695 $as_echo_n "(cached) " >&6
21697 case $gcc_cv_objdump in
21699 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21703 for as_dir
in $PATH
21706 test -z "$as_dir" && as_dir
=.
21707 for ac_exec_ext
in '' $ac_executable_extensions; do
21708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21709 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21720 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21721 if test -n "$gcc_cv_objdump"; then
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21723 $as_echo "$gcc_cv_objdump" >&6; }
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21726 $as_echo "no" >&6; }
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21734 $as_echo_n "checking what objdump to use... " >&6; }
21735 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21736 # Single tree build which includes binutils.
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21738 $as_echo "newly built objdump" >&6; }
21739 elif test x
$gcc_cv_objdump = x
; then
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21741 $as_echo "not found" >&6; }
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21744 $as_echo "$gcc_cv_objdump" >&6; }
21747 # Figure out what readelf we will be using.
21748 if test "${gcc_cv_readelf+set}" = set; then :
21752 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21753 && test -f ..
/binutils
/Makefile \
21754 && test x
$build = x
$host; then
21755 # Single tree build which includes binutils.
21756 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21757 elif test -x readelf
$build_exeext; then
21758 gcc_cv_readelf
=.
/readelf
$build_exeext
21760 # Extract the first word of "readelf", so it can be a program name with args.
21761 set dummy readelf
; ac_word
=$2
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21763 $as_echo_n "checking for $ac_word... " >&6; }
21764 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21765 $as_echo_n "(cached) " >&6
21767 case $gcc_cv_readelf in
21769 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21773 for as_dir
in $PATH
21776 test -z "$as_dir" && as_dir
=.
21777 for ac_exec_ext
in '' $ac_executable_extensions; do
21778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21779 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21790 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21791 if test -n "$gcc_cv_readelf"; then
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21793 $as_echo "$gcc_cv_readelf" >&6; }
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21796 $as_echo "no" >&6; }
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21804 $as_echo_n "checking what readelf to use... " >&6; }
21805 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21806 # Single tree build which includes binutils.
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21808 $as_echo "newly built readelf" >&6; }
21809 elif test x
$gcc_cv_readelf = x
; then
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21811 $as_echo "not found" >&6; }
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21814 $as_echo "$gcc_cv_readelf" >&6; }
21817 # Figure out what assembler alignment features are present.
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21819 $as_echo_n "checking assembler flags... " >&6; }
21820 if test "${gcc_cv_as_flags+set}" = set; then :
21821 $as_echo_n "(cached) " >&6
21824 i
[34567]86-*-linux*)
21825 gcc_cv_as_flags
="--32"
21827 powerpc
*-*-darwin*)
21828 gcc_cv_as_flags
="-arch ppc"
21831 gcc_cv_as_flags
=" "
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21836 $as_echo "$gcc_cv_as_flags" >&6; }
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21839 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21840 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21843 gcc_cv_as_balign_and_p2align
=no
21844 if test $in_tree_gas = yes; then
21845 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21846 then gcc_cv_as_balign_and_p2align
=yes
21848 elif test x
$gcc_cv_as != x
; then
21849 $as_echo '.balign 4
21850 .p2align 2' > conftest.s
21851 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21853 (eval $ac_try) 2>&5
21855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21856 test $ac_status = 0; }; }
21858 gcc_cv_as_balign_and_p2align
=yes
21860 echo "configure: failed program was" >&5
21863 rm -f conftest.o conftest.s
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21867 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21868 if test $gcc_cv_as_balign_and_p2align = yes; then
21870 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21875 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21876 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21877 $as_echo_n "(cached) " >&6
21879 gcc_cv_as_max_skip_p2align
=no
21880 if test $in_tree_gas = yes; then
21881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21882 then gcc_cv_as_max_skip_p2align
=yes
21884 elif test x
$gcc_cv_as != x
; then
21885 $as_echo '.p2align 4,,7' > conftest.s
21886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21888 (eval $ac_try) 2>&5
21890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21891 test $ac_status = 0; }; }
21893 gcc_cv_as_max_skip_p2align
=yes
21895 echo "configure: failed program was" >&5
21898 rm -f conftest.o conftest.s
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21902 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21903 if test $gcc_cv_as_max_skip_p2align = yes; then
21905 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21910 $as_echo_n "checking assembler for .literal16... " >&6; }
21911 if test "${gcc_cv_as_literal16+set}" = set; then :
21912 $as_echo_n "(cached) " >&6
21914 gcc_cv_as_literal16
=no
21915 if test $in_tree_gas = yes; then
21916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21917 then gcc_cv_as_literal16
=yes
21919 elif test x
$gcc_cv_as != x
; then
21920 $as_echo '.literal16' > conftest.s
21921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21923 (eval $ac_try) 2>&5
21925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21926 test $ac_status = 0; }; }
21928 gcc_cv_as_literal16
=yes
21930 echo "configure: failed program was" >&5
21933 rm -f conftest.o conftest.s
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21937 $as_echo "$gcc_cv_as_literal16" >&6; }
21938 if test $gcc_cv_as_literal16 = yes; then
21940 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21945 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21946 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21947 $as_echo_n "(cached) " >&6
21949 gcc_cv_as_subsection_m1
=no
21950 if test $in_tree_gas = yes; then
21951 if test $in_tree_gas_is_elf = yes \
21952 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21953 then gcc_cv_as_subsection_m1
=yes
21955 elif test x
$gcc_cv_as != x
; then
21956 $as_echo 'conftest_label1: .word 0
21958 conftest_label2: .word 0
21959 .previous' > conftest.s
21960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21962 (eval $ac_try) 2>&5
21964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21965 test $ac_status = 0; }; }
21967 if test x
$gcc_cv_nm != x
; then
21968 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21969 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21970 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21972 else gcc_cv_as_subsection_m1
=yes
21974 rm -f conftest.nm1 conftest.nm2
21977 echo "configure: failed program was" >&5
21980 rm -f conftest.o conftest.s
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21984 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21985 if test $gcc_cv_as_subsection_m1 = yes; then
21987 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21992 $as_echo_n "checking assembler for .weak... " >&6; }
21993 if test "${gcc_cv_as_weak+set}" = set; then :
21994 $as_echo_n "(cached) " >&6
21997 if test $in_tree_gas = yes; then
21998 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21999 then gcc_cv_as_weak
=yes
22001 elif test x
$gcc_cv_as != x
; then
22002 $as_echo ' .weak foobar' > conftest.s
22003 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22005 (eval $ac_try) 2>&5
22007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22008 test $ac_status = 0; }; }
22012 echo "configure: failed program was" >&5
22015 rm -f conftest.o conftest.s
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22019 $as_echo "$gcc_cv_as_weak" >&6; }
22020 if test $gcc_cv_as_weak = yes; then
22022 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22027 $as_echo_n "checking assembler for .weakref... " >&6; }
22028 if test "${gcc_cv_as_weakref+set}" = set; then :
22029 $as_echo_n "(cached) " >&6
22031 gcc_cv_as_weakref
=no
22032 if test $in_tree_gas = yes; then
22033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22034 then gcc_cv_as_weakref
=yes
22036 elif test x
$gcc_cv_as != x
; then
22037 $as_echo ' .weakref foobar, barfnot' > conftest.s
22038 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22040 (eval $ac_try) 2>&5
22042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22043 test $ac_status = 0; }; }
22045 gcc_cv_as_weakref
=yes
22047 echo "configure: failed program was" >&5
22050 rm -f conftest.o conftest.s
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22054 $as_echo "$gcc_cv_as_weakref" >&6; }
22055 if test $gcc_cv_as_weakref = yes; then
22057 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22062 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22063 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22064 $as_echo_n "(cached) " >&6
22066 gcc_cv_as_nsubspa_comdat
=no
22067 if test $in_tree_gas = yes; then
22068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22069 then gcc_cv_as_nsubspa_comdat
=yes
22071 elif test x
$gcc_cv_as != x
; then
22072 $as_echo ' .SPACE $TEXT$
22073 .NSUBSPA $CODE$,COMDAT' > conftest.s
22074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22076 (eval $ac_try) 2>&5
22078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22079 test $ac_status = 0; }; }
22081 gcc_cv_as_nsubspa_comdat
=yes
22083 echo "configure: failed program was" >&5
22086 rm -f conftest.o conftest.s
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22090 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22091 if test $gcc_cv_as_nsubspa_comdat = yes; then
22093 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22097 # .hidden needs to be supported in both the assembler and the linker,
22098 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22099 # This is irritatingly difficult to feature test for; we have to check the
22100 # date string after the version number. If we've got an in-tree
22101 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22103 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22105 $as_echo_n "checking assembler for .hidden... " >&6; }
22106 if test "${gcc_cv_as_hidden+set}" = set; then :
22107 $as_echo_n "(cached) " >&6
22109 gcc_cv_as_hidden
=no
22110 if test $in_tree_gas = yes; then
22111 if test $in_tree_gas_is_elf = yes \
22112 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22113 then gcc_cv_as_hidden
=yes
22115 elif test x
$gcc_cv_as != x
; then
22116 $as_echo ' .hidden foobar
22117 foobar:' > conftest.s
22118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22120 (eval $ac_try) 2>&5
22122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22123 test $ac_status = 0; }; }
22126 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22127 # STV_HIDDEN, so disable .hidden support if so.
22128 case "${target}" in
22129 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22130 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22131 cat > conftest.s
<<EOF
22136 .set default,hidden
22138 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22139 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22140 grep '\.hidden default' > /dev
/null
; then
22141 gcc_cv_as_hidden
=no
22143 gcc_cv_as_hidden
=yes
22146 # Assume bug is present if objdump is missing.
22147 gcc_cv_as_hidden
=no
22151 gcc_cv_as_hidden
=yes
22155 echo "configure: failed program was" >&5
22158 rm -f conftest.o conftest.s
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22162 $as_echo "$gcc_cv_as_hidden" >&6; }
22164 case "${target}" in
22166 # Darwin as has some visibility support, though with a different syntax.
22167 gcc_cv_as_hidden
=yes
22171 # gnu_indirect_function type is an extension proposed at
22172 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22173 # selection of function implementation
22174 # Check whether --enable-gnu-indirect-function was given.
22175 if test "${enable_gnu_indirect_function+set}" = set; then :
22176 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22178 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22179 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22182 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22185 if test x
$enable_gnu_indirect_function = xyes
; then
22187 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22191 if test $in_tree_ld != yes ; then
22192 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22193 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22194 if test x
"$ld_is_gold" = xyes
; then
22195 # GNU gold --version looks like this:
22197 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22199 # We extract the binutils version which is more familiar and specific
22200 # than the gold version.
22201 ld_vers
=`echo $ld_ver | sed -n \
22202 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22204 # GNU ld --version looks like this:
22206 # GNU ld (GNU Binutils) 2.21.51.20110225
22207 ld_vers
=`echo $ld_ver | sed -n \
22208 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22210 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'`
22211 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22212 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22213 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22215 case "${target}" in
22218 # Solaris 2 ld -V output looks like this for a regular version:
22220 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22222 # but test versions add stuff at the end:
22224 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22226 ld_ver
=`$gcc_cv_ld -V 2>&1`
22227 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22228 ld_vers
=`echo $ld_ver | sed -n \
22229 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22230 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22231 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22239 $as_echo_n "checking linker for .hidden support... " >&6; }
22240 if test "${gcc_cv_ld_hidden+set}" = set; then :
22241 $as_echo_n "(cached) " >&6
22243 if test $in_tree_ld = yes ; then
22244 gcc_cv_ld_hidden
=no
22245 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 \
22246 && test $in_tree_ld_is_elf = yes; then
22247 gcc_cv_ld_hidden
=yes
22250 gcc_cv_ld_hidden
=yes
22251 if test x
"$ld_is_gold" = xyes
; then
22253 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22254 if test 0"$ld_date" -lt 20020404; then
22255 if test -n "$ld_date"; then
22256 # If there was date string, but was earlier than 2002-04-04, fail
22257 gcc_cv_ld_hidden
=no
22258 elif test -z "$ld_vers"; then
22259 # If there was no date string nor ld version number, something is wrong
22260 gcc_cv_ld_hidden
=no
22262 test -z "$ld_vers_patch" && ld_vers_patch
=0
22263 if test "$ld_vers_major" -lt 2; then
22264 gcc_cv_ld_hidden
=no
22265 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22266 gcc_cv_ld_hidden
="no"
22267 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22268 gcc_cv_ld_hidden
=no
22273 case "${target}" in
22275 # Darwin ld has some visibility support.
22276 gcc_cv_ld_hidden
=yes
22278 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22279 gcc_cv_ld_hidden
=yes
22282 # .hidden support was backported to Solaris 8, starting with ld
22284 if test "$ld_vers_minor" -ge 276; then
22285 gcc_cv_ld_hidden
=yes
22287 gcc_cv_ld_hidden
=no
22290 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22291 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22292 # .symbolic was only added in Solaris 9 12/02.
22293 gcc_cv_ld_hidden
=yes
22296 gcc_cv_ld_hidden
=no
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22303 $as_echo "$gcc_cv_ld_hidden" >&6; }
22304 libgcc_visibility
=no
22307 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22308 libgcc_visibility
=yes
22310 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22315 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22316 gcc_cv_ld_ro_rw_mix
=unknown
22317 if test $in_tree_ld = yes ; then
22318 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 \
22319 && test $in_tree_ld_is_elf = yes; then
22320 gcc_cv_ld_ro_rw_mix
=read-write
22322 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22323 echo '.section myfoosect, "a"' > conftest1.s
22324 echo '.section myfoosect, "aw"' > conftest2.s
22325 echo '.byte 1' >> conftest2.s
22326 echo '.section myfoosect, "a"' > conftest3.s
22327 echo '.byte 0' >> conftest3.s
22328 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22329 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22330 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22331 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22332 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22333 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22334 | sed -e '/myfoosect/!d' -e N`
22335 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22336 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22337 gcc_cv_ld_ro_rw_mix
=read-only
22339 gcc_cv_ld_ro_rw_mix
=read-write
22343 rm -f conftest.
* conftest
[123].
*
22345 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22347 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22351 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22353 # Check whether --enable-initfini-array was given.
22354 if test "${enable_initfini_array+set}" = set; then :
22355 enableval
=$enable_initfini_array;
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22359 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22360 if test "${gcc_cv_initfini_array+set}" = set; then :
22361 $as_echo_n "(cached) " >&6
22363 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22364 case "${target}" in
22366 if test "$cross_compiling" = yes; then :
22367 gcc_cv_initfini_array
=no
22369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22370 /* end confdefs.h. */
22373 #error Not an ELF OS
22375 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22376 if it can be used. */
22378 int main (void) { return x; }
22379 int foo (void) { x = 0; }
22380 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22383 if ac_fn_c_try_run
"$LINENO"; then :
22384 gcc_cv_initfini_array
=yes
22386 gcc_cv_initfini_array
=no
22388 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22389 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22393 gcc_cv_initfini_array
=no
22394 if test $in_tree_ld = yes ; then
22395 if test "$gcc_cv_gld_major_version" -eq 2 \
22396 -a "$gcc_cv_gld_minor_version" -ge 22 \
22397 -o "$gcc_cv_gld_major_version" -gt 2 \
22398 && test $in_tree_ld_is_elf = yes; then
22399 gcc_cv_initfini_array
=yes
22401 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22402 cat > conftest.s
<<\EOF
22403 .section .dtors
,"a",%progbits
22405 .byte
'A', 'A', 'A', 'A'
22406 .section .ctors
,"a",%progbits
22408 .byte
'B', 'B', 'B', 'B'
22409 .section .fini_array
.65530,"a",%progbits
22411 .byte
'C', 'C', 'C', 'C'
22412 .section .init_array
.65530,"a",%progbits
22414 .byte
'D', 'D', 'D', 'D'
22415 .section .dtors
.64528,"a",%progbits
22417 .byte
'E', 'E', 'E', 'E'
22418 .section .ctors
.64528,"a",%progbits
22420 .byte
'F', 'F', 'F', 'F'
22421 .section .fini_array
.01005,"a",%progbits
22423 .byte
'G', 'G', 'G', 'G'
22424 .section .init_array
.01005,"a",%progbits
22426 .byte
'H', 'H', 'H', 'H'
22429 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22430 && $gcc_cv_ld -e 0 -o conftest conftest.o
> /dev
/null
2>&1 \
22431 && $gcc_cv_objdump -s -j .init_array conftest \
22432 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22433 && $gcc_cv_objdump -s -j .fini_array conftest \
22434 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22435 gcc_cv_initfini_array
=yes
22437 rm -f conftest conftest.
*
22439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22440 /* end confdefs.h. */
22443 #error Not an ELF OS
22445 #include <stdlib.h>
22446 #if defined __GLIBC_PREREQ && __GLIBC_PREREQ (2, 4)
22448 #error The C library not known to support .init_array/.fini_array
22452 if ac_fn_c_try_cpp
"$LINENO"; then :
22455 gcc_cv_initfini_array
=no
22457 rm -f conftest.err conftest.
$ac_ext;;
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22461 $as_echo_n "checking cross compile... guessing... " >&6; }
22462 gcc_cv_initfini_array
=no
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22466 $as_echo "$gcc_cv_initfini_array" >&6; }
22467 enable_initfini_array
=$gcc_cv_initfini_array
22471 if test $enable_initfini_array = yes; then
22473 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
22477 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22479 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22480 if test "${gcc_cv_as_leb128+set}" = set; then :
22481 $as_echo_n "(cached) " >&6
22483 gcc_cv_as_leb128
=no
22484 if test $in_tree_gas = yes; then
22485 if test $in_tree_gas_is_elf = yes \
22486 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22487 then gcc_cv_as_leb128
=yes
22489 elif test x
$gcc_cv_as != x
; then
22496 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22498 (eval $ac_try) 2>&5
22500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22501 test $ac_status = 0; }; }
22503 # GAS versions before 2.11 do not support uleb128,
22504 # despite appearing to.
22505 # ??? There exists an elf-specific test that will crash
22506 # the assembler. Perhaps it's better to figure out whether
22507 # arbitrary sections are supported and try the test.
22508 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22509 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22510 as_vers
=`echo $as_ver | sed -n \
22511 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22512 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22513 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22514 if test $as_major -eq 2 && test $as_minor -lt 11
22516 else gcc_cv_as_leb128
=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_leb128" >&5
22527 $as_echo "$gcc_cv_as_leb128" >&6; }
22528 if test $gcc_cv_as_leb128 = yes; then
22530 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22534 # Check if we have assembler support for unwind directives.
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22536 $as_echo_n "checking assembler for cfi directives... " >&6; }
22537 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22538 $as_echo_n "(cached) " >&6
22540 gcc_cv_as_cfi_directive
=no
22541 if test x
$gcc_cv_as != x
; then
22547 .cfi_escape 1, 2, 3, 4, 5
22548 .cfi_endproc' > conftest.s
22549 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22551 (eval $ac_try) 2>&5
22553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22554 test $ac_status = 0; }; }
22558 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22559 # read-only and read-write sections, we need to make sure that the
22560 # assembler used emits read-write .eh_frame sections.
22561 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22562 if test "x$gcc_cv_objdump" != x
; then
22563 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22564 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22565 gcc_cv_as_cfi_directive
=no
22568 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22569 # On Solaris/x86, make sure that GCC and gas agree on using
22570 # read-only .eh_frame sections for 64-bit.
22571 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22572 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22573 sed -e /.eh_frame
/!d
-e N | \
22574 grep READONLY
> /dev
/null
; then
22575 gcc_cv_as_cfi_directive
=yes
22577 gcc_cv_as_cfi_directive
=no
22581 gcc_cv_as_cfi_directive
=yes
22586 # no objdump, err on the side of caution
22587 gcc_cv_as_cfi_directive
=no
22590 gcc_cv_as_cfi_directive
=yes
22594 gcc_cv_as_cfi_directive
=yes
22598 echo "configure: failed program was" >&5
22601 rm -f conftest.o conftest.s
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22605 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22607 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22609 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22610 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22613 gcc_cv_as_cfi_advance_working
=no
22614 if test x
$gcc_cv_as != x
; then
22617 .cfi_adjust_cfa_offset 64
22619 .cfi_adjust_cfa_offset 128
22620 .cfi_endproc' > conftest.s
22621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22623 (eval $ac_try) 2>&5
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }; }
22629 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22630 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22631 gcc_cv_as_cfi_advance_working
=yes
22635 echo "configure: failed program was" >&5
22638 rm -f conftest.o conftest.s
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22642 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22645 # no objdump, err on the side of caution
22646 gcc_cv_as_cfi_advance_working
=no
22650 cat >>confdefs.h
<<_ACEOF
22651 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22652 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22658 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22659 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22660 $as_echo_n "(cached) " >&6
22662 gcc_cv_as_cfi_personality_directive
=no
22663 if test x
$gcc_cv_as != x
; then
22666 .cfi_personality 0, symbol
22667 .cfi_endproc' > conftest.s
22668 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22670 (eval $ac_try) 2>&5
22672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22673 test $ac_status = 0; }; }
22675 gcc_cv_as_cfi_personality_directive
=yes
22677 echo "configure: failed program was" >&5
22680 rm -f conftest.o conftest.s
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22684 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22687 cat >>confdefs.h
<<_ACEOF
22688 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22689 then echo 1; else echo 0; fi`
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22694 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22695 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22696 $as_echo_n "(cached) " >&6
22698 gcc_cv_as_cfi_sections_directive
=no
22699 if test x
$gcc_cv_as != x
; then
22701 .cfi_sections .debug_frame, .eh_frame
22703 .cfi_endproc' > conftest.s
22704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22706 (eval $ac_try) 2>&5
22708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22709 test $ac_status = 0; }; }
22712 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22713 # Need to check that we generated the correct relocation for the
22714 # .debug_frame section. This was fixed for binutils 2.21.
22715 gcc_cv_as_cfi_sections_directive
=no
22716 if test "x$gcc_cv_objdump" != x
; then
22717 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22718 grep secrel
> /dev
/null
; then
22719 gcc_cv_as_cfi_sections_directive
=yes
22724 gcc_cv_as_cfi_sections_directive
=yes
22728 echo "configure: failed program was" >&5
22731 rm -f conftest.o conftest.s
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22735 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22739 cat >>confdefs.h
<<_ACEOF
22740 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22741 then echo 1; else echo 0; fi`
22745 # GAS versions up to and including 2.11.0 may mis-optimize
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22748 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22749 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22750 $as_echo_n "(cached) " >&6
22752 gcc_cv_as_eh_frame
=no
22753 if test $in_tree_gas = yes; then
22754 if test $in_tree_gas_is_elf = yes \
22755 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22756 then gcc_cv_as_eh_frame
=yes
22758 elif test x
$gcc_cv_as != x
; then
22765 .section .eh_frame,"aw",@progbits
22767 .4byte .LECIE1-.LSCIE1
22781 .4byte .LEFDE1-.LASFDE1
22783 .4byte .LASFDE1-__FRAME_BEGIN__
22790 .LEFDE1:' > conftest.s
22791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22793 (eval $ac_try) 2>&5
22795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22796 test $ac_status = 0; }; }
22798 cat > conftest.lit
<<EOF
22799 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22800 0010 01000000 12000000 18000000 00000000 ................
22801 0020 08000000 04080000 0044 .........D
22803 cat > conftest.big
<<EOF
22804 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22805 0010 00000001 00000012 00000018 00000000 ................
22806 0020 00000008 04000000 0844 .........D
22808 # If the assembler didn't choke, and we can objdump,
22809 # and we got the correct data, then succeed.
22810 # The text in the here-document typically retains its unix-style line
22811 # endings, while the output of objdump will use host line endings.
22812 # Therefore, use diff -b for the comparisons.
22813 if test x
$gcc_cv_objdump != x \
22814 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22815 |
tail -3 > conftest.got \
22816 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22817 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22819 gcc_cv_as_eh_frame
=yes
22820 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22822 (eval $ac_try) 2>&5
22824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22825 test $ac_status = 0; }; }; then
22826 gcc_cv_as_eh_frame
=buggy
22828 # Uh oh, what do we do now?
22829 gcc_cv_as_eh_frame
=no
22832 echo "configure: failed program was" >&5
22835 rm -f conftest.o conftest.s
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22839 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22842 if test $gcc_cv_as_eh_frame = buggy
; then
22844 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22849 $as_echo_n "checking assembler for section merging support... " >&6; }
22850 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22851 $as_echo_n "(cached) " >&6
22853 gcc_cv_as_shf_merge
=no
22854 if test $in_tree_gas = yes; then
22855 if test $in_tree_gas_is_elf = yes \
22856 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22857 then gcc_cv_as_shf_merge
=yes
22859 elif test x
$gcc_cv_as != x
; then
22860 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22861 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22863 (eval $ac_try) 2>&5
22865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22866 test $ac_status = 0; }; }
22868 gcc_cv_as_shf_merge
=yes
22870 echo "configure: failed program was" >&5
22873 rm -f conftest.o conftest.s
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22877 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22879 if test $gcc_cv_as_shf_merge = no
; then
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22881 $as_echo_n "checking assembler for section merging support... " >&6; }
22882 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22883 $as_echo_n "(cached) " >&6
22885 gcc_cv_as_shf_merge
=no
22886 if test $in_tree_gas = yes; then
22887 if test $in_tree_gas_is_elf = yes \
22888 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22889 then gcc_cv_as_shf_merge
=yes
22891 elif test x
$gcc_cv_as != x
; then
22892 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22893 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22895 (eval $ac_try) 2>&5
22897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22898 test $ac_status = 0; }; }
22900 gcc_cv_as_shf_merge
=yes
22902 echo "configure: failed program was" >&5
22905 rm -f conftest.o conftest.s
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22909 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22913 cat >>confdefs.h
<<_ACEOF
22914 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22919 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22920 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22921 $as_echo_n "(cached) " >&6
22923 gcc_cv_as_comdat_group
=no
22924 if test $in_tree_gas = yes; then
22925 if test $in_tree_gas_is_elf = yes \
22926 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22927 then gcc_cv_as_comdat_group
=yes
22929 elif test x
$gcc_cv_as != x
; then
22930 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22931 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22933 (eval $ac_try) 2>&5
22935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22936 test $ac_status = 0; }; }
22938 gcc_cv_as_comdat_group
=yes
22940 echo "configure: failed program was" >&5
22943 rm -f conftest.o conftest.s
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22947 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22949 if test $gcc_cv_as_comdat_group = yes; then
22950 gcc_cv_as_comdat_group_percent
=no
22951 gcc_cv_as_comdat_group_group
=no
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22954 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22955 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22956 $as_echo_n "(cached) " >&6
22958 gcc_cv_as_comdat_group_percent
=no
22959 if test $in_tree_gas = yes; then
22960 if test $in_tree_gas_is_elf = yes \
22961 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22962 then gcc_cv_as_comdat_group_percent
=yes
22964 elif test x
$gcc_cv_as != x
; then
22965 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22966 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22968 (eval $ac_try) 2>&5
22970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22971 test $ac_status = 0; }; }
22973 gcc_cv_as_comdat_group_percent
=yes
22975 echo "configure: failed program was" >&5
22978 rm -f conftest.o conftest.s
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22982 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22984 if test $gcc_cv_as_comdat_group_percent = yes; then
22985 gcc_cv_as_comdat_group_group
=no
22987 case "${target}" in
22988 # Sun as uses a completely different syntax.
22990 case "${target}" in
22991 sparc
*-*-solaris2*)
22993 .group foo,".text%foo",#comdat
22994 .section ".text%foo", #alloc,#execinstr,#progbits
22999 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23001 .group foo,.text%foo,#comdat
23002 .section .text%foo, "ax", @progbits
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23009 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23010 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23011 $as_echo_n "(cached) " >&6
23013 gcc_cv_as_comdat_group_group
=no
23014 if test x
$gcc_cv_as != x
; then
23015 $as_echo "$conftest_s" > conftest.s
23016 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23018 (eval $ac_try) 2>&5
23020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23021 test $ac_status = 0; }; }
23023 gcc_cv_as_comdat_group_group
=yes
23025 echo "configure: failed program was" >&5
23028 rm -f conftest.o conftest.s
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23032 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23038 if test x
"$ld_is_gold" = xyes
; then
23040 elif test $in_tree_ld = yes ; then
23042 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 \
23043 && test $in_tree_ld_is_elf = yes; then
23046 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23048 if test 0"$ld_date" -lt 20050308; then
23049 if test -n "$ld_date"; then
23050 # If there was date string, but was earlier than 2005-03-08, fail
23052 elif test "$ld_vers_major" -lt 2; then
23054 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23059 case "${target}" in
23060 *-*-solaris2.1
[1-9]*)
23062 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23063 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23066 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23067 # least ld version 1.2267.
23068 if test "$ld_vers_major" -gt 1; then
23070 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23072 elif test "$ld_vers_minor" -ge 2267; then
23077 # Assume linkers other than GNU ld don't support COMDAT group.
23082 # Allow overriding the automatic COMDAT group tests above.
23083 # Check whether --enable-comdat was given.
23084 if test "${enable_comdat+set}" = set; then :
23085 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23088 if test $comdat_group = no
; then
23089 gcc_cv_as_comdat_group
=no
23090 gcc_cv_as_comdat_group_percent
=no
23091 gcc_cv_as_comdat_group_group
=no
23094 cat >>confdefs.h
<<_ACEOF
23095 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23096 || test $gcc_cv_as_comdat_group_percent = yes \
23097 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23102 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23103 if test "${gcc_cv_as_discriminator+set}" = set; then :
23104 $as_echo_n "(cached) " >&6
23106 gcc_cv_as_discriminator
=no
23107 if test $in_tree_gas = yes; then
23108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23109 then gcc_cv_as_discriminator
=yes
23111 elif test x
$gcc_cv_as != x
; then
23114 .loc 1 1 0 discriminator 1' > conftest.s
23115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23117 (eval $ac_try) 2>&5
23119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23120 test $ac_status = 0; }; }
23122 gcc_cv_as_discriminator
=yes
23124 echo "configure: failed program was" >&5
23127 rm -f conftest.o conftest.s
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23131 $as_echo "$gcc_cv_as_discriminator" >&6; }
23132 if test $gcc_cv_as_discriminator = yes; then
23134 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23138 # Thread-local storage - the check is heavily parameterized.
23146 .section ".tdata","awT",@progbits
23149 ldq $27,__tls_get_addr($29) !literal!1
23150 lda $16,foo($29) !tlsgd!1
23151 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23152 ldq $27,__tls_get_addr($29) !literal!2
23153 lda $16,foo($29) !tlsldm!2
23154 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23155 ldq $1,foo($29) !gotdtprel
23156 ldah $2,foo($29) !dtprelhi
23157 lda $3,foo($2) !dtprello
23158 lda $4,foo($29) !dtprel
23159 ldq $1,foo($29) !gottprel
23160 ldah $2,foo($29) !tprelhi
23161 lda $3,foo($2) !tprello
23162 lda $4,foo($29) !tprel'
23165 tls_as_opt
=--fatal-warnings
23167 cris-
*-*|crisv32-
*-*)
23169 .section ".tdata","awT",@progbits
23176 tls_as_opt
=--fatal-warnings
23180 .section ".tdata","awT",@progbits
23183 call #gettlsoff(x)'
23192 .section ".tdata","awT",@progbits
23196 addil LT%foo-$tls_gdidx$,gp
23197 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23200 addil LT%foo-$tls_ldidx$,gp
23202 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23203 addil LR%foo-$tls_dtpoff$,%ret0
23204 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23206 addil LT%foo-$tls_ieoff$,gp
23207 ldw RT%foo-$tls_ieoff$(%r1),%t2
23210 addil LR%foo-$tls_leoff$,%t1
23211 ldo RR%foo-$tls_leoff$(%r1),%t2'
23214 tls_as_opt
=--fatal-warnings
23218 .section ".tdata","awT",%progbits
23221 .word foo(gottpoff)
23229 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23231 i
[34567]86-*-solaris2.
*)
23233 tga_func
=___tls_get_addr
23235 x86_64-
*-solaris2.1
[0-9]*)
23237 tga_func
=__tls_get_addr
23243 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23245 .section .tdata,"awt",@progbits'
23249 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23253 .section ".tdata","awT",@progbits'
23256 tls_as_opt
="--fatal-warnings"
23258 conftest_s
="$conftest_s
23262 leal foo@tlsgd(,%ebx,1), %eax
23263 leal foo@tlsldm(%ebx), %eax
23264 leal foo@dtpoff(%eax), %edx
23265 movl foo@gottpoff(%ebx), %eax
23266 subl foo@gottpoff(%ebx), %eax
23267 addl foo@gotntpoff(%ebx), %eax
23268 movl foo@indntpoff, %eax
23269 movl \$foo@tpoff, %eax
23270 subl \$foo@tpoff, %eax
23271 leal foo@ntpoff(%ecx), %eax"
23275 .section ".tdata","awT",@progbits
23279 leaq foo@TLSGD(%rip), %rdi
23280 leaq foo@TLSLD(%rip), %rdi
23281 leaq foo@DTPOFF(%rax), %rdx
23282 movq foo@GOTTPOFF(%rip), %rax
23283 movq $foo@TPOFF, %rax'
23286 tls_as_opt
=--fatal-warnings
23290 .section ".tdata","awT",@progbits
23293 addl r16 = @ltoff(@dtpmod(foo#)), gp
23294 addl r17 = @ltoff(@dtprel(foo#)), gp
23295 addl r18 = @ltoff(@tprel(foo#)), gp
23296 addl r19 = @dtprel(foo#), gp
23297 adds r21 = @dtprel(foo#), r13
23298 movl r23 = @dtprel(foo#)
23299 addl r20 = @tprel(foo#), gp
23300 adds r22 = @tprel(foo#), r13
23301 movl r24 = @tprel(foo#)'
23304 tls_as_opt
=--fatal-warnings
23308 .section .tdata,"awT",@progbits
23312 addiu $4, $28, %tlsgd(x)
23313 addiu $4, $28, %tlsldm(x)
23314 lui $4, %dtprel_hi(x)
23315 addiu $4, $4, %dtprel_lo(x)
23316 lw $4, %gottprel(x)($28)
23317 lui $4, %tprel_hi(x)
23318 addiu $4, $4, %tprel_lo(x)'
23321 tls_as_opt
='-32 --fatal-warnings'
23325 .section .tdata,"awT",@progbits
23330 move.l x@TLSGD(%a5),%a0
23331 move.l x@TLSLDM(%a5),%a0
23332 move.l x@TLSLDO(%a5),%a0
23333 move.l x@TLSIE(%a5),%a0
23334 move.l x@TLSLE(%a5),%a0'
23337 tls_as_opt
='--fatal-warnings'
23341 .section ".tdata","awT",@progbits
23349 addi 3,31,ld0@got@tlsgd
23351 addi 3,31,x1@got@tlsld
23354 addis 9,3,x2@dtprel@ha
23355 addi 9,9,x2@dtprel@l
23356 lwz 9,x3@got@tprel(31)
23359 addis 9,2,x2@tprel@ha
23360 addi 9,9,x2@tprel@l'
23363 tls_as_opt
="-a32 --fatal-warnings"
23367 .section ".tdata","awT",@progbits
23375 addi 3,2,ld0@got@tlsgd
23381 addi 3,2,x1@got@tlsld
23387 addis 9,3,x2@dtprel@ha
23388 addi 9,9,x2@dtprel@l
23391 ld 9,x3@got@dtprel(2)
23397 tls_as_opt
="-a64 --fatal-warnings"
23401 .section ".tdata","awT",@progbits
23408 .long foo@GOTNTPOFF
23409 .long foo@INDNTPOFF
23410 l %r1,foo@GOTNTPOFF(%r12)
23411 l %r1,0(%r1):tls_load:foo
23412 bas %r14,0(%r1,%r13):tls_gdcall:foo
23413 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23416 tls_as_opt
="-m31 --fatal-warnings"
23420 .section ".tdata","awT",@progbits
23427 .quad foo@GOTNTPOFF
23428 lg %r1,foo@GOTNTPOFF(%r12)
23429 larl %r1,foo@INDNTPOFF
23430 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23431 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23434 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23436 sh-
*-* | sh
[34]-*-*)
23438 .section ".tdata","awT",@progbits
23448 tls_as_opt
=--fatal-warnings
23452 sparc
*-sun-solaris2.
*)
23454 tga_func
=__tls_get_addr
23460 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23462 .section ".tdata",#alloc,#write,#tls'
23467 .section ".tdata","awT",@progbits'
23470 tls_as_opt
="-32 --fatal-warnings"
23472 conftest_s
="$conftest_s
23475 sethi %tgd_hi22(foo), %o0
23476 add %o0, %tgd_lo10(foo), %o1
23477 add %l7, %o1, %o0, %tgd_add(foo)
23478 call __tls_get_addr, %tgd_call(foo)
23479 sethi %tldm_hi22(foo), %l1
23480 add %l1, %tldm_lo10(foo), %l2
23481 add %l7, %l2, %o0, %tldm_add(foo)
23482 call __tls_get_addr, %tldm_call(foo)
23483 sethi %tldo_hix22(foo), %l3
23484 xor %l3, %tldo_lox10(foo), %l4
23485 add %o0, %l4, %l5, %tldo_add(foo)
23486 sethi %tie_hi22(foo), %o3
23487 add %o3, %tie_lo10(foo), %o3
23488 ld [%l7 + %o3], %o2, %tie_ld(foo)
23489 add %g7, %o2, %o4, %tie_add(foo)
23490 sethi %tle_hix22(foo), %l1
23491 xor %l1, %tle_lox10(foo), %o5
23492 ld [%g7 + %o5], %o1"
23496 .section ".tdata","awT",@progbits
23499 addli r0, zero, tls_gd(foo)
23500 auli r0, zero, tls_gd_ha16(foo)
23501 addli r0, r0, tls_gd_lo16(foo)
23503 addli r0, zero, tls_ie(foo)
23504 auli r0, r0, tls_ie_ha16(foo)
23505 addli r0, r0, tls_ie_lo16(foo)'
23508 tls_as_opt
="--fatal-warnings"
23512 .section ".tdata","awT",@progbits
23515 shl16insli r0, zero, hw0_last_tls_gd(foo)
23516 shl16insli r0, zero, hw1_last_tls_gd(foo)
23517 shl16insli r0, r0, hw0_tls_gd(foo)
23519 shl16insli r0, zero, hw1_last_tls_ie(foo)
23520 shl16insli r0, r0, hw0_tls_ie(foo)'
23523 tls_as_opt
="--fatal-warnings"
23527 .section ".tdata","awT",@progbits
23530 movi a8, foo@TLSFUNC
23531 movi a10, foo@TLSARG
23532 callx8.tls a8, foo@TLSCALL'
23538 if test "x$enable_tls" = xno
; then
23539 : # TLS explicitly disabled.
23540 elif test "x$enable_tls" = xyes
; then
23541 set_have_as_tls
=yes # TLS explicitly enabled.
23542 elif test -z "$tls_first_major"; then
23543 : # If we don't have a check, assume no support.
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23546 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23547 if test "${gcc_cv_as_tls+set}" = set; then :
23548 $as_echo_n "(cached) " >&6
23551 if test $in_tree_gas = yes; then
23552 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23553 then gcc_cv_as_tls
=yes
23555 elif test x
$gcc_cv_as != x
; then
23556 $as_echo "$conftest_s" > conftest.s
23557 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23559 (eval $ac_try) 2>&5
23561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23562 test $ac_status = 0; }; }
23566 echo "configure: failed program was" >&5
23569 rm -f conftest.o conftest.s
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23573 $as_echo "$gcc_cv_as_tls" >&6; }
23574 if test $gcc_cv_as_tls = yes; then
23575 set_have_as_tls
=yes
23580 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23581 # with TLS support are in use, native TLS cannot work.
23585 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23586 # gld with TLS support are in use, native TLS cannot work.
23589 # TLS was introduced in the Solaris 9 FCS release and backported to
23590 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23591 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23592 # ld and GCC don't support any longer.
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23595 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23597 # Check ld and ld.so.1 TLS support.
23598 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23599 # Assume all interesting versions of GNU ld have TLS support.
23600 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23604 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23606 min_tls_ld_vers_minor
=280
23608 # Solaris 8/SPARC ld has TLS support since version 1.272.
23609 sparc
*-*-solaris2.8
)
23610 min_tls_ld_vers_minor
=272
23612 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23614 min_tls_ld_vers_minor
=374
23616 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23617 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23618 min_tls_ld_vers_minor
=343
23621 if test "$ld_vers_major" -gt 1 || \
23622 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23629 $as_echo "$ld_tls_support" >&6; }
23632 save_LDFLAGS
="$LDFLAGS"
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23637 $as_echo_n "checking alternate thread library... " >&6; }
23639 # TLS support was backported to Solaris 8 patches, but only lives in
23640 # the alternate thread library which became the default in Solaris 9.
23641 # We want to always use that, irrespective of TLS support.
23643 # Take multilib subdir into account. There's no spec to handle
23644 # this. The 64 symlink exists since Solaris 8.
23645 lwp_dir
=/usr
/lib
/lwp
23646 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23647 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23654 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23656 cat >>confdefs.h
<<_ACEOF
23657 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23661 $as_echo "$lwp_dir" >&6; }
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23664 $as_echo_n "checking library containing $tga_func... " >&6; }
23665 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23666 # (32-bit x86) only lived in libthread, so check for that. Keep
23667 # set_have_as_tls if found, disable if not.
23668 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23670 $as_echo_n "checking for library containing $tga_func... " >&6; }
23671 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23672 $as_echo_n "(cached) " >&6
23674 ac_func_search_save_LIBS
=$LIBS
23675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23676 /* end confdefs.h. */
23678 /* Override any GCC internal prototype to avoid an error.
23679 Use char because int might match the return type of a GCC
23680 builtin and then its argument prototype would still apply. */
23688 return $tga_func ();
23693 for ac_lib
in '' thread
; do
23694 if test -z "$ac_lib"; then
23695 ac_res
="none required"
23698 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23700 if ac_fn_c_try_link
"$LINENO"; then :
23701 eval "$as_ac_Search=\$ac_res"
23703 rm -f core conftest.err conftest.
$ac_objext \
23705 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23709 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23712 eval "$as_ac_Search=no"
23714 rm conftest.
$ac_ext
23715 LIBS
=$ac_func_search_save_LIBS
23717 eval ac_res
=\$
$as_ac_Search
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23719 $as_echo "$ac_res" >&6; }
23720 eval ac_res
=\$
$as_ac_Search
23721 if test "$ac_res" != no
; then :
23722 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23728 # Clear LIBS if we cannot support TLS.
23729 if test $set_have_as_tls = no
; then
23732 # Always define LIB_TLS_SPEC, even without TLS support.
23734 cat >>confdefs.h
<<_ACEOF
23735 #define LIB_TLS_SPEC "$LIBS"
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23739 $as_echo "$LIBS" >&6; }
23742 LDFLAGS
="$save_LDFLAGS"
23745 if test $set_have_as_tls = yes ; then
23747 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23751 # Target-specific assembler checks.
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23754 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23755 gcc_cv_ld_static_dynamic
=no
23756 gcc_cv_ld_static_option
='-Bstatic'
23757 gcc_cv_ld_dynamic_option
='-Bdynamic'
23758 if test $in_tree_ld = yes ; then
23759 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
23760 gcc_cv_ld_static_dynamic
=yes
23762 elif test x
$gcc_cv_ld != x
; then
23763 # Check if linker supports -Bstatic/-Bdynamic option
23764 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23765 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23766 gcc_cv_ld_static_dynamic
=yes
23769 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23771 gcc_cv_ld_static_dynamic
=yes
23772 gcc_cv_ld_static_option
="-noso"
23773 gcc_cv_ld_dynamic_option
="-so_archive"
23775 # HP-UX ld uses -a flags to select between shared and archive.
23777 if test x
"$gnu_ld" = xno
; then
23778 gcc_cv_ld_static_dynamic
=yes
23779 gcc_cv_ld_static_option
="-aarchive_shared"
23780 gcc_cv_ld_dynamic_option
="-adefault"
23783 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23785 gcc_cv_ld_static_dynamic
=yes
23787 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23789 gcc_cv_ld_static_dynamic
=yes
23794 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23796 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23799 cat >>confdefs.h
<<_ACEOF
23800 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23804 cat >>confdefs.h
<<_ACEOF
23805 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23810 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23812 if test x
"$demangler_in_ld" = xyes
; then
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23814 $as_echo_n "checking linker --demangle support... " >&6; }
23815 gcc_cv_ld_demangle
=no
23816 if test $in_tree_ld = yes; then
23817 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 \
23818 gcc_cv_ld_demangle
=yes
23820 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23821 # Check if the GNU linker supports --demangle option
23822 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23823 gcc_cv_ld_demangle
=yes
23826 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23828 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23832 $as_echo "$gcc_cv_ld_demangle" >&6; }
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23836 $as_echo_n "checking linker plugin support... " >&6; }
23837 gcc_cv_lto_plugin
=0
23838 if test -f liblto_plugin.la
; then
23839 save_ld_ver
="$ld_ver"
23840 save_ld_vers_major
="$ld_vers_major"
23841 save_ld_vers_minor
="$ld_vers_minor"
23842 save_ld_is_gold
="$ld_is_gold"
23846 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23848 # FIXME: ld_is_gold?
23849 ld_vers_major
="$gcc_cv_gld_major_version"
23850 ld_vers_minor
="$gcc_cv_gld_minor_version"
23852 # Determine plugin linker version.
23853 # FIXME: Partial duplicate from above, generalize.
23854 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23855 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23856 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23858 ld_vers
=`echo $ld_ver | sed -n \
23859 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23861 ld_vers
=`echo $ld_ver | sed -n \
23862 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23864 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23865 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23869 # Determine plugin support.
23870 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23871 # Require GNU ld or gold 2.21+ for plugin support by default.
23872 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23873 gcc_cv_lto_plugin
=2
23874 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23875 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23876 gcc_cv_lto_plugin
=1
23880 ld_ver
="$save_ld_ver"
23881 ld_vers_major
="$save_ld_vers_major"
23882 ld_vers_minor
="$save_ld_vers_minor"
23883 ld_is_gold
="$save_ld_is_gold"
23886 cat >>confdefs.h
<<_ACEOF
23887 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23891 $as_echo "$gcc_cv_lto_plugin" >&6; }
23894 # All TARGET_ABI_OSF targets.
23895 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23897 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23898 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23899 $as_echo_n "(cached) " >&6
23901 gcc_cv_as_alpha_explicit_relocs
=no
23902 if test $in_tree_gas = yes; then
23903 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23904 then gcc_cv_as_alpha_explicit_relocs
=yes
23906 elif test x
$gcc_cv_as != x
; then
23907 $as_echo ' .set nomacro
23909 extbl $3, $2, $3 !lituse_bytoff!1
23910 ldq $2, a($29) !literal!1
23911 ldq $4, b($29) !literal!2
23912 ldq_u $3, 0($2) !lituse_base!1
23913 ldq $27, f($29) !literal!5
23914 jsr $26, ($27), f !lituse_jsr!5
23915 ldah $29, 0($26) !gpdisp!3
23916 lda $0, c($29) !gprel
23917 ldah $1, d($29) !gprelhigh
23918 lda $1, d($1) !gprellow
23919 lda $29, 0($29) !gpdisp!3' > conftest.s
23920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23922 (eval $ac_try) 2>&5
23924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23925 test $ac_status = 0; }; }
23927 gcc_cv_as_alpha_explicit_relocs
=yes
23929 echo "configure: failed program was" >&5
23932 rm -f conftest.o conftest.s
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23936 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23937 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23939 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23943 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23944 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23945 $as_echo_n "(cached) " >&6
23947 gcc_cv_as_alpha_jsrdirect_relocs
=no
23948 if test $in_tree_gas = yes; then
23949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23950 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23952 elif test x
$gcc_cv_as != x
; then
23953 $as_echo ' .set nomacro
23955 ldq $27, a($29) !literal!1
23956 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23959 (eval $ac_try) 2>&5
23961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23962 test $ac_status = 0; }; }
23964 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23966 echo "configure: failed program was" >&5
23969 rm -f conftest.o conftest.s
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23973 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23974 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23976 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23983 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23984 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23985 $as_echo_n "(cached) " >&6
23987 gcc_cv_as_cris_no_mul_bug
=no
23988 if test $in_tree_gas = yes; then
23989 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23990 then gcc_cv_as_cris_no_mul_bug
=yes
23992 elif test x
$gcc_cv_as != x
; then
23993 $as_echo '.text' > conftest.s
23994 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996 (eval $ac_try) 2>&5
23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; }
24001 gcc_cv_as_cris_no_mul_bug
=yes
24003 echo "configure: failed program was" >&5
24006 rm -f conftest.o conftest.s
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24010 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24011 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24013 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24020 $as_echo_n "checking assembler for .register... " >&6; }
24021 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24022 $as_echo_n "(cached) " >&6
24024 gcc_cv_as_sparc_register_op
=no
24025 if test x
$gcc_cv_as != x
; then
24026 $as_echo '.register %g2, #scratch' > conftest.s
24027 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24029 (eval $ac_try) 2>&5
24031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24032 test $ac_status = 0; }; }
24034 gcc_cv_as_sparc_register_op
=yes
24036 echo "configure: failed program was" >&5
24039 rm -f conftest.o conftest.s
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24043 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24044 if test $gcc_cv_as_sparc_register_op = yes; then
24046 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24051 $as_echo_n "checking assembler for -relax option... " >&6; }
24052 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24053 $as_echo_n "(cached) " >&6
24055 gcc_cv_as_sparc_relax
=no
24056 if test x
$gcc_cv_as != x
; then
24057 $as_echo '.text' > conftest.s
24058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24060 (eval $ac_try) 2>&5
24062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24063 test $ac_status = 0; }; }
24065 gcc_cv_as_sparc_relax
=yes
24067 echo "configure: failed program was" >&5
24070 rm -f conftest.o conftest.s
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24074 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24075 if test $gcc_cv_as_sparc_relax = yes; then
24077 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24082 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24083 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24084 $as_echo_n "(cached) " >&6
24086 gcc_cv_as_sparc_gotdata_op
=no
24087 if test x
$gcc_cv_as != x
; then
24093 sethi %gdop_hix22(foo), %g1
24094 xor %g1, %gdop_lox10(foo), %g1
24095 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24096 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24098 (eval $ac_try) 2>&5
24100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24101 test $ac_status = 0; }; }
24103 if test x
$gcc_cv_ld != x \
24104 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24105 if test x
$gcc_cv_objdump != x
; then
24106 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24107 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24108 gcc_cv_as_sparc_gotdata_op
=no
24110 gcc_cv_as_sparc_gotdata_op
=yes
24116 echo "configure: failed program was" >&5
24119 rm -f conftest.o conftest.s
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24123 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24124 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24126 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24131 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24132 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24133 $as_echo_n "(cached) " >&6
24135 gcc_cv_as_sparc_ua_pcrel
=no
24136 if test x
$gcc_cv_as != x
; then
24143 .uaword %r_disp32(foo)' > conftest.s
24144 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24146 (eval $ac_try) 2>&5
24148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24149 test $ac_status = 0; }; }
24151 if test x
$gcc_cv_ld != x \
24152 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24153 gcc_cv_as_sparc_ua_pcrel
=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_sparc_ua_pcrel" >&5
24164 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24165 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24167 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24171 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24172 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24173 $as_echo_n "(cached) " >&6
24175 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24176 if test x
$gcc_cv_as != x
; then
24180 .uaword %r_disp32(foo)
24181 .byte 0x32, 0x33, 0x34
24185 .skip 4' > conftest.s
24186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24188 (eval $ac_try) 2>&5
24190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24191 test $ac_status = 0; }; }
24193 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24194 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24195 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24196 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24197 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24198 |
grep 'DISP32' > /dev
/null
2>&1; then
24201 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24206 echo "configure: failed program was" >&5
24209 rm -f conftest.o conftest.s
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24213 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24214 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24216 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24220 fi # unaligned pcrel relocs
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24223 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24224 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24225 $as_echo_n "(cached) " >&6
24227 gcc_cv_as_sparc_offsetable_lo10
=no
24228 if test x
$gcc_cv_as != x
; then
24230 or %g1, %lo(ab) + 12, %g1
24231 or %g1, %lo(ab + 12), %g1' > conftest.s
24232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24234 (eval $ac_try) 2>&5
24236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24237 test $ac_status = 0; }; }
24239 if test x
$gcc_cv_objdump != x \
24240 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24241 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24242 gcc_cv_as_sparc_offsetable_lo10
=yes
24245 echo "configure: failed program was" >&5
24248 rm -f conftest.o conftest.s
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24252 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24253 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24255 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24260 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24261 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24262 $as_echo_n "(cached) " >&6
24264 gcc_cv_as_sparc_fmaf
=no
24265 if test x
$gcc_cv_as != x
; then
24267 .register %g2, #scratch
24268 .register %g3, #scratch
24270 fmaddd %f0, %f2, %f4, %f6
24271 addxccc %g1, %g2, %g3
24272 fsrl32 %f2, %f4, %f8
24273 fnaddd %f10, %f12, %f14' > conftest.s
24274 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24276 (eval $ac_try) 2>&5
24278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24279 test $ac_status = 0; }; }
24281 gcc_cv_as_sparc_fmaf
=yes
24283 echo "configure: failed program was" >&5
24286 rm -f conftest.o conftest.s
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24290 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24291 if test $gcc_cv_as_sparc_fmaf = yes; then
24293 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24298 i
[34567]86-*-* | x86_64-
*-*)
24301 # Full C++ conformance when using a shared libstdc++-v3 requires some
24302 # support from the Cygwin DLL, which in more recent versions exports
24303 # wrappers to aid in interposing and redirecting operators new, delete,
24304 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24305 # are configuring for a version of Cygwin that exports the wrappers.
24306 if test x
$host = x
$target; then
24307 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24308 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24309 gcc_ac_cygwin_dll_wrappers
=yes
24311 gcc_ac_cygwin_dll_wrappers
=no
24315 # Can't check presence of libc functions during cross-compile, so
24316 # we just have to assume we're building for an up-to-date target.
24317 gcc_ac_cygwin_dll_wrappers
=yes
24320 cat >>confdefs.h
<<_ACEOF
24321 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24326 cygwin
* | pe | mingw32
* | interix
*)
24327 # Recent binutils allows the three-operand form of ".comm" on PE. This
24328 # definition is used unconditionally to initialise the default state of
24329 # the target option variable that governs usage of the feature.
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24331 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24332 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24333 $as_echo_n "(cached) " >&6
24335 gcc_cv_as_comm_has_align
=no
24336 if test $in_tree_gas = yes; then
24337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24338 then gcc_cv_as_comm_has_align
=yes
24340 elif test x
$gcc_cv_as != x
; then
24341 $as_echo '.comm foo,1,32' > conftest.s
24342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24344 (eval $ac_try) 2>&5
24346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24347 test $ac_status = 0; }; }
24349 gcc_cv_as_comm_has_align
=yes
24351 echo "configure: failed program was" >&5
24354 rm -f conftest.o conftest.s
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24358 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24361 cat >>confdefs.h
<<_ACEOF
24362 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24365 # Used for DWARF 2 in PE
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24367 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24368 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24369 $as_echo_n "(cached) " >&6
24371 gcc_cv_as_ix86_pe_secrel32
=no
24372 if test $in_tree_gas = yes; then
24373 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24374 then gcc_cv_as_ix86_pe_secrel32
=yes
24376 elif test x
$gcc_cv_as != x
; then
24380 .secrel32 foo' > conftest.s
24381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24383 (eval $ac_try) 2>&5
24385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24386 test $ac_status = 0; }; }
24388 if test x
$gcc_cv_ld != x \
24389 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24390 gcc_cv_as_ix86_pe_secrel32
=yes
24394 echo "configure: failed program was" >&5
24397 rm -f conftest.o conftest.s
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24401 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24402 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24404 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24407 # Test if the assembler supports the extended form of the .section
24408 # directive that specifies section alignment. LTO support uses this,
24409 # but normally only after installation, so we warn but don't fail the
24410 # configure if LTO is enabled but the assembler does not support it.
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24412 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24413 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24414 $as_echo_n "(cached) " >&6
24416 gcc_cv_as_section_has_align
=no
24417 if test $in_tree_gas = yes; then
24418 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24419 then gcc_cv_as_section_has_align
=yes
24421 elif test x
$gcc_cv_as != x
; then
24422 $as_echo '.section lto_test,"dr0"' > conftest.s
24423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24425 (eval $ac_try) 2>&5
24427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24428 test $ac_status = 0; }; }
24430 gcc_cv_as_section_has_align
=yes
24432 echo "configure: failed program was" >&5
24435 rm -f conftest.o conftest.s
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24439 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24441 if test x
$gcc_cv_as_section_has_align != xyes
; then
24442 case ",$enable_languages," in
24444 { $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
24445 $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;}
24449 # Test if the assembler supports the section flag 'e' for specifying
24450 # an excluded section.
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24452 $as_echo_n "checking assembler for .section with e... " >&6; }
24453 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24454 $as_echo_n "(cached) " >&6
24456 gcc_cv_as_section_has_e
=no
24457 if test $in_tree_gas = yes; then
24458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24459 then gcc_cv_as_section_has_e
=yes
24461 elif test x
$gcc_cv_as != x
; then
24462 $as_echo '.section foo1,"e"
24463 .byte 0,0,0,0' > 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_section_has_e
=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_section_has_e" >&5
24480 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24483 cat >>confdefs.h
<<_ACEOF
24484 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24491 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24492 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24493 $as_echo_n "(cached) " >&6
24495 gcc_cv_as_ix86_filds
=no
24496 if test x
$gcc_cv_as != x
; then
24497 $as_echo 'filds mem; fists mem' > conftest.s
24498 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24500 (eval $ac_try) 2>&5
24502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24503 test $ac_status = 0; }; }
24505 gcc_cv_as_ix86_filds
=yes
24507 echo "configure: failed program was" >&5
24510 rm -f conftest.o conftest.s
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24514 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24515 if test $gcc_cv_as_ix86_filds = yes; then
24517 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24522 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24523 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24526 gcc_cv_as_ix86_fildq
=no
24527 if test x
$gcc_cv_as != x
; then
24528 $as_echo 'fildq mem; fistpq mem' > conftest.s
24529 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24531 (eval $ac_try) 2>&5
24533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24534 test $ac_status = 0; }; }
24536 gcc_cv_as_ix86_fildq
=yes
24538 echo "configure: failed program was" >&5
24541 rm -f conftest.o conftest.s
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24545 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24546 if test $gcc_cv_as_ix86_fildq = yes; then
24548 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24553 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24554 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24555 $as_echo_n "(cached) " >&6
24557 gcc_cv_as_ix86_cmov_sun_syntax
=no
24558 if test x
$gcc_cv_as != x
; then
24559 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24560 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24562 (eval $ac_try) 2>&5
24564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24565 test $ac_status = 0; }; }
24567 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24569 echo "configure: failed program was" >&5
24572 rm -f conftest.o conftest.s
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24576 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24577 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24579 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24584 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24585 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24586 $as_echo_n "(cached) " >&6
24588 gcc_cv_as_ix86_ffreep
=no
24589 if test x
$gcc_cv_as != x
; then
24590 $as_echo 'ffreep %st(1)' > conftest.s
24591 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24593 (eval $ac_try) 2>&5
24595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24596 test $ac_status = 0; }; }
24598 gcc_cv_as_ix86_ffreep
=yes
24600 echo "configure: failed program was" >&5
24603 rm -f conftest.o conftest.s
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24607 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24608 if test $gcc_cv_as_ix86_ffreep = yes; then
24610 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24615 $as_echo_n "checking assembler for .quad directive... " >&6; }
24616 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24617 $as_echo_n "(cached) " >&6
24619 gcc_cv_as_ix86_quad
=no
24620 if test x
$gcc_cv_as != x
; then
24621 $as_echo '.quad 0' > conftest.s
24622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24624 (eval $ac_try) 2>&5
24626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24627 test $ac_status = 0; }; }
24629 gcc_cv_as_ix86_quad
=yes
24631 echo "configure: failed program was" >&5
24634 rm -f conftest.o conftest.s
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24638 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24639 if test $gcc_cv_as_ix86_quad = yes; then
24641 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24646 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24647 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24648 $as_echo_n "(cached) " >&6
24650 gcc_cv_as_ix86_sahf
=no
24651 if test x
$gcc_cv_as != x
; then
24654 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24656 (eval $ac_try) 2>&5
24658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24659 test $ac_status = 0; }; }
24661 gcc_cv_as_ix86_sahf
=yes
24663 echo "configure: failed program was" >&5
24666 rm -f conftest.o conftest.s
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24670 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24671 if test $gcc_cv_as_ix86_sahf = yes; then
24673 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24678 $as_echo_n "checking assembler for swap suffix... " >&6; }
24679 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24682 gcc_cv_as_ix86_swap
=no
24683 if test x
$gcc_cv_as != x
; then
24684 $as_echo 'movl.s %esp, %ebp' > conftest.s
24685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24687 (eval $ac_try) 2>&5
24689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24690 test $ac_status = 0; }; }
24692 gcc_cv_as_ix86_swap
=yes
24694 echo "configure: failed program was" >&5
24697 rm -f conftest.o conftest.s
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24701 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24702 if test $gcc_cv_as_ix86_swap = yes; then
24704 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24709 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24710 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24711 $as_echo_n "(cached) " >&6
24713 gcc_cv_as_ix86_diff_sect_delta
=no
24714 if test x
$gcc_cv_as != x
; then
24715 $as_echo '.section .rodata
24721 .L2: nop' > conftest.s
24722 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24724 (eval $ac_try) 2>&5
24726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24727 test $ac_status = 0; }; }
24729 gcc_cv_as_ix86_diff_sect_delta
=yes
24731 echo "configure: failed program was" >&5
24734 rm -f conftest.o conftest.s
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24738 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24739 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24741 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24745 # These two are used unconditionally by i386.[ch]; it is to be defined
24746 # to 1 if the feature is present, 0 otherwise.
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24748 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24749 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24750 $as_echo_n "(cached) " >&6
24752 gcc_cv_as_ix86_gotoff_in_data
=no
24753 if test $in_tree_gas = yes; then
24754 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24755 then gcc_cv_as_ix86_gotoff_in_data
=yes
24757 elif test x
$gcc_cv_as != x
; then
24762 .long .L0@GOTOFF' > conftest.s
24763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24765 (eval $ac_try) 2>&5
24767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24768 test $ac_status = 0; }; }
24770 gcc_cv_as_ix86_gotoff_in_data
=yes
24772 echo "configure: failed program was" >&5
24775 rm -f conftest.o conftest.s
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24779 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24782 cat >>confdefs.h
<<_ACEOF
24783 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24788 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24789 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24790 $as_echo_n "(cached) " >&6
24792 gcc_cv_as_ix86_rep_lock_prefix
=no
24793 if test x
$gcc_cv_as != x
; then
24794 $as_echo 'rep movsl
24795 lock addl %edi, (%eax,%esi)
24796 lock orl $0, (%esp)' > conftest.s
24797 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24799 (eval $ac_try) 2>&5
24801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24802 test $ac_status = 0; }; }
24804 gcc_cv_as_ix86_rep_lock_prefix
=yes
24806 echo "configure: failed program was" >&5
24809 rm -f conftest.o conftest.s
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24813 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24814 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24816 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24821 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24822 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24823 $as_echo_n "(cached) " >&6
24825 gcc_cv_as_ix86_tlsgdplt
=no
24826 if test x
$gcc_cv_as != x
; then
24827 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24828 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24830 (eval $ac_try) 2>&5
24832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24833 test $ac_status = 0; }; }
24835 if test x
$gcc_cv_ld != x \
24836 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24837 gcc_cv_as_ix86_tlsgdplt
=yes
24841 echo "configure: failed program was" >&5
24844 rm -f conftest.o conftest.s
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24848 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24849 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24851 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24856 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24857 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24858 $as_echo_n "(cached) " >&6
24860 gcc_cv_as_ix86_tlsldmplt
=no
24861 if test x
$gcc_cv_as != x
; then
24862 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24865 (eval $ac_try) 2>&5
24867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24868 test $ac_status = 0; }; }
24870 if test x
$gcc_cv_ld != x \
24871 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24872 gcc_cv_as_ix86_tlsldmplt
=yes
24876 echo "configure: failed program was" >&5
24879 rm -f conftest.o conftest.s
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24883 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24884 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24886 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24894 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24895 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24896 $as_echo_n "(cached) " >&6
24898 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24899 if test $in_tree_gas = yes; then
24900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24901 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24903 elif test x
$gcc_cv_as != x
; then
24905 addl r15 = @ltoffx(x#), gp
24907 ld8.mov r16 = [r15], x#' > conftest.s
24908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24910 (eval $ac_try) 2>&5
24912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24913 test $ac_status = 0; }; }
24915 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24917 echo "configure: failed program was" >&5
24920 rm -f conftest.o conftest.s
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24924 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24925 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24927 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24935 *-*-aix*) conftest_s
=' .machine "pwr5"
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24940 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24941 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24942 $as_echo_n "(cached) " >&6
24944 gcc_cv_as_machine_directive
=no
24945 if test x
$gcc_cv_as != x
; then
24946 $as_echo ' .machine ppc7400' > conftest.s
24947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24949 (eval $ac_try) 2>&5
24951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24952 test $ac_status = 0; }; }
24954 gcc_cv_as_machine_directive
=yes
24956 echo "configure: failed program was" >&5
24959 rm -f conftest.o conftest.s
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24963 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24965 if test x
$gcc_cv_as_machine_directive != xyes
; then
24966 echo "*** This target requires an assembler supporting \".machine\"" >&2
24967 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24968 test x
$build = x
$target && exit 1
24972 *) conftest_s
=' .machine power4
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24978 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24979 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24980 $as_echo_n "(cached) " >&6
24982 gcc_cv_as_powerpc_mfcrf
=no
24983 if test $in_tree_gas = yes; then
24984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24985 then gcc_cv_as_powerpc_mfcrf
=yes
24987 elif test x
$gcc_cv_as != x
; then
24988 $as_echo "$conftest_s" > conftest.s
24989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991 (eval $ac_try) 2>&5
24993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994 test $ac_status = 0; }; }
24996 gcc_cv_as_powerpc_mfcrf
=yes
24998 echo "configure: failed program was" >&5
25001 rm -f conftest.o conftest.s
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25005 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25006 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25008 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25013 *-*-aix*) conftest_s
=' .machine "pwr5"
25016 *) conftest_s
=' .machine power5
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25022 $as_echo_n "checking assembler for popcntb support... " >&6; }
25023 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25024 $as_echo_n "(cached) " >&6
25026 gcc_cv_as_powerpc_popcntb
=no
25027 if test $in_tree_gas = yes; then
25028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25029 then gcc_cv_as_powerpc_popcntb
=yes
25031 elif test x
$gcc_cv_as != x
; then
25032 $as_echo "$conftest_s" > conftest.s
25033 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035 (eval $ac_try) 2>&5
25037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038 test $ac_status = 0; }; }
25040 gcc_cv_as_powerpc_popcntb
=yes
25042 echo "configure: failed program was" >&5
25045 rm -f conftest.o conftest.s
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25049 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25050 if test $gcc_cv_as_powerpc_popcntb = yes; then
25052 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25057 *-*-aix*) conftest_s
=' .machine "pwr5x"
25060 *) conftest_s
=' .machine power5
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25066 $as_echo_n "checking assembler for fp round support... " >&6; }
25067 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25068 $as_echo_n "(cached) " >&6
25070 gcc_cv_as_powerpc_fprnd
=no
25071 if test $in_tree_gas = yes; then
25072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25073 then gcc_cv_as_powerpc_fprnd
=yes
25075 elif test x
$gcc_cv_as != x
; then
25076 $as_echo "$conftest_s" > conftest.s
25077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25079 (eval $ac_try) 2>&5
25081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25082 test $ac_status = 0; }; }
25084 gcc_cv_as_powerpc_fprnd
=yes
25086 echo "configure: failed program was" >&5
25089 rm -f conftest.o conftest.s
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25093 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25094 if test $gcc_cv_as_powerpc_fprnd = yes; then
25096 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25101 *-*-aix*) conftest_s
=' .machine "pwr6"
25104 *) conftest_s
=' .machine power6
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25110 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25111 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25112 $as_echo_n "(cached) " >&6
25114 gcc_cv_as_powerpc_mfpgpr
=no
25115 if test $in_tree_gas = yes; then
25116 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25117 then gcc_cv_as_powerpc_mfpgpr
=yes
25119 elif test x
$gcc_cv_as != x
; then
25120 $as_echo "$conftest_s" > conftest.s
25121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25123 (eval $ac_try) 2>&5
25125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25126 test $ac_status = 0; }; }
25128 gcc_cv_as_powerpc_mfpgpr
=yes
25130 echo "configure: failed program was" >&5
25133 rm -f conftest.o conftest.s
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25137 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25138 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25140 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25145 *-*-aix*) conftest_s
=' .csect .text[PR]
25147 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25151 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25152 *) conftest_s
=' .text
25154 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25158 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25159 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25160 $as_echo_n "(cached) " >&6
25162 gcc_cv_as_powerpc_rel16
=no
25163 if test $in_tree_gas = yes; then
25164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25165 then gcc_cv_as_powerpc_rel16
=yes
25167 elif test x
$gcc_cv_as != x
; then
25168 $as_echo "$conftest_s" > conftest.s
25169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25171 (eval $ac_try) 2>&5
25173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25174 test $ac_status = 0; }; }
25176 gcc_cv_as_powerpc_rel16
=yes
25178 echo "configure: failed program was" >&5
25181 rm -f conftest.o conftest.s
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25185 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25186 if test $gcc_cv_as_powerpc_rel16 = yes; then
25188 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25193 *-*-aix*) conftest_s
=' .machine "pwr6"
25196 *) conftest_s
=' .machine power6
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25202 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25203 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25204 $as_echo_n "(cached) " >&6
25206 gcc_cv_as_powerpc_cmpb
=no
25207 if test $in_tree_gas = yes; then
25208 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25209 then gcc_cv_as_powerpc_cmpb
=yes
25211 elif test x
$gcc_cv_as != x
; then
25212 $as_echo "$conftest_s" > conftest.s
25213 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25215 (eval $ac_try) 2>&5
25217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25218 test $ac_status = 0; }; }
25220 gcc_cv_as_powerpc_cmpb
=yes
25222 echo "configure: failed program was" >&5
25225 rm -f conftest.o conftest.s
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25229 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25230 if test $gcc_cv_as_powerpc_cmpb = yes; then
25232 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25237 *-*-aix*) conftest_s
=' .machine "pwr6"
25240 *) conftest_s
=' .machine power6
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25246 $as_echo_n "checking assembler for decimal float support... " >&6; }
25247 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25250 gcc_cv_as_powerpc_dfp
=no
25251 if test $in_tree_gas = yes; then
25252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25253 then gcc_cv_as_powerpc_dfp
=yes
25255 elif test x
$gcc_cv_as != x
; then
25256 $as_echo "$conftest_s" > conftest.s
25257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25259 (eval $ac_try) 2>&5
25261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25262 test $ac_status = 0; }; }
25264 gcc_cv_as_powerpc_dfp
=yes
25266 echo "configure: failed program was" >&5
25269 rm -f conftest.o conftest.s
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25273 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25274 if test $gcc_cv_as_powerpc_dfp = yes; then
25276 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25281 *-*-aix*) conftest_s
=' .machine "pwr7"
25284 *) conftest_s
=' .machine power7
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25290 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25291 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25292 $as_echo_n "(cached) " >&6
25294 gcc_cv_as_powerpc_vsx
=no
25295 if test $in_tree_gas = yes; then
25296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25297 then gcc_cv_as_powerpc_vsx
=yes
25299 elif test x
$gcc_cv_as != x
; then
25300 $as_echo "$conftest_s" > conftest.s
25301 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25303 (eval $ac_try) 2>&5
25305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25306 test $ac_status = 0; }; }
25308 gcc_cv_as_powerpc_vsx
=yes
25310 echo "configure: failed program was" >&5
25313 rm -f conftest.o conftest.s
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25317 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25318 if test $gcc_cv_as_powerpc_vsx = yes; then
25320 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25325 *-*-aix*) conftest_s
=' .machine "pwr7"
25328 *) conftest_s
=' .machine power7
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25334 $as_echo_n "checking assembler for popcntd support... " >&6; }
25335 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25336 $as_echo_n "(cached) " >&6
25338 gcc_cv_as_powerpc_popcntd
=no
25339 if test $in_tree_gas = yes; then
25340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25341 then gcc_cv_as_powerpc_popcntd
=yes
25343 elif test x
$gcc_cv_as != x
; then
25344 $as_echo "$conftest_s" > conftest.s
25345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25347 (eval $ac_try) 2>&5
25349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25350 test $ac_status = 0; }; }
25352 gcc_cv_as_powerpc_popcntd
=yes
25354 echo "configure: failed program was" >&5
25357 rm -f conftest.o conftest.s
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25361 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25362 if test $gcc_cv_as_powerpc_popcntd = yes; then
25364 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25369 *-*-aix*) conftest_s
=' .csect .text[PR]
25371 *) conftest_s
=' .text
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25376 $as_echo_n "checking assembler for lwsync support... " >&6; }
25377 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25378 $as_echo_n "(cached) " >&6
25380 gcc_cv_as_powerpc_lwsync
=no
25381 if test $in_tree_gas = yes; then
25382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25383 then gcc_cv_as_powerpc_lwsync
=yes
25385 elif test x
$gcc_cv_as != x
; then
25386 $as_echo "$conftest_s" > conftest.s
25387 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25389 (eval $ac_try) 2>&5
25391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25392 test $ac_status = 0; }; }
25394 gcc_cv_as_powerpc_lwsync
=yes
25396 echo "configure: failed program was" >&5
25399 rm -f conftest.o conftest.s
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25403 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25404 if test $gcc_cv_as_powerpc_lwsync = yes; then
25406 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25411 *-*-aix*) conftest_s
=' .machine "476"
25414 *) conftest_s
=' .machine "476"
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25420 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25421 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25424 gcc_cv_as_powerpc_dci
=no
25425 if test $in_tree_gas = yes; then
25426 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25427 then gcc_cv_as_powerpc_dci
=yes
25429 elif test x
$gcc_cv_as != x
; then
25430 $as_echo "$conftest_s" > conftest.s
25431 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25433 (eval $ac_try) 2>&5
25435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25436 test $ac_status = 0; }; }
25438 gcc_cv_as_powerpc_dci
=yes
25440 echo "configure: failed program was" >&5
25443 rm -f conftest.o conftest.s
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25447 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25448 if test $gcc_cv_as_powerpc_dci = yes; then
25450 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25455 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25456 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25457 $as_echo_n "(cached) " >&6
25459 gcc_cv_as_powerpc_gnu_attribute
=no
25460 if test $in_tree_gas = yes; then
25461 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25462 then gcc_cv_as_powerpc_gnu_attribute
=yes
25464 elif test x
$gcc_cv_as != x
; then
25465 $as_echo '.gnu_attribute 4,1' > conftest.s
25466 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25468 (eval $ac_try) 2>&5
25470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25471 test $ac_status = 0; }; }
25473 gcc_cv_as_powerpc_gnu_attribute
=yes
25475 echo "configure: failed program was" >&5
25478 rm -f conftest.o conftest.s
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25482 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25483 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25485 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25490 $as_echo_n "checking assembler for tls marker support... " >&6; }
25491 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25492 $as_echo_n "(cached) " >&6
25494 gcc_cv_as_powerpc_tls_markers
=no
25495 if test $in_tree_gas = yes; then
25496 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25497 then gcc_cv_as_powerpc_tls_markers
=yes
25499 elif test x
$gcc_cv_as != x
; then
25500 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25501 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25503 (eval $ac_try) 2>&5
25505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25506 test $ac_status = 0; }; }
25508 gcc_cv_as_powerpc_tls_markers
=yes
25510 echo "configure: failed program was" >&5
25513 rm -f conftest.o conftest.s
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25517 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25518 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25520 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25527 $as_echo_n "checking assembler for .ref support... " >&6; }
25528 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25529 $as_echo_n "(cached) " >&6
25531 gcc_cv_as_aix_ref
=no
25532 if test $in_tree_gas = yes; then
25533 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25536 elif test x
$gcc_cv_as != x
; then
25537 $as_echo ' .csect stuff[rw]
25543 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25545 (eval $ac_try) 2>&5
25547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25548 test $ac_status = 0; }; }
25550 gcc_cv_as_aix_ref
=yes
25552 echo "configure: failed program was" >&5
25555 rm -f conftest.o conftest.s
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25559 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25560 if test $gcc_cv_as_aix_ref = yes; then
25562 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25571 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25572 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25573 $as_echo_n "(cached) " >&6
25575 gcc_cv_as_mips_explicit_relocs
=no
25576 if test $in_tree_gas = yes; then
25577 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25578 then gcc_cv_as_mips_explicit_relocs
=yes
25580 elif test x
$gcc_cv_as != x
; then
25581 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25582 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25584 (eval $ac_try) 2>&5
25586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25587 test $ac_status = 0; }; }
25589 gcc_cv_as_mips_explicit_relocs
=yes
25591 echo "configure: failed program was" >&5
25594 rm -f conftest.o conftest.s
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25598 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25599 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25600 if test x
$target_cpu_default = x
25601 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25602 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25606 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25607 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25608 $as_echo_n "(cached) " >&6
25610 gcc_cv_as_mips_no_shared
=no
25611 if test $in_tree_gas = yes; then
25612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25613 then gcc_cv_as_mips_no_shared
=yes
25615 elif test x
$gcc_cv_as != x
; then
25616 $as_echo 'nop' > conftest.s
25617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; }
25624 gcc_cv_as_mips_no_shared
=yes
25626 echo "configure: failed program was" >&5
25629 rm -f conftest.o conftest.s
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25633 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25634 if test $gcc_cv_as_mips_no_shared = yes; then
25636 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25641 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25642 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25643 $as_echo_n "(cached) " >&6
25645 gcc_cv_as_mips_gnu_attribute
=no
25646 if test $in_tree_gas = yes; then
25647 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25648 then gcc_cv_as_mips_gnu_attribute
=yes
25650 elif test x
$gcc_cv_as != x
; then
25651 $as_echo '.gnu_attribute 4,1' > conftest.s
25652 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25654 (eval $ac_try) 2>&5
25656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25657 test $ac_status = 0; }; }
25659 gcc_cv_as_mips_gnu_attribute
=yes
25661 echo "configure: failed program was" >&5
25664 rm -f conftest.o conftest.s
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25668 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25669 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25671 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25676 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25677 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25678 $as_echo_n "(cached) " >&6
25680 gcc_cv_as_mips_dtprelword
=no
25681 if test $in_tree_gas = yes; then
25682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25683 then gcc_cv_as_mips_dtprelword
=yes
25685 elif test x
$gcc_cv_as != x
; then
25686 $as_echo '.section .tdata,"awT",@progbits
25690 .dtprelword x+0x8000' > conftest.s
25691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25693 (eval $ac_try) 2>&5
25695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25696 test $ac_status = 0; }; }
25698 gcc_cv_as_mips_dtprelword
=yes
25700 echo "configure: failed program was" >&5
25703 rm -f conftest.o conftest.s
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25707 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25708 if test $gcc_cv_as_mips_dtprelword = yes; then
25710 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25715 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25716 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25717 $as_echo_n "(cached) " >&6
25719 gcc_cv_as_mips_dspr1_mult
=no
25720 if test x
$gcc_cv_as != x
; then
25721 $as_echo ' .set mips32r2
25729 multu $ac3,$4,$5' > conftest.s
25730 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25732 (eval $ac_try) 2>&5
25734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25735 test $ac_status = 0; }; }
25737 gcc_cv_as_mips_dspr1_mult
=yes
25739 echo "configure: failed program was" >&5
25742 rm -f conftest.o conftest.s
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25746 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25747 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25749 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25754 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25755 gcc_cv_as_ld_jalr_reloc
=no
25756 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25757 if test $in_tree_ld = yes ; then
25758 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 \
25759 && test $in_tree_ld_is_elf = yes; then
25760 gcc_cv_as_ld_jalr_reloc
=yes
25762 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25763 echo ' .ent x' > conftest.s
25764 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25765 echo ' ld $25,%call16(y)($28)' >> conftest.s
25766 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25767 echo '1: jalr $25' >> conftest.s
25768 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25769 echo '1: jalr $25' >> conftest.s
25770 echo ' .end x' >> conftest.s
25771 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25772 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25773 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25774 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25775 gcc_cv_as_ld_jalr_reloc
=yes
25781 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25782 if test x
$target_cpu_default = x
; then
25783 target_cpu_default
=MASK_RELAX_PIC_CALLS
25785 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25789 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25792 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25793 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25794 $as_echo_n "(cached) " >&6
25796 gcc_cv_ld_mips_personality_relaxation
=no
25797 if test $in_tree_ld = yes ; then
25798 if test "$gcc_cv_gld_major_version" -eq 2 \
25799 -a "$gcc_cv_gld_minor_version" -ge 21 \
25800 -o "$gcc_cv_gld_major_version" -gt 2; then
25801 gcc_cv_ld_mips_personality_relaxation
=yes
25803 elif test x
$gcc_cv_as != x \
25804 -a x
$gcc_cv_ld != x \
25805 -a x
$gcc_cv_readelf != x
; then
25806 cat > conftest.s
<<EOF
25808 .cfi_personality 0x80,indirect_ptr
25815 .section .data,"aw",@progbits
25819 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25820 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25821 if $gcc_cv_readelf -d conftest
2>&1 \
25822 |
grep TEXTREL
> /dev
/null
2>&1; then
25824 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25825 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25828 gcc_cv_ld_mips_personality_relaxation
=yes
25832 rm -f conftest.s conftest.o conftest
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25835 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25836 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25838 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25844 # Mips and HP-UX need the GNU assembler.
25845 # Linux on IA64 might be able to use the Intel assembler.
25848 mips
*-*-* |
*-*-hpux* )
25849 if test x
$gas_flag = xyes \
25850 ||
test x
"$host" != x
"$build" \
25851 ||
test ! -x "$gcc_cv_as" \
25852 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25855 echo "*** This configuration requires the GNU assembler" >&2
25861 # ??? Not all targets support dwarf2 debug_line, even within a version
25862 # of gas. Moreover, we need to emit a valid instruction to trigger any
25863 # info to the output file. So, as supported targets are added to gas 2.11,
25864 # add some instruction here to (also) show we expect this might work.
25865 # ??? Once 2.11 is released, probably need to add first known working
25866 # version to the per-target configury.
25867 case "$cpu_type" in
25868 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25869 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
25879 if test x
"$insn" != x
; then
25881 .file 1 \"conftest.s\"
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25885 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25886 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25887 $as_echo_n "(cached) " >&6
25889 gcc_cv_as_dwarf2_debug_line
=no
25890 if test $in_tree_gas = yes; then
25891 if test $in_tree_gas_is_elf = yes \
25892 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25893 then gcc_cv_as_dwarf2_debug_line
=yes
25895 elif test x
$gcc_cv_as != x
; then
25896 $as_echo "$conftest_s" > conftest.s
25897 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25899 (eval $ac_try) 2>&5
25901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25902 test $ac_status = 0; }; }
25904 if test x
$gcc_cv_objdump != x \
25905 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25906 |
grep debug_line
> /dev
/null
2>&1; then
25907 gcc_cv_as_dwarf2_debug_line
=yes
25910 echo "configure: failed program was" >&5
25913 rm -f conftest.o conftest.s
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25917 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25920 # The .debug_line file table must be in the exact order that
25921 # we specified the files, since these indices are also used
25922 # by DW_AT_decl_file. Approximate this test by testing if
25923 # the assembler bitches if the same index is assigned twice.
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25925 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25926 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25927 $as_echo_n "(cached) " >&6
25929 gcc_cv_as_dwarf2_file_buggy
=no
25930 if test x
$gcc_cv_as != x
; then
25931 $as_echo ' .file 1 "foo.s"
25932 .file 1 "bar.s"' > conftest.s
25933 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25935 (eval $ac_try) 2>&5
25937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25938 test $ac_status = 0; }; }
25940 gcc_cv_as_dwarf2_file_buggy
=yes
25942 echo "configure: failed program was" >&5
25945 rm -f conftest.o conftest.s
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25949 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25952 if test $gcc_cv_as_dwarf2_debug_line = yes \
25953 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25955 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25960 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25961 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25962 $as_echo_n "(cached) " >&6
25964 gcc_cv_as_gdwarf2_flag
=no
25965 if test $in_tree_gas = yes; then
25966 if test $in_tree_gas_is_elf = yes \
25967 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25968 then gcc_cv_as_gdwarf2_flag
=yes
25970 elif test x
$gcc_cv_as != x
; then
25971 $as_echo "$insn" > conftest.s
25972 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25974 (eval $ac_try) 2>&5
25976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25977 test $ac_status = 0; }; }
25979 gcc_cv_as_gdwarf2_flag
=yes
25981 echo "configure: failed program was" >&5
25984 rm -f conftest.o conftest.s
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25988 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25989 if test $gcc_cv_as_gdwarf2_flag = yes; then
25991 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25996 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25997 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25998 $as_echo_n "(cached) " >&6
26000 gcc_cv_as_gstabs_flag
=no
26001 if test $in_tree_gas = yes; then
26002 if test $in_tree_gas_is_elf = yes \
26003 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26004 then gcc_cv_as_gstabs_flag
=yes
26006 elif test x
$gcc_cv_as != x
; then
26007 $as_echo "$insn" > conftest.s
26008 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26010 (eval $ac_try) 2>&5
26012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26013 test $ac_status = 0; }; }
26015 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26016 # and warns about it, but still exits successfully. So check for
26018 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26020 (eval $ac_try) 2>&5
26022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26023 test $ac_status = 0; }; }
26025 else gcc_cv_as_gstabs_flag
=yes
26028 echo "configure: failed program was" >&5
26031 rm -f conftest.o conftest.s
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26035 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26036 if test $gcc_cv_as_gstabs_flag = yes; then
26038 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26043 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26044 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26045 $as_echo_n "(cached) " >&6
26047 gcc_cv_as_debug_prefix_map_flag
=no
26048 if test $in_tree_gas = yes; then
26049 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26050 then gcc_cv_as_debug_prefix_map_flag
=yes
26052 elif test x
$gcc_cv_as != x
; then
26053 $as_echo "$insn" > conftest.s
26054 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26056 (eval $ac_try) 2>&5
26058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26059 test $ac_status = 0; }; }
26061 gcc_cv_as_debug_prefix_map_flag
=yes
26063 echo "configure: failed program was" >&5
26066 rm -f conftest.o conftest.s
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26070 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26071 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26073 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26079 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26080 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26081 $as_echo_n "(cached) " >&6
26083 gcc_cv_as_lcomm_with_alignment
=no
26084 if test x
$gcc_cv_as != x
; then
26085 $as_echo '.lcomm bar,4,16' > conftest.s
26086 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26088 (eval $ac_try) 2>&5
26090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26091 test $ac_status = 0; }; }
26093 gcc_cv_as_lcomm_with_alignment
=yes
26095 echo "configure: failed program was" >&5
26098 rm -f conftest.o conftest.s
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26102 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26103 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26105 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26109 # Check whether --enable-gnu-unique-object was given.
26110 if test "${enable_gnu_unique_object+set}" = set; then :
26111 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26113 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26114 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26118 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26119 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26120 $as_echo_n "(cached) " >&6
26122 gcc_cv_as_gnu_unique_object
=no
26123 if test $in_tree_gas = yes; then
26124 if test $in_tree_gas_is_elf = yes \
26125 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26126 then gcc_cv_as_gnu_unique_object
=yes
26128 elif test x
$gcc_cv_as != x
; then
26129 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26130 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26132 (eval $ac_try) 2>&5
26134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26135 test $ac_status = 0; }; }
26137 gcc_cv_as_gnu_unique_object
=yes
26139 echo "configure: failed program was" >&5
26142 rm -f conftest.o conftest.s
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26146 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26147 if test $gcc_cv_as_gnu_unique_object = yes; then
26148 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26149 if test x
$host = x
$build -a x
$host = x
$target &&
26150 ldd
--version 2>/dev
/null
&&
26151 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26152 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26153 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26154 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26155 if test "$glibcnum" -ge 2011 ; then
26156 enable_gnu_unique_object
=yes
26162 if test x
$enable_gnu_unique_object = xyes
; then
26164 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26169 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26170 if test "${gcc_cv_as_line_zero+set}" = set; then :
26171 $as_echo_n "(cached) " >&6
26173 gcc_cv_as_line_zero
=no
26174 if test $in_tree_gas = yes; then
26175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26176 then gcc_cv_as_line_zero
=yes
26178 elif test "x$gcc_cv_as" != x
; then
26179 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26180 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26182 (eval $ac_try) 2>&5
26184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26185 test $ac_status = 0; }; } &&
26186 test "x`cat conftest.out`" = x
26188 gcc_cv_as_line_zero
=yes
26190 echo "configure: failed program was" >&5
26192 echo "configure: error output was" >&5
26193 cat conftest.out
>&5
26195 rm -f conftest.o conftest.s conftest.out
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26199 $as_echo "$gcc_cv_as_line_zero" >&6; }
26200 if test "x$gcc_cv_as_line_zero" = xyes
; then
26202 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26207 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26208 gcc_cv_ld_eh_frame_hdr
=no
26209 if test $in_tree_ld = yes ; then
26210 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 \
26211 && test $in_tree_ld_is_elf = yes; then
26212 gcc_cv_ld_eh_frame_hdr
=yes
26214 elif test x
$gcc_cv_ld != x
; then
26215 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26216 # Check if linker supports --eh-frame-hdr option
26217 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26218 gcc_cv_ld_eh_frame_hdr
=yes
26223 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26224 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26225 gcc_cv_ld_eh_frame_hdr
=yes
26232 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26234 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26238 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26241 $as_echo_n "checking linker position independent executable support... " >&6; }
26243 if test $in_tree_ld = yes ; then
26244 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 \
26245 && test $in_tree_ld_is_elf = yes; then
26248 elif test x
$gcc_cv_ld != x
; then
26249 # Check if linker supports -pie option
26250 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26254 if test x
"$gcc_cv_ld_pie" = xyes
; then
26256 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26260 $as_echo "$gcc_cv_ld_pie" >&6; }
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26263 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26264 gcc_cv_ld_eh_gc_sections
=no
26265 if test $in_tree_ld = yes ; then
26266 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 \
26267 && test $in_tree_ld_is_elf = yes; then
26268 gcc_cv_ld_eh_gc_sections
=yes
26270 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26271 cat > conftest.s
<<EOF
26274 .type _start, @function
26277 .size _start, .-_start
26278 .section .text.foo,"ax",@progbits
26279 .type foo, @function
26283 .section .gcc_except_table.foo,"a",@progbits
26286 .section .eh_frame,"a",@progbits
26289 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26290 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26291 |
grep "gc-sections option ignored" > /dev
/null
; then
26292 gcc_cv_ld_eh_gc_sections
=no
26293 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26294 |
grep gcc_except_table
> /dev
/null
; then
26295 gcc_cv_ld_eh_gc_sections
=yes
26296 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26297 if test x
$gcc_cv_as_comdat_group != xyes
; then
26298 gcc_cv_ld_eh_gc_sections
=no
26299 cat > conftest.s
<<EOF
26302 .type _start, @function
26305 .size _start, .-_start
26306 .section .gnu.linkonce.t.foo,"ax",@progbits
26307 .type foo, @function
26311 .section .gcc_except_table.foo,"a",@progbits
26314 .section .eh_frame,"a",@progbits
26317 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26318 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26319 |
grep "gc-sections option ignored" > /dev
/null
; then
26320 gcc_cv_ld_eh_gc_sections
=no
26321 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26322 |
grep gcc_except_table
> /dev
/null
; then
26323 gcc_cv_ld_eh_gc_sections
=yes
26329 rm -f conftest.s conftest.o conftest
26333 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26334 gcc_cv_ld_eh_gc_sections
=no
26337 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26339 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26343 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26346 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26347 gcc_cv_ld_eh_gc_sections_bug
=no
26348 if test $in_tree_ld = yes ; then
26349 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 \
26350 && test $in_tree_ld_is_elf = yes; then
26351 gcc_cv_ld_eh_gc_sections_bug
=yes
26353 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
26354 gcc_cv_ld_eh_gc_sections_bug
=yes
26355 cat > conftest.s
<<EOF
26358 .type _start, @function
26361 .size _start, .-_start
26362 .section .text.startup.foo,"ax",@progbits
26363 .type foo, @function
26367 .section .gcc_except_table.foo,"a",@progbits
26370 .section .eh_frame,"a",@progbits
26373 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26374 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26375 |
grep "gc-sections option ignored" > /dev
/null
; then
26377 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26378 |
grep gcc_except_table
> /dev
/null
; then
26379 gcc_cv_ld_eh_gc_sections_bug
=no
26382 rm -f conftest.s conftest.o conftest
26384 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26386 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26390 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26397 $as_echo_n "checking linker --as-needed support... " >&6; }
26398 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26399 $as_echo_n "(cached) " >&6
26401 gcc_cv_ld_as_needed
=no
26402 if test $in_tree_ld = yes ; then
26403 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 \
26404 && test $in_tree_ld_is_elf = yes; then
26405 gcc_cv_ld_as_needed
=yes
26407 elif test x
$gcc_cv_ld != x
; then
26408 # Check if linker supports --as-needed and --no-as-needed options
26409 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26410 gcc_cv_ld_as_needed
=yes
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26416 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26417 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26419 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26423 case "$target:$tm_file" in
26424 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26426 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26427 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26428 $as_echo_n "(cached) " >&6
26430 gcc_cv_ld_no_dot_syms
=no
26431 if test $in_tree_ld = yes ; then
26432 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
26433 gcc_cv_ld_no_dot_syms
=yes
26435 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26436 cat > conftest1.s
<<EOF
26440 cat > conftest2.s
<<EOF
26441 .section ".opd","aw"
26444 .type foo,@function
26446 .quad .LEfoo,.TOC.@tocbase,0
26452 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26453 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26454 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26455 gcc_cv_ld_no_dot_syms
=yes
26457 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26462 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26463 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26465 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26470 $as_echo_n "checking linker large toc support... " >&6; }
26471 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26472 $as_echo_n "(cached) " >&6
26474 gcc_cv_ld_large_toc
=no
26475 if test $in_tree_ld = yes ; then
26476 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
26477 gcc_cv_ld_large_toc
=yes
26479 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26480 cat > conftest.s
<<EOF
26481 .section ".tbss","awT",@nobits
26487 addis 9,13,ie0@got@tprel@ha
26488 ld 9,ie0@got@tprel@l(9)
26490 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26491 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26492 gcc_cv_ld_large_toc
=yes
26494 rm -f conftest conftest.o conftest.s
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26499 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26500 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26502 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26509 $as_echo_n "checking linker --build-id support... " >&6; }
26510 if test "${gcc_cv_ld_buildid+set}" = set; then :
26511 $as_echo_n "(cached) " >&6
26513 gcc_cv_ld_buildid
=no
26514 if test $in_tree_ld = yes ; then
26515 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26516 "$gcc_cv_gld_minor_version" -ge 18 -o \
26517 "$gcc_cv_gld_major_version" -gt 2 \
26518 && test $in_tree_ld_is_elf = yes; then
26519 gcc_cv_ld_buildid
=yes
26521 elif test x
$gcc_cv_ld != x
; then
26522 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26523 gcc_cv_ld_buildid
=yes
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26528 $as_echo "$gcc_cv_ld_buildid" >&6; }
26529 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26531 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26535 # Check whether --enable-linker-build-id was given.
26536 if test "${enable_linker_build_id+set}" = set; then :
26537 enableval
=$enable_linker_build_id;
26539 enable_linker_build_id
=no
26543 if test x
"$enable_linker_build_id" = xyes
; then
26544 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26546 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26550 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26554 # In binutils 2.21, GNU ld gained support for new emulations fully
26555 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26557 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26558 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26559 $as_echo_n "(cached) " >&6
26561 gcc_cv_ld_sol2_emulation
=no
26562 if test $in_tree_ld = yes ; then
26563 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26564 "$gcc_cv_gld_minor_version" -ge 21 -o \
26565 "$gcc_cv_gld_major_version" -gt 2 \
26566 && test $in_tree_ld_is_elf = yes; then
26567 gcc_cv_ld_sol2_emulation
=yes
26569 elif test x
$gcc_cv_ld != x
; then
26570 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26571 grep _sol2
> /dev
/null
; then
26572 gcc_cv_ld_sol2_emulation
=yes
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26577 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26578 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26580 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26585 $as_echo_n "checking linker --sysroot support... " >&6; }
26586 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26587 $as_echo_n "(cached) " >&6
26589 gcc_cv_ld_sysroot
=no
26590 if test $in_tree_ld = yes ; then
26591 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
26592 gcc_cv_ld_sysroot
=yes
26594 elif test x
$gcc_cv_ld != x
; then
26595 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26596 gcc_cv_ld_sysroot
=yes
26600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26601 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26602 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26604 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26608 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26609 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26610 && test "$prefix" != "NONE"; then
26612 cat >>confdefs.h
<<_ACEOF
26613 #define PREFIX_INCLUDE_DIR "$prefix/include"
26618 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26619 if test "x$with_headers" != x
; then
26620 target_header_dir
=$with_headers
26621 elif test "x$with_sysroot" = x
; then
26622 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26623 elif test "x$with_build_sysroot" != "x"; then
26624 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26625 elif test "x$with_sysroot" = xyes
; then
26626 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26628 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26631 target_header_dir
=${native_system_header_dir}
26634 # Test for stack protector support in target C library.
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26636 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26637 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26638 $as_echo_n "(cached) " >&6
26640 gcc_cv_libc_provides_ssp
=no
26642 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26643 # glibc 2.4 and later provides __stack_chk_fail and
26644 # either __stack_chk_guard, or TLS access to stack guard canary.
26645 if test -f $target_header_dir/features.h \
26646 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26647 $target_header_dir/features.h
> /dev
/null
; then
26648 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26649 $target_header_dir/features.h
> /dev
/null
; then
26650 gcc_cv_libc_provides_ssp
=yes
26651 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26652 $target_header_dir/features.h
> /dev
/null \
26653 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26654 $target_header_dir/features.h
> /dev
/null
; then
26655 gcc_cv_libc_provides_ssp
=yes
26656 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26657 $target_header_dir/features.h
> /dev
/null
&& \
26658 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26659 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26660 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26661 gcc_cv_libc_provides_ssp
=yes
26666 # Avoid complicated tests (see
26667 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26668 # simply assert that glibc does provide this, which is true for all
26669 # realistically usable GNU/Hurd configurations.
26670 gcc_cv_libc_provides_ssp
=yes;;
26671 *-*-darwin* |
*-*-freebsd*)
26672 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26673 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26674 gcc_cv_libc_provides_ssp
=yes
26676 echo "no __stack_chk_fail on this target"
26680 *) gcc_cv_libc_provides_ssp
=no
;;
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26684 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26686 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26688 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26692 # Test for <sys/sdt.h> on the target.
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26695 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26697 if test -f $target_header_dir/sys
/sdt.h
; then
26700 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26704 $as_echo "$have_sys_sdt_h" >&6; }
26706 # Check if TFmode long double should be used by default or not.
26707 # Some glibc targets used DFmode long double, but with glibc 2.4
26708 # and later they can use TFmode.
26710 powerpc
*-*-linux* | \
26711 sparc
*-*-linux* | \
26715 # Check whether --with-long-double-128 was given.
26716 if test "${with_long_double_128+set}" = set; then :
26717 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26719 gcc_cv_target_ldbl128
=no
26720 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26721 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26722 && gcc_cv_target_ldbl128
=yes
26728 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26730 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26735 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26736 gcc_cv_target_dl_iterate_phdr
=unknown
26738 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26739 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26740 # libdl there, both complicating its use and breaking compatibility
26741 # between Solaris 10 updates.
26742 *-*-solaris2.1
[1-9]*)
26743 # <link.h> needs both a dl_iterate_phdr declaration and support for
26744 # compilation with largefile support.
26745 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26746 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26747 gcc_cv_target_dl_iterate_phdr
=yes
26749 gcc_cv_target_dl_iterate_phdr
=no
26754 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26756 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26760 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26762 # Find out what GC implementation we want, or may, use.
26764 # Check whether --with-gc was given.
26765 if test "${with_gc+set}" = set; then :
26766 withval
=$with_gc; case "$withval" in
26773 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26777 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26785 echo "Using $GGC for garbage collection."
26787 # Libraries to use on the host. This will normally be set by the top
26788 # level Makefile. Here we simply capture the value for our Makefile.
26789 if test -z "${HOST_LIBS+set}"; then
26794 # Use the system's zlib library.
26796 zlibinc
="-I\$(srcdir)/../zlib"
26798 # Check whether --with-system-zlib was given.
26799 if test "${with_system_zlib+set}" = set; then :
26800 withval
=$with_system_zlib; zlibdir
=
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26810 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26811 # Check whether --enable-maintainer-mode was given.
26812 if test "${enable_maintainer_mode+set}" = set; then :
26813 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26820 $as_echo "$maintainer_mode" >&6; }
26822 if test "$maintainer_mode" = "yes"; then
26832 # Make empty files to contain the specs and options for each language.
26833 # Then add #include lines to for a compiler that has specs and/or options.
26839 # These (without "all_") are set in each config-lang.in.
26840 # `language' must be a single word so is spelled singularly.
26843 all_outputs
='Makefile'
26844 # List of language makefile fragments.
26845 all_lang_makefrags
=
26846 # Additional files for gengtype
26847 all_gtfiles
="$target_gtfiles"
26849 # These are the languages that are set in --enable-languages,
26850 # and are available in the GCC tree.
26851 all_selected_languages
=
26853 # Add the language fragments.
26854 # Languages are added via two mechanisms. Some information must be
26855 # recorded in makefile variables, these are defined in config-lang.in.
26856 # We accumulate them and plug them into the main Makefile.
26857 # The other mechanism is a set of hooks for each of the main targets
26858 # like `clean', `install', etc.
26860 language_hooks
="Make-hooks"
26862 for lang
in ${srcdir}/*/config-lang.
in
26864 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26866 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26867 if test "x$lang_alias" = x
26869 echo "$lang doesn't set \$language." 1>&2
26872 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26873 subdirs
="$subdirs $subdir"
26875 # $gcc_subdir is where the gcc integration files are to be found
26876 # for a language, both for internal compiler purposes (compiler
26877 # sources implementing front-end to GCC tree converters), and for
26878 # build infrastructure purposes (Make-lang.in, etc.)
26880 # This will be <subdir> (relative to $srcdir) if a line like
26881 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26882 # is found in <langdir>/config-lang.in, and will remain <langdir>
26885 # Except for the language alias (fetched above), the regular
26886 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26887 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26888 # only this and the language alias.
26890 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26891 if [ "$gcc_subdir" = "" ]; then
26892 gcc_subdir
="$subdir"
26895 case ",$enable_languages," in
26897 all_selected_languages
="$all_selected_languages $lang_alias"
26898 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26899 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26910 .
${srcdir}/$gcc_subdir/config-lang.
in
26911 if test "x$language" = x
26913 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26918 case ",$enable_languages," in
26919 *,$lang_alias,*) ;;
26921 for i
in $subdir_requires; do
26922 test -f "${srcdir}/$i/config-lang.in" && continue
26930 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26931 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26932 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26933 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26935 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26936 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26938 all_languages
="$all_languages $language"
26939 all_compilers
="$all_compilers $compilers"
26940 all_outputs
="$all_outputs $outputs"
26941 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26942 case ",$enable_languages," in
26945 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26954 # Pick up gtfiles for c
26956 .
${srcdir}/c-config-lang.
in
26957 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26960 for language
in $all_selected_languages
26962 check_languages
="$check_languages check-$language"
26965 # We link each language in with a set of hooks, reached indirectly via
26966 # lang.${target}. Only do so for selected languages.
26970 target_list
="all.cross start.encap rest.encap tags \
26971 install-common install-man install-info install-pdf install-html dvi \
26972 pdf html uninstall info man srcextra srcman srcinfo \
26973 mostlyclean clean distclean maintainer-clean install-plugin"
26975 for t
in $target_list
26978 for lang
in $all_selected_languages
26982 echo "lang.$t: $x" >> Make-hooks
26986 # Option include files
26989 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26990 option_includes
="option-includes.mk"
26999 echo "dir ." > .gdbinit
27000 echo "dir ${srcdir}" >> .gdbinit
27001 if test x
$gdb_needs_out_file_path = xyes
27003 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27005 if test "x$subdirs" != x
; then
27008 echo "dir ${srcdir}/$s" >> .gdbinit
27011 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27013 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27017 # Find a directory in which to install a shared libgcc.
27019 # Check whether --enable-version-specific-runtime-libs was given.
27020 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27021 enableval
=$enable_version_specific_runtime_libs;
27025 # Substitute configuration variables
27090 if test x
${build} = x
${host} ; then
27091 if test x
${host} = x
${target} ; then
27092 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27094 echo "Links are now set up to build a cross-compiler" 1>&2
27095 echo " from ${host} to ${target}." 1>&2
27098 if test x
${host} = x
${target} ; then
27099 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27100 echo " for ${target}." 1>&2
27102 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27103 echo " from ${host} to ${target}." 1>&2
27115 if test "x${CLOOGLIBS}" != "x" ; then
27117 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27121 # Check for plugin support
27122 # Check whether --enable-plugin was given.
27123 if test "${enable_plugin+set}" = set; then :
27124 enableval
=$enable_plugin; enable_plugin
=$enableval
27126 enable_plugin
=yes; default_plugin
=yes
27134 if test x
$build = x
$host; then
27135 export_sym_check
="nm${exeext} -g"
27136 elif test x
$host = x
$target; then
27137 export_sym_check
="$gcc_cv_nm -g"
27143 if test x
$build = x
$host; then
27144 export_sym_check
="objdump${exeext} -T"
27145 elif test x
$host = x
$target; then
27146 export_sym_check
="$gcc_cv_objdump -T"
27153 if test x
"$enable_plugin" = x
"yes"; then
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27156 $as_echo_n "checking for exported symbols... " >&6; }
27157 if test "x$export_sym_check" != x
; then
27158 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27159 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27160 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27161 : # No need to use a flag
27162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27163 $as_echo "yes" >&6; }
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27166 $as_echo "yes" >&6; }
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27168 $as_echo_n "checking for -rdynamic... " >&6; }
27169 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27170 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27171 plugin_rdynamic
=yes
27172 pluginlibs
="-rdynamic"
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27178 $as_echo "$plugin_rdynamic" >&6; }
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27182 $as_echo "unable to check" >&6; }
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27188 $as_echo_n "checking for library containing dlopen... " >&6; }
27189 if test "${ac_cv_search_dlopen+set}" = set; then :
27190 $as_echo_n "(cached) " >&6
27192 ac_func_search_save_LIBS
=$LIBS
27193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27194 /* end confdefs.h. */
27196 /* Override any GCC internal prototype to avoid an error.
27197 Use char because int might match the return type of a GCC
27198 builtin and then its argument prototype would still apply. */
27211 for ac_lib
in '' dl
; do
27212 if test -z "$ac_lib"; then
27213 ac_res
="none required"
27216 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27218 if ac_fn_c_try_link
"$LINENO"; then :
27219 ac_cv_search_dlopen
=$ac_res
27221 rm -f core conftest.err conftest.
$ac_objext \
27223 if test "${ac_cv_search_dlopen+set}" = set; then :
27227 if test "${ac_cv_search_dlopen+set}" = set; then :
27230 ac_cv_search_dlopen
=no
27232 rm conftest.
$ac_ext
27233 LIBS
=$ac_func_search_save_LIBS
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27236 $as_echo "$ac_cv_search_dlopen" >&6; }
27237 ac_res
=$ac_cv_search_dlopen
27238 if test "$ac_res" != no
; then :
27239 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27243 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27244 pluginlibs
="$pluginlibs -ldl"
27248 # Check that we can build shared objects with -fPIC -shared
27249 saved_LDFLAGS
="$LDFLAGS"
27250 saved_CFLAGS
="$CFLAGS"
27253 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27254 CFLAGS
="$CFLAGS -fPIC"
27255 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27258 CFLAGS
="$CFLAGS -fPIC"
27259 LDFLAGS
="$LDFLAGS -fPIC -shared"
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27263 $as_echo_n "checking for -fPIC -shared... " >&6; }
27264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27265 /* end confdefs.h. */
27275 if ac_fn_c_try_link
"$LINENO"; then :
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27277 $as_echo "yes" >&6; }; have_pic_shared
=yes
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27280 $as_echo "no" >&6; }; have_pic_shared
=no
27282 rm -f core conftest.err conftest.
$ac_objext \
27283 conftest
$ac_exeext conftest.
$ac_ext
27284 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27288 LDFLAGS
="$saved_LDFLAGS"
27289 CFLAGS
="$saved_CFLAGS"
27291 # If plugin support had been requested but not available, fail.
27292 if test x
"$enable_plugin" = x
"no" ; then
27293 if test x
"$default_plugin" != x
"yes"; then
27295 Building GCC with plugin support requires a host that supports
27296 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27303 if test x
"$enable_plugin" = x
"yes"; then
27305 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27310 # Check whether --enable-libquadmath-support was given.
27311 if test "${enable_libquadmath_support+set}" = set; then :
27312 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27314 ENABLE_LIBQUADMATH_SUPPORT
=yes
27317 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27319 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27324 # Specify what hash style to use by default.
27326 # Check whether --with-linker-hash-style was given.
27327 if test "${with_linker_hash_style+set}" = set; then :
27328 withval
=$with_linker_hash_style; case x
"$withval" in
27330 LINKER_HASH_STYLE
=sysv
27333 LINKER_HASH_STYLE
=gnu
27336 LINKER_HASH_STYLE
=both
27339 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27343 LINKER_HASH_STYLE
=''
27346 if test x
"${LINKER_HASH_STYLE}" != x
; then
27348 cat >>confdefs.h
<<_ACEOF
27349 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27354 # Configure the subdirectories
27355 # AC_CONFIG_SUBDIRS($subdirs)
27357 # Create the Makefile
27358 # and configure language subdirectories
27359 ac_config_files
="$ac_config_files $all_outputs"
27362 ac_config_commands
="$ac_config_commands default"
27364 cat >confcache
<<\_ACEOF
27365 # This file is a shell script that caches the results of configure
27366 # tests run on this system so they can be shared between configure
27367 # scripts and configure runs, see configure's option --config-cache.
27368 # It is not useful on other systems. If it contains results you don't
27369 # want to keep, you may remove or edit it.
27371 # config.status only pays attention to the cache file if you give it
27372 # the --recheck option to rerun configure.
27374 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27375 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27376 # following values.
27380 # The following way of writing the cache mishandles newlines in values,
27381 # but we know of no workaround that is simple, portable, and efficient.
27382 # So, we kill variables containing newlines.
27383 # Ultrix sh set writes to stderr and can't be redirected directly,
27384 # and sets the high bit in the cache file unless we assign to the vars.
27386 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27387 eval ac_val
=\$
$ac_var
27391 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27392 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27395 _ | IFS | as_nl
) ;; #(
27396 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27397 *) { eval $ac_var=; unset $ac_var;} ;;
27403 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27404 *${as_nl}ac_space
=\
*)
27405 # `set' does not quote correctly, so add quotes: double-quote
27406 # substitution turns \\\\ into \\, and sed turns \\ into \.
27409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27412 # `set' quotes correctly as required by POSIX, so do not add quotes.
27413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27422 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27424 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27426 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27427 if test -w "$cache_file"; then
27428 test "x$cache_file" != "x/dev/null" &&
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27430 $as_echo "$as_me: updating cache $cache_file" >&6;}
27431 cat confcache
>$cache_file
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27434 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27439 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27440 # Let make expand exec_prefix.
27441 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27443 DEFS
=-DHAVE_CONFIG_H
27447 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27448 # 1. Remove the extension, and $U if already installed.
27449 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27450 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27451 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27452 # will be set to the directory where LIBOBJS objects are built.
27453 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27454 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27456 LIBOBJS
=$ac_libobjs
27458 LTLIBOBJS
=$ac_ltlibobjs
27463 : ${CONFIG_STATUS=./config.status}
27465 ac_clean_files_save
=$ac_clean_files
27466 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27468 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27470 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27472 # Generated by $as_me.
27473 # Run this file to recreate the current configuration.
27474 # Compiler output produced by configure, useful for debugging
27475 # configure, is in config.log if it exists.
27478 ac_cs_recheck=false
27481 SHELL=\${CONFIG_SHELL-$SHELL}
27484 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27485 ## -------------------- ##
27486 ## M4sh Initialization. ##
27487 ## -------------------- ##
27489 # Be more Bourne compatible
27490 DUALCASE
=1; export DUALCASE
# for MKS sh
27491 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27494 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27495 # is contrary to our usage. Disable this feature.
27496 alias -g '${1+"$@"}'='"$@"'
27497 setopt NO_GLOB_SUBST
27499 case `(set -o) 2>/dev/null` in #(
27511 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27512 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27513 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27514 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27515 # Prefer a ksh shell builtin over an external printf program on Solaris,
27516 # but without wasting forks for bash or zsh.
27517 if test -z "$BASH_VERSION$ZSH_VERSION" \
27518 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27519 as_echo='print
-r --'
27520 as_echo_n='print
-rn --'
27521 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27522 as_echo='printf %s
\n'
27523 as_echo_n='printf %s
'
27525 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27526 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27527 as_echo_n='/usr
/ucb
/echo -n'
27529 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27530 as_echo_n_body='eval
27534 expr "X$arg" : "X\\(.*\\)$as_nl";
27535 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27537 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27539 export as_echo_n_body
27540 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27542 export as_echo_body
27543 as_echo='sh
-c $as_echo_body as_echo
'
27546 # The user is always right.
27547 if test "${PATH_SEPARATOR+set}" != set; then
27549 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27550 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27557 # We need space, tab and new line, in precisely that order. Quoting is
27558 # there to prevent editors from complaining about space-tab.
27559 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27560 # splitting by setting IFS to empty value.)
27563 # Find who we are. Look in the path if we contain no directory separator.
27565 *[\\/]* ) as_myself=$0 ;;
27566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27567 for as_dir in $PATH
27570 test -z "$as_dir" && as_dir=.
27571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27577 # We did not find ourselves, most probably we were run as `sh COMMAND'
27578 # in which case we are not to be found in the path.
27579 if test "x$as_myself" = x
; then
27582 if test ! -f "$as_myself"; then
27583 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27587 # Unset variables that we do not need and which cause bugs (e.g. in
27588 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27589 # suppresses any "Segmentation fault" message there. '((' could
27590 # trigger a bug in pdksh 5.2.14.
27591 for as_var
in BASH_ENV ENV MAIL MAILPATH
27592 do eval test x\
${$as_var+set} = xset \
27593 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27606 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27609 # as_fn_error ERROR [LINENO LOG_FD]
27610 # ---------------------------------
27611 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27612 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27613 # script with status $?, using 1 if that was 0.
27616 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27618 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27619 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27621 $as_echo "$as_me: error: $1" >&2
27622 as_fn_exit
$as_status
27626 # as_fn_set_status STATUS
27627 # -----------------------
27628 # Set $? to STATUS, without forking.
27629 as_fn_set_status
()
27632 } # as_fn_set_status
27634 # as_fn_exit STATUS
27635 # -----------------
27636 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27640 as_fn_set_status
$1
27646 # Portably unset VAR.
27649 { eval $1=; unset $1;}
27651 as_unset
=as_fn_unset
27652 # as_fn_append VAR VALUE
27653 # ----------------------
27654 # Append the text in VALUE to the end of the definition contained in VAR. Take
27655 # advantage of any shell optimizations that allow amortized linear growth over
27656 # repeated appends, instead of the typical quadratic growth present in naive
27658 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27659 eval 'as_fn_append ()
27670 # as_fn_arith ARG...
27671 # ------------------
27672 # Perform arithmetic evaluation on the ARGs, and store the result in the
27673 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27674 # must be portable across $(()) and expr.
27675 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27676 eval 'as_fn_arith ()
27683 as_val
=`expr "$@" || test $? -eq 1`
27688 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27689 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27695 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27696 as_basename
=basename
27701 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27707 as_me
=`$as_basename -- "$0" ||
27708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27709 X"$0" : 'X\(//\)$' \| \
27710 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27712 sed '/^.*\/\([^/][^/]*\)\/*$/{
27726 # Avoid depending upon Character Ranges.
27727 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27728 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27729 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27730 as_cr_digits
='0123456789'
27731 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27733 ECHO_C
= ECHO_N
= ECHO_T
=
27734 case `echo -n x` in #(((((
27736 case `echo 'xy\c'` in
27737 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27739 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27746 rm -f conf$$ conf$$.exe conf$$.
file
27747 if test -d conf$$.dir
; then
27748 rm -f conf$$.dir
/conf$$.
file
27751 mkdir conf$$.dir
2>/dev
/null
27753 if (echo >conf$$.
file) 2>/dev
/null
; then
27754 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27756 # ... but there are two gotchas:
27757 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27758 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27759 # In both cases, we have to default to `cp -p'.
27760 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27762 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27770 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27771 rmdir conf$$.dir
2>/dev
/null
27776 # Create "$as_dir" as a directory, including parents if necessary.
27781 -*) as_dir
=.
/$as_dir;;
27783 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27787 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27788 *) as_qdir
=$as_dir;;
27790 as_dirs
="'$as_qdir' $as_dirs"
27791 as_dir
=`$as_dirname -- "$as_dir" ||
27792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27793 X"$as_dir" : 'X\(//\)[^/]' \| \
27794 X"$as_dir" : 'X\(//\)$' \| \
27795 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27796 $as_echo X"$as_dir" |
27797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27801 /^X\(\/\/\)[^/].*/{
27814 test -d "$as_dir" && break
27816 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27817 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27821 if mkdir
-p .
2>/dev
/null
; then
27822 as_mkdir_p
='mkdir -p "$as_dir"'
27824 test -d .
/-p && rmdir .
/-p
27828 if test -x / >/dev
/null
2>&1; then
27829 as_test_x
='test -x'
27831 if ls -dL / >/dev
/null
2>&1; then
27838 if test -d "$1"; then
27844 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27845 ???[sx]*):;;*)false;;esac;fi
27849 as_executable_p
=$as_test_x
27851 # Sed expression to map a string onto a valid CPP name.
27852 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27854 # Sed expression to map a string onto a valid variable name.
27855 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27859 ## ----------------------------------- ##
27860 ## Main body of $CONFIG_STATUS script. ##
27861 ## ----------------------------------- ##
27863 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27866 # Save the log message, to keep $0 and so on meaningful, and to
27867 # report actual input values of CONFIG_FILES etc. instead of their
27868 # values after options handling.
27870 This file was extended by $as_me, which was
27871 generated by GNU Autoconf 2.64. Invocation command line was
27873 CONFIG_FILES = $CONFIG_FILES
27874 CONFIG_HEADERS = $CONFIG_HEADERS
27875 CONFIG_LINKS = $CONFIG_LINKS
27876 CONFIG_COMMANDS = $CONFIG_COMMANDS
27879 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27884 case $ac_config_files in *"
27885 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27888 case $ac_config_headers in *"
27889 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27894 # Files that config.status was made for.
27895 config_files="$ac_config_files"
27896 config_headers="$ac_config_headers"
27897 config_commands="$ac_config_commands"
27901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27903 \`$as_me' instantiates files and other configuration actions
27904 from templates according to the current configuration. Unless the files
27905 and actions are specified as TAGs, all are instantiated by default.
27907 Usage: $0 [OPTION]... [TAG]...
27909 -h, --help print this help, then exit
27910 -V, --version print version number and configuration settings, then exit
27911 -q, --quiet, --silent
27912 do not print progress messages
27913 -d, --debug don't remove temporary files
27914 --recheck update $as_me by reconfiguring in the same conditions
27915 --file=FILE[:TEMPLATE]
27916 instantiate the configuration file FILE
27917 --header=FILE[:TEMPLATE]
27918 instantiate the configuration header FILE
27920 Configuration files:
27923 Configuration headers:
27926 Configuration commands:
27929 Report bugs to the package provider."
27932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27935 configured by $0, generated by GNU Autoconf 2.64,
27936 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27938 Copyright (C) 2009 Free Software Foundation, Inc.
27939 This config.status script is free software; the Free Software Foundation
27940 gives unlimited permission to copy, distribute and modify it."
27945 test -n "\$AWK" || AWK=awk
27948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27949 # The default lists apply if the user does not specify any file.
27955 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27956 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27967 # Handling of the options.
27968 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27970 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27971 $as_echo "$ac_cs_version"; exit ;;
27972 --debug |
--debu |
--deb |
--de |
--d |
-d )
27974 --file |
--fil |
--fi |
--f )
27977 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27979 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27980 ac_need_defaults
=false
;;
27981 --header |
--heade |
--head |
--hea )
27984 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27986 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27987 ac_need_defaults
=false
;;
27989 # Conflict between --help and --header
27990 as_fn_error
"ambiguous option: \`$1'
27991 Try \`$0 --help' for more information.";;
27992 --help |
--hel |
-h )
27993 $as_echo "$ac_cs_usage"; exit ;;
27994 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27995 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27998 # This is an error.
27999 -*) as_fn_error
"unrecognized option: \`$1'
28000 Try \`$0 --help' for more information." ;;
28002 *) as_fn_append ac_config_targets
" $1"
28003 ac_need_defaults
=false
;;
28009 ac_configure_extra_args
=
28011 if $ac_cs_silent; then
28013 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28018 if \$ac_cs_recheck; then
28019 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28021 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28022 CONFIG_SHELL='$SHELL'
28023 export CONFIG_SHELL
28028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28033 ## Running $as_me. ##
28039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28049 # Handling of arguments.
28050 for ac_config_target
in $ac_config_targets
28052 case $ac_config_target in
28053 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28054 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28055 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28056 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28057 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28058 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28060 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28065 # If the user did not use the arguments to specify the items to instantiate,
28066 # then the envvar interface is used. Set only those that are not.
28067 # We use the long form for the default assignment because of an extremely
28068 # bizarre bug on SunOS 4.1.3.
28069 if $ac_need_defaults; then
28070 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28071 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28072 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28075 # Have a temporary directory for convenience. Make it in the build tree
28076 # simply because there is no reason against having it here, and in addition,
28077 # creating and moving files from /tmp can sometimes cause problems.
28078 # Hook for its removal unless debugging.
28079 # Note that there is a small window in which the directory will not be cleaned:
28080 # after its creation but before its name has been assigned to `$tmp'.
28084 trap 'exit_status=$?
28085 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28087 trap 'as_fn_exit 1' 1 2 13 15
28089 # Create a (secure) tmp directory for tmp files.
28092 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28093 test -n "$tmp" && test -d "$tmp"
28096 tmp
=.
/conf$$
-$RANDOM
28097 (umask 077 && mkdir
"$tmp")
28098 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28100 # Set up the scripts for CONFIG_FILES section.
28101 # No need to generate them if there are no CONFIG_FILES.
28102 # This happens for instance with `./config.status config.h'.
28103 if test -n "$CONFIG_FILES"; then
28105 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28106 ac_cs_awk_getline
=:
28107 ac_cs_awk_pipe_init
=
28108 ac_cs_awk_read_file
='
28109 while ((getline aline < (F[key])) > 0)
28112 ac_cs_awk_pipe_fini
=
28114 ac_cs_awk_getline
=false
28115 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28116 ac_cs_awk_read_file
='
28118 print "cat " F[key] " &&"
28119 '$ac_cs_awk_pipe_init
28120 # The final `:' finishes the AND list.
28121 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28123 ac_cr
=`echo X | tr X '\015'`
28124 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28125 # But we know of no other shell where ac_cr would be empty at this
28126 # point, so we can use a bashism as a fallback.
28127 if test "x$ac_cr" = x
; then
28128 eval ac_cr
=\$
\'\\r
\'
28130 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28131 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28134 ac_cs_awk_cr
=$ac_cr
28137 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28140 # Create commands to substitute file output variables.
28142 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28143 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28144 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28147 } >conf$
$files.sh
&&
28148 . .
/conf$
$files.sh ||
28149 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28150 rm -f conf$
$files.sh
28153 echo "cat >conf$$subs.awk <<_ACEOF" &&
28154 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28156 } >conf$$subs.sh ||
28157 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28158 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28160 for ac_last_try in false false false false false :; do
28161 . ./conf$$subs.sh ||
28162 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28164 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28165 if test $ac_delim_n = $ac_delim_num; then
28167 elif $ac_last_try; then
28168 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28170 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28173 rm -f conf$$subs.sh
28175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28176 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28180 s/^/S["/; s
/!.
*/"]=/
28190 s/\(.\{148\}\).*/\1/
28192 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28197 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28204 s/\(.\{148\}\).*/\1/
28206 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28210 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28215 ' <conf$$subs.awk | sed '
28220 ' >>$CONFIG_STATUS || ac_write_fail=1
28221 rm -f conf$$subs.awk
28222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28224 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28225 for (key in S) S_is_set[key] = 1
28227 \$ac_cs_awk_pipe_init
28231 nfields = split(line, field, "@
")
28233 len = length(field[1])
28234 for (i = 2; i < nfields; i++) {
28236 keylen = length(key)
28237 if (S_is_set[key]) {
28239 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28240 len += length(value) + length(field[++i])
28245 if (nfields == 3 && !substed) {
28247 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28248 \$ac_cs_awk_read_file
28254 \$ac_cs_awk_pipe_fini
28257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28258 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28259 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28262 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28263 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28266 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28267 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28268 # trailing colons and then remove the whole line if VPATH becomes empty
28269 # (actually we leave an empty line to preserve line numbers).
28270 if test "x
$srcdir" = x.; then
28271 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28272 s/:*\$(srcdir):*/:/
28273 s/:*\${srcdir}:*/:/
28275 s/^\([^=]*=[ ]*\):*/\1/
28281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28282 fi # test -n "$CONFIG_FILES"
28284 # Set up the scripts for CONFIG_HEADERS section.
28285 # No need to generate them if there are no CONFIG_HEADERS.
28286 # This happens for instance with `./config.status Makefile'.
28287 if test -n "$CONFIG_HEADERS"; then
28288 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28292 # Transform confdefs.h into an awk script `defines.awk', embedded as
28293 # here-document in config.status, that substitutes the proper values into
28294 # config.h.in to produce config.h.
28296 # Create a delimiter string that does not exist in confdefs.h, to ease
28297 # handling of long lines.
28299 for ac_last_try in false false :; do
28300 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28301 if test -z "$ac_t"; then
28303 elif $ac_last_try; then
28304 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28306 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28310 # For the awk script, D is an array of macro values keyed by name,
28311 # likewise P contains macro parameters if any. Preserve backslash
28312 # newline sequences.
28314 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28316 s/.\{148\}/&'"$ac_delim"'/g
28319 s/^[ ]*#[ ]*define[ ][ ]*/ /
28326 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28328 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28332 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28333 D["\
1"]=" \
3\\\\\\n
"\\/p
28335 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28340 s/.\{148\}/&'"$ac_delim"'/g
28345 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28348 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28350 ' <confdefs.h | sed '
28351 s/'"$ac_delim"'/"\\\
28352 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28355 for (key in D) D_is_set[key] = 1
28358 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28360 split(line, arg, " ")
28361 if (arg[1] == "#") {
28365 defundef
= substr
(arg
[1], 2)
28368 split(mac1
, mac2
, "(") #)
28370 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28371 if (D_is_set
[macro
]) {
28372 # Preserve the white space surrounding the "#".
28373 print prefix
"define", macro P
[macro
] D
[macro
]
28376 # Replace #undef with comments. This is necessary, for example,
28377 # in the case of _POSIX_SOURCE, which is predefined and required
28378 # on some systems where configure will not decide to define it.
28379 if (defundef
== "undef") {
28380 print
"/*", prefix defundef
, macro
, "*/"
28388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28389 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28390 fi # test -n "$CONFIG_HEADERS"
28393 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28398 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28400 case $ac_mode$ac_tag in
28402 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28403 :[FH
]-) ac_tag
=-:-;;
28404 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28421 -) ac_f
="$tmp/stdin";;
28422 *) # Look for the file first in the build tree, then in the source tree
28423 # (if the path is not absolute). The absolute path cannot be DOS-style,
28424 # because $ac_f cannot contain `:'.
28428 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28430 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28432 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28433 as_fn_append ac_file_inputs
" '$ac_f'"
28436 # Let's still pretend it is `configure' which instantiates (i.e., don't
28437 # use $as_me), people would be surprised to read:
28438 # /* config.h. Generated by config.status. */
28439 configure_input
='Generated from '`
28440 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28442 if test x
"$ac_file" != x-
; then
28443 configure_input
="$ac_file. $configure_input"
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28445 $as_echo "$as_me: creating $ac_file" >&6;}
28447 # Neutralize special characters interpreted by sed in replacement strings.
28448 case $configure_input in #(
28449 *\
&* |
*\|
* |
*\\* )
28450 ac_sed_conf_input
=`$as_echo "$configure_input" |
28451 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28452 *) ac_sed_conf_input
=$configure_input;;
28456 *:-:* |
*:-) cat >"$tmp/stdin" \
28457 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28462 ac_dir
=`$as_dirname -- "$ac_file" ||
28463 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28464 X"$ac_file" : 'X\(//\)[^/]' \| \
28465 X"$ac_file" : 'X\(//\)$' \| \
28466 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28467 $as_echo X"$ac_file" |
28468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28472 /^X\(\/\/\)[^/].*/{
28485 as_dir
="$ac_dir"; as_fn_mkdir_p
28489 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28491 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28492 # A ".." for each directory in $ac_dir_suffix.
28493 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28494 case $ac_top_builddir_sub in
28495 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28496 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28499 ac_abs_top_builddir
=$ac_pwd
28500 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28501 # for backward compatibility:
28502 ac_top_builddir
=$ac_top_build_prefix
28505 .
) # We are building in place.
28507 ac_top_srcdir
=$ac_top_builddir_sub
28508 ac_abs_top_srcdir
=$ac_pwd ;;
28509 [\\/]* | ?
:[\\/]* ) # Absolute name.
28510 ac_srcdir
=$srcdir$ac_dir_suffix;
28511 ac_top_srcdir
=$srcdir
28512 ac_abs_top_srcdir
=$srcdir ;;
28513 *) # Relative name.
28514 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28515 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28516 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28518 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28530 # If the template does not know about datarootdir, expand it.
28531 # FIXME: This hack should be removed a few years after 2.60.
28532 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28543 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28544 *datarootdir
*) ac_datarootdir_seen
=yes;;
28545 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28547 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28550 ac_datarootdir_hack='
28551 s&@datadir@&$datadir&g
28552 s&@docdir@&$docdir&g
28553 s&@infodir@&$infodir&g
28554 s&@localedir@&$localedir&g
28555 s&@mandir@&$mandir&g
28556 s&\\\${datarootdir}&$datarootdir&g' ;;
28560 # Neutralize VPATH when `$srcdir' = `.'.
28561 # Shell code in configure.ac might set extrasub.
28562 # FIXME: do we really want to maintain this feature?
28563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28564 ac_sed_extra="$ac_vpsub
28567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28569 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28570 s|@configure_input@|
$ac_sed_conf_input|
;t t
28571 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28572 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28573 s
&@srcdir@
&$ac_srcdir&;t t
28574 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28575 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28576 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28577 s
&@builddir@
&$ac_builddir&;t t
28578 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28579 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28580 $ac_datarootdir_hack
28582 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28583 if $ac_cs_awk_getline; then
28584 $AWK -f "$tmp/subs.
awk"
28586 $AWK -f "$tmp/subs.
awk" | $SHELL
28588 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28590 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28591 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28592 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28594 which seems to be undefined. Please make sure it is defined." >&5
28595 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28596 which seems to be undefined. Please make sure it is defined." >&2;}
28600 -) cat "$tmp/out" && rm -f "$tmp/out";;
28601 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28603 || as_fn_error "could not create $ac_file" "$LINENO" 5
28609 if test x"$ac_file" != x-; then
28611 $as_echo "/* $configure_input */" \
28612 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28613 } >"$tmp/config.h" \
28614 || as_fn_error "could not create $ac_file" "$LINENO" 5
28615 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28617 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28620 mv "$tmp/config.h" "$ac_file" \
28621 || as_fn_error "could not create $ac_file" "$LINENO" 5
28624 $as_echo "/* $configure_input */" \
28625 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28626 || as_fn_error "could not create -" "$LINENO" 5
28630 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28631 $as_echo "$as_me: executing $ac_file commands" >&6;}
28636 case $ac_file$ac_mode in
28637 "as":F) chmod +x as ;;
28638 "collect-ld":F) chmod +x collect-ld ;;
28639 "nm":F) chmod +x nm ;;
28641 case ${CONFIG_HEADERS} in
28642 *auto-host.h:config.in*)
28645 # Make sure all the subdirs exist.
28646 for d in $subdirs doc build common c-family
28648 test -d $d || mkdir $d
28658 ac_clean_files=$ac_clean_files_save
28660 test $ac_write_fail = 0 ||
28661 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28664 # configure is writing to config.log, and then calls config.status.
28665 # config.status does its own redirection, appending to config.log.
28666 # Unfortunately, on DOS this fails, as config.log is still kept open
28667 # by configure, so config.status won't be able to
write to it
; its
28668 # output is simply discarded. So we exec the FD to /dev/null,
28669 # effectively closing config.log, so it can be properly (re)opened and
28670 # appended to by config.status. When coming back to configure, we
28671 # need to make the FD available again.
28672 if test "$no_create" != yes; then
28674 ac_config_status_args
=
28675 test "$silent" = yes &&
28676 ac_config_status_args
="$ac_config_status_args --quiet"
28678 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28681 # would make configure fail if this is the last instruction.
28682 $ac_cs_success || as_fn_exit $?
28684 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28686 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}