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
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
680 ORIGINAL_NM_FOR_TARGET
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 ORIGINAL_AS_FOR_TARGET
727 NATIVE_SYSTEM_HEADER_DIR
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
763 RUNTIME_ROOT_PREFIX_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
774 valgrind_path_defines
849 program_transform_name
860 ac_subst_files
='option_includes
863 enable_option_checking
868 enable_generated_files_in_srcdir
878 enable_gather_detailed_mem_stats
890 with_native_system_header_dir
892 with_runtime_root_prefix
901 enable_sjlj_exceptions
903 enable_leading_mingw64_underscores
906 enable_win32_registry
912 enable_gnu_indirect_function
913 enable_initfini_array
915 enable_gnu_unique_object
916 enable_linker_build_id
920 enable_maintainer_mode
921 enable_version_specific_runtime_libs
922 enable_canonical_prefixes
924 enable_libquadmath_support
925 with_warn_frame_larger_than_extra_text
926 with_linker_hash_style
928 ac_precious_vars
='build_alias
949 # Initialize some variables set by options.
951 ac_init_version
=false
952 ac_unrecognized_opts
=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
963 program_transform_name
=s
,x
,x
,
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir
='${exec_prefix}/bin'
978 sbindir
='${exec_prefix}/sbin'
979 libexecdir
='${exec_prefix}/libexec'
980 datarootdir
='${prefix}/share'
981 datadir
='${datarootdir}'
982 sysconfdir
='${prefix}/etc'
983 sharedstatedir
='${prefix}/com'
984 localstatedir
='${prefix}/var'
985 includedir
='${prefix}/include'
986 oldincludedir
='/usr/include'
987 docdir
='${datarootdir}/doc/${PACKAGE}'
988 infodir
='${datarootdir}/info'
993 libdir
='${exec_prefix}/lib'
994 localedir
='${datarootdir}/locale'
995 mandir
='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\
$ac_option
1009 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1021 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1022 bindir
=$ac_optarg ;;
1024 -build |
--build |
--buil |
--bui |
--bu)
1025 ac_prev
=build_alias
;;
1026 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1027 build_alias
=$ac_optarg ;;
1029 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1030 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1031 ac_prev
=cache_file
;;
1032 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1033 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1034 cache_file
=$ac_optarg ;;
1036 --config-cache |
-C)
1037 cache_file
=config.cache
;;
1039 -datadir |
--datadir |
--datadi |
--datad)
1041 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1042 datadir
=$ac_optarg ;;
1044 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1045 |
--dataroo |
--dataro |
--datar)
1046 ac_prev
=datarootdir
;;
1047 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1048 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1049 datarootdir
=$ac_optarg ;;
1051 -disable-* |
--disable-*)
1052 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1055 as_fn_error
"invalid feature name: $ac_useropt"
1056 ac_useropt_orig
=$ac_useropt
1057 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_
$ac_useropt"
1062 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep
=', ';;
1065 eval enable_
$ac_useropt=no
;;
1067 -docdir |
--docdir |
--docdi |
--doc |
--do)
1069 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1070 docdir
=$ac_optarg ;;
1072 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1074 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1075 dvidir
=$ac_optarg ;;
1077 -enable-* |
--enable-*)
1078 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1081 as_fn_error
"invalid feature name: $ac_useropt"
1082 ac_useropt_orig
=$ac_useropt
1083 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_
$ac_useropt"
1088 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep
=', ';;
1091 eval enable_
$ac_useropt=\
$ac_optarg ;;
1093 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1094 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1095 |
--exec |
--exe |
--ex)
1096 ac_prev
=exec_prefix
;;
1097 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1098 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1099 |
--exec=* |
--exe=* |
--ex=*)
1100 exec_prefix
=$ac_optarg ;;
1102 -gas |
--gas |
--ga |
--g)
1103 # Obsolete; use --with-gas.
1106 -help |
--help |
--hel |
--he |
-h)
1107 ac_init_help
=long
;;
1108 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1109 ac_init_help
=recursive
;;
1110 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1111 ac_init_help
=short
;;
1113 -host |
--host |
--hos |
--ho)
1114 ac_prev
=host_alias
;;
1115 -host=* |
--host=* |
--hos=* |
--ho=*)
1116 host_alias
=$ac_optarg ;;
1118 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1120 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1122 htmldir
=$ac_optarg ;;
1124 -includedir |
--includedir |
--includedi |
--included |
--include \
1125 |
--includ |
--inclu |
--incl |
--inc)
1126 ac_prev
=includedir
;;
1127 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1128 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1129 includedir
=$ac_optarg ;;
1131 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1133 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1134 infodir
=$ac_optarg ;;
1136 -libdir |
--libdir |
--libdi |
--libd)
1138 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1139 libdir
=$ac_optarg ;;
1141 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1142 |
--libexe |
--libex |
--libe)
1143 ac_prev
=libexecdir
;;
1144 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1145 |
--libexe=* |
--libex=* |
--libe=*)
1146 libexecdir
=$ac_optarg ;;
1148 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1149 ac_prev
=localedir
;;
1150 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1151 localedir
=$ac_optarg ;;
1153 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1154 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1155 ac_prev
=localstatedir
;;
1156 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1157 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1158 localstatedir
=$ac_optarg ;;
1160 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1162 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1163 mandir
=$ac_optarg ;;
1165 -nfp |
--nfp |
--nf)
1166 # Obsolete; use --without-fp.
1169 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1170 |
--no-cr |
--no-c |
-n)
1173 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1174 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1177 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1178 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1179 |
--oldin |
--oldi |
--old |
--ol |
--o)
1180 ac_prev
=oldincludedir
;;
1181 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1182 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1183 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1184 oldincludedir
=$ac_optarg ;;
1186 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1188 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1189 prefix
=$ac_optarg ;;
1191 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1192 |
--program-pre |
--program-pr |
--program-p)
1193 ac_prev
=program_prefix
;;
1194 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1195 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1196 program_prefix
=$ac_optarg ;;
1198 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1199 |
--program-suf |
--program-su |
--program-s)
1200 ac_prev
=program_suffix
;;
1201 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1202 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1203 program_suffix
=$ac_optarg ;;
1205 -program-transform-name |
--program-transform-name \
1206 |
--program-transform-nam |
--program-transform-na \
1207 |
--program-transform-n |
--program-transform- \
1208 |
--program-transform |
--program-transfor \
1209 |
--program-transfo |
--program-transf \
1210 |
--program-trans |
--program-tran \
1211 |
--progr-tra |
--program-tr |
--program-t)
1212 ac_prev
=program_transform_name
;;
1213 -program-transform-name=* |
--program-transform-name=* \
1214 |
--program-transform-nam=* |
--program-transform-na=* \
1215 |
--program-transform-n=* |
--program-transform-=* \
1216 |
--program-transform=* |
--program-transfor=* \
1217 |
--program-transfo=* |
--program-transf=* \
1218 |
--program-trans=* |
--program-tran=* \
1219 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1220 program_transform_name
=$ac_optarg ;;
1222 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1224 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1225 pdfdir
=$ac_optarg ;;
1227 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1229 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1232 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1233 |
-silent |
--silent |
--silen |
--sile |
--sil)
1236 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1238 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1240 sbindir
=$ac_optarg ;;
1242 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1243 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1244 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1246 ac_prev
=sharedstatedir
;;
1247 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1248 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1249 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1251 sharedstatedir
=$ac_optarg ;;
1253 -site |
--site |
--sit)
1255 -site=* |
--site=* |
--sit=*)
1258 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1260 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1261 srcdir
=$ac_optarg ;;
1263 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1264 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1265 ac_prev
=sysconfdir
;;
1266 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1267 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1268 sysconfdir
=$ac_optarg ;;
1270 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1271 ac_prev
=target_alias
;;
1272 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1273 target_alias
=$ac_optarg ;;
1275 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1278 -version |
--version |
--versio |
--versi |
--vers |
-V)
1279 ac_init_version
=: ;;
1282 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1285 as_fn_error
"invalid package name: $ac_useropt"
1286 ac_useropt_orig
=$ac_useropt
1287 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1292 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep
=', ';;
1295 eval with_
$ac_useropt=\
$ac_optarg ;;
1297 -without-* |
--without-*)
1298 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1301 as_fn_error
"invalid package name: $ac_useropt"
1302 ac_useropt_orig
=$ac_useropt
1303 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1308 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep
=', ';;
1311 eval with_
$ac_useropt=no
;;
1314 # Obsolete; use --with-x.
1317 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1318 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1319 ac_prev
=x_includes
;;
1320 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1321 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1322 x_includes
=$ac_optarg ;;
1324 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1325 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1326 ac_prev
=x_libraries
;;
1327 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1328 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1329 x_libraries
=$ac_optarg ;;
1331 -*) as_fn_error
"unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1336 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1340 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1342 eval $ac_envvar=\
$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 if test -n "$ac_prev"; then
1357 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error
"missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1364 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 # Check all directory arguments for consistency.
1370 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val
=\$
$ac_var
1376 # Remove trailing slashes.
1379 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\
$ac_val;;
1382 # Be sure to have absolute directory names.
1384 [\\/$
]* | ?
:[\\/]* ) continue;;
1385 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1387 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1395 target
=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x
; then
1399 if test "x$build_alias" = x
; then
1400 cross_compiling
=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1409 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1411 test "$silent" = yes && exec 6>/dev
/null
1414 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di
=`ls -di .` &&
1416 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error
"working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error
"pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted
=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir
=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1454 ac_srcdir_defaulted
=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1458 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1472 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 for ac_var
in $ac_precious_vars; do
1475 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1477 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1488 \`configure' configures this package to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1551 --build=BUILD configure
for building on BUILD
[guessed
]
1552 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1553 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1557 if test -n "$ac_init_help"; then
1562 --disable-option-checking ignore unrecognized
--enable/--with options
1563 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1564 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1565 --enable-generated-files-in-srcdir
1566 put copies of generated files
in source dir intended
1567 for creating
source tarballs
for users without
1568 texinfo bison or flex
1569 --disable-largefile omit support
for large files
1570 --enable-werror-always enable -Werror despite compiler version
1571 --enable-checking[=LIST
]
1572 enable expensive run-time checks. With LIST
, enable
1573 only specific categories of checks. Categories are
:
1574 yes,no
,all
,none
,release. Flags are
:
1575 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1576 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1577 --enable-coverage[=LEVEL
]
1578 enable compiler
's code coverage collection. Use to
1579 measure compiler performance and locate unused parts
1580 of the compiler. With LEVEL, specify optimization.
1581 Values are opt, noopt, default is noopt
1582 --enable-gather-detailed-mem-stats
1583 enable detailed memory allocation stats gathering
1584 --enable-multilib enable library support for multiple ABIs
1585 --enable-multiarch enable support for multiarch paths
1586 --enable-__cxa_atexit enable __cxa_atexit for C++
1587 --enable-decimal-float={no,yes,bid,dpd}
1588 enable decimal float extension to C. Selecting 'bid
'
1589 or 'dpd
' choses which decimal floating point format
1591 --enable-fixed-point enable fixed-point arithmetic extension to C
1592 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1594 --enable-tls enable or disable generation of tls code overriding
1595 the assembler check for tls support
1596 --enable-objc-gc enable the use of Boehm's garbage collector with the
1597 GNU Objective-C runtime
1598 --disable-shared don
't provide a shared libgcc
1599 --enable-languages=LIST specify which front-ends to build
1600 --disable-rpath do not hardcode runtime library paths
1601 --enable-sjlj-exceptions
1602 arrange to use setjmp/longjmp exception handling
1603 --enable-secureplt enable -msecure-plt by default for PowerPC
1604 --enable-leading-mingw64-underscores
1605 enable leading underscores on 64 bit mingw targets
1606 --enable-cld enable -mcld by default for 32bit x86
1607 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1609 --disable-win32-registry
1610 disable lookup of installation paths in the Registry
1612 --enable-win32-registry enable registry lookup (default)
1613 --enable-win32-registry=KEY
1614 use KEY instead of GCC version as the last portion
1616 --enable-shared[=PKGS] build shared libraries [default=yes]
1617 --enable-static[=PKGS] build static libraries [default=yes]
1618 --enable-fast-install[=PKGS]
1619 optimize for fast installation [default=yes]
1620 --disable-libtool-lock avoid locking (might break parallel builds)
1621 --enable-gnu-indirect-function
1622 enable the use of the @gnu_indirect_function to
1624 --enable-initfini-array use .init_array/.fini_array sections
1625 --enable-comdat enable COMDAT group support
1626 --enable-gnu-unique-object
1627 enable the use of the @gnu_unique_object ELF
1628 extension on glibc systems
1629 --enable-linker-build-id
1630 compiler will always pass --build-id to linker
1631 --enable-maintainer-mode
1632 enable make rules and dependencies not useful (and
1633 sometimes confusing) to the casual installer
1634 --enable-version-specific-runtime-libs
1635 specify that runtime libraries should be installed
1636 in a compiler-specific directory
1637 --enable-canonical-prefixes
1638 enable or disable prefix canonicalization
1639 --enable-plugin enable plugin support
1640 --disable-libquadmath-support
1641 disable libquadmath support for Fortran
1644 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1645 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1646 --with-build-libsubdir=DIR Directory where to find libraries for build system
1647 --with-local-prefix=DIR specifies directory to put local include
1648 --with-gxx-include-dir=DIR
1649 specifies directory to put g++ header files
1650 --with-cpp-install-dir=DIR
1651 install the user visible C preprocessor in DIR
1652 (relative to PREFIX) as well as PREFIX/bin
1653 --with-gnu-ld arrange to work with GNU ld
1654 --with-ld arrange to use the specified ld (full pathname)
1655 --with-demangler-in-ld try to use demangler in GNU ld
1656 --with-gnu-as arrange to work with GNU as
1657 --with-as arrange to use the specified as (full pathname)
1658 --with-stabs arrange to use stabs instead of host debug format
1659 --with-dwarf2 force the default debug format to be DWARF 2
1660 --with-native-system-header-dir=dir
1661 use dir as the directory to look for standard
1662 system header files in. Defaults to /usr/include.
1663 --with-build-sysroot=sysroot
1664 use sysroot as the system root during the build
1665 --with-runtime-root-prefix=prefix
1666 prepend prefix to paths used by the compiler to
1667 name the dynamic linker and other files used at
1668 runtime. Defaults to empty (no prefix).
1669 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1670 --with-specs=SPECS add SPECS to driver command-line processing
1671 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1672 --with-bugurl=URL Direct users to URL to report a bug
1673 --with-multilib-list select multilibs (SH and x86-64 only)
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1677 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1679 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1680 --with-plugin-ld=[ARG
] specify the plugin linker
1681 --with-long-double-128 use
128-bit long double by default
1682 --with-gc={page
,zone
} this option is not supported anymore. It used to
1683 choose the garbage collection mechanism to use with
1685 --with-system-zlib use installed libz
1686 --with-warn-frame-larger-than-extra-text=TEXT
1687 specifies extra text
for frame size warnings
1688 --with-linker-hash-style={sysv
,gnu
,both
}
1689 specify the linker
hash style
1691 Some influential environment variables
:
1692 CC C compiler
command
1693 CFLAGS C compiler flags
1694 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1695 nonstandard directory
<lib dir
>
1696 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1697 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1698 you have headers
in a nonstandard directory
<include dir
>
1699 CXX C
++ compiler
command
1700 CXXFLAGS C
++ compiler flags
1702 CXXCPP C
++ preprocessor
1703 GMPLIBS How to link GMP
1704 GMPINC How to
find GMP include files
1705 ISLLIBS How to link ISL
1706 ISLINC How to
find ISL include files
1707 CLOOGLIBS How to link CLOOG
1708 CLOOGINC How to
find CLOOG include files
1710 Use these variables to override the choices made by
`configure' or to help
1711 it to find libraries and programs with nonstandard names/locations.
1713 Report bugs to the package provider.
1718 if test "$ac_init_help" = "recursive"; then
1719 # If there are subdirs, report their specific --help.
1720 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721 test -d "$ac_dir" ||
1722 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1730 # A ".." for each directory in $ac_dir_suffix.
1731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1732 case $ac_top_builddir_sub in
1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1737 ac_abs_top_builddir=$ac_pwd
1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir=$ac_top_build_prefix
1743 .) # We are building in place.
1745 ac_top_srcdir=$ac_top_builddir_sub
1746 ac_abs_top_srcdir=$ac_pwd ;;
1747 [\\/]* | ?:[\\/]* ) # Absolute name.
1748 ac_srcdir=$srcdir$ac_dir_suffix;
1749 ac_top_srcdir=$srcdir
1750 ac_abs_top_srcdir=$srcdir ;;
1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753 ac_top_srcdir=$ac_top_build_prefix$srcdir
1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758 cd "$ac_dir" || { ac_status=$?; continue; }
1759 # Check for guested configure.
1760 if test -f "$ac_srcdir/configure.gnu"; then
1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763 elif test -f "$ac_srcdir/configure"; then
1765 $SHELL "$ac_srcdir/configure" --help=recursive
1767 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769 cd "$ac_pwd" || { ac_status=$?; break; }
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1777 generated by GNU Autoconf 2.64
1779 Copyright (C) 2009 Free Software Foundation, Inc.
1780 This configure script is free software; the Free Software Foundation
1781 gives unlimited permission to copy, distribute and modify it.
1786 ## ------------------------ ##
1787 ## Autoconf initialization. ##
1788 ## ------------------------ ##
1790 # ac_fn_c_try_compile LINENO
1791 # --------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_compile ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext
1797 if { { ac_try="$ac_compile"
1799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1800 *) ac_try_echo
=$ac_try;;
1802 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_compile") 2>conftest.err
1806 if test -s conftest.err
; then
1807 grep -v '^ *+' conftest.err
>conftest.er1
1808 cat conftest.er1
>&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest.
$ac_objext; then :
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.
$ac_ext >&5
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1826 } # ac_fn_c_try_compile
1828 # ac_fn_cxx_try_compile LINENO
1829 # ----------------------------
1830 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_cxx_try_compile
()
1833 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1834 rm -f conftest.
$ac_objext
1835 if { { ac_try
="$ac_compile"
1837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_compile") 2>conftest.err
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_cxx_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest.$ac_objext; then :
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_cxx_try_compile
1866 # ac_fn_c_try_cpp LINENO
1867 # ----------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_cpp conftest.$ac_ext"
1874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1875 *) ac_try_echo
=$ac_try;;
1877 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1881 if test -s conftest.err
; then
1882 grep -v '^ *+' conftest.err
>conftest.er1
1883 cat conftest.er1
>&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } >/dev
/null
&& {
1888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.
$ac_ext >&5
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1903 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1906 # the include files in INCLUDES and setting the cache variable VAR
1908 ac_fn_c_check_header_mongrel
()
1910 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1911 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1921 # Is the header compilable?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1923 $as_echo_n "checking $2 usability... " >&6; }
1924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1929 if ac_fn_c_try_compile
"$LINENO"; then :
1930 ac_header_compiler
=yes
1932 ac_header_compiler
=no
1934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1936 $as_echo "$ac_header_compiler" >&6; }
1938 # Is the header present?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1940 $as_echo_n "checking $2 presence... " >&6; }
1941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1945 if ac_fn_c_try_cpp
"$LINENO"; then :
1946 ac_header_preproc
=yes
1948 ac_header_preproc
=no
1950 rm -f conftest.err conftest.
$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1952 $as_echo "$ac_header_preproc" >&6; }
1954 # So? What about this header?
1955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1958 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1964 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1966 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1968 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1970 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 $as_echo_n "(cached) " >&6
1980 eval "$3=\$ac_header_compiler"
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1988 } # ac_fn_c_check_header_mongrel
1990 # ac_fn_c_try_run LINENO
1991 # ----------------------
1992 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1993 # that executables *can* be run.
1996 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1997 if { { ac_try
="$ac_link"
1999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_link") 2>&5
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2008 { { case "(($ac_try" in
2009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2010 *) ac_try_echo
=$ac_try;;
2012 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_try") 2>&5
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; }; }; then :
2020 $as_echo "$as_me: program exited with status $ac_status" >&5
2021 $as_echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.
$ac_ext >&5
2024 ac_retval
=$ac_status
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2032 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2033 # -------------------------------------------------------
2034 # Tests whether HEADER exists and can be compiled using the include files in
2035 # INCLUDES, setting the cache variable VAR accordingly.
2036 ac_fn_c_check_header_compile
()
2038 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2049 if ac_fn_c_try_compile
"$LINENO"; then :
2054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2061 } # ac_fn_c_check_header_compile
2063 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2064 # --------------------------------------------
2065 # Tries to find the compile-time value of EXPR in a program that includes
2066 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2068 ac_fn_c_compute_int
()
2070 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2071 if test "$cross_compiling" = yes; then
2072 # Depending upon the size, compute the lo and hi bounds.
2073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) >= 0)];
2086 if ac_fn_c_try_compile
"$LINENO"; then :
2089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2102 if ac_fn_c_try_compile
"$LINENO"; then :
2103 ac_hi
=$ac_mid; break
2105 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2106 if test $ac_lo -le $ac_mid; then
2110 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) < 0)];
2128 if ac_fn_c_try_compile
"$LINENO"; then :
2131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2137 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2144 if ac_fn_c_try_compile
"$LINENO"; then :
2145 ac_lo
=$ac_mid; break
2147 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2148 if test $ac_mid -le $ac_hi; then
2152 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2162 # Binary search between lo and hi bounds.
2163 while test "x$ac_lo" != "x$ac_hi"; do
2164 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2178 if ac_fn_c_try_compile
"$LINENO"; then :
2181 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2186 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2193 static long int longval () { return $2; }
2194 static unsigned long int ulongval () { return $2; }
2201 FILE *f = fopen ("conftest.val", "w");
2206 long int i = longval ();
2209 fprintf (f, "%ld", i);
2213 unsigned long int i = ulongval ();
2216 fprintf (f, "%lu", i);
2218 /* Do not output a trailing newline, as this causes \r\n confusion
2219 on some platforms. */
2220 return ferror (f) || fclose (f) != 0;
2226 if ac_fn_c_try_run
"$LINENO"; then :
2227 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2231 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2232 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2236 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2239 } # ac_fn_c_compute_int
2241 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242 # -------------------------------------------
2243 # Tests whether TYPE exists after having included INCLUDES, setting cache
2244 # variable VAR accordingly.
2245 ac_fn_c_check_type
()
2247 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251 $as_echo_n "(cached) " >&6
2254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2266 if ac_fn_c_try_compile
"$LINENO"; then :
2267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2279 if ac_fn_c_try_compile
"$LINENO"; then :
2284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2293 } # ac_fn_c_check_type
2295 # ac_fn_c_find_intX_t LINENO BITS VAR
2296 # -----------------------------------
2297 # Finds a signed integer type with width BITS, setting cache variable VAR
2299 ac_fn_c_find_intX_t
()
2301 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2303 $as_echo_n "checking for int$2_t... " >&6; }
2304 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 $as_echo_n "(cached) " >&6
2308 for ac_type
in int
$2_t 'int' 'long int' \
2309 'long long int' 'short int' 'signed char'; do
2310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $ac_includes_default
2316 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2323 if ac_fn_c_try_compile
"$LINENO"; then :
2324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 $ac_includes_default
2330 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2331 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2338 if ac_fn_c_try_compile
"$LINENO"; then :
2345 eval "$3=\$ac_type" ;;
2348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2352 if test "x$as_val" = x
""no
; then :
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2364 } # ac_fn_c_find_intX_t
2366 # ac_fn_c_try_link LINENO
2367 # -----------------------
2368 # Try to link conftest.$ac_ext, and return whether this succeeded.
2371 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2372 rm -f conftest.
$ac_objext conftest
$ac_exeext
2373 if { { ac_try
="$ac_link"
2375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_link") 2>conftest.err
2382 if test -s conftest.err; then
2383 grep -v '^ *+' conftest.err >conftest.er1
2384 cat conftest.er1 >&5
2385 mv -f conftest.er1 conftest.err
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } && {
2389 test -z "$ac_c_werror_flag" ||
2390 test ! -s conftest.err
2391 } && test -s conftest$ac_exeext && {
2392 test "$cross_compiling" = yes ||
2393 $as_test_x conftest$ac_exeext
2397 $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2402 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2403 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2404 # interfere with the next link command; also delete a directory that is
2405 # left behind by Apple's compiler. We do this before executing the actions.
2406 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2407 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410 } # ac_fn_c_try_link
2412 # ac_fn_c_find_uintX_t LINENO BITS VAR
2413 # ------------------------------------
2414 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2416 ac_fn_c_find_uintX_t ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2420 $as_echo_n "checking for uint$2_t... " >&6; }
2421 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 $as_echo_n "(cached) " >&6
2425 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2426 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $ac_includes_default
2433 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2440 if ac_fn_c_try_compile "$LINENO"; then :
2445 eval "$3=\$ac_type" ;;
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 if test "x$as_val" = x""no; then :
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462 } # ac_fn_c_find_uintX_t
2464 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2465 # ----------------------------------------------
2466 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2467 ac_fn_c_check_header_preproc ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2473 $as_echo_n "(cached) " >&6
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2479 if ac_fn_c_try_cpp "$LINENO"; then :
2484 rm -f conftest.err conftest.$ac_ext
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 } # ac_fn_c_check_header_preproc
2493 # ac_fn_cxx_try_cpp LINENO
2494 # ------------------------
2495 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2496 ac_fn_cxx_try_cpp ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 if { { ac_try="$ac_cpp conftest.$ac_ext"
2501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2502 *) ac_try_echo
=$ac_try;;
2504 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2508 if test -s conftest.err
; then
2509 grep -v '^ *+' conftest.err
>conftest.er1
2510 cat conftest.er1
>&5
2511 mv -f conftest.er1 conftest.err
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } >/dev
/null
&& {
2515 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2516 test ! -s conftest.err
2520 $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.
$ac_ext >&5
2525 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2528 } # ac_fn_cxx_try_cpp
2530 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2531 # ------------------------------------------------
2532 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2533 ac_fn_cxx_check_header_preproc
()
2535 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537 $as_echo_n "checking for $2... " >&6; }
2538 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2539 $as_echo_n "(cached) " >&6
2541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2545 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2550 rm -f conftest.err conftest.
$ac_ext
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2557 } # ac_fn_cxx_check_header_preproc
2559 # ac_fn_c_check_func LINENO FUNC VAR
2560 # ----------------------------------
2561 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2562 ac_fn_c_check_func
()
2564 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566 $as_echo_n "checking for $2... " >&6; }
2567 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2568 $as_echo_n "(cached) " >&6
2570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2572 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2574 #define $2 innocuous_$2
2576 /* System header to define __stub macros and hopefully few prototypes,
2577 which can conflict with char $2 (); below.
2578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2579 <limits.h> exists even on freestanding compilers. */
2582 # include <limits.h>
2584 # include <assert.h>
2589 /* Override any GCC internal prototype to avoid an error.
2590 Use char because int might match the return type of a GCC
2591 builtin and then its argument prototype would still apply. */
2596 /* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599 #if defined __stub_$2 || defined __stub___$2
2611 if ac_fn_c_try_link
"$LINENO"; then :
2616 rm -f core conftest.err conftest.
$ac_objext \
2617 conftest
$ac_exeext conftest.
$ac_ext
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2624 } # ac_fn_c_check_func
2626 # ac_fn_cxx_try_link LINENO
2627 # -------------------------
2628 # Try to link conftest.$ac_ext, and return whether this succeeded.
2629 ac_fn_cxx_try_link
()
2631 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2632 rm -f conftest.
$ac_objext conftest
$ac_exeext
2633 if { { ac_try
="$ac_link"
2635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640 (eval "$ac_link") 2>conftest.err
2642 if test -s conftest.err; then
2643 grep -v '^ *+' conftest.err >conftest.er1
2644 cat conftest.er1 >&5
2645 mv -f conftest.er1 conftest.err
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; } && {
2649 test -z "$ac_cxx_werror_flag" ||
2650 test ! -s conftest.err
2651 } && test -s conftest$ac_exeext && {
2652 test "$cross_compiling" = yes ||
2653 $as_test_x conftest$ac_exeext
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2664 # interfere with the next link command; also delete a directory that is
2665 # left behind by Apple's compiler. We do this before executing the actions.
2666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2670 } # ac_fn_cxx_try_link
2671 cat >config.log <<_ACEOF
2672 This file contains any messages produced by compilers while
2673 running configure, to aid debugging if configure makes a mistake.
2675 It was created by $as_me, which was
2676 generated by GNU Autoconf 2.64. Invocation command line was
2688 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2689 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2690 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2691 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2692 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2694 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2695 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2697 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2698 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2699 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2700 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2701 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2702 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2703 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 $as_echo "PATH: $as_dir"
2728 # Keep a trace of the command line.
2729 # Strip out --no-create and --no-recursion so they do not pile up.
2730 # Strip out --silent because we don't want to record it for future runs.
2731 # Also quote any args containing shell meta-characters.
2732 # Make two passes to allow for proper duplicate-argument suppression.
2736 ac_must_keep_next=false
2742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2744 | -silent | --silent | --silen | --sile | --sil)
2747 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2750 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2752 as_fn_append ac_configure_args1 " '$ac_arg'"
2753 if test $ac_must_keep_next = true; then
2754 ac_must_keep_next=false # Got value, back to normal.
2757 *=* | --config-cache | -C | -disable-* | --disable-* \
2758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2760 | -with-* | --with-* | -without-* | --without-* | --x)
2761 case "$ac_configure_args0 " in
2762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2765 -* ) ac_must_keep_next=true ;;
2768 as_fn_append ac_configure_args " '$ac_arg'"
2773 { ac_configure_args0=; unset ac_configure_args0;}
2774 { ac_configure_args1=; unset ac_configure_args1;}
2776 # When interrupted or exit'd, cleanup temporary files, and complete
2777 # config.log. We remove comments because anyway the quotes in there
2778 # would cause problems or look ugly.
2779 # WARNING: Use '\'' to represent an apostrophe within the trap.
2780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2781 trap 'exit_status=$?
2782 # Save into config.log some information that might help in debugging.
2787 ## ---------------- ##
2788 ## Cache variables. ##
2789 ## ---------------- ##
2792 # The following way of writing the cache mishandles newlines in values,
2794 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2795 eval ac_val=\$$ac_var
2799 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2800 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2803 _ | IFS | as_nl) ;; #(
2804 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2805 *) { eval $ac_var=; unset $ac_var;} ;;
2810 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2811 *${as_nl}ac_space=\ *)
2813 "s/'\''/'\''\\\\'\'''\''/g;
2814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2825 ## ----------------- ##
2826 ## Output variables. ##
2827 ## ----------------- ##
2830 for ac_var in $ac_subst_vars
2832 eval ac_val=\$$ac_var
2834 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 $as_echo "$ac_var='\''$ac_val'\''"
2840 if test -n "$ac_subst_files"; then
2842 ## ------------------- ##
2843 ## File substitutions. ##
2844 ## ------------------- ##
2847 for ac_var in $ac_subst_files
2849 eval ac_val=\$$ac_var
2851 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2853 $as_echo "$ac_var='\''$ac_val'\''"
2858 if test -s confdefs.h; then
2868 test "$ac_signal" != 0 &&
2869 $as_echo "$as_me: caught signal $ac_signal"
2870 $as_echo "$as_me: exit $exit_status"
2872 rm -f core *.core core.conftest.* &&
2873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2876 for ac_signal in 1 2 13 15; do
2877 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2882 rm -f -r conftest* confdefs.h
2884 $as_echo "/* confdefs.h */" > confdefs.h
2886 # Predefined preprocessor variables.
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_NAME "$PACKAGE_NAME"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_STRING "$PACKAGE_STRING"
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_URL "$PACKAGE_URL"
2913 # Let the site file select an alternate cache file if it wants to.
2914 # Prefer an explicitly selected file to automatically selected ones.
2917 if test -n "$CONFIG_SITE"; then
2918 ac_site_file1=$CONFIG_SITE
2919 elif test "x$prefix" != xNONE; then
2920 ac_site_file1=$prefix/share/config.site
2921 ac_site_file2=$prefix/etc/config.site
2923 ac_site_file1=$ac_default_prefix/share/config.site
2924 ac_site_file2=$ac_default_prefix/etc/config.site
2926 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2928 test "x$ac_site_file" = xNONE && continue
2929 if test -r "$ac_site_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2931 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2932 sed 's/^/| /' "$ac_site_file" >&5
2937 if test -r "$cache_file"; then
2938 # Some versions of bash will fail to source /dev/null (special
2939 # files actually), so we avoid doing that.
2940 if test -f "$cache_file"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2942 $as_echo "$as_me: loading cache $cache_file" >&6;}
2944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2945 *) . "./$cache_file";;
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2950 $as_echo "$as_me: creating cache $cache_file" >&6;}
2954 # Check that the precious variables saved in the cache have kept the same
2956 ac_cache_corrupted=false
2957 for ac_var in $ac_precious_vars; do
2958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2959 eval ac_new_set=\$ac_env_${ac_var}_set
2960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2961 eval ac_new_val=\$ac_env_${ac_var}_value
2962 case $ac_old_set,$ac_new_set in
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2965 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2966 ac_cache_corrupted=: ;;
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2969 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2970 ac_cache_corrupted=: ;;
2973 if test "x$ac_old_val" != "x$ac_new_val"; then
2974 # differences in whitespace do not lead to failure.
2975 ac_old_val_w=`echo x
$ac_old_val`
2976 ac_new_val_w=`echo x
$ac_new_val`
2977 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2979 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2980 ac_cache_corrupted=:
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2983 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2984 eval $ac_var=\$ac_old_val
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2987 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2989 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2992 # Pass precious variables to config.status.
2993 if test "$ac_new_set" = set; then
2995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2996 *) ac_arg=$ac_var=$ac_new_val ;;
2998 case " $ac_configure_args " in
2999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3000 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3004 if $ac_cache_corrupted; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3008 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3009 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3011 ## -------------------- ##
3012 ## Main body of script. ##
3013 ## -------------------- ##
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3029 gcc_version=`cat $srcdir/BASE-VER
`
3031 # Determine the host, build, and target systems
3033 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3034 for ac_t in install-sh install.sh shtool; do
3035 if test -f "$ac_dir/$ac_t"; then
3037 ac_install_sh="$ac_aux_dir/$ac_t -c"
3042 if test -z "$ac_aux_dir"; then
3043 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3046 # These three variables are undocumented and unsupported,
3047 # and are intended to be withdrawn in a future Autoconf release.
3048 # They can cause serious problems if a builder's source tree is in a directory
3049 # whose full name contains unusual characters.
3050 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3051 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3052 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3055 # Make sure we can run config.sub.
3056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3057 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3060 $as_echo_n "checking build system type... " >&6; }
3061 if test "${ac_cv_build+set}" = set; then :
3062 $as_echo_n "(cached) " >&6
3064 ac_build_alias=$build_alias
3065 test "x$ac_build_alias" = x &&
3066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3067 test "x$ac_build_alias" = x &&
3068 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3069 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3070 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3074 $as_echo "$ac_cv_build" >&6; }
3075 case $ac_cv_build in
3077 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3080 ac_save_IFS=$IFS; IFS='-'
3086 # Remember, the first character of IFS is used to create $*,
3087 # except with old shells:
3090 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3094 $as_echo_n "checking host system type... " >&6; }
3095 if test "${ac_cv_host+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3098 if test "x$host_alias" = x; then
3099 ac_cv_host=$ac_cv_build
3101 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3102 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3107 $as_echo "$ac_cv_host" >&6; }
3110 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3113 ac_save_IFS=$IFS; IFS='-'
3119 # Remember, the first character of IFS is used to create $*,
3120 # except with old shells:
3123 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3127 $as_echo_n "checking target system type... " >&6; }
3128 if test "${ac_cv_target+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3131 if test "x$target_alias" = x; then
3132 ac_cv_target=$ac_cv_host
3134 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3135 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3140 $as_echo "$ac_cv_target" >&6; }
3141 case $ac_cv_target in
3143 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3145 target=$ac_cv_target
3146 ac_save_IFS=$IFS; IFS='-'
3152 # Remember, the first character of IFS is used to create $*,
3153 # except with old shells:
3156 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3159 # The aliases save the names the user supplied, while $host etc.
3160 # will get canonicalized.
3161 test -n "$target_alias" &&
3162 test "$program_prefix$program_suffix$program_transform_name" = \
3164 program_prefix=${target_alias}-
3166 # Determine the noncanonical target name, for directory use.
3167 case ${build_alias} in
3168 "") build_noncanonical=${build} ;;
3169 *) build_noncanonical=${build_alias} ;;
3172 case ${host_alias} in
3173 "") host_noncanonical=${build_noncanonical} ;;
3174 *) host_noncanonical=${host_alias} ;;
3177 case ${target_alias} in
3178 "") target_noncanonical=${host_noncanonical} ;;
3179 *) target_noncanonical=${target_alias} ;;
3185 # Determine the target- and build-specific subdirectories
3187 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3188 # have matching libraries, they should use host libraries: Makefile.tpl
3189 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3190 # However, they still use the build modules, because the corresponding
3191 # host modules (e.g. bison) are only built for the host when bootstrap
3193 # - build_subdir is where we find build modules, and never changes.
3194 # - build_libsubdir is where we find build libraries, and can be overridden.
3196 # Prefix 'build-' so this never conflicts with target_subdir.
3197 build_subdir="build-${build_noncanonical}"
3199 # Check whether --with-build-libsubdir was given.
3200 if test "${with_build_libsubdir+set}" = set; then :
3201 withval=$with_build_libsubdir; build_libsubdir="$withval"
3203 build_libsubdir="$build_subdir"
3206 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3207 if ( test $srcdir = . && test -d gcc ) \
3208 || test -d $srcdir/../host-${host_noncanonical}; then
3209 host_subdir="host-${host_noncanonical}"
3214 target_subdir=${target_noncanonical}
3217 # Set program_transform_name
3218 test "$program_prefix" != NONE &&
3219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3220 # Use a double $ so make ignores it.
3221 test "$program_suffix" != NONE &&
3222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3223 # Double any \ or $.
3224 # By default was `s
,x
,x
', remove it if useless.
3225 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3226 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3229 # Check for bogus environment variables.
3230 # Test if LIBRARY_PATH contains the notation for the current directory
3231 # since this would lead to problems installing/building glibc.
3232 # LIBRARY_PATH contains the current directory if one of the following
3234 # - one of the terminals (":" and ";") is the first or last sign
3235 # - two terminals occur directly after each other
3236 # - the path contains an element with a dot in it
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3238 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3239 case ${LIBRARY_PATH} in
3240 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3241 library_path_setting="contains current directory"
3244 library_path_setting="ok"
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3248 $as_echo "$library_path_setting" >&6; }
3249 if test "$library_path_setting" != "ok"; then
3251 *** LIBRARY_PATH shouldn't contain the current directory when
3252 *** building gcc. Please change the environment variable
3253 *** and run configure again.
" "$LINENO" 5
3256 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3257 # since this would lead to problems installing/building glibc.
3258 # GCC_EXEC_PREFIX contains the current directory if one of the following
3260 # - one of the terminals (":" and ";") is the first or last sign
3261 # - two terminals occur directly after each other
3262 # - the path contains an element with a dot in it
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3264 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3265 case ${GCC_EXEC_PREFIX} in
3266 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3267 gcc_exec_prefix_setting="contains current directory
"
3270 gcc_exec_prefix_setting="ok
"
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3274 $as_echo "$gcc_exec_prefix_setting" >&6; }
3275 if test "$gcc_exec_prefix_setting" != "ok
"; then
3277 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3278 *** building gcc. Please change the environment variable
3279 *** and run configure again." "$LINENO" 5
3286 # Specify the local prefix
3289 # Check whether --with-local-prefix was given.
3290 if test "${with_local_prefix+set}" = set; then :
3291 withval=$with_local_prefix; case "${withval}" in
3292 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3294 *) local_prefix=$with_local_prefix ;;
3299 # Default local prefix if it is empty
3300 if test x$local_prefix = x; then
3301 local_prefix=/usr/local
3304 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3305 # passed in by the toplevel make and thus we'd get different behavior
3306 # depending on where we built the sources.
3307 gcc_gxx_include_dir
=
3308 # Specify the g++ header file directory
3310 # Check whether --with-gxx-include-dir was given.
3311 if test "${with_gxx_include_dir+set}" = set; then :
3312 withval
=$with_gxx_include_dir; case "${withval}" in
3313 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3315 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3320 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3321 if test x
${gcc_gxx_include_dir} = x
; then
3322 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3323 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3325 libstdcxx_incdir
='include/c++/$(version)'
3326 if test x
$host != x
$target; then
3327 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3329 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3333 gcc_gxx_include_dir_add_sysroot
=0
3334 if test "${with_sysroot+set}" = set; then
3335 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3336 if test "${gcc_gxx_without_sysroot}"; then
3337 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3338 gcc_gxx_include_dir_add_sysroot
=1
3343 # Check whether --with-cpp_install_dir was given.
3344 if test "${with_cpp_install_dir+set}" = set; then :
3345 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3346 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3347 elif test x
$withval != xno
; then
3348 cpp_install_dir
=$withval
3353 # We would like to our source tree to be readonly. However when releases or
3354 # pre-releases are generated, the flex/bison generated files as well as the
3355 # various formats of manuals need to be included along with the rest of the
3356 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3360 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3361 # Check whether --enable-generated-files-in-srcdir was given.
3362 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3363 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3365 generated_files_in_srcdir
=no
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3370 $as_echo "$generated_files_in_srcdir" >&6; }
3372 if test "$generated_files_in_srcdir" = "yes"; then
3379 # -------------------
3380 # Find default linker
3381 # -------------------
3385 # Check whether --with-gnu-ld was given.
3386 if test "${with_gnu_ld+set}" = set; then :
3387 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3393 # With pre-defined ld
3395 # Check whether --with-ld was given.
3396 if test "${with_ld+set}" = set; then :
3397 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3400 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3401 if test ! -x "$DEFAULT_LINKER"; then
3402 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3403 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3407 cat >>confdefs.h
<<_ACEOF
3408 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3414 $as_echo_n "checking whether a default linker was specified... " >&6; }
3415 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3416 if test x
"$gnu_ld_flag" = x
"no"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3421 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3428 # With demangler in GNU ld
3430 # Check whether --with-demangler-in-ld was given.
3431 if test "${with_demangler_in_ld+set}" = set; then :
3432 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3438 # ----------------------
3439 # Find default assembler
3440 # ----------------------
3444 # Check whether --with-gnu-as was given.
3445 if test "${with_gnu_as+set}" = set; then :
3446 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3453 # Check whether --with-as was given.
3454 if test "${with_as+set}" = set; then :
3455 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3458 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3459 if test ! -x "$DEFAULT_ASSEMBLER"; then
3460 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3461 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3465 cat >>confdefs.h
<<_ACEOF
3466 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3472 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3473 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3474 if test x
"$gas_flag" = x
"no"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3479 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3490 # If a non-executable a.out is present (e.g. created by GNU as above even if
3491 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3492 # file, even when creating an executable, so an execution test fails.
3493 # Remove possible default executable files to avoid this.
3495 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3496 # Autoconf includes it.
3497 rm -f a.out a.exe b.out
3499 # Find the native compiler
3501 ac_cpp
='$CPP $CPPFLAGS'
3502 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3507 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC
="$CC" # Let the user override the test.
3516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir
=.
3521 for ac_exec_ext
in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3544 if test -z "$ac_cv_prog_CC"; then
3546 # Extract the first word of "gcc", so it can be a program name with args.
3547 set dummy gcc
; ac_word
=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3553 if test -n "$ac_ct_CC"; then
3554 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir
=.
3561 for ac_exec_ext
in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_ac_ct_CC
="gcc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3574 if test -n "$ac_ct_CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3576 $as_echo "$ac_ct_CC" >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3582 if test "x$ac_ct_CC" = x
; then
3585 case $cross_compiling:$ac_tool_warned in
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned
=yes ;;
3597 if test -z "$CC"; then
3598 if test -n "$ac_tool_prefix"; then
3599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3600 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_CC+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC
="$CC" # Let the user override the test.
3609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3613 test -z "$as_dir" && as_dir
=.
3614 for ac_exec_ext
in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 if test -n "$CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629 $as_echo "$CC" >&6; }
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3638 if test -z "$CC"; then
3639 # Extract the first word of "cc", so it can be a program name with args.
3640 set dummy cc
; ac_word
=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if test "${ac_cv_prog_CC+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC
="$CC" # Let the user override the test.
3650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3654 test -z "$as_dir" && as_dir
=.
3655 for ac_exec_ext
in '' $ac_executable_extensions; do
3656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3658 ac_prog_rejected
=yes
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 if test $ac_prog_rejected = yes; then
3670 # We found a bogon in the path, so make sure we never use it.
3671 set dummy
$ac_cv_prog_CC
3673 if test $# != 0; then
3674 # We chose a different compiler from the bogus one.
3675 # However, it has the same basename, so the bogon will be chosen
3676 # first if we set CC to just the basename; use the full file name.
3678 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3684 if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 $as_echo "$CC" >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3694 if test -z "$CC"; then
3695 if test -n "$ac_tool_prefix"; then
3696 for ac_prog
in cl.exe
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test "${ac_cv_prog_CC+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3705 if test -n "$CC"; then
3706 ac_cv_prog_CC
="$CC" # Let the user override the test.
3708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3712 test -z "$as_dir" && as_dir
=.
3713 for ac_exec_ext
in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3735 test -n "$CC" && break
3738 if test -z "$CC"; then
3740 for ac_prog
in cl.exe
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy
$ac_prog; ac_word
=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3749 if test -n "$ac_ct_CC"; then
3750 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir
=.
3757 for ac_exec_ext
in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_ac_ct_CC
="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3770 if test -n "$ac_ct_CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772 $as_echo "$ac_ct_CC" >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3779 test -n "$ac_ct_CC" && break
3782 if test "x$ac_ct_CC" = x
; then
3785 case $cross_compiling:$ac_tool_warned in
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned
=yes ;;
3798 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error
"no acceptable C compiler found in \$PATH
3801 See \`config.log' for more details." "$LINENO" 5; }
3803 # Provide some information about the compiler.
3804 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3807 for ac_option
in --version -v -V -qversion; do
3808 { { ac_try
="$ac_compiler $ac_option >&5"
3810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3817 if test -s conftest.err; then
3819 ... rest of stderr output deleted ...
3820 10q' conftest.err >conftest.er1
3821 cat conftest.er1 >&5
3822 rm -f conftest.er1 conftest.err
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3839 ac_clean_files_save=$ac_clean_files
3840 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3841 # Try to create an executable without -o first, disregard a.out.
3842 # It will help us diagnose broken compilers, and finding out an intuition
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3845 $as_echo_n "checking for C compiler default output file name... " >&6; }
3846 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3848 # The possible output files:
3849 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3852 for ac_file in $ac_files
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3856 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3861 if { { ac_try="$ac_link_default"
3863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3864 *) ac_try_echo
=$ac_try;;
3866 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_link_default") 2>&5
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; then :
3872 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3873 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3874 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3875 # so that the user can short-circuit this test for compilers unknown to
3877 for ac_file
in $ac_files ''
3879 test -f "$ac_file" ||
continue
3881 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3884 # We found the default executable, but exeext='' is most
3888 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3890 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892 # We set ac_cv_exeext here because the later test for it is not
3893 # safe: cross compilers may not add the suffix if given an `-o'
3894 # argument, so we may need to know it at that point already.
3895 # Even if this section looks crufty: it has the advantage of
3902 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3908 $as_echo "$ac_file" >&6; }
3909 if test -z "$ac_file"; then :
3910 $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.
$ac_ext >&5
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 { as_fn_set_status
77
3916 as_fn_error
"C compiler cannot create executables
3917 See \`config.log' for more details." "$LINENO" 5; }; }
3919 ac_exeext
=$ac_cv_exeext
3921 # Check that the compiler produces executables we can run. If not, either
3922 # the compiler is broken, or we cross compile.
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3924 $as_echo_n "checking whether the C compiler works... " >&6; }
3925 # If not cross compiling, check that we can run a simple program.
3926 if test "$cross_compiling" != yes; then
3927 if { ac_try
='./$ac_file'
3928 { { case "(($ac_try" in
3929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934 (eval "$ac_try") 2>&5
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }; }; then
3940 if test "$cross_compiling" = maybe; then
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error "cannot run C compiled programs.
3946 If you meant to cross compile
, use \
`--host'.
3947 See \`config.log
' for more details." "$LINENO" 5; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3952 $as_echo "yes" >&6; }
3954 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3955 ac_clean_files=$ac_clean_files_save
3956 # Check that the compiler produces executables we can run. If not, either
3957 # the compiler is broken, or we cross compile.
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3959 $as_echo_n "checking whether we are cross compiling... " >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3961 $as_echo "$cross_compiling" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3964 $as_echo_n "checking for suffix of executables... " >&6; }
3965 if { { ac_try="$ac_link"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3977 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3978 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3980 for ac_file
in conftest.exe conftest conftest.
*; do
3981 test -f "$ac_file" ||
continue
3983 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3984 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3993 See \`config.log' for more details." "$LINENO" 5; }
3995 rm -f conftest
$ac_cv_exeext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3997 $as_echo "$ac_cv_exeext" >&6; }
3999 rm -f conftest.
$ac_ext
4000 EXEEXT
=$ac_cv_exeext
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4003 $as_echo_n "checking for suffix of object files... " >&6; }
4004 if test "${ac_cv_objext+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4018 rm -f conftest.o conftest.obj
4019 if { { ac_try
="$ac_compile"
4021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compile") 2>&5
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }; then :
4030 for ac_file in conftest.o conftest.obj conftest.*; do
4031 test -f "$ac_file" || continue;
4033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4039 $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error "cannot compute suffix of object files
: cannot compile
4045 See \
`config.log' for more details." "$LINENO" 5; }
4047 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4050 $as_echo "$ac_cv_objext" >&6; }
4051 OBJEXT=$ac_cv_objext
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4054 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4055 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4056 $as_echo_n "(cached) " >&6
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4072 if ac_fn_c_try_compile "$LINENO"; then :
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4082 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4083 if test $ac_compiler_gnu = yes; then
4088 ac_test_CFLAGS=${CFLAGS+set}
4089 ac_save_CFLAGS=$CFLAGS
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4091 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4092 if test "${ac_cv_prog_cc_g+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4095 ac_save_c_werror_flag=$ac_c_werror_flag
4096 ac_c_werror_flag=yes
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4110 if ac_fn_c_try_compile "$LINENO"; then :
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4125 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_c_werror_flag=$ac_save_c_werror_flag
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4141 if ac_fn_c_try_compile "$LINENO"; then :
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4152 $as_echo "$ac_cv_prog_cc_g" >&6; }
4153 if test "$ac_test_CFLAGS" = set; then
4154 CFLAGS=$ac_save_CFLAGS
4155 elif test $ac_cv_prog_cc_g = yes; then
4156 if test "$GCC" = yes; then
4162 if test "$GCC" = yes; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4169 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4170 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4173 ac_cv_prog_cc_c89=no
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4179 #include <sys/types.h>
4180 #include <sys/stat.h>
4181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4182 struct buf { int x; };
4183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4184 static char *e (p, i)
4190 static char *f (char * (*g) (char **, int), char **p, ...)
4195 s = g (p, va_arg (v,int));
4200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4201 function prototypes and stuff, but not '\xHH' hex character constants.
4202 These don't provoke an error unfortunately, instead are silently treated
4203 as 'x'. The following induces an error, until -std is added to get
4204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4205 array size at least. It's necessary to write '\x00'==0 to get something
4206 that's true only with -std. */
4207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4210 inside strings and character constants. */
4212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4214 int test (int i, double x);
4215 struct s1 {int (*f) (int a);};
4216 struct s2 {int (*f) (double a);};
4217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4231 CC="$ac_save_CC $ac_arg"
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_prog_cc_c89=$ac_arg
4235 rm -f core conftest.err conftest.$ac_objext
4236 test "x$ac_cv_prog_cc_c89" != "xno" && break
4238 rm -f conftest.$ac_ext
4243 case "x$ac_cv_prog_cc_c89" in
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246 $as_echo "none needed" >&6; } ;;
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249 $as_echo "unsupported" >&6; } ;;
4251 CC="$CC $ac_cv_prog_cc_c89"
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4253 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4255 if test "x$ac_cv_prog_cc_c89" != xno; then :
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265 if test "x$CC" != xcc; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4267 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4270 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4272 set dummy $CC; ac_cc=`$as_echo "$2" |
4273 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4274 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4275 $as_echo_n "(cached) " >&6
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4288 # Make sure it works both with $CC and with simple cc.
4289 # We do the test twice because some compilers refuse to overwrite an
4290 # existing .o file with -o, though they will create one.
4291 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4293 if { { case "(($ac_try" in
4294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4295 *) ac_try_echo
=$ac_try;;
4297 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_try") 2>&5
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; } &&
4303 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_try") 2>&5
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; };
4314 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4315 if test "x$CC" != xcc; then
4316 # Test first that cc exists at all.
4317 if { ac_try='cc -c conftest.$ac_ext >&5'
4318 { { case "(($ac_try" in
4319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4320 *) ac_try_echo
=$ac_try;;
4322 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; }; then
4328 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4330 if { { case "(($ac_try" in
4331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; } &&
4340 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4342 *) ac_try_echo
=$ac_try;;
4344 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 $as_echo "$ac_try_echo"; } >&5
4346 (eval "$ac_try") 2>&5
4348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349 test $ac_status = 0; };
4354 # cc exists but doesn't like -o.
4355 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4360 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4362 rm -f core conftest
*
4365 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4372 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4376 # expand $ac_aux_dir to an absolute path
4377 am_aux_dir
=`cd $ac_aux_dir && pwd`
4379 # FIXME: we rely on the cache variable name because
4380 # there is no other way.
4382 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4383 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4384 if test "$am_t" != yes; then
4385 # Losing compiler, so override with the script.
4386 # FIXME: It is wrong to rewrite CC.
4387 # But if we don't then we get into trouble of one sort or another.
4388 # A longer-term fix would be to have automake use am__CC in this case,
4389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4390 CC
="$am_aux_dir/compile $CC"
4395 ac_cpp
='$CXXCPP $CPPFLAGS'
4396 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4399 if test -z "$CXX"; then
4400 if test -n "$CCC"; then
4403 if test -n "$ac_tool_prefix"; then
4404 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4407 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if test "${ac_cv_prog_CXX+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4413 if test -n "$CXX"; then
4414 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4420 test -z "$as_dir" && as_dir
=.
4421 for ac_exec_ext
in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 if test -n "$CXX"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4436 $as_echo "$CXX" >&6; }
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4443 test -n "$CXX" && break
4446 if test -z "$CXX"; then
4448 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy
$ac_prog; ac_word
=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4455 $as_echo_n "(cached) " >&6
4457 if test -n "$ac_ct_CXX"; then
4458 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4464 test -z "$as_dir" && as_dir
=.
4465 for ac_exec_ext
in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4478 if test -n "$ac_ct_CXX"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4480 $as_echo "$ac_ct_CXX" >&6; }
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4487 test -n "$ac_ct_CXX" && break
4490 if test "x$ac_ct_CXX" = x
; then
4493 case $cross_compiling:$ac_tool_warned in
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned
=yes ;;
4505 # Provide some information about the compiler.
4506 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4509 for ac_option
in --version -v -V -qversion; do
4510 { { ac_try
="$ac_compiler $ac_option >&5"
4512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4519 if test -s conftest.err; then
4521 ... rest of stderr output deleted ...
4522 10q' conftest.err >conftest.er1
4523 cat conftest.er1 >&5
4524 rm -f conftest.er1 conftest.err
4526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4527 test $ac_status = 0; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4531 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4532 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4549 if ac_fn_cxx_try_compile "$LINENO"; then :
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4559 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4560 if test $ac_compiler_gnu = yes; then
4565 ac_test_CXXFLAGS=${CXXFLAGS+set}
4566 ac_save_CXXFLAGS=$CXXFLAGS
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4568 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4569 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4572 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4573 ac_cxx_werror_flag=yes
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4587 if ac_fn_cxx_try_compile "$LINENO"; then :
4588 ac_cv_prog_cxx_g=yes
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4602 if ac_fn_cxx_try_compile "$LINENO"; then :
4605 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4618 if ac_fn_cxx_try_compile "$LINENO"; then :
4619 ac_cv_prog_cxx_g=yes
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4629 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4630 if test "$ac_test_CXXFLAGS" = set; then
4631 CXXFLAGS=$ac_save_CXXFLAGS
4632 elif test $ac_cv_prog_cxx_g = yes; then
4633 if test "$GXX" = yes; then
4639 if test "$GXX" = yes; then
4646 ac_cpp='$CPP $CPPFLAGS'
4647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4654 if test -n "$ac_tool_prefix"; then
4655 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4656 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4662 if test -n "$GNATBIND"; then
4663 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 GNATBIND=$ac_cv_prog_GNATBIND
4683 if test -n "$GNATBIND"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4685 $as_echo "$GNATBIND" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4693 if test -z "$ac_cv_prog_GNATBIND"; then
4694 ac_ct_GNATBIND=$GNATBIND
4695 # Extract the first word of "gnatbind", so it can be a program name with args.
4696 set dummy gnatbind; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4702 if test -n "$ac_ct_GNATBIND"; then
4703 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4723 if test -n "$ac_ct_GNATBIND"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4725 $as_echo "$ac_ct_GNATBIND" >&6; }
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4731 if test "x$ac_ct_GNATBIND" = x; then
4734 case $cross_compiling:$ac_tool_warned in
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4740 GNATBIND=$ac_ct_GNATBIND
4743 GNATBIND="$ac_cv_prog_GNATBIND"
4746 if test -n "$ac_tool_prefix"; then
4747 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4748 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4754 if test -n "$GNATMAKE"; then
4755 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 GNATMAKE=$ac_cv_prog_GNATMAKE
4775 if test -n "$GNATMAKE"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4777 $as_echo "$GNATMAKE" >&6; }
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4785 if test -z "$ac_cv_prog_GNATMAKE"; then
4786 ac_ct_GNATMAKE=$GNATMAKE
4787 # Extract the first word of "gnatmake", so it can be a program name with args.
4788 set dummy gnatmake; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4794 if test -n "$ac_ct_GNATMAKE"; then
4795 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4815 if test -n "$ac_ct_GNATMAKE"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4817 $as_echo "$ac_ct_GNATMAKE" >&6; }
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4823 if test "x$ac_ct_GNATMAKE" = x; then
4826 case $cross_compiling:$ac_tool_warned in
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4830 ac_tool_warned=yes ;;
4832 GNATMAKE=$ac_ct_GNATMAKE
4835 GNATMAKE="$ac_cv_prog_GNATMAKE"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4839 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4840 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4843 cat >conftest.adb <<EOF
4844 procedure conftest is begin null; end conftest;
4846 acx_cv_cc_gcc_supports_ada=no
4847 # There is a bug in old released versions of GCC which causes the
4848 # driver to exit successfully when the appropriate language module
4849 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4850 # Therefore we must check for the error message as well as an
4851 # unsuccessful exit.
4852 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4853 # given a .adb file, but produce no object file. So we must check
4854 # if an object file was really produced to guard against this.
4855 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4856 if test x"$errors" = x && test -f conftest.$ac_objext; then
4857 acx_cv_cc_gcc_supports_ada=yes
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4862 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4864 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4871 # autoconf is lame and doesn't give us any substitution variable for this.
4872 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4873 NO_MINUS_C_MINUS_O=yes
4875 OUTPUT_OPTION='-o $@'
4880 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4881 # optimizations to be activated explicitly by the toplevel.
4883 */prev-gcc/xgcc*) ;;
4884 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4885 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4890 # Determine PICFLAG for target gnatlib.
4896 # PIC is the default on some targets or must not be used.
4898 # PIC is the default on this platform
4899 # Common symbols not allowed in MH_DYLIB files
4900 PICFLAG_FOR_TARGET=-fno-common
4903 # PIC is the default.
4906 # PIC is the default for 64-bit PA HP-UX.
4908 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4910 i[34567]86-*-interix[3-9]*)
4911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4912 # Instead, we relocate shared libraries at runtime.
4914 i[34567]86-*-nto-qnx*)
4915 # QNX uses GNU C++, but need to define -shared option too, otherwise
4917 PICFLAG_FOR_TARGET='-fPIC -shared'
4919 i[34567]86-pc-msdosdjgpp*)
4920 # DJGPP does not support shared libraries at all.
4923 # On IA64 HP-UX, PIC is the default but the pic flag
4924 # sets the default TLS model and affects inlining.
4925 PICFLAG_FOR_TARGET=-fPIC
4928 # PIC is the default.
4930 rs6000-ibm-aix* | powerpc-ibm-aix*)
4931 # All AIX code is PIC.
4934 # Some targets support both -fPIC and -fpic, but prefer the latter.
4936 i[34567]86-*-* | x86_64-*-*)
4937 PICFLAG_FOR_TARGET=-fpic
4940 PICFLAG_FOR_TARGET=-fpic
4942 # FIXME: Override -fPIC default in libgcc only?
4943 sh-*-linux* | sh[2346lbe]*-*-linux*)
4944 PICFLAG_FOR_TARGET=-fpic
4946 # FIXME: Simplify to sh*-*-netbsd*?
4947 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4948 sh64-*-netbsd* | sh64l*-*-netbsd*)
4949 PICFLAG_FOR_TARGET=-fpic
4951 # Default to -fPIC unless specified otherwise.
4953 PICFLAG_FOR_TARGET=-fPIC
4957 # If the user explicitly uses -fpic/-fPIC, keep that.
4958 case "${CFLAGS_FOR_TARGET}" in
4960 PICFLAG_FOR_TARGET=-fpic
4963 PICFLAG_FOR_TARGET=-fPIC
4969 # -------------------------
4970 # Check C compiler features
4971 # -------------------------
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4980 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4981 # On Suns, sometimes $CPP names a directory.
4982 if test -n "$CPP" && test -d "$CPP"; then
4985 if test -z "$CPP"; then
4986 if test "${ac_cv_prog_CPP+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4989 # Double quotes because CPP needs to be expanded
4990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4993 for ac_c_preproc_warn_flag in '' yes
4995 # Use a header file that comes with gcc, so configuring glibc
4996 # with a fresh cross-compiler works.
4997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998 # <limits.h> exists even on freestanding compilers.
4999 # On the NeXT, cc -E runs the code through the compiler's parser,
5000 # not just through cpp. "Syntax error" is here to catch this case.
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5004 # include <limits.h>
5006 # include <assert.h>
5010 if ac_fn_c_try_cpp "$LINENO"; then :
5013 # Broken: fails on valid input.
5016 rm -f conftest.err conftest.$ac_ext
5018 # OK, works on sane cases. Now check whether nonexistent headers
5019 # can be detected and how.
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022 #include <ac_nonexistent.h>
5024 if ac_fn_c_try_cpp "$LINENO"; then :
5025 # Broken: success on invalid input.
5028 # Passes both tests.
5032 rm -f conftest.err conftest.$ac_ext
5035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036 rm -f conftest.err conftest.
$ac_ext
5037 if $ac_preproc_ok; then :
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5050 $as_echo "$CPP" >&6; }
5052 for ac_c_preproc_warn_flag
in '' yes
5054 # Use a header file that comes with gcc, so configuring glibc
5055 # with a fresh cross-compiler works.
5056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 # <limits.h> exists even on freestanding compilers.
5058 # On the NeXT, cc -E runs the code through the compiler's parser,
5059 # not just through cpp. "Syntax error" is here to catch this case.
5060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5063 # include <limits.h>
5065 # include <assert.h>
5069 if ac_fn_c_try_cpp
"$LINENO"; then :
5072 # Broken: fails on valid input.
5075 rm -f conftest.err conftest.
$ac_ext
5077 # OK, works on sane cases. Now check whether nonexistent headers
5078 # can be detected and how.
5079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #include <ac_nonexistent.h>
5083 if ac_fn_c_try_cpp
"$LINENO"; then :
5084 # Broken: success on invalid input.
5087 # Passes both tests.
5091 rm -f conftest.err conftest.
$ac_ext
5094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095 rm -f conftest.err conftest.
$ac_ext
5096 if $ac_preproc_ok; then :
5099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5102 See \`config.log' for more details." "$LINENO" 5; }
5106 ac_cpp
='$CPP $CPPFLAGS'
5107 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5113 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5114 if test "${ac_cv_path_GREP+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5117 if test -z "$GREP"; then
5118 ac_path_GREP_found
=false
5119 # Loop through the user's path and test for each of PROGNAME-LIST
5120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5121 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5124 test -z "$as_dir" && as_dir
=.
5125 for ac_prog
in grep ggrep
; do
5126 for ac_exec_ext
in '' $ac_executable_extensions; do
5127 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5128 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5129 # Check for GNU ac_path_GREP and select it if it is found.
5130 # Check for GNU $ac_path_GREP
5131 case `"$ac_path_GREP" --version 2>&1` in
5133 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5136 $as_echo_n 0123456789 >"conftest.in"
5139 cat "conftest.in" "conftest.in" >"conftest.tmp"
5140 mv "conftest.tmp" "conftest.in"
5141 cp "conftest.in" "conftest.nl"
5142 $as_echo 'GREP' >> "conftest.nl"
5143 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5144 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5145 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5146 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5147 # Best one so far, save it but keep looking for a better one
5148 ac_cv_path_GREP
="$ac_path_GREP"
5149 ac_path_GREP_max
=$ac_count
5151 # 10*(2^10) chars as input seems more than enough
5152 test $ac_count -gt 10 && break
5154 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5157 $ac_path_GREP_found && break 3
5162 if test -z "$ac_cv_path_GREP"; then
5163 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5166 ac_cv_path_GREP
=$GREP
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5171 $as_echo "$ac_cv_path_GREP" >&6; }
5172 GREP
="$ac_cv_path_GREP"
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5176 $as_echo_n "checking for egrep... " >&6; }
5177 if test "${ac_cv_path_EGREP+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5180 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5181 then ac_cv_path_EGREP
="$GREP -E"
5183 if test -z "$EGREP"; then
5184 ac_path_EGREP_found
=false
5185 # Loop through the user's path and test for each of PROGNAME-LIST
5186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5187 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5190 test -z "$as_dir" && as_dir
=.
5191 for ac_prog
in egrep; do
5192 for ac_exec_ext
in '' $ac_executable_extensions; do
5193 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5194 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5195 # Check for GNU ac_path_EGREP and select it if it is found.
5196 # Check for GNU $ac_path_EGREP
5197 case `"$ac_path_EGREP" --version 2>&1` in
5199 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5202 $as_echo_n 0123456789 >"conftest.in"
5205 cat "conftest.in" "conftest.in" >"conftest.tmp"
5206 mv "conftest.tmp" "conftest.in"
5207 cp "conftest.in" "conftest.nl"
5208 $as_echo 'EGREP' >> "conftest.nl"
5209 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5210 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5211 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5212 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5213 # Best one so far, save it but keep looking for a better one
5214 ac_cv_path_EGREP
="$ac_path_EGREP"
5215 ac_path_EGREP_max
=$ac_count
5217 # 10*(2^10) chars as input seems more than enough
5218 test $ac_count -gt 10 && break
5220 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5223 $ac_path_EGREP_found && break 3
5228 if test -z "$ac_cv_path_EGREP"; then
5229 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5232 ac_cv_path_EGREP
=$EGREP
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5238 $as_echo "$ac_cv_path_EGREP" >&6; }
5239 EGREP
="$ac_cv_path_EGREP"
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5243 $as_echo_n "checking for ANSI C header files... " >&6; }
5244 if test "${ac_cv_header_stdc+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5262 if ac_fn_c_try_compile
"$LINENO"; then :
5263 ac_cv_header_stdc
=yes
5265 ac_cv_header_stdc
=no
5267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5269 if test $ac_cv_header_stdc = yes; then
5270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277 $EGREP "memchr" >/dev
/null
2>&1; then :
5280 ac_cv_header_stdc
=no
5286 if test $ac_cv_header_stdc = yes; then
5287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 $EGREP "free" >/dev
/null
2>&1; then :
5297 ac_cv_header_stdc
=no
5303 if test $ac_cv_header_stdc = yes; then
5304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5305 if test "$cross_compiling" = yes; then :
5308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5312 #if ((' ' & 0x0FF) == 0x020)
5313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5316 # define ISLOWER(c) \
5317 (('a' <= (c) && (c) <= 'i') \
5318 || ('j' <= (c) && (c) <= 'r') \
5319 || ('s' <= (c) && (c) <= 'z'))
5320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5328 for (i = 0; i < 256; i++)
5329 if (XOR (islower (i), ISLOWER (i))
5330 || toupper (i) != TOUPPER (i))
5335 if ac_fn_c_try_run
"$LINENO"; then :
5338 ac_cv_header_stdc
=no
5340 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5341 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5347 $as_echo "$ac_cv_header_stdc" >&6; }
5348 if test $ac_cv_header_stdc = yes; then
5350 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5355 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5356 inttypes.h stdint.h unistd.h
5358 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5359 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5361 eval as_val
=\$
$as_ac_Header
5362 if test "x$as_val" = x
""yes; then :
5363 cat >>confdefs.h
<<_ACEOF
5364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5373 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5374 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5381 if test "$MINIX" = yes; then
5383 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5386 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5389 $as_echo "#define _MINIX 1" >>confdefs.h
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5395 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5396 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5402 # define __EXTENSIONS__ 1
5403 $ac_includes_default
5412 if ac_fn_c_try_compile
"$LINENO"; then :
5413 ac_cv_safe_to_define___extensions__
=yes
5415 ac_cv_safe_to_define___extensions__
=no
5417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5420 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5421 test $ac_cv_safe_to_define___extensions__ = yes &&
5422 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5424 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5426 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5428 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5430 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5434 ac_cpp
='$CPP $CPPFLAGS'
5435 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5439 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5440 # On Suns, sometimes $CPP names a directory.
5441 if test -n "$CPP" && test -d "$CPP"; then
5444 if test -z "$CPP"; then
5445 if test "${ac_cv_prog_CPP+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5448 # Double quotes because CPP needs to be expanded
5449 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5452 for ac_c_preproc_warn_flag
in '' yes
5454 # Use a header file that comes with gcc, so configuring glibc
5455 # with a fresh cross-compiler works.
5456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5457 # <limits.h> exists even on freestanding compilers.
5458 # On the NeXT, cc -E runs the code through the compiler's parser,
5459 # not just through cpp. "Syntax error" is here to catch this case.
5460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5463 # include <limits.h>
5465 # include <assert.h>
5469 if ac_fn_c_try_cpp
"$LINENO"; then :
5472 # Broken: fails on valid input.
5475 rm -f conftest.err conftest.
$ac_ext
5477 # OK, works on sane cases. Now check whether nonexistent headers
5478 # can be detected and how.
5479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 #include <ac_nonexistent.h>
5483 if ac_fn_c_try_cpp
"$LINENO"; then :
5484 # Broken: success on invalid input.
5487 # Passes both tests.
5491 rm -f conftest.err conftest.
$ac_ext
5494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5495 rm -f conftest.err conftest.
$ac_ext
5496 if $ac_preproc_ok; then :
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5509 $as_echo "$CPP" >&6; }
5511 for ac_c_preproc_warn_flag
in '' yes
5513 # Use a header file that comes with gcc, so configuring glibc
5514 # with a fresh cross-compiler works.
5515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 # <limits.h> exists even on freestanding compilers.
5517 # On the NeXT, cc -E runs the code through the compiler's parser,
5518 # not just through cpp. "Syntax error" is here to catch this case.
5519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5522 # include <limits.h>
5524 # include <assert.h>
5528 if ac_fn_c_try_cpp
"$LINENO"; then :
5531 # Broken: fails on valid input.
5534 rm -f conftest.err conftest.
$ac_ext
5536 # OK, works on sane cases. Now check whether nonexistent headers
5537 # can be detected and how.
5538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <ac_nonexistent.h>
5542 if ac_fn_c_try_cpp
"$LINENO"; then :
5543 # Broken: success on invalid input.
5546 # Passes both tests.
5550 rm -f conftest.err conftest.
$ac_ext
5553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5554 rm -f conftest.err conftest.
$ac_ext
5555 if $ac_preproc_ok; then :
5558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5560 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5561 See \`config.log' for more details." "$LINENO" 5; }
5565 ac_cpp
='$CPP $CPPFLAGS'
5566 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5571 $as_echo_n "checking for inline... " >&6; }
5572 if test "${ac_cv_c_inline+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5576 for ac_kw
in inline __inline__ __inline
; do
5577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5581 static $ac_kw foo_t static_foo () {return 0; }
5582 $ac_kw foo_t foo () {return 0; }
5586 if ac_fn_c_try_compile
"$LINENO"; then :
5587 ac_cv_c_inline
=$ac_kw
5589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5590 test "$ac_cv_c_inline" != no
&& break
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5595 $as_echo "$ac_cv_c_inline" >&6; }
5597 case $ac_cv_c_inline in
5600 case $ac_cv_c_inline in
5602 *) ac_val
=$ac_cv_c_inline;;
5604 cat >>confdefs.h
<<_ACEOF
5606 #define inline $ac_val
5613 # Check whether --enable-largefile was given.
5614 if test "${enable_largefile+set}" = set; then :
5615 enableval
=$enable_largefile;
5618 if test "$enable_largefile" != no
; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5621 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5622 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5625 ac_cv_sys_largefile_CC
=no
5626 if test "$GCC" != yes; then
5629 # IRIX 6.2 and later do not support large files by default,
5630 # so use the C compiler's -n32 option if that helps.
5631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #include <sys/types.h>
5634 /* Check that off_t can represent 2**63 - 1 correctly.
5635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5636 since some C++ compilers masquerading as C compilers
5637 incorrectly reject 9223372036854775807. */
5638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5640 && LARGE_OFF_T % 2147483647 == 1)
5650 if ac_fn_c_try_compile
"$LINENO"; then :
5653 rm -f core conftest.err conftest.
$ac_objext
5655 if ac_fn_c_try_compile
"$LINENO"; then :
5656 ac_cv_sys_largefile_CC
=' -n32'; break
5658 rm -f core conftest.err conftest.
$ac_objext
5662 rm -f conftest.
$ac_ext
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5666 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5667 if test "$ac_cv_sys_largefile_CC" != no
; then
5668 CC
=$CC$ac_cv_sys_largefile_CC
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5672 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5673 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 #include <sys/types.h>
5680 /* Check that off_t can represent 2**63 - 1 correctly.
5681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5682 since some C++ compilers masquerading as C compilers
5683 incorrectly reject 9223372036854775807. */
5684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5686 && LARGE_OFF_T % 2147483647 == 1)
5696 if ac_fn_c_try_compile
"$LINENO"; then :
5697 ac_cv_sys_file_offset_bits
=no
; break
5699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 #define _FILE_OFFSET_BITS 64
5703 #include <sys/types.h>
5704 /* Check that off_t can represent 2**63 - 1 correctly.
5705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706 since some C++ compilers masquerading as C compilers
5707 incorrectly reject 9223372036854775807. */
5708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5710 && LARGE_OFF_T % 2147483647 == 1)
5720 if ac_fn_c_try_compile
"$LINENO"; then :
5721 ac_cv_sys_file_offset_bits
=64; break
5723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5724 ac_cv_sys_file_offset_bits
=unknown
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5729 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5730 case $ac_cv_sys_file_offset_bits in #(
5733 cat >>confdefs.h
<<_ACEOF
5734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5739 if test $ac_cv_sys_file_offset_bits = unknown
; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5741 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5742 if test "${ac_cv_sys_large_files+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 /* Check that off_t can represent 2**63 - 1 correctly.
5750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5751 since some C++ compilers masquerading as C compilers
5752 incorrectly reject 9223372036854775807. */
5753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5755 && LARGE_OFF_T % 2147483647 == 1)
5765 if ac_fn_c_try_compile
"$LINENO"; then :
5766 ac_cv_sys_large_files
=no
; break
5768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 #define _LARGE_FILES 1
5772 #include <sys/types.h>
5773 /* Check that off_t can represent 2**63 - 1 correctly.
5774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5775 since some C++ compilers masquerading as C compilers
5776 incorrectly reject 9223372036854775807. */
5777 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5779 && LARGE_OFF_T % 2147483647 == 1)
5789 if ac_fn_c_try_compile
"$LINENO"; then :
5790 ac_cv_sys_large_files
=1; break
5792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5793 ac_cv_sys_large_files
=unknown
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5798 $as_echo "$ac_cv_sys_large_files" >&6; }
5799 case $ac_cv_sys_large_files in #(
5802 cat >>confdefs.h
<<_ACEOF
5803 #define _LARGE_FILES $ac_cv_sys_large_files
5812 # sizeof(char) is 1 by definition.
5813 # The cast to long int works around a bug in the HP C Compiler
5814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5816 # This bug is HP SR number 8606223364.
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5818 $as_echo_n "checking size of void *... " >&6; }
5819 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5822 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5825 if test "$ac_cv_type_void_p" = yes; then
5826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5828 { as_fn_set_status
77
5829 as_fn_error
"cannot compute sizeof (void *)
5830 See \`config.log' for more details." "$LINENO" 5; }; }
5832 ac_cv_sizeof_void_p
=0
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5838 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5842 cat >>confdefs.h
<<_ACEOF
5843 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5847 # The cast to long int works around a bug in the HP C Compiler
5848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5850 # This bug is HP SR number 8606223364.
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5852 $as_echo_n "checking size of short... " >&6; }
5853 if test "${ac_cv_sizeof_short+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5856 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5859 if test "$ac_cv_type_short" = yes; then
5860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5862 { as_fn_set_status
77
5863 as_fn_error
"cannot compute sizeof (short)
5864 See \`config.log' for more details." "$LINENO" 5; }; }
5866 ac_cv_sizeof_short
=0
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5872 $as_echo "$ac_cv_sizeof_short" >&6; }
5876 cat >>confdefs.h
<<_ACEOF
5877 #define SIZEOF_SHORT $ac_cv_sizeof_short
5881 # The cast to long int works around a bug in the HP C Compiler
5882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5884 # This bug is HP SR number 8606223364.
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5886 $as_echo_n "checking size of int... " >&6; }
5887 if test "${ac_cv_sizeof_int+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5890 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5893 if test "$ac_cv_type_int" = yes; then
5894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896 { as_fn_set_status
77
5897 as_fn_error
"cannot compute sizeof (int)
5898 See \`config.log' for more details." "$LINENO" 5; }; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5906 $as_echo "$ac_cv_sizeof_int" >&6; }
5910 cat >>confdefs.h
<<_ACEOF
5911 #define SIZEOF_INT $ac_cv_sizeof_int
5915 # The cast to long int works around a bug in the HP C Compiler
5916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5918 # This bug is HP SR number 8606223364.
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5920 $as_echo_n "checking size of long... " >&6; }
5921 if test "${ac_cv_sizeof_long+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5924 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5927 if test "$ac_cv_type_long" = yes; then
5928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5930 { as_fn_set_status
77
5931 as_fn_error
"cannot compute sizeof (long)
5932 See \`config.log' for more details." "$LINENO" 5; }; }
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5940 $as_echo "$ac_cv_sizeof_long" >&6; }
5944 cat >>confdefs.h
<<_ACEOF
5945 #define SIZEOF_LONG $ac_cv_sizeof_long
5949 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5950 if test "x$ac_cv_type_long_long" = x
""yes; then :
5952 cat >>confdefs.h
<<_ACEOF
5953 #define HAVE_LONG_LONG 1
5956 # The cast to long int works around a bug in the HP C Compiler
5957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5959 # This bug is HP SR number 8606223364.
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5961 $as_echo_n "checking size of long long... " >&6; }
5962 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5965 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5968 if test "$ac_cv_type_long_long" = yes; then
5969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5971 { as_fn_set_status
77
5972 as_fn_error
"cannot compute sizeof (long long)
5973 See \`config.log' for more details." "$LINENO" 5; }; }
5975 ac_cv_sizeof_long_long
=0
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5981 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5985 cat >>confdefs.h
<<_ACEOF
5986 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5992 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5993 if test "x$ac_cv_type___int64" = x
""yes; then :
5995 cat >>confdefs.h
<<_ACEOF
5996 #define HAVE___INT64 1
5999 # The cast to long int works around a bug in the HP C Compiler
6000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6002 # This bug is HP SR number 8606223364.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6004 $as_echo_n "checking size of __int64... " >&6; }
6005 if test "${ac_cv_sizeof___int64+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6008 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6011 if test "$ac_cv_type___int64" = yes; then
6012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { as_fn_set_status
77
6015 as_fn_error
"cannot compute sizeof (__int64)
6016 See \`config.log' for more details." "$LINENO" 5; }; }
6018 ac_cv_sizeof___int64
=0
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6024 $as_echo "$ac_cv_sizeof___int64" >&6; }
6028 cat >>confdefs.h
<<_ACEOF
6029 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6035 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6036 case $ac_cv_c_int8_t in #(
6040 cat >>confdefs.h
<<_ACEOF
6041 #define int8_t $ac_cv_c_int8_t
6046 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6047 case $ac_cv_c_int16_t in #(
6051 cat >>confdefs.h
<<_ACEOF
6052 #define int16_t $ac_cv_c_int16_t
6057 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6058 case $ac_cv_c_int32_t in #(
6062 cat >>confdefs.h
<<_ACEOF
6063 #define int32_t $ac_cv_c_int32_t
6068 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6069 case $ac_cv_c_int64_t in #(
6073 cat >>confdefs.h
<<_ACEOF
6074 #define int64_t $ac_cv_c_int64_t
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6081 $as_echo_n "checking for long long int... " >&6; }
6082 if test "${ac_cv_type_long_long_int+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6088 /* For now, do not test the preprocessor; as of 2007 there are too many
6089 implementations with broken preprocessors. Perhaps this can
6090 be revisited in 2012. In the meantime, code should not expect
6091 #if to work with literals wider than 32 bits. */
6092 /* Test literals. */
6093 long long int ll = 9223372036854775807ll;
6094 long long int nll = -9223372036854775807LL;
6095 unsigned long long int ull = 18446744073709551615ULL;
6096 /* Test constant expressions. */
6097 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6099 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6105 /* Test availability of runtime routines for shift and division. */
6106 long long int llmax = 9223372036854775807ll;
6107 unsigned long long int ullmax = 18446744073709551615ull;
6108 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6109 | (llmax / ll) | (llmax % ll)
6110 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6111 | (ullmax / ull) | (ullmax % ull));
6117 if ac_fn_c_try_link
"$LINENO"; then :
6118 if test "$cross_compiling" = yes; then :
6119 ac_cv_type_long_long_int
=yes
6121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6126 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6127 # define LLONG_MAX (HALF - 1 + HALF)
6132 long long int n = 1;
6136 long long int m = n << i;
6139 if (LLONG_MAX / 2 < m)
6147 if ac_fn_c_try_run
"$LINENO"; then :
6148 ac_cv_type_long_long_int
=yes
6150 ac_cv_type_long_long_int
=no
6152 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6153 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6157 ac_cv_type_long_long_int
=no
6159 rm -f core conftest.err conftest.
$ac_objext \
6160 conftest
$ac_exeext conftest.
$ac_ext
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6163 $as_echo "$ac_cv_type_long_long_int" >&6; }
6164 if test $ac_cv_type_long_long_int = yes; then
6166 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6172 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6173 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6175 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6178 test $ac_cv_type_long_long_int = yes \
6179 && ac_type
='long long int' \
6180 || ac_type
='long int'
6182 cat >>confdefs.h
<<_ACEOF
6183 #define intmax_t $ac_type
6190 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6191 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6193 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6196 for ac_type
in 'int' 'long int' 'long long int'; do
6197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 $ac_includes_default
6203 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6210 if ac_fn_c_try_compile
"$LINENO"; then :
6212 cat >>confdefs.h
<<_ACEOF
6213 #define intptr_t $ac_type
6218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6219 test -z "$ac_type" && break
6224 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6225 case $ac_cv_c_uint8_t in #(
6229 $as_echo "#define _UINT8_T 1" >>confdefs.h
6232 cat >>confdefs.h
<<_ACEOF
6233 #define uint8_t $ac_cv_c_uint8_t
6238 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6239 case $ac_cv_c_uint16_t in #(
6244 cat >>confdefs.h
<<_ACEOF
6245 #define uint16_t $ac_cv_c_uint16_t
6250 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6251 case $ac_cv_c_uint32_t in #(
6255 $as_echo "#define _UINT32_T 1" >>confdefs.h
6258 cat >>confdefs.h
<<_ACEOF
6259 #define uint32_t $ac_cv_c_uint32_t
6264 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6265 case $ac_cv_c_uint64_t in #(
6269 $as_echo "#define _UINT64_T 1" >>confdefs.h
6272 cat >>confdefs.h
<<_ACEOF
6273 #define uint64_t $ac_cv_c_uint64_t
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6280 $as_echo_n "checking for unsigned long long int... " >&6; }
6281 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6287 /* For now, do not test the preprocessor; as of 2007 there are too many
6288 implementations with broken preprocessors. Perhaps this can
6289 be revisited in 2012. In the meantime, code should not expect
6290 #if to work with literals wider than 32 bits. */
6291 /* Test literals. */
6292 long long int ll = 9223372036854775807ll;
6293 long long int nll = -9223372036854775807LL;
6294 unsigned long long int ull = 18446744073709551615ULL;
6295 /* Test constant expressions. */
6296 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6298 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6304 /* Test availability of runtime routines for shift and division. */
6305 long long int llmax = 9223372036854775807ll;
6306 unsigned long long int ullmax = 18446744073709551615ull;
6307 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6308 | (llmax / ll) | (llmax % ll)
6309 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6310 | (ullmax / ull) | (ullmax % ull));
6316 if ac_fn_c_try_link
"$LINENO"; then :
6317 ac_cv_type_unsigned_long_long_int
=yes
6319 ac_cv_type_unsigned_long_long_int
=no
6321 rm -f core conftest.err conftest.
$ac_objext \
6322 conftest
$ac_exeext conftest.
$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6325 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6326 if test $ac_cv_type_unsigned_long_long_int = yes; then
6328 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6334 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6335 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6337 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6340 test $ac_cv_type_unsigned_long_long_int = yes \
6341 && ac_type
='unsigned long long int' \
6342 || ac_type
='unsigned long int'
6344 cat >>confdefs.h
<<_ACEOF
6345 #define uintmax_t $ac_type
6352 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6353 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6355 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6358 for ac_type
in 'unsigned int' 'unsigned long int' \
6359 'unsigned long long int'; do
6360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 $ac_includes_default
6366 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6373 if ac_fn_c_try_compile
"$LINENO"; then :
6375 cat >>confdefs.h
<<_ACEOF
6376 #define uintptr_t $ac_type
6381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6382 test -z "$ac_type" && break
6400 # ---------------------
6401 # Warnings and checking
6402 # ---------------------
6404 # Check $CC warning features (if it's GCC).
6405 # We want to use -pedantic, but we don't want warnings about
6408 # * overlong strings
6409 # * C++11 narrowing conversions in { }
6410 # So, we only use -pedantic if we can disable those warnings.
6413 save_CFLAGS
="$CFLAGS"
6414 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6415 # Do the check with the no- prefix removed since gcc silently
6416 # accepts any -Wno-* option on purpose
6417 case $real_option in
6418 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6419 *) option
=$real_option ;;
6421 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6424 $as_echo_n "checking whether $CC supports $option... " >&6; }
6425 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6426 $as_echo_n "(cached) " >&6
6429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6440 if ac_fn_c_try_compile
"$LINENO"; then :
6441 eval "$as_acx_Woption=yes"
6443 eval "$as_acx_Woption=no"
6445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6448 eval ac_res
=\$
$as_acx_Woption
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6450 $as_echo "$ac_res" >&6; }
6451 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6452 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6455 CFLAGS
="$save_CFLAGS"
6458 save_CFLAGS
="$CFLAGS"
6459 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6460 # Do the check with the no- prefix removed since gcc silently
6461 # accepts any -Wno-* option on purpose
6462 case $real_option in
6463 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6464 *) option
=$real_option ;;
6466 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6469 $as_echo_n "checking whether $CC supports $option... " >&6; }
6470 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6471 $as_echo_n "(cached) " >&6
6474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6485 if ac_fn_c_try_compile
"$LINENO"; then :
6486 eval "$as_acx_Woption=yes"
6488 eval "$as_acx_Woption=no"
6490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6493 eval ac_res
=\$
$as_acx_Woption
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6495 $as_echo "$ac_res" >&6; }
6496 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6497 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6500 CFLAGS
="$save_CFLAGS"
6503 save_CFLAGS
="$CFLAGS"
6504 for real_option
in -Wmissing-format-attribute; do
6505 # Do the check with the no- prefix removed since gcc silently
6506 # accepts any -Wno-* option on purpose
6507 case $real_option in
6508 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6509 *) option
=$real_option ;;
6511 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6514 $as_echo_n "checking whether $CC supports $option... " >&6; }
6515 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6516 $as_echo_n "(cached) " >&6
6519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6530 if ac_fn_c_try_compile
"$LINENO"; then :
6531 eval "$as_acx_Woption=yes"
6533 eval "$as_acx_Woption=no"
6535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6538 eval ac_res
=\$
$as_acx_Woption
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6540 $as_echo "$ac_res" >&6; }
6541 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6542 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6545 CFLAGS
="$save_CFLAGS"
6548 save_CFLAGS
="$CFLAGS"
6549 for real_option
in -Wold-style-definition -Wc++-compat; do
6550 # Do the check with the no- prefix removed since gcc silently
6551 # accepts any -Wno-* option on purpose
6552 case $real_option in
6553 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6554 *) option
=$real_option ;;
6556 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6559 $as_echo_n "checking whether $CC supports $option... " >&6; }
6560 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6561 $as_echo_n "(cached) " >&6
6564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6575 if ac_fn_c_try_compile
"$LINENO"; then :
6576 eval "$as_acx_Woption=yes"
6578 eval "$as_acx_Woption=no"
6580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6583 eval ac_res
=\$
$as_acx_Woption
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6585 $as_echo "$ac_res" >&6; }
6586 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6587 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6590 CFLAGS
="$save_CFLAGS"
6592 # Do the check with the no- prefix removed from the warning options
6593 # since gcc silently accepts any -Wno-* option on purpose
6594 if test "$GCC" = yes; then :
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6596 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6597 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6600 save_CFLAGS
="$CFLAGS"
6601 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6613 if ac_fn_c_try_compile
"$LINENO"; then :
6614 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6616 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6619 CFLAGS
="$save_CFLAGS"
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6622 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6623 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6624 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6629 # Check whether --enable-werror-always was given.
6630 if test "${enable_werror_always+set}" = set; then :
6631 enableval
=$enable_werror_always;
6633 enable_werror_always
=no
6636 if test $enable_werror_always = yes; then :
6637 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6642 # The above macros do nothing if the compiler is not GCC. However, the
6643 # Makefile has more goo to add other flags, so these variables are used
6644 # to enable warnings only for GCC.
6647 if test "x$GCC" = "xyes"; then
6648 warn_cflags
='$(GCC_WARN_CFLAGS)'
6649 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6654 # Disable exceptions and RTTI if building with g++
6656 save_CFLAGS
="$CFLAGS"
6657 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6658 # Do the check with the no- prefix removed since gcc silently
6659 # accepts any -Wno-* option on purpose
6660 case $real_option in
6661 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6662 *) option
=$real_option ;;
6664 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6667 $as_echo_n "checking whether $CC supports $option... " >&6; }
6668 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6669 $as_echo_n "(cached) " >&6
6672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6683 if ac_fn_c_try_compile
"$LINENO"; then :
6684 eval "$as_acx_Woption=yes"
6686 eval "$as_acx_Woption=no"
6688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6691 eval ac_res
=\$
$as_acx_Woption
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6693 $as_echo "$ac_res" >&6; }
6694 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6695 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6698 CFLAGS
="$save_CFLAGS"
6701 # Enable expensive internal checks
6703 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6707 # Check whether --enable-checking was given.
6708 if test "${enable_checking+set}" = set; then :
6709 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6712 # Determine the default checks.
6713 if test x
$is_release = x
; then
6714 ac_checking_flags
=yes
6716 ac_checking_flags
=release
6720 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6721 for check
in release
$ac_checking_flags
6724 # these set all the flags to specific states
6725 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6726 ac_fold_checking
= ; ac_gc_checking
=1 ;
6727 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6728 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6729 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6730 ac_types_checking
=1 ;;
6731 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6732 ac_fold_checking
= ; ac_gc_checking
= ;
6733 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6734 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6735 ac_tree_checking
= ; ac_valgrind_checking
= ;
6736 ac_types_checking
= ;;
6737 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6738 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6739 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6740 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6741 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6742 ac_types_checking
=1 ;;
6743 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6744 ac_fold_checking
= ; ac_gc_checking
= ;
6745 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6746 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6747 ac_tree_checking
= ; ac_valgrind_checking
= ;
6748 ac_types_checking
= ;;
6749 # these enable particular checks
6750 assert
) ac_assert_checking
=1 ;;
6751 df
) ac_df_checking
=1 ;;
6752 fold) ac_fold_checking
=1 ;;
6753 gc
) ac_gc_checking
=1 ;;
6754 gcac
) ac_gc_always_collect
=1 ;;
6755 gimple
) ac_gimple_checking
=1 ;;
6756 misc
) ac_checking
=1 ;;
6757 rtl
) ac_rtl_checking
=1 ;;
6758 rtlflag
) ac_rtlflag_checking
=1 ;;
6759 runtime
) ac_runtime_checking
=1 ;;
6760 tree
) ac_tree_checking
=1 ;;
6761 types
) ac_types_checking
=1 ;;
6762 valgrind
) ac_valgrind_checking
=1 ;;
6763 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6769 if test x
$ac_checking != x
; then
6771 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6773 nocommon_flag
=-fno-common
6776 if test x
$ac_df_checking != x
; then
6778 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6781 if test x
$ac_assert_checking != x
; then
6783 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6786 if test x
$ac_gimple_checking != x
; then
6788 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6792 if test x
$ac_runtime_checking != x
; then
6794 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6797 if test x
$ac_tree_checking != x
; then
6799 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6801 TREEBROWSER
=tree-browser.o
6804 if test x
$ac_types_checking != x
; then
6806 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6811 if test x
$ac_rtl_checking != x
; then
6813 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6816 if test x
$ac_rtlflag_checking != x
; then
6818 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6821 if test x
$ac_gc_checking != x
; then
6823 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6826 if test x
$ac_gc_always_collect != x
; then
6828 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6831 if test x
$ac_fold_checking != x
; then
6833 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6836 valgrind_path_defines
=
6839 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6840 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6848 if test x
$ac_valgrind_checking != x
; then
6849 # It is certainly possible that there's valgrind but no valgrind.h.
6850 # GCC relies on making annotations so we must have both.
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6852 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 #include <valgrind/memcheck.h>
6856 #ifndef VALGRIND_DISCARD
6857 #error VALGRIND_DISCARD not defined
6860 if ac_fn_c_try_cpp
"$LINENO"; then :
6861 gcc_cv_header_valgrind_memcheck_h
=yes
6863 gcc_cv_header_valgrind_memcheck_h
=no
6865 rm -f conftest.err conftest.
$ac_ext
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6867 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6869 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 #include <memcheck.h>
6873 #ifndef VALGRIND_DISCARD
6874 #error VALGRIND_DISCARD not defined
6877 if ac_fn_c_try_cpp
"$LINENO"; then :
6878 gcc_cv_header_memcheck_h
=yes
6880 gcc_cv_header_memcheck_h
=no
6882 rm -f conftest.err conftest.
$ac_ext
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6884 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6886 # Prepare PATH_SEPARATOR.
6887 # The user is always right.
6888 if test "${PATH_SEPARATOR+set}" != set; then
6889 echo "#! /bin/sh" >conf$$.sh
6890 echo "exit 0" >>conf$$.sh
6892 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6900 # Find out how to test for executable files. Don't use a zero-byte file,
6901 # as systems may use methods other than mode bits to determine executability.
6902 cat >conf$$.
file <<_ASEOF
6906 chmod +x conf$$.
file
6907 if test -x conf$$.
file >/dev
/null
2>&1; then
6908 ac_executable_p
="test -x"
6910 ac_executable_p
="test -f"
6914 # Extract the first word of "valgrind", so it can be a program name with args.
6915 set dummy valgrind
; ac_word
=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6921 case "$valgrind_path" in
6923 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6926 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6927 for ac_dir
in $PATH; do
6929 test -z "$ac_dir" && ac_dir
=.
6930 for ac_exec_ext
in '' $ac_executable_extensions; do
6931 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6932 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6933 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6943 valgrind_path
="$ac_cv_path_valgrind_path"
6944 if test -n "$valgrind_path"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6946 $as_echo "$valgrind_path" >&6; }
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6952 if test "x$valgrind_path" = "x" \
6953 ||
(test $have_valgrind_h = no \
6954 && test $gcc_cv_header_memcheck_h = no \
6955 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6956 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6958 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6959 valgrind_command
="$valgrind_path -q"
6961 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6963 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6965 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6968 if test $gcc_cv_header_memcheck_h = yes; then
6970 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6977 # Enable code coverage collection
6978 # Check whether --enable-coverage was given.
6979 if test "${enable_coverage+set}" = set; then :
6980 enableval
=$enable_coverage; case "${enableval}" in
6982 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6985 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6988 # a.k.a. --disable-coverage
6992 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7001 # Check whether --enable-gather-detailed-mem-stats was given.
7002 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7003 enableval
=$enable_gather_detailed_mem_stats;
7005 enable_gather_detailed_mem_stats
=no
7008 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7010 cat >>confdefs.h
<<_ACEOF
7011 #define GATHER_STATISTICS $gather_stats
7015 # -------------------------------
7016 # Miscenalleous configure options
7017 # -------------------------------
7021 # Check whether --with-stabs was given.
7022 if test "${with_stabs+set}" = set; then :
7023 withval
=$with_stabs; stabs
="$with_stabs"
7029 # Determine whether or not multilibs are enabled.
7030 # Check whether --enable-multilib was given.
7031 if test "${enable_multilib+set}" = set; then :
7032 enableval
=$enable_multilib;
7039 # Determine whether or not multiarch is enabled.
7040 # Check whether --enable-multiarch was given.
7041 if test "${enable_multiarch+set}" = set; then :
7042 enableval
=$enable_multiarch; case "${enableval}" in
7043 yes|no|auto
) enable_multiarch
=$enableval;;
7044 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7047 enable_multiarch
=auto
7050 if test x
${enable_multiarch} = xauto
; then
7051 if test x
${with_native_system_header_dir} != x
; then
7052 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7055 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7056 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7061 $as_echo_n "checking for multiarch configuration... " >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7064 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7066 # needed for setting the multiarch name for soft-float/hard-float ABIs
7070 # Enable __cxa_atexit for C++.
7071 # Check whether --enable-__cxa_atexit was given.
7072 if test "${enable___cxa_atexit+set}" = set; then :
7073 enableval
=$enable___cxa_atexit;
7077 # Enable C extension for decimal float if target supports it.
7079 # Check whether --enable-decimal-float was given.
7080 if test "${enable_decimal_float+set}" = set; then :
7081 enableval
=$enable_decimal_float;
7082 case $enable_decimal_float in
7083 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7084 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7085 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7091 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7093 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7095 enable_decimal_float
=yes
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7099 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7100 enable_decimal_float
=no
7107 # x86's use BID format instead of DPD
7108 case x
$enable_decimal_float in
7111 i?
86*-*-* | x86_64
*-*-*)
7112 enable_decimal_float
=bid
7115 enable_decimal_float
=dpd
7118 default_decimal_float
=$enable_decimal_float
7121 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7122 # dependency on libdecnumber.
7123 default_decimal_float
=dpd
7130 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7132 cat >>confdefs.h
<<_ACEOF
7133 #define ENABLE_DECIMAL_FLOAT $dfp
7137 # Use default_decimal_float for dependency.
7138 enable_decimal_float
=$default_decimal_float
7140 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7142 cat >>confdefs.h
<<_ACEOF
7143 #define ENABLE_DECIMAL_BID_FORMAT $bid
7147 # Enable C extension for fixed-point arithmetic.
7148 # Check whether --enable-fixed-point was given.
7149 if test "${enable_fixed_point+set}" = set; then :
7150 enableval
=$enable_fixed_point;
7155 enable_fixed_point
=yes
7159 enable_fixed_point
=yes
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7163 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7164 enable_fixed_point
=no
7172 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7174 cat >>confdefs.h
<<_ACEOF
7175 #define ENABLE_FIXED_POINT $fixedpoint
7180 # Pass with no value to take the default
7181 # Pass with a value to specify a thread package
7182 # Check whether --enable-threads was given.
7183 if test "${enable_threads+set}" = set; then :
7184 enableval
=$enable_threads;
7190 # Check whether --enable-tls was given.
7191 if test "${enable_tls+set}" = set; then :
7192 enableval
=$enable_tls;
7195 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7196 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7204 # Check whether --enable-objc-gc was given.
7205 if test "${enable_objc_gc+set}" = set; then :
7206 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7217 # Check whether --with-dwarf2 was given.
7218 if test "${with_dwarf2+set}" = set; then :
7219 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7225 # Check whether --enable-shared was given.
7226 if test "${enable_shared+set}" = set; then :
7227 enableval
=$enable_shared;
7228 case $enable_shared in
7232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7233 for pkg
in $enableval; do
7234 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7249 # Check whether --with-native-system-header-dir was given.
7250 if test "${with_native_system_header_dir+set}" = set; then :
7251 withval
=$with_native_system_header_dir;
7252 case ${with_native_system_header_dir} in
7253 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7254 /* |
[A-Za-z
]:[\\/]*) ;;
7255 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7257 configured_native_system_header_dir
="${withval}"
7260 configured_native_system_header_dir
=
7265 # Check whether --with-build-sysroot was given.
7266 if test "${with_build_sysroot+set}" = set; then :
7267 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7268 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7271 SYSROOT_CFLAGS_FOR_TARGET
=
7277 # Check whether --with-runtime-root-prefix was given.
7278 if test "${with_runtime_root_prefix+set}" = set; then :
7279 withval
=$with_runtime_root_prefix;
7280 case ${with_runtime_root_prefix} in
7281 yes|no
) as_fn_error
"bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7283 *) as_fn_error
"${withval} should be an absolute directory" "$LINENO" 5 ;;
7285 RUNTIME_ROOT_PREFIX_DEFINE
="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7288 RUNTIME_ROOT_PREFIX_DEFINE
=""
7293 if test "x$prefix" = xNONE
; then
7294 test_prefix
=/usr
/local
7298 if test "x$exec_prefix" = xNONE
; then
7299 test_exec_prefix
=$test_prefix
7301 test_exec_prefix
=$exec_prefix
7305 # Check whether --with-sysroot was given.
7306 if test "${with_sysroot+set}" = set; then :
7307 withval
=$with_sysroot;
7308 case ${with_sysroot} in
7309 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7310 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7313 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7314 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7316 case ${TARGET_SYSTEM_ROOT} in
7317 "${test_prefix}"|
"${test_prefix}/"*|\
7318 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7319 '${prefix}'|
'${prefix}/'*|\
7320 '${exec_prefix}'|
'${exec_prefix}/'*)
7321 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7322 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7329 TARGET_SYSTEM_ROOT_DEFINE
=
7330 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7339 # Check whether --with-specs was given.
7340 if test "${with_specs+set}" = set; then :
7341 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7351 # Check whether --with-pkgversion was given.
7352 if test "${with_pkgversion+set}" = set; then :
7353 withval
=$with_pkgversion; case "$withval" in
7354 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7356 *) PKGVERSION
="($withval) " ;;
7367 # Check whether --with-bugurl was given.
7368 if test "${with_bugurl+set}" = set; then :
7369 withval
=$with_bugurl; case "$withval" in
7370 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7373 *) BUGURL
="$withval"
7377 BUGURL
="http://gcc.gnu.org/bugs.html"
7387 REPORT_BUGS_TO
="<$BUGURL>"
7388 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7395 # Sanity check enable_languages in case someone does not run the toplevel
7396 # configure # script.
7397 # Check whether --enable-languages was given.
7398 if test "${enable_languages+set}" = set; then :
7399 enableval
=$enable_languages; case ,${enable_languages}, in
7401 # go safe -- we cannot be much sure without the toplevel
7403 # analysis of which target libs are present and usable
7407 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7412 enable_languages
=c
,${enable_languages}
7421 # Check whether --with-multilib-list was given.
7422 if test "${with_multilib_list+set}" = set; then :
7423 withval
=$with_multilib_list; :
7425 with_multilib_list
=default
7429 # -------------------------
7430 # Checks for other programs
7431 # -------------------------
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7434 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7436 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7437 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7438 $as_echo_n "(cached) " >&6
7440 cat >conftest.
make <<\_ACEOF
7443 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7446 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7448 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7450 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7454 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7456 $as_echo "yes" >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461 SET_MAKE
="MAKE=${MAKE-make}"
7465 # Find some useful tools
7466 for ac_prog
in gawk mawk nawk
awk
7468 # Extract the first word of "$ac_prog", so it can be a program name with args.
7469 set dummy
$ac_prog; ac_word
=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if test "${ac_cv_prog_AWK+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
7475 if test -n "$AWK"; then
7476 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7482 test -z "$as_dir" && as_dir
=.
7483 for ac_exec_ext
in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_prog_AWK
="$ac_prog"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 if test -n "$AWK"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7498 $as_echo "$AWK" >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7505 test -n "$AWK" && break
7508 # We need awk to create options.c and options.h.
7509 # Bail out if it's missing.
7511 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7515 $as_echo_n "checking whether ln -s works... " >&6; }
7516 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
7519 rm -f conftestdata_t
7520 echo >conftestdata_f
7521 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7523 gcc_cv_prog_LN_S
="ln -s"
7525 if ln conftestdata_f conftestdata_t
2>/dev
/null
7529 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7531 gcc_cv_prog_LN_S
="cp -p"
7537 rm -f conftestdata_f conftestdata_t
7540 LN_S
="$gcc_cv_prog_LN_S"
7541 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7543 $as_echo "yes" >&6; }
7545 if test "$gcc_cv_prog_LN_S" = "ln"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7547 $as_echo "no, using ln" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7550 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7555 $as_echo_n "checking whether ln works... " >&6; }
7556 if test "${acx_cv_prog_LN+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7559 rm -f conftestdata_t
7560 echo >conftestdata_f
7561 if ln conftestdata_f conftestdata_t
2>/dev
/null
7567 rm -f conftestdata_f conftestdata_t
7570 if test $acx_cv_prog_LN = no
; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7573 $as_echo "no, using $LN" >&6; }
7575 LN
="$acx_cv_prog_LN"
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7577 $as_echo "yes" >&6; }
7580 if test -n "$ac_tool_prefix"; then
7581 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7582 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7588 if test -n "$RANLIB"; then
7589 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir
=.
7596 for ac_exec_ext
in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 RANLIB
=$ac_cv_prog_RANLIB
7609 if test -n "$RANLIB"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7611 $as_echo "$RANLIB" >&6; }
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7619 if test -z "$ac_cv_prog_RANLIB"; then
7620 ac_ct_RANLIB
=$RANLIB
7621 # Extract the first word of "ranlib", so it can be a program name with args.
7622 set dummy ranlib
; ac_word
=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7628 if test -n "$ac_ct_RANLIB"; then
7629 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7635 test -z "$as_dir" && as_dir
=.
7636 for ac_exec_ext
in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7649 if test -n "$ac_ct_RANLIB"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7651 $as_echo "$ac_ct_RANLIB" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7657 if test "x$ac_ct_RANLIB" = x
; then
7660 case $cross_compiling:$ac_tool_warned in
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664 ac_tool_warned
=yes ;;
7666 RANLIB
=$ac_ct_RANLIB
7669 RANLIB
="$ac_cv_prog_RANLIB"
7675 # Find a good install program. We prefer a C program (faster),
7676 # so one script is as good as another. But avoid the broken or
7677 # incompatible versions:
7678 # SysV /etc/install, /usr/sbin/install
7679 # SunOS /usr/etc/install
7680 # IRIX /sbin/install
7682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7684 # ./install, which can be erroneously created by make from ./install.sh.
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7686 $as_echo_n "checking for a BSD compatible install... " >&6; }
7687 if test -z "$INSTALL"; then
7688 if test "${ac_cv_path_install+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7691 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7692 for ac_dir
in $PATH; do
7693 # Account for people who put trailing slashes in PATH elements.
7695 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7697 # OSF1 and SCO ODT 3.0 have their own names for install.
7698 for ac_prog
in ginstall scoinst
install; do
7699 if test -f $ac_dir/$ac_prog; then
7700 if test $ac_prog = install &&
7701 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7702 # AIX install. It has an incompatible calling convention.
7703 # OSF/1 installbsd also uses dspmsg, but is usable.
7706 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7717 if test "${ac_cv_path_install+set}" = set; then
7718 INSTALL
="$ac_cv_path_install"
7720 # As a last resort, use the slow shell script. We don't cache a
7721 # path for INSTALL within a source directory, because that will
7722 # break other packages using the cache if that directory is
7723 # removed, or if the path is relative.
7724 INSTALL
="$ac_install_sh"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7728 $as_echo "$INSTALL" >&6; }
7730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7731 # It thinks the first close brace ends the variable substitution.
7732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7734 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7737 # See if cmp has --ignore-initial.
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7739 $as_echo_n "checking for cmp's capabilities... " >&6; }
7740 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7741 $as_echo_n "(cached) " >&6
7745 gcc_cv_prog_cmp_skip
=slowcompare
7746 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7747 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7750 gcc_cv_prog_cmp_skip
=gnucompare
7753 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7754 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7755 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7758 gcc_cv_prog_cmp_skip
=fastcompare
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7766 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7767 make_compare_target
=$gcc_cv_prog_cmp_skip
7771 # See if we have the mktemp command.
7772 # Extract the first word of "mktemp", so it can be a program name with args.
7773 set dummy mktemp
; ac_word
=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7779 if test -n "$have_mktemp_command"; then
7780 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir
=.
7787 for ac_exec_ext
in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_have_mktemp_command
="yes"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7800 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7801 if test -n "$have_mktemp_command"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7803 $as_echo "$have_mktemp_command" >&6; }
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7811 # See if makeinfo has been installed and is modern enough
7812 # that we can use it.
7814 # Extract the first word of "makeinfo", so it can be a program name with args.
7815 set dummy makeinfo
; ac_word
=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7821 if test -n "$MAKEINFO"; then
7822 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir
=.
7829 for ac_exec_ext
in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_MAKEINFO
="makeinfo"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 MAKEINFO
=$ac_cv_prog_MAKEINFO
7842 if test -n "$MAKEINFO"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7844 $as_echo "$MAKEINFO" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7851 if test -n "$MAKEINFO"; then
7852 # Found it, now check the version.
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7854 $as_echo_n "checking for modern makeinfo... " >&6; }
7855 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7858 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7859 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7861 case $ac_prog_version in
7862 '') gcc_cv_prog_makeinfo_modern
=no
;;
7863 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7864 *) gcc_cv_prog_makeinfo_modern
=no
;;
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7869 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7871 gcc_cv_prog_makeinfo_modern
=no
7873 if test $gcc_cv_prog_makeinfo_modern = no
; then
7874 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7877 if test $gcc_cv_prog_makeinfo_modern = no
; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7879 *** Makeinfo is missing or too old.
7880 *** Info documentation will not be built." >&5
7881 $as_echo "$as_me: WARNING:
7882 *** Makeinfo is missing or too old.
7883 *** Info documentation will not be built." >&2;}
7890 # Is pod2man recent enough to regenerate manpages?
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7892 $as_echo_n "checking for recent Pod::Man... " >&6; }
7893 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7895 $as_echo "yes" >&6; }
7896 GENERATED_MANPAGES
=generated-manpages
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7904 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7909 # Extract the first word of "$ac_prog", so it can be a program name with args.
7910 set dummy
$ac_prog; ac_word
=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if test "${ac_cv_prog_FLEX+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7916 if test -n "$FLEX"; then
7917 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7923 test -z "$as_dir" && as_dir
=.
7924 for ac_exec_ext
in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926 ac_cv_prog_FLEX
="$ac_prog"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 FLEX
=$ac_cv_prog_FLEX
7937 if test -n "$FLEX"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7939 $as_echo "$FLEX" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7946 test -n "$FLEX" && break
7948 test -n "$FLEX" || FLEX
="$MISSING flex"
7952 for ac_prog
in bison
7954 # Extract the first word of "$ac_prog", so it can be a program name with args.
7955 set dummy
$ac_prog; ac_word
=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_BISON+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7961 if test -n "$BISON"; then
7962 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7968 test -z "$as_dir" && as_dir
=.
7969 for ac_exec_ext
in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_BISON
="$ac_prog"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 BISON
=$ac_cv_prog_BISON
7982 if test -n "$BISON"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7984 $as_echo "$BISON" >&6; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7991 test -n "$BISON" && break
7993 test -n "$BISON" || BISON
="$MISSING bison"
7996 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7997 # check for build == host before using them.
8000 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8001 && test -d ..
/binutils
; then
8002 NM
='${objdir}/../binutils/nm-new'
8004 # Extract the first word of "nm", so it can be a program name with args.
8005 set dummy nm
; ac_word
=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if test "${ac_cv_prog_NM+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
8011 if test -n "$NM"; then
8012 ac_cv_prog_NM
="$NM" # Let the user override the test.
8014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8018 test -z "$as_dir" && as_dir
=.
8019 for ac_exec_ext
in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8033 if test -n "$NM"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8035 $as_echo "$NM" >&6; }
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8045 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8046 && test -d ..
/binutils
; then
8047 AR
='${objdir}/../binutils/ar'
8049 # Extract the first word of "ar", so it can be a program name with args.
8050 set dummy
ar; ac_word
=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_prog_AR+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8056 if test -n "$AR"; then
8057 ac_cv_prog_AR
="$AR" # Let the user override the test.
8059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir
=.
8064 for ac_exec_ext
in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8078 if test -n "$AR"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8080 $as_echo "$AR" >&6; }
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8090 # --------------------
8091 # Checks for C headers
8092 # --------------------
8094 # Need to reject headers which give warnings, so that the -Werror bootstrap
8095 # works later. *sigh* This needs to come before all header checks.
8097 ac_c_preproc_warn_flag
=yes
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8100 $as_echo_n "checking for ANSI C header files... " >&6; }
8101 if test "${ac_cv_header_stdc+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8119 if ac_fn_c_try_compile
"$LINENO"; then :
8120 ac_cv_header_stdc
=yes
8122 ac_cv_header_stdc
=no
8124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8126 if test $ac_cv_header_stdc = yes; then
8127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8134 $EGREP "memchr" >/dev
/null
2>&1; then :
8137 ac_cv_header_stdc
=no
8143 if test $ac_cv_header_stdc = yes; then
8144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8151 $EGREP "free" >/dev
/null
2>&1; then :
8154 ac_cv_header_stdc
=no
8160 if test $ac_cv_header_stdc = yes; then
8161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8162 if test "$cross_compiling" = yes; then :
8165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8169 #if ((' ' & 0x0FF) == 0x020)
8170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8173 # define ISLOWER(c) \
8174 (('a' <= (c) && (c) <= 'i') \
8175 || ('j' <= (c) && (c) <= 'r') \
8176 || ('s' <= (c) && (c) <= 'z'))
8177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8185 for (i = 0; i < 256; i++)
8186 if (XOR (islower (i), ISLOWER (i))
8187 || toupper (i) != TOUPPER (i))
8192 if ac_fn_c_try_run
"$LINENO"; then :
8195 ac_cv_header_stdc
=no
8197 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8198 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8204 $as_echo "$ac_cv_header_stdc" >&6; }
8205 if test $ac_cv_header_stdc = yes; then
8207 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8212 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8213 if test "${ac_cv_header_time+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <sys/types.h>
8219 #include <sys/time.h>
8225 if ((struct tm *) 0)
8231 if ac_fn_c_try_compile
"$LINENO"; then :
8232 ac_cv_header_time
=yes
8234 ac_cv_header_time
=no
8236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8239 $as_echo "$ac_cv_header_time" >&6; }
8240 if test $ac_cv_header_time = yes; then
8242 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8247 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8248 if test "${gcc_cv_header_string+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8254 #include <strings.h>
8263 if ac_fn_c_try_compile
"$LINENO"; then :
8264 gcc_cv_header_string
=yes
8266 gcc_cv_header_string
=no
8268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8271 $as_echo "$gcc_cv_header_string" >&6; }
8272 if test $gcc_cv_header_string = yes; then
8274 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8279 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8280 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 #include <sys/types.h>
8286 #include <sys/wait.h>
8288 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8291 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8299 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8304 if ac_fn_c_try_compile
"$LINENO"; then :
8305 ac_cv_header_sys_wait_h
=yes
8307 ac_cv_header_sys_wait_h
=no
8309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8312 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8313 if test $ac_cv_header_sys_wait_h = yes; then
8315 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8319 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8320 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8321 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8322 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8324 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8325 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8326 eval as_val
=\$
$as_ac_Header
8327 if test "x$as_val" = x
""yes; then :
8328 cat >>confdefs.h
<<_ACEOF
8329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8336 # Check for thread headers.
8337 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8338 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8344 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8345 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8352 # These tests can't be done till we know if we have limits.h.
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8354 $as_echo_n "checking for CHAR_BIT... " >&6; }
8355 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360 #ifdef HAVE_LIMITS_H
8367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8368 $EGREP "found" >/dev
/null
2>&1; then :
8369 gcc_cv_decl_char_bit
=yes
8371 gcc_cv_decl_char_bit
=no
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8378 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8379 if test $gcc_cv_decl_char_bit = no
; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8381 $as_echo_n "checking number of bits in a byte... " >&6; }
8382 if test "${gcc_cv_c_nbby+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8387 while test $i -lt 65; do
8388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8395 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8396 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8402 if ac_fn_c_try_compile
"$LINENO"; then :
8403 gcc_cv_c_nbby
=$i; break
8405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8408 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8412 $as_echo "$gcc_cv_c_nbby" >&6; }
8413 if test $gcc_cv_c_nbby = failed
; then
8414 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8417 cat >>confdefs.h
<<_ACEOF
8418 #define CHAR_BIT $gcc_cv_c_nbby
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8424 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8425 if test "${ac_cv_c_bigendian+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8428 ac_cv_c_bigendian
=unknown
8429 # See if we're dealing with a universal compiler.
8430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #ifndef __APPLE_CC__
8433 not a universal capable compiler
8438 if ac_fn_c_try_compile
"$LINENO"; then :
8440 # Check for potential -arch flags. It is not universal unless
8441 # there are at least two -arch flags with different values.
8444 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8445 if test -n "$ac_prev"; then
8447 i?
86 | x86_64 | ppc | ppc64
)
8448 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8451 ac_cv_c_bigendian
=universal
8457 elif test "x$ac_word" = "x-arch"; then
8462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8463 if test $ac_cv_c_bigendian = unknown
; then
8464 # See if sys/param.h defines the BYTE_ORDER macro.
8465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #include <sys/types.h>
8468 #include <sys/param.h>
8473 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8474 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8483 if ac_fn_c_try_compile
"$LINENO"; then :
8484 # It does; now see whether it defined to BIG_ENDIAN or not.
8485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487 #include <sys/types.h>
8488 #include <sys/param.h>
8493 #if BYTE_ORDER != BIG_ENDIAN
8501 if ac_fn_c_try_compile
"$LINENO"; then :
8502 ac_cv_c_bigendian
=yes
8504 ac_cv_c_bigendian
=no
8506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8510 if test $ac_cv_c_bigendian = unknown
; then
8511 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8519 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8527 if ac_fn_c_try_compile
"$LINENO"; then :
8528 # It does; now see whether it defined to _BIG_ENDIAN or not.
8529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8544 if ac_fn_c_try_compile
"$LINENO"; then :
8545 ac_cv_c_bigendian
=yes
8547 ac_cv_c_bigendian
=no
8549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8553 if test $ac_cv_c_bigendian = unknown
; then
8554 # Compile a test program.
8555 if test "$cross_compiling" = yes; then :
8556 # Try to guess by grepping values from an object file.
8557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 short int ascii_mm[] =
8560 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8561 short int ascii_ii[] =
8562 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8563 int use_ascii (int i) {
8564 return ascii_mm[i] + ascii_ii[i];
8566 short int ebcdic_ii[] =
8567 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8568 short int ebcdic_mm[] =
8569 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8570 int use_ebcdic (int i) {
8571 return ebcdic_mm[i] + ebcdic_ii[i];
8578 return use_ascii (foo) == use_ebcdic (foo);
8583 if ac_fn_c_try_compile
"$LINENO"; then :
8584 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8585 ac_cv_c_bigendian
=yes
8587 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8588 if test "$ac_cv_c_bigendian" = unknown
; then
8589 ac_cv_c_bigendian
=no
8591 # finding both strings is unlikely to happen, but who knows?
8592 ac_cv_c_bigendian
=unknown
8596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 $ac_includes_default
8605 /* Are we little or big endian? From Harbison&Steele. */
8609 char c[sizeof (long int)];
8612 return u.c[sizeof (long int) - 1] == 1;
8618 if ac_fn_c_try_run
"$LINENO"; then :
8619 ac_cv_c_bigendian
=no
8621 ac_cv_c_bigendian
=yes
8623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8624 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8630 $as_echo "$ac_cv_c_bigendian" >&6; }
8631 case $ac_cv_c_bigendian in #(
8633 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8639 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8643 as_fn_error
"unknown endianness
8644 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8648 # ----------------------
8649 # Checks for C++ headers
8650 # ----------------------
8653 ac_cpp
='$CXXCPP $CPPFLAGS'
8654 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8658 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8659 if test -z "$CXXCPP"; then
8660 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8663 # Double quotes because CXXCPP needs to be expanded
8664 for CXXCPP
in "$CXX -E" "/lib/cpp"
8667 for ac_cxx_preproc_warn_flag
in '' yes
8669 # Use a header file that comes with gcc, so configuring glibc
8670 # with a fresh cross-compiler works.
8671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672 # <limits.h> exists even on freestanding compilers.
8673 # On the NeXT, cc -E runs the code through the compiler's parser,
8674 # not just through cpp. "Syntax error" is here to catch this case.
8675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8678 # include <limits.h>
8680 # include <assert.h>
8684 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8687 # Broken: fails on valid input.
8690 rm -f conftest.err conftest.
$ac_ext
8692 # OK, works on sane cases. Now check whether nonexistent headers
8693 # can be detected and how.
8694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 #include <ac_nonexistent.h>
8698 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8699 # Broken: success on invalid input.
8702 # Passes both tests.
8706 rm -f conftest.err conftest.
$ac_ext
8709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8710 rm -f conftest.err conftest.
$ac_ext
8711 if $ac_preproc_ok; then :
8716 ac_cv_prog_CXXCPP
=$CXXCPP
8719 CXXCPP
=$ac_cv_prog_CXXCPP
8721 ac_cv_prog_CXXCPP
=$CXXCPP
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8724 $as_echo "$CXXCPP" >&6; }
8726 for ac_cxx_preproc_warn_flag
in '' yes
8728 # Use a header file that comes with gcc, so configuring glibc
8729 # with a fresh cross-compiler works.
8730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8731 # <limits.h> exists even on freestanding compilers.
8732 # On the NeXT, cc -E runs the code through the compiler's parser,
8733 # not just through cpp. "Syntax error" is here to catch this case.
8734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8737 # include <limits.h>
8739 # include <assert.h>
8743 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8746 # Broken: fails on valid input.
8749 rm -f conftest.err conftest.
$ac_ext
8751 # OK, works on sane cases. Now check whether nonexistent headers
8752 # can be detected and how.
8753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755 #include <ac_nonexistent.h>
8757 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8758 # Broken: success on invalid input.
8761 # Passes both tests.
8765 rm -f conftest.err conftest.
$ac_ext
8768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8769 rm -f conftest.err conftest.
$ac_ext
8770 if $ac_preproc_ok; then :
8773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8776 See \`config.log' for more details." >&5
8777 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8778 See \`config.log' for more details." >&2;}; }
8782 ac_cpp
='$CPP $CPPFLAGS'
8783 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8789 ac_cpp
='$CXXCPP $CPPFLAGS'
8790 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8797 for ac_header
in unordered_map
8799 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8800 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8801 cat >>confdefs.h
<<_ACEOF
8802 #define HAVE_UNORDERED_MAP 1
8808 for ac_header
in tr1/unordered_map
8810 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8811 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8812 cat >>confdefs.h
<<_ACEOF
8813 #define HAVE_TR1_UNORDERED_MAP 1
8819 for ac_header
in ext
/hash_map
8821 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8822 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8823 cat >>confdefs.h
<<_ACEOF
8824 #define HAVE_EXT_HASH_MAP 1
8832 ac_cpp
='$CPP $CPPFLAGS'
8833 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8834 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8835 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8843 # These libraries may be used by collect2.
8844 # We may need a special search path to get them linked.
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8846 $as_echo_n "checking for collect2 libraries... " >&6; }
8847 if test "${gcc_cv_collect2_libs+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
8851 for libs
in '' -lld -lmld \
8852 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8853 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8859 /* Override any GCC internal prototype to avoid an error.
8860 Use char because int might match the return type of a GCC
8861 builtin and then its argument prototype would still apply. */
8874 if ac_fn_c_try_link
"$LINENO"; then :
8875 gcc_cv_collect2_libs
="$libs"; break
8877 rm -f core conftest.err conftest.
$ac_objext \
8878 conftest
$ac_exeext conftest.
$ac_ext
8881 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8884 $as_echo "$gcc_cv_collect2_libs" >&6; }
8885 case $gcc_cv_collect2_libs in
8887 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8891 # When building Ada code on Alpha, we need exc_resume which is usually in
8892 # -lexc. So test for it.
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8896 $as_echo_n "checking for library containing exc_resume... " >&6; }
8897 if test "${ac_cv_search_exc_resume+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8900 ac_func_search_save_LIBS
=$LIBS
8901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8904 /* Override any GCC internal prototype to avoid an error.
8905 Use char because int might match the return type of a GCC
8906 builtin and then its argument prototype would still apply. */
8914 return exc_resume ();
8919 for ac_lib
in '' exc
; do
8920 if test -z "$ac_lib"; then
8921 ac_res
="none required"
8924 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8926 if ac_fn_c_try_link
"$LINENO"; then :
8927 ac_cv_search_exc_resume
=$ac_res
8929 rm -f core conftest.err conftest.
$ac_objext \
8931 if test "${ac_cv_search_exc_resume+set}" = set; then :
8935 if test "${ac_cv_search_exc_resume+set}" = set; then :
8938 ac_cv_search_exc_resume
=no
8941 LIBS
=$ac_func_search_save_LIBS
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8944 $as_echo "$ac_cv_search_exc_resume" >&6; }
8945 ac_res
=$ac_cv_search_exc_resume
8946 if test "$ac_res" != no
; then :
8947 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8955 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8959 $as_echo_n "checking for library containing kstat_open... " >&6; }
8960 if test "${ac_cv_search_kstat_open+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8963 ac_func_search_save_LIBS
=$LIBS
8964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8967 /* Override any GCC internal prototype to avoid an error.
8968 Use char because int might match the return type of a GCC
8969 builtin and then its argument prototype would still apply. */
8977 return kstat_open ();
8982 for ac_lib
in '' kstat
; do
8983 if test -z "$ac_lib"; then
8984 ac_res
="none required"
8987 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8989 if ac_fn_c_try_link
"$LINENO"; then :
8990 ac_cv_search_kstat_open
=$ac_res
8992 rm -f core conftest.err conftest.
$ac_objext \
8994 if test "${ac_cv_search_kstat_open+set}" = set; then :
8998 if test "${ac_cv_search_kstat_open+set}" = set; then :
9001 ac_cv_search_kstat_open
=no
9004 LIBS
=$ac_func_search_save_LIBS
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9007 $as_echo "$ac_cv_search_kstat_open" >&6; }
9008 ac_res
=$ac_cv_search_kstat_open
9009 if test "$ac_res" != no
; then :
9010 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9014 EXTRA_GCC_LIBS
="$LIBS"
9018 # Some systems put ldexp and frexp in libm instead of libc; assume
9019 # they're both in the same place. jcf-dump needs them.
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9023 $as_echo_n "checking for library containing ldexp... " >&6; }
9024 if test "${ac_cv_search_ldexp+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9027 ac_func_search_save_LIBS
=$LIBS
9028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9031 /* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9046 for ac_lib
in '' m
; do
9047 if test -z "$ac_lib"; then
9048 ac_res
="none required"
9051 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9053 if ac_fn_c_try_link
"$LINENO"; then :
9054 ac_cv_search_ldexp
=$ac_res
9056 rm -f core conftest.err conftest.
$ac_objext \
9058 if test "${ac_cv_search_ldexp+set}" = set; then :
9062 if test "${ac_cv_search_ldexp+set}" = set; then :
9065 ac_cv_search_ldexp
=no
9068 LIBS
=$ac_func_search_save_LIBS
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9071 $as_echo "$ac_cv_search_ldexp" >&6; }
9072 ac_res
=$ac_cv_search_ldexp
9073 if test "$ac_res" != no
; then :
9074 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9082 # Use <inttypes.h> only if it exists,
9083 # doesn't clash with <sys/types.h>, and declares intmax_t.
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9085 $as_echo_n "checking for inttypes.h... " >&6; }
9086 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091 #include <sys/types.h>
9092 #include <inttypes.h>
9101 if ac_fn_c_try_compile
"$LINENO"; then :
9102 gcc_cv_header_inttypes_h
=yes
9104 gcc_cv_header_inttypes_h
=no
9106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9110 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9111 if test $gcc_cv_header_inttypes_h = yes; then
9113 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9119 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9120 sysconf strsignal getrusage nl_langinfo \
9121 gettimeofday mbstowcs wcswidth mmap setlocale \
9122 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
9124 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9125 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9126 eval as_val
=\$
$as_ac_var
9127 if test "x$as_val" = x
""yes; then :
9128 cat >>confdefs.h
<<_ACEOF
9129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9136 if test x
$ac_cv_func_mbstowcs = xyes
; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9138 $as_echo_n "checking whether mbstowcs works... " >&6; }
9139 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9142 if test "$cross_compiling" = yes; then :
9143 gcc_cv_func_mbstowcs_works
=yes
9145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9154 if ac_fn_c_try_run
"$LINENO"; then :
9155 gcc_cv_func_mbstowcs_works
=yes
9157 gcc_cv_func_mbstowcs_works
=no
9159 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9160 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9165 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9166 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9168 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9173 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9174 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9178 cat >>confdefs.h
<<_ACEOF
9184 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9185 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9189 cat >>confdefs.h
<<_ACEOF
9190 #define caddr_t char *
9197 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9198 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9199 gcc_header_sys_mman_h
=yes
9201 gcc_header_sys_mman_h
=no
9204 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9205 if test "x$ac_cv_func_mmap" = x
""yes; then :
9211 if test "$gcc_header_sys_mman_h" != yes \
9212 ||
test "$gcc_func_mmap" != yes; then
9213 gcc_cv_func_mmap_file
=no
9214 gcc_cv_func_mmap_dev_zero
=no
9215 gcc_cv_func_mmap_anon
=no
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9218 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9219 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9222 # Add a system to this blacklist if
9223 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9224 # memory area containing the same data that you'd get if you applied
9225 # read() to the same fd. The only system known to have a problem here
9226 # is VMS, where text files have record structure.
9229 gcc_cv_func_mmap_file
=no
;;
9231 gcc_cv_func_mmap_file
=yes;;
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9235 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9237 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9238 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9241 # Add a system to this blacklist if it has mmap() but /dev/zero
9242 # does not exist, or if mmapping /dev/zero does not give anonymous
9243 # zeroed pages with both the following properties:
9244 # 1. If you map N consecutive pages in with one call, and then
9245 # unmap any subset of those pages, the pages that were not
9246 # explicitly unmapped remain accessible.
9247 # 2. If you map two adjacent blocks of memory and then unmap them
9248 # both at once, they must both go away.
9249 # Systems known to be in this category are Windows (all variants),
9252 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9253 gcc_cv_func_mmap_dev_zero
=no
;;
9255 gcc_cv_func_mmap_dev_zero
=yes;;
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9259 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9261 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9263 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9264 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9265 $as_echo_n "(cached) " >&6
9267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 #include <sys/types.h>
9270 #include <sys/mman.h>
9273 #ifndef MAP_ANONYMOUS
9274 #define MAP_ANONYMOUS MAP_ANON
9280 int n = MAP_ANONYMOUS;
9285 if ac_fn_c_try_compile
"$LINENO"; then :
9286 gcc_cv_decl_map_anon
=yes
9288 gcc_cv_decl_map_anon
=no
9290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9293 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9295 if test $gcc_cv_decl_map_anon = no
; then
9296 gcc_cv_func_mmap_anon
=no
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9299 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9300 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9303 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9304 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9305 # doesn't give anonymous zeroed pages with the same properties listed
9306 # above for use of /dev/zero.
9307 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9309 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9310 gcc_cv_func_mmap_anon
=no
;;
9312 gcc_cv_func_mmap_anon
=yes;;
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9316 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9320 if test $gcc_cv_func_mmap_file = yes; then
9322 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9325 if test $gcc_cv_func_mmap_dev_zero = yes; then
9327 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9330 if test $gcc_cv_func_mmap_anon = yes; then
9332 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9339 # Under VMS, vfork works very differently than on Unix. The standard test
9340 # won't work, and it isn't easily adaptable. It makes more sense to
9342 ac_cv_func_vfork_works
=yes
9345 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9346 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9350 cat >>confdefs.h
<<_ACEOF
9356 for ac_header
in vfork.h
9358 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9359 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9360 cat >>confdefs.h
<<_ACEOF
9361 #define HAVE_VFORK_H 1
9367 for ac_func
in fork vfork
9369 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9370 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9371 eval as_val
=\$
$as_ac_var
9372 if test "x$as_val" = x
""yes; then :
9373 cat >>confdefs.h
<<_ACEOF
9374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9380 if test "x$ac_cv_func_fork" = xyes
; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9382 $as_echo_n "checking for working fork... " >&6; }
9383 if test "${ac_cv_func_fork_works+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9386 if test "$cross_compiling" = yes; then :
9387 ac_cv_func_fork_works
=cross
9389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391 $ac_includes_default
9396 /* By Ruediger Kuhlmann. */
9403 if ac_fn_c_try_run
"$LINENO"; then :
9404 ac_cv_func_fork_works
=yes
9406 ac_cv_func_fork_works
=no
9408 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9409 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9414 $as_echo "$ac_cv_func_fork_works" >&6; }
9417 ac_cv_func_fork_works
=$ac_cv_func_fork
9419 if test "x$ac_cv_func_fork_works" = xcross
; then
9421 *-*-amigaos* |
*-*-msdosdjgpp*)
9422 # Override, as these systems have only a dummy fork() stub
9423 ac_cv_func_fork_works
=no
9426 ac_cv_func_fork_works
=yes
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9430 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9432 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9433 if test "x$ac_cv_func_vfork" = xyes
; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9435 $as_echo_n "checking for working vfork... " >&6; }
9436 if test "${ac_cv_func_vfork_works+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9439 if test "$cross_compiling" = yes; then :
9440 ac_cv_func_vfork_works
=cross
9442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 /* Thanks to Paul Eggert for this test. */
9445 $ac_includes_default
9446 #include <sys/wait.h>
9450 /* On some sparc systems, changes by the child to local and incoming
9451 argument registers are propagated back to the parent. The compiler
9452 is told about this with #include <vfork.h>, but some compilers
9453 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9454 static variable whose address is put into a register that is
9455 clobbered by the vfork. */
9458 sparc_address_test (int arg)
9460 sparc_address_test (arg) int arg;
9481 pid_t parent = getpid ();
9484 sparc_address_test (0);
9489 /* Here is another test for sparc vfork register problems. This
9490 test uses lots of local variables, at least as many local
9491 variables as main has allocated so far including compiler
9492 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9493 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9494 reuse the register of parent for one of the local variables,
9495 since it will think that parent can't possibly be used any more
9496 in this routine. Assigning to the local variable will thus
9497 munge parent in the parent process. */
9499 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9500 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9501 /* Convince the compiler that p..p7 are live; otherwise, it might
9502 use the same hardware register for all 8 local variables. */
9503 if (p != p1 || p != p2 || p != p3 || p != p4
9504 || p != p5 || p != p6 || p != p7)
9507 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9508 from child file descriptors. If the child closes a descriptor
9509 before it execs or exits, this munges the parent's descriptor
9510 as well. Test for this by closing stdout in the child. */
9511 _exit(close(fileno(stdout)) != 0);
9516 while (wait(&status) != child)
9519 /* Was there some problem with vforking? */
9522 /* Did the child fail? (This shouldn't happen.) */
9525 /* Did the vfork/compiler bug occur? */
9526 || parent != getpid()
9528 /* Did the file descriptor bug occur? */
9529 || fstat(fileno(stdout), &st) != 0
9534 if ac_fn_c_try_run
"$LINENO"; then :
9535 ac_cv_func_vfork_works
=yes
9537 ac_cv_func_vfork_works
=no
9539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9540 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9545 $as_echo "$ac_cv_func_vfork_works" >&6; }
9548 if test "x$ac_cv_func_fork_works" = xcross
; then
9549 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9551 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9554 if test "x$ac_cv_func_vfork_works" = xyes
; then
9556 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9560 $as_echo "#define vfork fork" >>confdefs.h
9563 if test "x$ac_cv_func_fork_works" = xyes
; then
9565 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9570 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9571 # iconv() prototype.
9573 ac_cpp
='$CXXCPP $CPPFLAGS'
9574 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9575 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9576 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9579 if test "X$prefix" = "XNONE"; then
9580 acl_final_prefix
="$ac_default_prefix"
9582 acl_final_prefix
="$prefix"
9584 if test "X$exec_prefix" = "XNONE"; then
9585 acl_final_exec_prefix
='${prefix}'
9587 acl_final_exec_prefix
="$exec_prefix"
9589 acl_save_prefix
="$prefix"
9590 prefix
="$acl_final_prefix"
9591 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9592 prefix
="$acl_save_prefix"
9595 # Check whether --with-gnu-ld was given.
9596 if test "${with_gnu_ld+set}" = set; then :
9597 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9602 # Prepare PATH_SEPARATOR.
9603 # The user is always right.
9604 if test "${PATH_SEPARATOR+set}" != set; then
9605 echo "#! /bin/sh" >conf$$.sh
9606 echo "exit 0" >>conf$$.sh
9608 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9616 if test "$GCC" = yes; then
9617 # Check if gcc -print-prog-name=ld gives a path.
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9619 $as_echo_n "checking for ld used by GCC... " >&6; }
9622 # gcc leaves a trailing carriage return which upsets mingw
9623 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9625 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9628 # Accept absolute paths.
9629 [\\/]* |
[A-Za-z
]:[\\/]*)
9630 re_direlt
='/[^/][^/]*/\.\./'
9631 # Canonicalize the path of ld
9632 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9633 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9634 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9636 test -z "$LD" && LD
="$ac_prog"
9639 # If it fails, then pretend we aren't using GCC.
9643 # If it is relative, then search for the first ld in PATH.
9647 elif test "$with_gnu_ld" = yes; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9649 $as_echo_n "checking for GNU ld... " >&6; }
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9652 $as_echo_n "checking for non-GNU ld... " >&6; }
9654 if test "${acl_cv_path_LD+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9657 if test -z "$LD"; then
9658 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9659 for ac_dir
in $PATH; do
9660 test -z "$ac_dir" && ac_dir
=.
9661 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9662 acl_cv_path_LD
="$ac_dir/$ac_prog"
9663 # Check to see if the program is GNU ld. I'd rather use --version,
9664 # but apparently some GNU ld's only accept -v.
9665 # Break only if it was the GNU/non-GNU ld that we prefer.
9666 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9667 test "$with_gnu_ld" != no
&& break
9669 test "$with_gnu_ld" != yes && break
9675 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9679 LD
="$acl_cv_path_LD"
9680 if test -n "$LD"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9682 $as_echo "$LD" >&6; }
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9687 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9689 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9690 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9693 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9694 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9695 acl_cv_prog_gnu_ld
=yes
9697 acl_cv_prog_gnu_ld
=no
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9701 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9702 with_gnu_ld
=$acl_cv_prog_gnu_ld
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9707 $as_echo_n "checking for shared library run path origin... " >&6; }
9708 if test "${acl_cv_rpath+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9712 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9713 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9720 $as_echo "$acl_cv_rpath" >&6; }
9722 libext
="$acl_cv_libext"
9723 shlibext
="$acl_cv_shlibext"
9724 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9725 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9726 hardcode_direct
="$acl_cv_hardcode_direct"
9727 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9728 # Check whether --enable-rpath was given.
9729 if test "${enable_rpath+set}" = set; then :
9730 enableval
=$enable_rpath; :
9744 acl_save_prefix
="$prefix"
9745 prefix
="$acl_final_prefix"
9746 acl_save_exec_prefix
="$exec_prefix"
9747 exec_prefix
="$acl_final_exec_prefix"
9749 eval additional_includedir
=\"$includedir\"
9750 eval additional_libdir
=\"$libdir\"
9752 exec_prefix
="$acl_save_exec_prefix"
9753 prefix
="$acl_save_prefix"
9756 # Check whether --with-libiconv-prefix was given.
9757 if test "${with_libiconv_prefix+set}" = set; then :
9758 withval
=$with_libiconv_prefix;
9759 if test "X$withval" = "Xno"; then
9762 if test "X$withval" = "X"; then
9764 acl_save_prefix
="$prefix"
9765 prefix
="$acl_final_prefix"
9766 acl_save_exec_prefix
="$exec_prefix"
9767 exec_prefix
="$acl_final_exec_prefix"
9769 eval additional_includedir
=\"$includedir\"
9770 eval additional_libdir
=\"$libdir\"
9772 exec_prefix
="$acl_save_exec_prefix"
9773 prefix
="$acl_save_prefix"
9776 additional_includedir
="$withval/include"
9777 additional_libdir
="$withval/lib"
9788 names_already_handled
=
9789 names_next_round
='iconv '
9790 while test -n "$names_next_round"; do
9791 names_this_round
="$names_next_round"
9793 for name
in $names_this_round; do
9795 for n
in $names_already_handled; do
9796 if test "$n" = "$name"; then
9801 if test -z "$already_handled"; then
9802 names_already_handled
="$names_already_handled $name"
9803 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9804 eval value
=\"\
$HAVE_LIB$uppername\"
9805 if test -n "$value"; then
9806 if test "$value" = yes; then
9807 eval value
=\"\
$LIB$uppername\"
9808 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9809 eval value
=\"\
$LTLIB$uppername\"
9810 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9819 if test $use_additional = yes; then
9820 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9821 found_dir
="$additional_libdir"
9822 found_so
="$additional_libdir/lib$name.$shlibext"
9823 if test -f "$additional_libdir/lib$name.la"; then
9824 found_la
="$additional_libdir/lib$name.la"
9827 if test -f "$additional_libdir/lib$name.$libext"; then
9828 found_dir
="$additional_libdir"
9829 found_a
="$additional_libdir/lib$name.$libext"
9830 if test -f "$additional_libdir/lib$name.la"; then
9831 found_la
="$additional_libdir/lib$name.la"
9836 if test "X$found_dir" = "X"; then
9837 for x
in $LDFLAGS $LTLIBICONV; do
9839 acl_save_prefix
="$prefix"
9840 prefix
="$acl_final_prefix"
9841 acl_save_exec_prefix
="$exec_prefix"
9842 exec_prefix
="$acl_final_exec_prefix"
9844 exec_prefix
="$acl_save_exec_prefix"
9845 prefix
="$acl_save_prefix"
9849 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9850 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9852 found_so
="$dir/lib$name.$shlibext"
9853 if test -f "$dir/lib$name.la"; then
9854 found_la
="$dir/lib$name.la"
9857 if test -f "$dir/lib$name.$libext"; then
9859 found_a
="$dir/lib$name.$libext"
9860 if test -f "$dir/lib$name.la"; then
9861 found_la
="$dir/lib$name.la"
9867 if test "X$found_dir" != "X"; then
9872 if test "X$found_dir" != "X"; then
9873 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9874 if test "X$found_so" != "X"; then
9875 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9876 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9879 for x
in $ltrpathdirs; do
9880 if test "X$x" = "X$found_dir"; then
9885 if test -z "$haveit"; then
9886 ltrpathdirs
="$ltrpathdirs $found_dir"
9888 if test "$hardcode_direct" = yes; then
9889 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9891 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9892 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9894 for x
in $rpathdirs; do
9895 if test "X$x" = "X$found_dir"; then
9900 if test -z "$haveit"; then
9901 rpathdirs
="$rpathdirs $found_dir"
9905 for x
in $LDFLAGS $LIBICONV; do
9907 acl_save_prefix
="$prefix"
9908 prefix
="$acl_final_prefix"
9909 acl_save_exec_prefix
="$exec_prefix"
9910 exec_prefix
="$acl_final_exec_prefix"
9912 exec_prefix
="$acl_save_exec_prefix"
9913 prefix
="$acl_save_prefix"
9915 if test "X$x" = "X-L$found_dir"; then
9920 if test -z "$haveit"; then
9921 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9923 if test "$hardcode_minus_L" != no
; then
9924 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9926 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9932 if test "X$found_a" != "X"; then
9933 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9935 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9938 additional_includedir
=
9939 case "$found_dir" in
9941 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9942 additional_includedir
="$basedir/include"
9945 if test "X$additional_includedir" != "X"; then
9946 if test "X$additional_includedir" != "X/usr/include"; then
9948 if test "X$additional_includedir" = "X/usr/local/include"; then
9949 if test -n "$GCC"; then
9951 linux
*) haveit
=yes;;
9955 if test -z "$haveit"; then
9956 for x
in $CPPFLAGS $INCICONV; do
9958 acl_save_prefix
="$prefix"
9959 prefix
="$acl_final_prefix"
9960 acl_save_exec_prefix
="$exec_prefix"
9961 exec_prefix
="$acl_final_exec_prefix"
9963 exec_prefix
="$acl_save_exec_prefix"
9964 prefix
="$acl_save_prefix"
9966 if test "X$x" = "X-I$additional_includedir"; then
9971 if test -z "$haveit"; then
9972 if test -d "$additional_includedir"; then
9973 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9979 if test -n "$found_la"; then
9980 save_libdir
="$libdir"
9982 */* |
*\\*) .
"$found_la" ;;
9983 *) .
"./$found_la" ;;
9985 libdir
="$save_libdir"
9986 for dep
in $dependency_libs; do
9989 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9990 if test "X$additional_libdir" != "X/usr/lib"; then
9992 if test "X$additional_libdir" = "X/usr/local/lib"; then
9993 if test -n "$GCC"; then
9995 linux
*) haveit
=yes;;
9999 if test -z "$haveit"; then
10001 for x
in $LDFLAGS $LIBICONV; do
10003 acl_save_prefix
="$prefix"
10004 prefix
="$acl_final_prefix"
10005 acl_save_exec_prefix
="$exec_prefix"
10006 exec_prefix
="$acl_final_exec_prefix"
10008 exec_prefix
="$acl_save_exec_prefix"
10009 prefix
="$acl_save_prefix"
10011 if test "X$x" = "X-L$additional_libdir"; then
10016 if test -z "$haveit"; then
10017 if test -d "$additional_libdir"; then
10018 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10022 for x
in $LDFLAGS $LTLIBICONV; do
10024 acl_save_prefix
="$prefix"
10025 prefix
="$acl_final_prefix"
10026 acl_save_exec_prefix
="$exec_prefix"
10027 exec_prefix
="$acl_final_exec_prefix"
10029 exec_prefix
="$acl_save_exec_prefix"
10030 prefix
="$acl_save_prefix"
10032 if test "X$x" = "X-L$additional_libdir"; then
10037 if test -z "$haveit"; then
10038 if test -d "$additional_libdir"; then
10039 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10046 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10047 if test "$enable_rpath" != no
; then
10049 for x
in $rpathdirs; do
10050 if test "X$x" = "X$dir"; then
10055 if test -z "$haveit"; then
10056 rpathdirs
="$rpathdirs $dir"
10059 for x
in $ltrpathdirs; do
10060 if test "X$x" = "X$dir"; then
10065 if test -z "$haveit"; then
10066 ltrpathdirs
="$ltrpathdirs $dir"
10071 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10074 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10077 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10078 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10084 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10085 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10091 if test "X$rpathdirs" != "X"; then
10092 if test -n "$hardcode_libdir_separator"; then
10094 for found_dir
in $rpathdirs; do
10095 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10097 acl_save_libdir
="$libdir"
10099 eval flag
=\"$hardcode_libdir_flag_spec\"
10100 libdir
="$acl_save_libdir"
10101 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10103 for found_dir
in $rpathdirs; do
10104 acl_save_libdir
="$libdir"
10105 libdir
="$found_dir"
10106 eval flag
=\"$hardcode_libdir_flag_spec\"
10107 libdir
="$acl_save_libdir"
10108 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10112 if test "X$ltrpathdirs" != "X"; then
10113 for found_dir
in $ltrpathdirs; do
10114 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10124 am_save_CPPFLAGS
="$CPPFLAGS"
10126 for element
in $INCICONV; do
10128 for x
in $CPPFLAGS; do
10130 acl_save_prefix
="$prefix"
10131 prefix
="$acl_final_prefix"
10132 acl_save_exec_prefix
="$exec_prefix"
10133 exec_prefix
="$acl_final_exec_prefix"
10135 exec_prefix
="$acl_save_exec_prefix"
10136 prefix
="$acl_save_prefix"
10138 if test "X$x" = "X$element"; then
10143 if test -z "$haveit"; then
10144 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10150 $as_echo_n "checking for iconv... " >&6; }
10151 if test "${am_cv_func_iconv+set}" = set; then :
10152 $as_echo_n "(cached) " >&6
10155 am_cv_func_iconv
="no, consider installing GNU libiconv"
10157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159 #include <stdlib.h>
10164 iconv_t cd = iconv_open("","");
10165 iconv(cd,NULL,NULL,NULL,NULL);
10171 if ac_fn_cxx_try_link
"$LINENO"; then :
10172 am_cv_func_iconv
=yes
10174 rm -f core conftest.err conftest.
$ac_objext \
10175 conftest
$ac_exeext conftest.
$ac_ext
10176 if test "$am_cv_func_iconv" != yes; then
10177 am_save_LIBS
="$LIBS"
10178 LIBS
="$LIBS $LIBICONV"
10179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 #include <stdlib.h>
10186 iconv_t cd = iconv_open("","");
10187 iconv(cd,NULL,NULL,NULL,NULL);
10193 if ac_fn_cxx_try_link
"$LINENO"; then :
10194 am_cv_lib_iconv
=yes
10195 am_cv_func_iconv
=yes
10197 rm -f core conftest.err conftest.
$ac_objext \
10198 conftest
$ac_exeext conftest.
$ac_ext
10199 LIBS
="$am_save_LIBS"
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10204 $as_echo "$am_cv_func_iconv" >&6; }
10205 if test "$am_cv_func_iconv" = yes; then
10207 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10210 if test "$am_cv_lib_iconv" = yes; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10212 $as_echo_n "checking how to link with libiconv... " >&6; }
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10214 $as_echo "$LIBICONV" >&6; }
10216 CPPFLAGS
="$am_save_CPPFLAGS"
10223 if test "$am_cv_func_iconv" = yes; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10225 $as_echo_n "checking for iconv declaration... " >&6; }
10226 if test "${am_cv_proto_iconv+set}" = set; then :
10227 $as_echo_n "(cached) " >&6
10230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h. */
10233 #include <stdlib.h>
10239 #if defined(__STDC__) || defined(__cplusplus)
10240 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10253 if ac_fn_cxx_try_compile
"$LINENO"; then :
10254 am_cv_proto_iconv_arg1
=""
10256 am_cv_proto_iconv_arg1
="const"
10258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10259 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);"
10262 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10264 }$am_cv_proto_iconv" >&5
10266 }$am_cv_proto_iconv" >&6; }
10268 cat >>confdefs.h
<<_ACEOF
10269 #define ICONV_CONST $am_cv_proto_iconv_arg1
10275 ac_cpp
='$CPP $CPPFLAGS'
10276 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10277 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10278 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10281 # Until we have in-tree GNU iconv:
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10287 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10288 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10289 $as_echo_n "(cached) " >&6
10291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 #include <locale.h>
10302 if ac_fn_c_try_link
"$LINENO"; then :
10303 am_cv_val_LC_MESSAGES
=yes
10305 am_cv_val_LC_MESSAGES
=no
10307 rm -f core conftest.err conftest.
$ac_objext \
10308 conftest
$ac_exeext conftest.
$ac_ext
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10311 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10312 if test $am_cv_val_LC_MESSAGES = yes; then
10314 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10321 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10322 if test "${am_cv_langinfo_codeset+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #include <langinfo.h>
10331 char* cs = nl_langinfo(CODESET);
10336 if ac_fn_c_try_link
"$LINENO"; then :
10337 am_cv_langinfo_codeset
=yes
10339 am_cv_langinfo_codeset
=no
10341 rm -f core conftest.err conftest.
$ac_objext \
10342 conftest
$ac_exeext conftest.
$ac_ext
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10346 $as_echo "$am_cv_langinfo_codeset" >&6; }
10347 if test $am_cv_langinfo_codeset = yes; then
10349 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10354 # We will need to find libiberty.h and ansidecl.h
10355 saved_CFLAGS
="$CFLAGS"
10356 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10357 saved_CXXFLAGS
="$CXXFLAGS"
10358 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10359 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10360 strsignal strstr stpcpy strverscmp \
10361 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10362 free
basename getopt
clock getpagesize ffs 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
10364 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10366 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10367 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10368 $as_echo_n "(cached) " >&6
10370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10373 #define $ac_tr_decl 1
10375 #include "ansidecl.h"
10376 #include "system.h"
10382 char *(*pfn) = (char *(*)) $ac_func ;
10388 if ac_fn_c_try_compile
"$LINENO"; then :
10389 eval "gcc_cv_have_decl_$ac_func=yes"
10391 eval "gcc_cv_have_decl_$ac_func=no"
10393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10396 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10398 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10399 #define $ac_tr_decl 1
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10405 #define $ac_tr_decl 0
10413 for ac_func
in getrlimit setrlimit getrusage
10415 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10417 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10418 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10419 $as_echo_n "(cached) " >&6
10421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10424 #define $ac_tr_decl 1
10426 #include "ansidecl.h"
10427 #include "system.h"
10428 #ifdef HAVE_SYS_RESOURCE_H
10429 #include <sys/resource.h>
10437 char *(*pfn) = (char *(*)) $ac_func ;
10443 if ac_fn_c_try_compile
"$LINENO"; then :
10444 eval "gcc_cv_have_decl_$ac_func=yes"
10446 eval "gcc_cv_have_decl_$ac_func=no"
10448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10451 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10453 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10454 #define $ac_tr_decl 1
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10460 #define $ac_tr_decl 0
10468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10471 #include "ansidecl.h"
10472 #include "system.h"
10473 #ifdef HAVE_SYS_RESOURCE_H
10474 #include <sys/resource.h>
10485 if ac_fn_c_try_compile
"$LINENO"; then :
10489 $as_echo "#define rlim_t long" >>confdefs.h
10492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10494 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10495 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10496 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10497 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10498 for ac_func
in ldgetname
10500 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10502 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10503 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10504 $as_echo_n "(cached) " >&6
10506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10509 #define $ac_tr_decl 1
10511 #include "ansidecl.h"
10512 #include "system.h"
10513 #ifdef HAVE_LDFCN_H
10524 char *(*pfn) = (char *(*)) $ac_func ;
10530 if ac_fn_c_try_compile
"$LINENO"; then :
10531 eval "gcc_cv_have_decl_$ac_func=yes"
10533 eval "gcc_cv_have_decl_$ac_func=no"
10535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10540 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10541 #define $ac_tr_decl 1
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10547 #define $ac_tr_decl 0
10555 for ac_func
in times
10557 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10559 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10560 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10561 $as_echo_n "(cached) " >&6
10563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10566 #define $ac_tr_decl 1
10568 #include "ansidecl.h"
10569 #include "system.h"
10570 #ifdef HAVE_SYS_TIMES_H
10571 #include <sys/times.h>
10579 char *(*pfn) = (char *(*)) $ac_func ;
10585 if ac_fn_c_try_compile
"$LINENO"; then :
10586 eval "gcc_cv_have_decl_$ac_func=yes"
10588 eval "gcc_cv_have_decl_$ac_func=no"
10590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10593 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10596 #define $ac_tr_decl 1
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10602 #define $ac_tr_decl 0
10610 for ac_func
in sigaltstack
10612 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10614 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10615 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10616 $as_echo_n "(cached) " >&6
10618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10621 #define $ac_tr_decl 1
10623 #include "ansidecl.h"
10624 #include "system.h"
10625 #include <signal.h>
10632 char *(*pfn) = (char *(*)) $ac_func ;
10638 if ac_fn_c_try_compile
"$LINENO"; then :
10639 eval "gcc_cv_have_decl_$ac_func=yes"
10641 eval "gcc_cv_have_decl_$ac_func=no"
10643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10646 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10649 #define $ac_tr_decl 1
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10655 #define $ac_tr_decl 0
10663 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10666 ac_cpp
='$CXXCPP $CPPFLAGS'
10667 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10668 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10669 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10671 for ac_func
in madvise
10673 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10675 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10676 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10677 $as_echo_n "(cached) " >&6
10679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10682 #define $ac_tr_decl 1
10684 #include "ansidecl.h"
10685 #include "system.h"
10692 char *(*pfn) = (char *(*)) $ac_func ;
10698 if ac_fn_cxx_try_compile
"$LINENO"; then :
10699 eval "gcc_cv_have_decl_$ac_func=yes"
10701 eval "gcc_cv_have_decl_$ac_func=no"
10703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10706 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10709 #define $ac_tr_decl 1
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10715 #define $ac_tr_decl 0
10723 ac_cpp
='$CPP $CPPFLAGS'
10724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10729 # More time-related stuff.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10731 $as_echo_n "checking for struct tms... " >&6; }
10732 if test "${ac_cv_struct_tms+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
10736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10739 #include "ansidecl.h"
10740 #include "system.h"
10741 #ifdef HAVE_SYS_TIMES_H
10742 #include <sys/times.h>
10753 if ac_fn_c_try_compile
"$LINENO"; then :
10754 ac_cv_struct_tms
=yes
10756 ac_cv_struct_tms
=no
10758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10761 $as_echo "$ac_cv_struct_tms" >&6; }
10762 if test $ac_cv_struct_tms = yes; then
10764 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10768 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10769 # revisit after autoconf 2.50.
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10771 $as_echo_n "checking for clock_t... " >&6; }
10772 if test "${gcc_cv_type_clock_t+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 #include "ansidecl.h"
10780 #include "system.h"
10790 if ac_fn_c_try_compile
"$LINENO"; then :
10791 gcc_cv_type_clock_t
=yes
10793 gcc_cv_type_clock_t
=no
10795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10798 $as_echo "$gcc_cv_type_clock_t" >&6; }
10799 if test $gcc_cv_type_clock_t = yes; then
10801 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10805 # Check if F_SETLKW is supported by fcntl.
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10807 $as_echo_n "checking for F_SETLKW... " >&6; }
10808 if test "${ac_cv_f_setlkw+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10825 return fcntl (1, F_SETLKW, &fl);
10830 if ac_fn_c_try_compile
"$LINENO"; then :
10835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10838 $as_echo "$ac_cv_f_setlkw" >&6; }
10839 if test $ac_cv_f_setlkw = yes; then
10841 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10845 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10846 CFLAGS
="$saved_CFLAGS"
10847 CXXFLAGS
="$saved_CXXFLAGS"
10849 # mkdir takes a single argument on some systems.
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10851 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10852 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10853 $as_echo_n "(cached) " >&6
10855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10858 #include <sys/types.h>
10859 #ifdef HAVE_SYS_STAT_H
10860 # include <sys/stat.h>
10862 #ifdef HAVE_UNISTD_H
10863 # include <unistd.h>
10865 #ifdef HAVE_DIRECT_H
10866 # include <direct.h>
10876 if ac_fn_c_try_compile
"$LINENO"; then :
10877 gcc_cv_mkdir_takes_one_arg
=no
10879 gcc_cv_mkdir_takes_one_arg
=yes
10881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10884 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10885 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10887 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10898 # With Setjmp/Longjmp based exception handling.
10899 # Check whether --enable-sjlj-exceptions was given.
10900 if test "${enable_sjlj_exceptions+set}" = set; then :
10901 enableval
=$enable_sjlj_exceptions; case $target in
10903 if test $enableval != yes; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10905 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10910 force_sjlj_exceptions
=yes
10914 force_sjlj_exceptions
=yes
10918 force_sjlj_exceptions
=no
10923 if test $force_sjlj_exceptions = yes; then
10924 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10926 cat >>confdefs.h
<<_ACEOF
10927 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10932 # --------------------------------------------------------
10933 # Build, host, and target specific configuration fragments
10934 # --------------------------------------------------------
10936 # Collect build-machine-specific information.
10937 .
${srcdir}/config.build
10939 # Collect host-machine-specific information.
10940 .
${srcdir}/config.
host
10944 # Collect target-machine-specific information.
10945 .
${srcdir}/config.gcc
10947 extra_objs
="${host_extra_objs} ${extra_objs}"
10948 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10950 # Default the target-machine variables that were not explicitly set.
10951 if test x
"$tm_file" = x
10952 then tm_file
=$cpu_type/$cpu_type.h
; fi
10954 if test x
"$extra_headers" = x
10955 then extra_headers
=; fi
10957 if test x
$md_file = x
10958 then md_file
=$cpu_type/$cpu_type.md
; fi
10960 if test x
$out_file = x
10961 then out_file
=$cpu_type/$cpu_type.c
; fi
10963 if test x
"$tmake_file" = x
10964 then tmake_file
=$cpu_type/t-
$cpu_type
10967 # Support --enable-initfini-array.
10968 if test x
$enable_initfini_array != xno
; then
10969 tm_file
="${tm_file} initfini-array.h"
10972 if test x
"$dwarf2" = xyes
10973 then tm_file
="$tm_file tm-dwarf2.h"
10976 # Say what files are being used for the output code and MD file.
10977 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10978 echo "Using \`$srcdir/config/$md_file' as machine description file."
10980 # If any of the xm_file variables contain nonexistent files, warn
10981 # about them and drop them.
10984 for x
in $build_xm_file; do
10985 if test -f $srcdir/config
/$x
10987 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10988 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10991 build_xm_file
="$bx"
10994 for x
in $host_xm_file; do
10995 if test -f $srcdir/config
/$x
10997 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10998 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11004 for x
in $xm_file; do
11005 if test -f $srcdir/config
/$x
11007 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11008 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11014 for f
in $tm_file; do
11017 if test $count = ax
; then
11018 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11020 echo "Using the following target machine macro files:"
11021 for f
in $tm_file; do
11022 echo " $srcdir/config/$f"
11026 if test x
$need_64bit_hwint = xyes
; then
11028 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11032 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11034 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11038 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11040 cat >>confdefs.h
<<_ACEOF
11041 #define HAVE_GNU_LD $gnu_ld_bool
11045 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11047 cat >>confdefs.h
<<_ACEOF
11048 #define HAVE_GNU_AS $gnu_as_bool
11053 for f
in $host_xm_file; do
11056 if test $count = a
; then
11058 elif test $count = ax
; then
11059 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11061 echo "Using the following host machine macro files:"
11062 for f
in $host_xm_file; do
11063 echo " $srcdir/config/$f"
11066 echo "Using ${out_host_hook_obj} for host machine hooks."
11068 if test "$host_xm_file" != "$build_xm_file"; then
11070 for f
in $build_xm_file; do
11073 if test $count = a
; then
11075 elif test $count = ax
; then
11076 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11078 echo "Using the following build machine macro files:"
11079 for f
in $build_xm_file; do
11080 echo " $srcdir/config/$f"
11085 if test -n "$configured_native_system_header_dir"; then
11086 native_system_header_dir
=$configured_native_system_header_dir
11088 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11092 powerpc
*-*-darwin*)
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11094 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11095 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11101 #include <sys/cdefs.h>
11102 #include <sys/signal.h>
11103 #include <ucontext.h>
11104 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11107 if ac_fn_c_try_compile
"$LINENO"; then :
11108 gcc_cv_mcontext_underscores
=no
11110 gcc_cv_mcontext_underscores
=yes
11112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11115 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11116 if test $gcc_cv_mcontext_underscores = yes; then
11118 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11128 # Check if a valid thread package
11129 case ${enable_threads} in
11132 target_thread_file
='single'
11136 target_thread_file
='single'
11138 aix | dce | lynx | mipssde | posix | rtems | \
11139 single | tpf | vxworks | win32
)
11140 target_thread_file
=${enable_threads}
11143 echo "${enable_threads} is an unknown thread package" 1>&2
11148 if test x
${thread_file} = x
; then
11149 # No thread file set by target-specific clauses in config.gcc,
11150 # so use file chosen by default logic above
11151 thread_file
=${target_thread_file}
11159 if test x
$enable___cxa_atexit = xyes || \
11160 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11161 if test x
$host = x
$target; then
11163 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11164 # keyed to flag_use_cxa_atexit
11172 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11173 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11176 echo "__cxa_atexit can't be enabled on this target"
11182 # We can't check for __cxa_atexit when building a cross, so assume
11186 if test x
$use_cxa_atexit = xyes
; then
11188 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11193 # Look for a file containing extra machine modes.
11194 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11195 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11198 cat >>confdefs.h
<<_ACEOF
11199 #define EXTRA_MODES_FILE "config/$extra_modes"
11204 # Convert extra_options into a form suitable for Makefile use.
11207 for f
in $extra_options; do
11208 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11209 all_opt_files
="$all_opt_files $srcdir/config/$f"
11213 # auto-host.h is the file containing items generated by autoconf and is
11214 # the first file included by config.h.
11215 # If host=build, it is correct to have bconfig include auto-host.h
11216 # as well. If host!=build, we are in error and need to do more
11217 # work to find out the build config parameters.
11218 if test x
$host = x
$build
11220 build_auto
=auto-host.h
11222 # We create a subdir, then run autoconf in the subdir.
11223 # To prevent recursion we set host and build for the new
11224 # invocation of configure to the build for this invocation
11231 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11232 *) realsrcdir
=..
/${srcdir};;
11234 saved_CFLAGS
="${CFLAGS}"
11235 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11236 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11237 ${realsrcdir}/configure \
11238 --enable-languages=${enable_languages-all} \
11239 --target=$target_alias --host=$build_alias --build=$build_alias
11240 CFLAGS
="${saved_CFLAGS}"
11242 # We just finished tests for the build machine, so rename
11243 # the file auto-build.h in the gcc directory.
11244 mv auto-host.h ..
/auto-build.h
11247 build_auto
=auto-build.h
11251 tm_file
="${tm_file} defaults.h"
11252 tm_p_file
="${tm_p_file} tm-preds.h"
11253 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11254 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11255 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11256 # put this back in temporarily.
11257 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11263 # Compile in configure arguments.
11264 if test -f configargs.h
; then
11265 # Being re-configured.
11266 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11267 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11269 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11272 # Double all backslashes and backslash all quotes to turn
11273 # gcc_config_arguments into a C string.
11274 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11275 $gcc_config_arguments
11277 gcc_config_arguments_str
=`cat conftest.out`
11280 cat > configargs.h
<<EOF
11281 /* Generated automatically. */
11282 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11283 static const char thread_model[] = "$thread_file";
11285 static const struct {
11286 const char *name, *value;
11287 } configure_default_options[] = $configure_default_options;
11290 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11291 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11292 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11293 if test -f $srcdir/REVISION
; then
11294 gcc_REVISION
=`cat $srcdir/REVISION`
11298 cat > plugin-version.h
<<EOF
11299 #include "configargs.h"
11301 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11302 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11303 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11304 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11306 static char basever[] = "$gcc_BASEVER";
11307 static char datestamp[] = "$gcc_DATESTAMP";
11308 static char devphase[] = "$gcc_DEVPHASE";
11309 static char revision[] = "$gcc_REVISION";
11311 /* FIXME plugins: We should make the version information more precise.
11312 One way to do is to add a checksum. */
11314 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11315 devphase, revision,
11316 configuration_arguments};
11319 # Internationalization
11320 # If we haven't got the data from the intl directory,
11321 # assume NLS is disabled.
11330 if test -f ..
/intl
/config.intl
; then
11331 . ..
/intl
/config.intl
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11334 $as_echo_n "checking whether NLS is requested... " >&6; }
11335 if test x
"$USE_NLS" != xyes
; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11340 $as_echo "yes" >&6; }
11342 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11346 $as_echo_n "checking for catalogs to be installed... " >&6; }
11347 # Look for .po and .gmo files in the source directory.
11350 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11351 # If there aren't any .gmo files the shell will give us the
11352 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11354 case "$cat" in *\
**)
11357 # The quadruple backslash is collapsed to a double backslash
11358 # by the backticks, then collapsed again by the double quotes,
11359 # leaving us with one backslash in the sed expression (right
11360 # before the dot that mustn't act as a wildcard).
11361 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11362 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11363 # The user is allowed to set LINGUAS to a list of languages to
11364 # install catalogs for. If it's empty that means "all of them."
11365 if test "x$LINGUAS" = x
; then
11366 CATALOGS
="$CATALOGS $cat"
11367 XLINGUAS
="$XLINGUAS $lang"
11369 case "$LINGUAS" in *$lang*)
11370 CATALOGS
="$CATALOGS $cat"
11371 XLINGUAS
="$XLINGUAS $lang"
11376 LINGUAS
="$XLINGUAS"
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11378 $as_echo "$LINGUAS" >&6; }
11391 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11392 # -liconv on the link line twice.
11393 case "$LIBINTL" in *$LIBICONV*)
11397 # Check whether --enable-secureplt was given.
11398 if test "${enable_secureplt+set}" = set; then :
11399 enableval
=$enable_secureplt;
11403 # Check whether --enable-leading-mingw64-underscores was given.
11404 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11405 enableval
=$enable_leading_mingw64_underscores;
11408 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11410 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11414 # Check whether --enable-cld was given.
11415 if test "${enable_cld+set}" = set; then :
11416 enableval
=$enable_cld;
11422 # Check whether --enable-frame-pointer was given.
11423 if test "${enable_frame_pointer+set}" = set; then :
11424 enableval
=$enable_frame_pointer;
11428 linux
* | darwin
[8912]*)
11429 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11431 enable_frame_pointer
=no
11434 enable_frame_pointer
=yes
11441 # Windows32 Registry support for specifying GCC installation paths.
11442 # Check whether --enable-win32-registry was given.
11443 if test "${enable_win32_registry+set}" = set; then :
11444 enableval
=$enable_win32_registry;
11449 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11450 if test "x$enable_win32_registry" != xno
; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11452 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11453 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11456 ac_func_search_save_LIBS
=$LIBS
11457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11466 char RegOpenKeyExA ();
11470 return RegOpenKeyExA ();
11475 for ac_lib
in '' advapi32
; do
11476 if test -z "$ac_lib"; then
11477 ac_res
="none required"
11480 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11482 if ac_fn_c_try_link
"$LINENO"; then :
11483 ac_cv_search_RegOpenKeyExA
=$ac_res
11485 rm -f core conftest.err conftest.
$ac_objext \
11487 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11491 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11494 ac_cv_search_RegOpenKeyExA
=no
11496 rm conftest.
$ac_ext
11497 LIBS
=$ac_func_search_save_LIBS
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11500 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11501 ac_res
=$ac_cv_search_RegOpenKeyExA
11502 if test "$ac_res" != no
; then :
11503 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11506 enable_win32_registry
=no
11511 if test "x$enable_win32_registry" != xno
; then
11513 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11516 if test "x$enable_win32_registry" != xyes \
11517 && test "x$enable_win32_registry" != x
; then
11519 cat >>confdefs.h
<<_ACEOF
11520 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11528 # Get an absolute path to the GCC top-level source directory
11529 holddir
=`${PWDCMD-pwd}`
11531 topdir
=`${PWDCMD-pwd}`
11534 # Conditionalize the makefile for this host machine.
11536 for f
in ${host_xmake_file}
11538 if test -f ${srcdir}/config
/$f
11540 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11544 # Conditionalize the makefile for this target machine.
11546 for f
in ${tmake_file}
11548 if test -f ${srcdir}/config
/$f
11550 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11553 tmake_file
="${tmake_file_}"
11555 out_object_file
=`basename $out_file .c`.o
11556 common_out_object_file
=`basename $common_out_file .c`.o
11558 tm_file_list
="options.h"
11559 tm_include_list
="options.h insn-constants.h"
11560 for f
in $tm_file; do
11563 f
=`echo $f | sed 's/^..//'`
11564 tm_file_list
="${tm_file_list} $f"
11565 tm_include_list
="${tm_include_list} $f"
11568 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11569 tm_include_list
="${tm_include_list} $f"
11572 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11573 tm_include_list
="${tm_include_list} config/$f"
11580 for f
in $tm_p_file; do
11583 tm_p_file_list
="${tm_p_file_list} $f"
11584 tm_p_include_list
="${tm_p_include_list} $f"
11587 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11588 tm_p_include_list
="${tm_p_include_list} config/$f"
11594 for f
in $xm_file; do
11597 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11598 xm_include_list
="${xm_include_list} $f"
11601 xm_file_list
="${xm_file_list} $f"
11602 xm_include_list
="${xm_include_list} $f"
11605 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11606 xm_include_list
="${xm_include_list} config/$f"
11612 host_xm_include_list
=
11613 for f
in $host_xm_file; do
11616 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11617 host_xm_include_list
="${host_xm_include_list} $f"
11620 host_xm_file_list
="${host_xm_file_list} $f"
11621 host_xm_include_list
="${host_xm_include_list} $f"
11624 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11625 host_xm_include_list
="${host_xm_include_list} config/$f"
11630 build_xm_file_list
=
11631 for f
in $build_xm_file; do
11634 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11635 build_xm_include_list
="${build_xm_include_list} $f"
11637 auto-build.h | auto-host.h
)
11638 build_xm_file_list
="${build_xm_file_list} $f"
11639 build_xm_include_list
="${build_xm_include_list} $f"
11642 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11643 build_xm_include_list
="${build_xm_include_list} config/$f"
11648 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11649 # cross-compiler which does not use the native headers and libraries.
11650 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11653 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11655 if test "x$with_build_sysroot" != x
; then
11656 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11658 # This value is used, even on a native system, because
11659 # CROSS_SYSTEM_HEADER_DIR is just
11660 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11661 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11664 if test x
$host != x
$target
11666 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11668 SYSTEM_HEADER_DIR
=$build_system_header_dir
11669 case "$host","$target" in
11670 # Darwin crosses can use the host system's libraries and headers,
11671 # because of the fat library support. Of course, it must be the
11672 # same version of Darwin on both sides. Allow the user to
11673 # just say --target=foo-darwin without a version number to mean
11674 # "the version on this system".
11675 *-*-darwin*,*-*-darwin*)
11676 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11677 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11678 if test $hostos = $targetos -o $targetos = darwin
; then
11680 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11685 i?
86-*-*,x86_64-
*-* \
11686 | powerpc
*-*-*,powerpc64
*-*-*)
11687 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11692 if test "x$with_headers" = x
; then
11699 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11700 SYSTEM_HEADER_DIR
=$build_system_header_dir
11703 # If this is a cross-compiler that does not
11704 # have its own set of headers then define
11707 # If this is using newlib, without having the headers available now,
11708 # then define inhibit_libc in LIBGCC2_CFLAGS.
11709 # This prevents libgcc2 from containing any code which requires libc
11711 : ${inhibit_libc=false}
11712 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11713 test x
$with_newlib = xyes
; } &&
11714 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11719 # When building gcc with a cross-compiler, we need to adjust things so
11720 # that the generator programs are still built with the native compiler.
11721 # Also, we cannot run fixincludes.
11723 # These are the normal (build=host) settings:
11724 CC_FOR_BUILD
='$(CC)'
11725 CXX_FOR_BUILD
='$(CXX)'
11726 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11727 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11728 BUILD_LDFLAGS
='$(LDFLAGS)'
11729 STMP_FIXINC
=stmp-fixinc
11731 # And these apply if build != host, or we are generating coverage data
11732 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11734 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11735 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11738 # Expand extra_headers to include complete path.
11739 # This substitutes for lots of t-* files.
11740 extra_headers_list
=
11741 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11742 for file in ${extra_headers} ; do
11743 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11746 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11747 if test x
"$use_gcc_tgmath" = xyes
11748 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11751 # Define collect2 in Makefile.
11752 case $host_can_use_collect2 in
11754 *) collect2
='collect2$(exeext)' ;;
11758 # Add a definition of USE_COLLECT2 if system wants one.
11759 case $use_collect2 in
11760 no
) use_collect2
= ;;
11763 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11764 xm_defines
="${xm_defines} USE_COLLECT2"
11765 case $host_can_use_collect2 in
11767 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11774 cat >>confdefs.h
<<_ACEOF
11775 #define FRPLUGINSONAME "${host_function_reordering_plugin_soname}"
11780 cat >>confdefs.h
<<_ACEOF
11781 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11785 # ---------------------------
11786 # Assembler & linker features
11787 # ---------------------------
11789 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11790 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11791 # However when ld-new is first executed from the build tree, libtool will
11792 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11793 # to the build tree. While doing this we need to use the previous-stage
11794 # linker, or we have an infinite loop. The presence of a shell script as
11795 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11796 # the gcc/collect-ld script. So we need to know how libtool works, or
11797 # exec-tool will fail.
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11803 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11808 macro_version
='2.2.7a'
11809 macro_revision
='1.3134'
11823 ltmain
="$ac_aux_dir/ltmain.sh"
11825 # Backslashify metacharacters that are still active within
11826 # double-quoted strings.
11827 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11829 # Same as above, but do not quote variable references.
11830 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11832 # Sed substitution to delay expansion of an escaped shell variable in a
11833 # double_quote_subst'ed string.
11834 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11836 # Sed substitution to delay expansion of an escaped single quote.
11837 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11839 # Sed substitution to avoid accidental globbing in evaled expressions
11840 no_glob_subst
='s/\*/\\\*/g'
11842 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11843 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11844 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11847 $as_echo_n "checking how to print strings... " >&6; }
11848 # Test print first, because it will be a builtin if present.
11849 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11850 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11852 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11855 # Use this function as a fallback that always works.
11856 func_fallback_echo ()
11858 eval 'cat <<_LTECHO_EOF
11862 ECHO='func_fallback_echo
'
11865 # func_echo_all arg...
11866 # Invoke $ECHO with all args, space-separated.
11873 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11874 $as_echo "printf" >&6; } ;;
11875 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11876 $as_echo "print -r" >&6; } ;;
11877 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11878 $as_echo "cat" >&6; } ;;
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11895 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11896 if test "${ac_cv_path_SED+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
11899 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11900 for ac_i in 1 2 3 4 5 6 7; do
11901 ac_script="$ac_script$as_nl$ac_script"
11903 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11904 { ac_script=; unset ac_script;}
11905 if test -z "$SED"; then
11906 ac_path_SED_found=false
11907 # Loop through the user's path and
test for each of PROGNAME-LIST
11908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11909 for as_dir
in $PATH
11912 test -z "$as_dir" && as_dir
=.
11913 for ac_prog
in sed gsed
; do
11914 for ac_exec_ext
in '' $ac_executable_extensions; do
11915 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11916 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11917 # Check for GNU ac_path_SED and select it if it is found.
11918 # Check for GNU $ac_path_SED
11919 case `"$ac_path_SED" --version 2>&1` in
11921 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11924 $as_echo_n 0123456789 >"conftest.in"
11927 cat "conftest.in" "conftest.in" >"conftest.tmp"
11928 mv "conftest.tmp" "conftest.in"
11929 cp "conftest.in" "conftest.nl"
11930 $as_echo '' >> "conftest.nl"
11931 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11932 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11933 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11934 if test $ac_count -gt ${ac_path_SED_max-0}; then
11935 # Best one so far, save it but keep looking for a better one
11936 ac_cv_path_SED
="$ac_path_SED"
11937 ac_path_SED_max
=$ac_count
11939 # 10*(2^10) chars as input seems more than enough
11940 test $ac_count -gt 10 && break
11942 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11945 $ac_path_SED_found && break 3
11950 if test -z "$ac_cv_path_SED"; then
11951 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11954 ac_cv_path_SED
=$SED
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11959 $as_echo "$ac_cv_path_SED" >&6; }
11960 SED
="$ac_cv_path_SED"
11963 test -z "$SED" && SED
=sed
11964 Xsed
="$SED -e 1s/^X//"
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11977 $as_echo_n "checking for fgrep... " >&6; }
11978 if test "${ac_cv_path_FGREP+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
11981 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11982 then ac_cv_path_FGREP
="$GREP -F"
11984 if test -z "$FGREP"; then
11985 ac_path_FGREP_found
=false
11986 # Loop through the user's path and test for each of PROGNAME-LIST
11987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11988 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11991 test -z "$as_dir" && as_dir
=.
11992 for ac_prog
in fgrep
; do
11993 for ac_exec_ext
in '' $ac_executable_extensions; do
11994 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11995 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11996 # Check for GNU ac_path_FGREP and select it if it is found.
11997 # Check for GNU $ac_path_FGREP
11998 case `"$ac_path_FGREP" --version 2>&1` in
12000 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12003 $as_echo_n 0123456789 >"conftest.in"
12006 cat "conftest.in" "conftest.in" >"conftest.tmp"
12007 mv "conftest.tmp" "conftest.in"
12008 cp "conftest.in" "conftest.nl"
12009 $as_echo 'FGREP' >> "conftest.nl"
12010 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12011 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12012 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12013 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12014 # Best one so far, save it but keep looking for a better one
12015 ac_cv_path_FGREP
="$ac_path_FGREP"
12016 ac_path_FGREP_max
=$ac_count
12018 # 10*(2^10) chars as input seems more than enough
12019 test $ac_count -gt 10 && break
12021 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12024 $ac_path_FGREP_found && break 3
12029 if test -z "$ac_cv_path_FGREP"; then
12030 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12033 ac_cv_path_FGREP
=$FGREP
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12039 $as_echo "$ac_cv_path_FGREP" >&6; }
12040 FGREP
="$ac_cv_path_FGREP"
12043 test -z "$GREP" && GREP
=grep
12063 # Check whether --with-gnu-ld was given.
12064 if test "${with_gnu_ld+set}" = set; then :
12065 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12071 if test "$GCC" = yes; then
12072 # Check if gcc -print-prog-name=ld gives a path.
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12074 $as_echo_n "checking for ld used by $CC... " >&6; }
12077 # gcc leaves a trailing carriage return which upsets mingw
12078 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12080 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12083 # Accept absolute paths.
12085 re_direlt
='/[^/][^/]*/\.\./'
12086 # Canonicalize the pathname of ld
12087 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12088 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12089 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12091 test -z "$LD" && LD
="$ac_prog"
12094 # If it fails, then pretend we aren't using GCC.
12098 # If it is relative, then search for the first ld in PATH.
12099 with_gnu_ld
=unknown
12102 elif test "$with_gnu_ld" = yes; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12104 $as_echo_n "checking for GNU ld... " >&6; }
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12107 $as_echo_n "checking for non-GNU ld... " >&6; }
12109 if test "${lt_cv_path_LD+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12112 if test -z "$LD"; then
12113 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12114 for ac_dir
in $PATH; do
12116 test -z "$ac_dir" && ac_dir
=.
12117 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12118 lt_cv_path_LD
="$ac_dir/$ac_prog"
12119 # Check to see if the program is GNU ld. I'd rather use --version,
12120 # but apparently some variants of GNU ld only accept -v.
12121 # Break only if it was the GNU/non-GNU ld that we prefer.
12122 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12123 *GNU
* |
*'with BFD'*)
12124 test "$with_gnu_ld" != no
&& break
12127 test "$with_gnu_ld" != yes && break
12134 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12138 LD
="$lt_cv_path_LD"
12139 if test -n "$LD"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12141 $as_echo "$LD" >&6; }
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12146 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12148 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12149 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12152 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12153 case `$LD -v 2>&1 </dev/null` in
12154 *GNU
* |
*'with BFD'*)
12155 lt_cv_prog_gnu_ld
=yes
12158 lt_cv_prog_gnu_ld
=no
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12163 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12164 with_gnu_ld
=$lt_cv_prog_gnu_ld
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12175 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12176 if test "${lt_cv_path_NM+set}" = set; then :
12177 $as_echo_n "(cached) " >&6
12179 if test -n "$NM"; then
12180 # Let the user override the test.
12181 lt_cv_path_NM
="$NM"
12183 lt_nm_to_check
="${ac_tool_prefix}nm"
12184 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12185 lt_nm_to_check
="$lt_nm_to_check nm"
12187 for lt_tmp_nm
in $lt_nm_to_check; do
12188 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12189 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12191 test -z "$ac_dir" && ac_dir
=.
12192 tmp_nm
="$ac_dir/$lt_tmp_nm"
12193 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12194 # Check to see if the nm accepts a BSD-compat flag.
12195 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12196 # nm: unknown option "B" ignored
12197 # Tru64's nm complains that /dev/null is an invalid object file
12198 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12199 */dev
/null
* |
*'Invalid file or object type'*)
12200 lt_cv_path_NM
="$tmp_nm -B"
12204 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12206 lt_cv_path_NM
="$tmp_nm -p"
12210 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12211 continue # so that we can try to find one that supports BSD flags
12220 : ${lt_cv_path_NM=no}
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12224 $as_echo "$lt_cv_path_NM" >&6; }
12225 if test "$lt_cv_path_NM" != "no"; then
12226 NM
="$lt_cv_path_NM"
12228 # Didn't find any BSD compatible name lister, look for dumpbin.
12229 if test -n "$DUMPBIN"; then :
12230 # Let the user override the test.
12232 if test -n "$ac_tool_prefix"; then
12233 for ac_prog
in dumpbin
"link -dump"
12235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12236 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12242 if test -n "$DUMPBIN"; then
12243 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12246 for as_dir
in $PATH
12249 test -z "$as_dir" && as_dir
=.
12250 for ac_exec_ext
in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 DUMPBIN
=$ac_cv_prog_DUMPBIN
12263 if test -n "$DUMPBIN"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12265 $as_echo "$DUMPBIN" >&6; }
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12272 test -n "$DUMPBIN" && break
12275 if test -z "$DUMPBIN"; then
12276 ac_ct_DUMPBIN
=$DUMPBIN
12277 for ac_prog
in dumpbin
"link -dump"
12279 # Extract the first word of "$ac_prog", so it can be a program name with args.
12280 set dummy
$ac_prog; ac_word
=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12284 $as_echo_n "(cached) " >&6
12286 if test -n "$ac_ct_DUMPBIN"; then
12287 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12290 for as_dir
in $PATH
12293 test -z "$as_dir" && as_dir
=.
12294 for ac_exec_ext
in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12306 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12307 if test -n "$ac_ct_DUMPBIN"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12309 $as_echo "$ac_ct_DUMPBIN" >&6; }
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12316 test -n "$ac_ct_DUMPBIN" && break
12319 if test "x$ac_ct_DUMPBIN" = x
; then
12322 case $cross_compiling:$ac_tool_warned in
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12326 ac_tool_warned
=yes ;;
12328 DUMPBIN
=$ac_ct_DUMPBIN
12332 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12334 DUMPBIN
="$DUMPBIN -symbols"
12342 if test "$DUMPBIN" != ":"; then
12346 test -z "$NM" && NM
=nm
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12354 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12355 if test "${lt_cv_nm_interface+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12358 lt_cv_nm_interface
="BSD nm"
12359 echo "int some_variable = 0;" > conftest.
$ac_ext
12360 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12361 (eval "$ac_compile" 2>conftest.err
)
12362 cat conftest.err
>&5
12363 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12364 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12365 cat conftest.err
>&5
12366 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12367 cat conftest.out
>&5
12368 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12369 lt_cv_nm_interface
="MS dumpbin"
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12374 $as_echo "$lt_cv_nm_interface" >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12377 $as_echo_n "checking whether ln -s works... " >&6; }
12379 if test "$LN_S" = "ln -s"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12381 $as_echo "yes" >&6; }
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12384 $as_echo "no, using $LN_S" >&6; }
12387 # find the maximum length of command line arguments
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12389 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12390 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12398 # On DJGPP, this test can blow up pretty badly due to problems in libc
12399 # (any single argument exceeding 2000 bytes causes a buffer overrun
12400 # during glob expansion). Even if it were fixed, the result of this
12401 # check would be larger than it should be.
12402 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12406 # Under GNU Hurd, this test is not required because there is
12407 # no limit to the length of command line arguments.
12408 # Libtool will interpret -1 as no limit whatsoever
12409 lt_cv_sys_max_cmd_len
=-1;
12412 cygwin
* | mingw
* | cegcc
*)
12413 # On Win9x/ME, this test blows up -- it succeeds, but takes
12414 # about 5 minutes as the teststring grows exponentially.
12415 # Worse, since 9x/ME are not pre-emptively multitasking,
12416 # you end up with a "frozen" computer, even though with patience
12417 # the test eventually succeeds (with a max line length of 256k).
12418 # Instead, let's just punt: use the minimum linelength reported by
12419 # all of the supported platforms: 8192 (on NT/2K/XP).
12420 lt_cv_sys_max_cmd_len
=8192;
12424 # On MiNT this can take a long time and run out of memory.
12425 lt_cv_sys_max_cmd_len
=8192;
12429 # On AmigaOS with pdksh, this test takes hours, literally.
12430 # So we just punt and use a minimum line length of 8192.
12431 lt_cv_sys_max_cmd_len
=8192;
12434 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12435 # This has been around since 386BSD, at least. Likely further.
12436 if test -x /sbin
/sysctl
; then
12437 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12438 elif test -x /usr
/sbin
/sysctl
; then
12439 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12441 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12443 # And add a safety zone
12444 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12445 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12449 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12450 lt_cv_sys_max_cmd_len
=196608
12454 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12455 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12456 # nice to cause kernel panics so lets avoid the loop below.
12457 # First set a reasonable default.
12458 lt_cv_sys_max_cmd_len
=16384
12460 if test -x /sbin
/sysconfig
; then
12461 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12462 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12467 lt_cv_sys_max_cmd_len
=102400
12469 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12470 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12471 if test -n "$kargmax"; then
12472 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12474 lt_cv_sys_max_cmd_len
=32768
12478 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12479 if test -n "$lt_cv_sys_max_cmd_len"; then
12480 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12481 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12483 # Make teststring a little bigger before we do anything with it.
12484 # a 1K string should be a reasonable start.
12485 for i
in 1 2 3 4 5 6 7 8 ; do
12486 teststring
=$teststring$teststring
12488 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12489 # If test is not a shell built-in, we'll probably end up computing a
12490 # maximum length that is only half of the actual maximum length, but
12492 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12493 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12494 test $i != 17 # 1/2 MB should be enough
12497 teststring
=$teststring$teststring
12499 # Only check the string length outside the loop.
12500 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12502 # Add a significant safety factor because C++ compilers can tack on
12503 # massive amounts of additional arguments before passing them to the
12504 # linker. It appears as though 1/2 is a usable value.
12505 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12512 if test -n $lt_cv_sys_max_cmd_len ; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12514 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12517 $as_echo "none" >&6; }
12519 max_cmd_len
=$lt_cv_sys_max_cmd_len
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12531 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12532 # Try some XSI features
12534 ( _lt_dummy
="a/b/c"
12535 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12537 && eval 'test $(( 1 + 1 )) -eq 2 \
12538 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12541 $as_echo "$xsi_shell" >&6; }
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12545 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12547 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12549 && lt_shell_append=yes
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12551 $as_echo "$lt_shell_append" >&6; }
12554 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12564 # test EBCDIC or ASCII
12565 case `echo X|tr X '\101'` in
12566 A) # ASCII based system
12567 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12568 lt_SP2NL='tr \040 \012'
12569 lt_NL2SP='tr \015\012 \040\040'
12571 *) # EBCDIC based system
12572 lt_SP2NL='tr \100 \n'
12573 lt_NL2SP='tr \r\n \100\100'
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12586 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12587 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12588 $as_echo_n "(cached
) " >&6
12590 lt_cv_ld_reload_flag='-r'
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12593 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12594 reload_flag=$lt_cv_ld_reload_flag
12595 case $reload_flag in
12597 *) reload_flag=" $reload_flag" ;;
12599 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12602 if test "$GCC" = yes; then
12603 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12605 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12618 if test -n "$ac_tool_prefix"; then
12619 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12620 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12622 $as_echo_n "checking
for $ac_word...
" >&6; }
12623 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12624 $as_echo_n "(cached
) " >&6
12626 if test -n "$OBJDUMP"; then
12627 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12636 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12646 OBJDUMP=$ac_cv_prog_OBJDUMP
12647 if test -n "$OBJDUMP"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12649 $as_echo "$OBJDUMP" >&6; }
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12652 $as_echo "no
" >&6; }
12657 if test -z "$ac_cv_prog_OBJDUMP"; then
12658 ac_ct_OBJDUMP=$OBJDUMP
12659 # Extract the first word of "objdump
", so it can be a program name with args.
12660 set dummy objdump; ac_word=$2
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12662 $as_echo_n "checking
for $ac_word...
" >&6; }
12663 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12664 $as_echo_n "(cached
) " >&6
12666 if test -n "$ac_ct_OBJDUMP"; then
12667 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670 for as_dir in $PATH
12673 test -z "$as_dir" && as_dir=.
12674 for ac_exec_ext in '' $ac_executable_extensions; do
12675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12676 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12686 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12687 if test -n "$ac_ct_OBJDUMP"; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12689 $as_echo "$ac_ct_OBJDUMP" >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12692 $as_echo "no
" >&6; }
12695 if test "x
$ac_ct_OBJDUMP" = x; then
12698 case $cross_compiling:$ac_tool_warned in
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12701 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12702 ac_tool_warned=yes ;;
12704 OBJDUMP=$ac_ct_OBJDUMP
12707 OBJDUMP="$ac_cv_prog_OBJDUMP"
12710 test -z "$OBJDUMP" && OBJDUMP=objdump
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12721 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12722 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12723 $as_echo_n "(cached
) " >&6
12725 lt_cv_file_magic_cmd='$MAGIC_CMD'
12726 lt_cv_file_magic_test_file=
12727 lt_cv_deplibs_check_method='unknown'
12728 # Need to set the preceding variable on all platforms that support
12729 # interlibrary dependencies.
12730 # 'none' -- dependencies not supported.
12731 # `unknown' -- same as none, but documents that we really don't know.
12732 # 'pass_all' -- all dependencies passed with no checks.
12733 # 'test_compile' -- check by making test program.
12734 # 'file_magic [[regex]]' -- check by looking for files in library path
12735 # which responds to the $file_magic_cmd with a given extended regex.
12736 # If you have `file' or equivalent on your system and you're not sure
12737 # whether `pass_all' will *always* work, you probably want this one.
12741 lt_cv_deplibs_check_method=pass_all
12745 lt_cv_deplibs_check_method=pass_all
12749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12750 lt_cv_file_magic_cmd='/usr/bin/file -L'
12751 lt_cv_file_magic_test_file=/shlib/libc.so
12755 # func_win32_libid is a shell function defined in ltmain.sh
12756 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12757 lt_cv_file_magic_cmd='func_win32_libid'
12761 # Base MSYS/MinGW do not provide the 'file' command needed by
12762 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12763 # unless we find 'file', for example because we are cross-compiling.
12764 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12765 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12766 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12767 lt_cv_file_magic_cmd='func_win32_libid'
12769 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12770 lt_cv_file_magic_cmd='$OBJDUMP -f'
12775 # use the weaker test based on 'objdump'. See mingw*.
12776 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12777 lt_cv_file_magic_cmd='$OBJDUMP -f'
12780 darwin* | rhapsody*)
12781 lt_cv_deplibs_check_method=pass_all
12784 freebsd* | dragonfly*)
12785 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12788 # Not sure whether the presence of OpenBSD here was a mistake.
12789 # Let's accept both of them until this is cleared up.
12790 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12791 lt_cv_file_magic_cmd=/usr/bin/file
12792 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12796 lt_cv_deplibs_check_method=pass_all
12801 lt_cv_deplibs_check_method=pass_all
12805 lt_cv_deplibs_check_method=pass_all
12808 hpux10.20* | hpux11*)
12809 lt_cv_file_magic_cmd=/usr/bin/file
12812 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12813 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12816 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]'
12817 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12820 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12821 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12827 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12831 irix5* | irix6* | nonstopux*)
12833 *-32|*"-32 ") libmagic=32-bit;;
12834 *-n32|*"-n32 ") libmagic=N32;;
12835 *-64|*"-64 ") libmagic=64-bit;;
12836 *) libmagic=never-match;;
12838 lt_cv_deplibs_check_method=pass_all
12841 # This must be Linux ELF.
12842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12843 lt_cv_deplibs_check_method=pass_all
12847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12856 lt_cv_file_magic_cmd=/usr/bin/file
12857 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12861 lt_cv_deplibs_check_method=pass_all
12865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12872 osf3* | osf4* | osf5*)
12873 lt_cv_deplibs_check_method=pass_all
12877 lt_cv_deplibs_check_method=pass_all
12881 lt_cv_deplibs_check_method=pass_all
12884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12885 lt_cv_deplibs_check_method=pass_all
12889 case $host_vendor in
12891 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]'
12892 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12895 lt_cv_deplibs_check_method=pass_all
12898 lt_cv_file_magic_cmd='/bin/file'
12899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12902 lt_cv_file_magic_cmd='/bin/file'
12903 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12904 lt_cv_file_magic_test_file=/lib/libc.so
12907 lt_cv_deplibs_check_method=pass_all
12910 lt_cv_deplibs_check_method=pass_all
12916 lt_cv_deplibs_check_method=pass_all
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12922 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12923 file_magic_cmd=$lt_cv_file_magic_cmd
12924 deplibs_check_method=$lt_cv_deplibs_check_method
12925 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12938 if test -n "$ac_tool_prefix"; then
12939 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12940 set dummy ${ac_tool_prefix}ar; ac_word=$2
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12942 $as_echo_n "checking
for $ac_word...
" >&6; }
12943 if test "${ac_cv_prog_AR+set}" = set; then :
12944 $as_echo_n "(cached
) " >&6
12946 if test -n "$AR"; then
12947 ac_cv_prog_AR="$AR" # Let the user override the test.
12949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950 for as_dir in $PATH
12953 test -z "$as_dir" && as_dir=.
12954 for ac_exec_ext in '' $ac_executable_extensions; do
12955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12956 ac_cv_prog_AR="${ac_tool_prefix}ar"
12957 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12967 if test -n "$AR"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12969 $as_echo "$AR" >&6; }
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12972 $as_echo "no
" >&6; }
12977 if test -z "$ac_cv_prog_AR"; then
12979 # Extract the first word of "ar", so it can be a program name with args.
12980 set dummy ar; ac_word=$2
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12982 $as_echo_n "checking
for $ac_word...
" >&6; }
12983 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12984 $as_echo_n "(cached
) " >&6
12986 if test -n "$ac_ct_AR"; then
12987 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990 for as_dir in $PATH
12993 test -z "$as_dir" && as_dir=.
12994 for ac_exec_ext in '' $ac_executable_extensions; do
12995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12996 ac_cv_prog_ac_ct_AR="ar"
12997 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13006 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13007 if test -n "$ac_ct_AR"; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13009 $as_echo "$ac_ct_AR" >&6; }
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13012 $as_echo "no
" >&6; }
13015 if test "x
$ac_ct_AR" = x; then
13018 case $cross_compiling:$ac_tool_warned in
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13021 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13022 ac_tool_warned=yes ;;
13027 AR="$ac_cv_prog_AR"
13030 test -z "$AR" && AR=ar
13031 test -z "$AR_FLAGS" && AR_FLAGS=cru
13043 if test -n "$ac_tool_prefix"; then
13044 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13045 set dummy ${ac_tool_prefix}strip; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13047 $as_echo_n "checking
for $ac_word...
" >&6; }
13048 if test "${ac_cv_prog_STRIP+set}" = set; then :
13049 $as_echo_n "(cached
) " >&6
13051 if test -n "$STRIP"; then
13052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13071 STRIP=$ac_cv_prog_STRIP
13072 if test -n "$STRIP"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13074 $as_echo "$STRIP" >&6; }
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13077 $as_echo "no
" >&6; }
13082 if test -z "$ac_cv_prog_STRIP"; then
13084 # Extract the first word of "strip
", so it can be a program name with args.
13085 set dummy strip; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13087 $as_echo_n "checking
for $ac_word...
" >&6; }
13088 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13089 $as_echo_n "(cached
) " >&6
13091 if test -n "$ac_ct_STRIP"; then
13092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_prog_ac_ct_STRIP="strip
"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13112 if test -n "$ac_ct_STRIP"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13114 $as_echo "$ac_ct_STRIP" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13117 $as_echo "no
" >&6; }
13120 if test "x
$ac_ct_STRIP" = x; then
13123 case $cross_compiling:$ac_tool_warned in
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13126 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13127 ac_tool_warned=yes ;;
13132 STRIP="$ac_cv_prog_STRIP"
13135 test -z "$STRIP" && STRIP=:
13142 if test -n "$ac_tool_prefix"; then
13143 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13144 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13146 $as_echo_n "checking
for $ac_word...
" >&6; }
13147 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13148 $as_echo_n "(cached
) " >&6
13150 if test -n "$RANLIB"; then
13151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13157 test -z "$as_dir" && as_dir=.
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13161 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13170 RANLIB=$ac_cv_prog_RANLIB
13171 if test -n "$RANLIB"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13173 $as_echo "$RANLIB" >&6; }
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13176 $as_echo "no
" >&6; }
13181 if test -z "$ac_cv_prog_RANLIB"; then
13182 ac_ct_RANLIB=$RANLIB
13183 # Extract the first word of "ranlib
", so it can be a program name with args.
13184 set dummy ranlib; ac_word=$2
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13186 $as_echo_n "checking
for $ac_word...
" >&6; }
13187 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13188 $as_echo_n "(cached
) " >&6
13190 if test -n "$ac_ct_RANLIB"; then
13191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13197 test -z "$as_dir" && as_dir=.
13198 for ac_exec_ext in '' $ac_executable_extensions; do
13199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13200 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13201 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13210 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13211 if test -n "$ac_ct_RANLIB"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13213 $as_echo "$ac_ct_RANLIB" >&6; }
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13216 $as_echo "no
" >&6; }
13219 if test "x
$ac_ct_RANLIB" = x; then
13222 case $cross_compiling:$ac_tool_warned in
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13225 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13226 ac_tool_warned=yes ;;
13228 RANLIB=$ac_ct_RANLIB
13231 RANLIB="$ac_cv_prog_RANLIB"
13234 test -z "$RANLIB" && RANLIB=:
13241 # Determine commands to create old-style static archives.
13242 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13243 old_postinstall_cmds='chmod 644 $oldlib'
13244 old_postuninstall_cmds=
13246 if test -n "$RANLIB"; then
13249 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13252 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13255 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13260 lock_old_archive_extraction=yes ;;
13262 lock_old_archive_extraction=no ;;
13303 # If no C compiler was specified, use CC.
13306 # If no C compiler flags were specified, use CFLAGS.
13307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13309 # Allow CC to be a program name with arguments.
13313 # Check for command to grab the raw symbol name followed by C symbol from nm.
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13315 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13316 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13317 $as_echo_n "(cached
) " >&6
13320 # These are sane defaults that work on at least a few old systems.
13321 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13323 # Character class describing NM global symbol codes.
13324 symcode='[BCDEGRST]'
13326 # Regexp to match symbols that can be accessed directly from C.
13327 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13329 # Define system-specific variables.
13334 cygwin* | mingw* | pw32* | cegcc*)
13335 symcode='[ABCDGISTW]'
13338 if test "$host_cpu" = ia64; then
13339 symcode='[ABCDEGRST]'
13342 irix* | nonstopux*)
13343 symcode='[BCDEGRST]'
13346 symcode='[BCDEGQRST]'
13357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13365 # If we're using GNU nm, then use its standard symbol codes.
13366 case `$NM -V 2>&1` in
13367 *GNU* | *'with BFD'*)
13368 symcode='[ABCDGIRSTW]' ;;
13371 # Transform an extracted symbol line into a proper C declaration.
13372 # Some systems (esp. on ia64) link data and code symbols differently,
13373 # so use this general approach.
13374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13376 # Transform an extracted symbol line into symbol name and symbol address
13377 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13378 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'"
13380 # Handle CRLF in mingw tool chain
13384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13388 # Try without a prefix underscore, then with it.
13389 for ac_symprfx in "" "_
"; do
13391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13392 symxfrm="\\1 $ac_symprfx\\2 \\2"
13394 # Write the raw and C identifiers.
13395 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13396 # Fake it for dumpbin and say T for any non-static function
13397 # and D for any global variable.
13398 # Also find C++ and __fastcall symbols from MSVC++,
13399 # which start with @ or ?.
13400 lt_cv_sys_global_symbol_pipe="$AWK '"\
13401 " {last_section=section; section=\$ 3};"\
13402 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13403 " \$ 0!~/External *\|/{next};"\
13404 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13405 " {if(hide[section]) next};"\
13406 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13407 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13408 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13409 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13410 " ' prfx
=^
$ac_symprfx"
13412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13415 # Check to see that the pipe works correctly.
13419 cat > conftest.$ac_ext <<_LT_EOF
13424 void nm_test_func(void);
13425 void nm_test_func(void){}
13429 int main(){nm_test_var='a';nm_test_func();return(0);}
13432 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13433 (eval $ac_compile) 2>&5
13435 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13436 test $ac_status = 0; }; then
13437 # Now try to grab the symbols.
13439 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13440 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13442 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13443 test $ac_status = 0; } && test -s "$nlist"; then
13444 # Try sorting and uniquifying the output.
13445 if sort "$nlist" | uniq > "$nlist"T; then
13446 mv -f "$nlist"T "$nlist"
13451 # Make sure that we snagged all the symbols we need.
13452 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13453 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13454 cat <<_LT_EOF > conftest.$ac_ext
13460 # Now generate the symbol file.
13461 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13463 cat <<_LT_EOF >> conftest.$ac_ext
13465 /* The mapping between symbol names and symbols. */
13470 lt__PROGRAM__LTX_preloaded_symbols[] =
13472 { "@PROGRAM@
", (void *) 0 },
13474 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13475 cat <<\_LT_EOF >> conftest.$ac_ext
13479 /* This works around a problem in FreeBSD linker */
13480 #ifdef FREEBSD_WORKAROUND
13481 static const void *lt_preloaded_setup() {
13482 return lt__PROGRAM__LTX_preloaded_symbols;
13490 # Now try linking the two files.
13491 mv conftest.$ac_objext conftstm.$ac_objext
13492 lt_save_LIBS="$LIBS"
13493 lt_save_CFLAGS="$CFLAGS"
13494 LIBS="conftstm.
$ac_objext"
13495 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13496 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13497 (eval $ac_link) 2>&5
13499 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13500 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13503 LIBS="$lt_save_LIBS"
13504 CFLAGS="$lt_save_CFLAGS"
13506 echo "cannot
find nm_test_func
in $nlist" >&5
13509 echo "cannot
find nm_test_var
in $nlist" >&5
13512 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13515 echo "$progname: failed program was
:" >&5
13516 cat conftest.$ac_ext >&5
13518 rm -rf conftest* conftst*
13520 # Do not use the global_symbol_pipe unless it works.
13521 if test "$pipe_works" = yes; then
13524 lt_cv_sys_global_symbol_pipe=
13530 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13531 lt_cv_sys_global_symbol_to_cdecl=
13533 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13535 $as_echo "failed
" >&6; }
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13538 $as_echo "ok
" >&6; }
13562 # Check whether --enable-libtool-lock was given.
13563 if test "${enable_libtool_lock+set}" = set; then :
13564 enableval=$enable_libtool_lock;
13567 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13569 # Some flags need to be propagated to the compiler or linker for good
13573 # Find out which ABI we are using.
13574 echo 'int i;' > conftest.$ac_ext
13575 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13576 (eval $ac_compile) 2>&5
13578 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13579 test $ac_status = 0; }; then
13580 case `/usr/bin/file conftest.$ac_objext` in
13582 HPUX_IA64_MODE="32"
13585 HPUX_IA64_MODE="64"
13592 # Find out which ABI we are using.
13593 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13594 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13595 (eval $ac_compile) 2>&5
13597 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13598 test $ac_status = 0; }; then
13599 if test "$lt_cv_prog_gnu_ld" = yes; then
13600 case `/usr/bin/file conftest.$ac_objext` in
13602 LD="${LD-ld} -melf32bsmip"
13605 LD="${LD-ld} -melf32bmipn32"
13608 LD="${LD-ld} -melf64bmip"
13612 case `/usr/bin/file conftest.$ac_objext` in
13628 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13629 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13630 # Find out which ABI we are using.
13631 echo 'int i;' > conftest.$ac_ext
13632 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13633 (eval $ac_compile) 2>&5
13635 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13636 test $ac_status = 0; }; then
13637 case `/usr/bin/file conftest.o` in
13640 x86_64-*kfreebsd*-gnu)
13641 LD="${LD-ld} -m elf_i386_fbsd
"
13644 case `/usr/bin/file conftest.o` in
13646 LD="${LD-ld} -m elf32_x86_64
"
13649 LD="${LD-ld} -m elf_i386
"
13654 LD="${LD-ld} -m elf32lppclinux
"
13657 LD="${LD-ld} -m elf32ppclinux
"
13660 LD="${LD-ld} -m elf_s390
"
13663 LD="${LD-ld} -m elf32_sparc
"
13669 x86_64-*kfreebsd*-gnu)
13670 LD="${LD-ld} -m elf_x86_64_fbsd
"
13673 LD="${LD-ld} -m elf_x86_64
"
13676 LD="${LD-ld} -m elf64lppc
"
13679 LD="${LD-ld} -m elf64ppc
"
13681 s390*-*linux*|s390*-*tpf*)
13682 LD="${LD-ld} -m elf64_s390
"
13685 LD="${LD-ld} -m elf64_sparc
"
13695 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13696 SAVE_CFLAGS="$CFLAGS"
13697 CFLAGS="$CFLAGS -belf"
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13699 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13700 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13701 $as_echo_n "(cached
) " >&6
13704 ac_cpp='$CPP $CPPFLAGS'
13705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13720 if ac_fn_c_try_link "$LINENO"; then :
13721 lt_cv_cc_needs_belf=yes
13723 lt_cv_cc_needs_belf=no
13725 rm -f core conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
13728 ac_cpp='$CPP $CPPFLAGS'
13729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13735 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13736 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13737 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13738 CFLAGS="$SAVE_CFLAGS"
13742 # Find out which ABI we are using.
13743 echo 'int i;' > conftest.$ac_ext
13744 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13745 (eval $ac_compile) 2>&5
13747 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13748 test $ac_status = 0; }; then
13749 case `/usr/bin/file conftest.o` in
13751 case $lt_cv_prog_gnu_ld in
13752 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13754 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13766 need_locks="$enable_libtool_lock"
13770 rhapsody* | darwin*)
13771 if test -n "$ac_tool_prefix"; then
13772 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13773 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13775 $as_echo_n "checking
for $ac_word...
" >&6; }
13776 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13777 $as_echo_n "(cached
) " >&6
13779 if test -n "$DSYMUTIL"; then
13780 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783 for as_dir in $PATH
13786 test -z "$as_dir" && as_dir=.
13787 for ac_exec_ext in '' $ac_executable_extensions; do
13788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13789 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13790 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13799 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13800 if test -n "$DSYMUTIL"; then
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13802 $as_echo "$DSYMUTIL" >&6; }
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13805 $as_echo "no
" >&6; }
13810 if test -z "$ac_cv_prog_DSYMUTIL"; then
13811 ac_ct_DSYMUTIL=$DSYMUTIL
13812 # Extract the first word of "dsymutil
", so it can be a program name with args.
13813 set dummy dsymutil; ac_word=$2
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13815 $as_echo_n "checking
for $ac_word...
" >&6; }
13816 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13817 $as_echo_n "(cached
) " >&6
13819 if test -n "$ac_ct_DSYMUTIL"; then
13820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13823 for as_dir in $PATH
13826 test -z "$as_dir" && as_dir=.
13827 for ac_exec_ext in '' $ac_executable_extensions; do
13828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13829 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13830 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13839 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13840 if test -n "$ac_ct_DSYMUTIL"; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13842 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13845 $as_echo "no
" >&6; }
13848 if test "x
$ac_ct_DSYMUTIL" = x; then
13851 case $cross_compiling:$ac_tool_warned in
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13854 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13855 ac_tool_warned=yes ;;
13857 DSYMUTIL=$ac_ct_DSYMUTIL
13860 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13863 if test -n "$ac_tool_prefix"; then
13864 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13865 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13867 $as_echo_n "checking
for $ac_word...
" >&6; }
13868 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13869 $as_echo_n "(cached
) " >&6
13871 if test -n "$NMEDIT"; then
13872 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13875 for as_dir in $PATH
13878 test -z "$as_dir" && as_dir=.
13879 for ac_exec_ext in '' $ac_executable_extensions; do
13880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13881 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13882 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13891 NMEDIT=$ac_cv_prog_NMEDIT
13892 if test -n "$NMEDIT"; then
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13894 $as_echo "$NMEDIT" >&6; }
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13897 $as_echo "no
" >&6; }
13902 if test -z "$ac_cv_prog_NMEDIT"; then
13903 ac_ct_NMEDIT=$NMEDIT
13904 # Extract the first word of "nmedit
", so it can be a program name with args.
13905 set dummy nmedit; ac_word=$2
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13907 $as_echo_n "checking
for $ac_word...
" >&6; }
13908 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13909 $as_echo_n "(cached
) " >&6
13911 if test -n "$ac_ct_NMEDIT"; then
13912 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915 for as_dir in $PATH
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
13920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13921 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13922 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13931 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13932 if test -n "$ac_ct_NMEDIT"; then
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13934 $as_echo "$ac_ct_NMEDIT" >&6; }
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13937 $as_echo "no
" >&6; }
13940 if test "x
$ac_ct_NMEDIT" = x; then
13943 case $cross_compiling:$ac_tool_warned in
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13946 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13947 ac_tool_warned=yes ;;
13949 NMEDIT=$ac_ct_NMEDIT
13952 NMEDIT="$ac_cv_prog_NMEDIT"
13955 if test -n "$ac_tool_prefix"; then
13956 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13957 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13959 $as_echo_n "checking
for $ac_word...
" >&6; }
13960 if test "${ac_cv_prog_LIPO+set}" = set; then :
13961 $as_echo_n "(cached
) " >&6
13963 if test -n "$LIPO"; then
13964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13973 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13974 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13983 LIPO=$ac_cv_prog_LIPO
13984 if test -n "$LIPO"; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13986 $as_echo "$LIPO" >&6; }
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13989 $as_echo "no
" >&6; }
13994 if test -z "$ac_cv_prog_LIPO"; then
13996 # Extract the first word of "lipo
", so it can be a program name with args.
13997 set dummy lipo; ac_word=$2
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13999 $as_echo_n "checking
for $ac_word...
" >&6; }
14000 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14001 $as_echo_n "(cached
) " >&6
14003 if test -n "$ac_ct_LIPO"; then
14004 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $PATH
14010 test -z "$as_dir" && as_dir=.
14011 for ac_exec_ext in '' $ac_executable_extensions; do
14012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14013 ac_cv_prog_ac_ct_LIPO="lipo
"
14014 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14023 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14024 if test -n "$ac_ct_LIPO"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14026 $as_echo "$ac_ct_LIPO" >&6; }
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14029 $as_echo "no
" >&6; }
14032 if test "x
$ac_ct_LIPO" = x; then
14035 case $cross_compiling:$ac_tool_warned in
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14038 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14039 ac_tool_warned=yes ;;
14044 LIPO="$ac_cv_prog_LIPO"
14047 if test -n "$ac_tool_prefix"; then
14048 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14049 set dummy ${ac_tool_prefix}otool; ac_word=$2
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14051 $as_echo_n "checking
for $ac_word...
" >&6; }
14052 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14053 $as_echo_n "(cached
) " >&6
14055 if test -n "$OTOOL"; then
14056 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14059 for as_dir in $PATH
14062 test -z "$as_dir" && as_dir=.
14063 for ac_exec_ext in '' $ac_executable_extensions; do
14064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14065 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14066 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14075 OTOOL=$ac_cv_prog_OTOOL
14076 if test -n "$OTOOL"; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14078 $as_echo "$OTOOL" >&6; }
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14081 $as_echo "no
" >&6; }
14086 if test -z "$ac_cv_prog_OTOOL"; then
14088 # Extract the first word of "otool
", so it can be a program name with args.
14089 set dummy otool; ac_word=$2
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14091 $as_echo_n "checking
for $ac_word...
" >&6; }
14092 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14093 $as_echo_n "(cached
) " >&6
14095 if test -n "$ac_ct_OTOOL"; then
14096 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14105 ac_cv_prog_ac_ct_OTOOL="otool
"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14115 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14116 if test -n "$ac_ct_OTOOL"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14118 $as_echo "$ac_ct_OTOOL" >&6; }
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14121 $as_echo "no
" >&6; }
14124 if test "x
$ac_ct_OTOOL" = x; then
14127 case $cross_compiling:$ac_tool_warned in
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14130 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14131 ac_tool_warned=yes ;;
14136 OTOOL="$ac_cv_prog_OTOOL"
14139 if test -n "$ac_tool_prefix"; then
14140 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14141 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14143 $as_echo_n "checking
for $ac_word...
" >&6; }
14144 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14145 $as_echo_n "(cached
) " >&6
14147 if test -n "$OTOOL64"; then
14148 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14151 for as_dir in $PATH
14154 test -z "$as_dir" && as_dir=.
14155 for ac_exec_ext in '' $ac_executable_extensions; do
14156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14157 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14158 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14167 OTOOL64=$ac_cv_prog_OTOOL64
14168 if test -n "$OTOOL64"; then
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14170 $as_echo "$OTOOL64" >&6; }
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14173 $as_echo "no
" >&6; }
14178 if test -z "$ac_cv_prog_OTOOL64"; then
14179 ac_ct_OTOOL64=$OTOOL64
14180 # Extract the first word of "otool64
", so it can be a program name with args.
14181 set dummy otool64; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14183 $as_echo_n "checking
for $ac_word...
" >&6; }
14184 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14185 $as_echo_n "(cached
) " >&6
14187 if test -n "$ac_ct_OTOOL64"; then
14188 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14197 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14207 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14208 if test -n "$ac_ct_OTOOL64"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14210 $as_echo "$ac_ct_OTOOL64" >&6; }
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14213 $as_echo "no
" >&6; }
14216 if test "x
$ac_ct_OTOOL64" = x; then
14219 case $cross_compiling:$ac_tool_warned in
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14222 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14223 ac_tool_warned=yes ;;
14225 OTOOL64=$ac_ct_OTOOL64
14228 OTOOL64="$ac_cv_prog_OTOOL64"
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14258 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14259 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14260 $as_echo_n "(cached
) " >&6
14262 lt_cv_apple_cc_single_mod=no
14263 if test -z "${LT_MULTI_MODULE}"; then
14264 # By default we will add the -single_module flag. You can override
14265 # by either setting the environment variable LT_MULTI_MODULE
14266 # non-empty at configure time, or by adding -multi_module to the
14268 rm -rf libconftest.dylib*
14269 echo "int foo
(void
){return 1;}" > conftest.c
14270 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14271 -dynamiclib -Wl,-single_module conftest.c
" >&5
14272 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14273 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14275 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14276 lt_cv_apple_cc_single_mod=yes
14278 cat conftest.err >&5
14280 rm -rf libconftest.dylib*
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14285 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14287 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14288 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14289 $as_echo_n "(cached
) " >&6
14291 lt_cv_ld_exported_symbols_list=no
14292 save_LDFLAGS=$LDFLAGS
14293 echo "_main
" > conftest.sym
14294 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14306 if ac_fn_c_try_link "$LINENO"; then :
14307 lt_cv_ld_exported_symbols_list=yes
14309 lt_cv_ld_exported_symbols_list=no
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 LDFLAGS="$save_LDFLAGS"
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14317 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14319 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14320 if test "${lt_cv_ld_force_load+set}" = set; then :
14321 $as_echo_n "(cached
) " >&6
14323 lt_cv_ld_force_load=no
14324 cat > conftest.c << _LT_EOF
14325 int forced_loaded() { return 2;}
14327 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14328 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14329 echo "$AR cru libconftest.a conftest.o
" >&5
14330 $AR cru libconftest.a conftest.o 2>&5
14331 cat > conftest.c << _LT_EOF
14332 int main() { return 0;}
14334 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14335 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14337 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14338 lt_cv_ld_force_load=yes
14340 cat conftest.err >&5
14342 rm -f conftest.err libconftest.a conftest conftest.c
14343 rm -rf conftest.dSYM
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14347 $as_echo "$lt_cv_ld_force_load" >&6; }
14349 rhapsody* | darwin1.[012])
14350 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14352 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14353 darwin*) # darwin 5.x on
14354 # if running on 10.5 or later, the deployment target defaults
14355 # to the OS version, if on x86, and 10.4, the deployment
14356 # target defaults to 10.4. Don't you love it?
14357 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14358 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14359 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14361 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14363 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14367 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14368 _lt_dar_single_mod='$single_module'
14370 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14371 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14373 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14375 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14376 _lt_dsymutil='~$DSYMUTIL $lib || :'
14383 for ac_header in dlfcn.h
14385 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14386 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14387 cat >>confdefs.h <<_ACEOF
14388 #define HAVE_DLFCN_H 1
14405 enable_win32_dll=no
14408 # Check whether --enable-shared was given.
14409 if test "${enable_shared+set}" = set; then :
14410 enableval=$enable_shared; p=${PACKAGE-default}
14412 yes) enable_shared=yes ;;
14413 no) enable_shared=no ;;
14416 # Look at the argument we got. We use all the common list separators.
14417 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14418 for pkg in $enableval; do
14420 if test "X
$pkg" = "X
$p"; then
14439 # Check whether --enable-static was given.
14440 if test "${enable_static+set}" = set; then :
14441 enableval=$enable_static; p=${PACKAGE-default}
14443 yes) enable_static=yes ;;
14444 no) enable_static=no ;;
14447 # Look at the argument we got. We use all the common list separators.
14448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14449 for pkg in $enableval; do
14451 if test "X
$pkg" = "X
$p"; then
14471 # Check whether --with-pic was given.
14472 if test "${with_pic+set}" = set; then :
14473 withval=$with_pic; p=${PACKAGE-default}
14475 yes|no) pic_mode="$withval" ;;
14478 # Look at the argument we got. We use all the common list separators.
14479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14480 for pkg in $withval; do
14482 if test "X
$pkg" = "X
$p"; then
14494 test -z "$pic_mode" && pic_mode=default
14502 # Check whether --enable-fast-install was given.
14503 if test "${enable_fast_install+set}" = set; then :
14504 enableval=$enable_fast_install; p=${PACKAGE-default}
14506 yes) enable_fast_install=yes ;;
14507 no) enable_fast_install=no ;;
14509 enable_fast_install=no
14510 # Look at the argument we got. We use all the common list separators.
14511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14512 for pkg in $enableval; do
14514 if test "X
$pkg" = "X
$p"; then
14515 enable_fast_install=yes
14522 enable_fast_install=yes
14535 # This can be used to rebuild libtool when needed
14536 LIBTOOL_DEPS="$ltmain"
14538 # Always use our own libtool.
14539 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14566 test -z "$LN_S" && LN_S="ln -s"
14581 if test -n "${ZSH_VERSION+set}" ; then
14582 setopt NO_GLOB_SUBST
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14586 $as_echo_n "checking
for objdir...
" >&6; }
14587 if test "${lt_cv_objdir+set}" = set; then :
14588 $as_echo_n "(cached
) " >&6
14590 rm -f .libs 2>/dev/null
14591 mkdir .libs 2>/dev/null
14592 if test -d .libs; then
14595 # MS-DOS does not allow filenames that begin with a dot.
14598 rmdir .libs 2>/dev/null
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14601 $as_echo "$lt_cv_objdir" >&6; }
14602 objdir=$lt_cv_objdir
14608 cat >>confdefs.h <<_ACEOF
14609 #define LT_OBJDIR "$lt_cv_objdir/"
14617 # AIX sometimes has problems with the GCC collect2 program. For some
14618 # reason, if we set the COLLECT_NAMES environment variable, the problems
14619 # vanish in a puff of smoke.
14620 if test "X
${COLLECT_NAMES+set}" != Xset; then
14622 export COLLECT_NAMES
14627 # Global variables:
14629 can_build_shared=yes
14631 # All known linkers require a `.a' archive for static linking (except MSVC,
14632 # which needs '.lib').
14635 with_gnu_ld="$lt_cv_prog_gnu_ld"
14638 old_CFLAGS="$CFLAGS"
14640 # Set sane defaults for various variables
14641 test -z "$CC" && CC=cc
14642 test -z "$LTCC" && LTCC=$CC
14643 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14644 test -z "$LD" && LD=ld
14645 test -z "$ac_objext" && ac_objext=o
14647 for cc_temp in $compiler""; do
14649 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14650 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14655 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14658 # Only perform the check for file, if the check method requires it
14659 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14660 case $deplibs_check_method in
14662 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14664 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14665 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14666 $as_echo_n "(cached
) " >&6
14670 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14673 lt_save_MAGIC_CMD="$MAGIC_CMD"
14674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14675 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14676 for ac_dir in $ac_dummy; do
14678 test -z "$ac_dir" && ac_dir=.
14679 if test -f $ac_dir/${ac_tool_prefix}file; then
14680 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14681 if test -n "$file_magic_test_file"; then
14682 case $deplibs_check_method in
14684 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14686 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14687 $EGREP "$file_magic_regex" > /dev/null; then
14692 *** Warning: the command libtool uses to detect shared libraries,
14693 *** $file_magic_cmd, produces output that libtool cannot recognize.
14694 *** The result is that libtool may fail to recognize shared libraries
14695 *** as such. This will affect the creation of libtool libraries that
14696 *** depend on shared libraries, but programs linked with such libtool
14697 *** libraries will work regardless of this problem. Nevertheless, you
14698 *** may want to report the problem to your system manager and/or to
14699 *** bug-libtool@gnu.org
14709 MAGIC_CMD="$lt_save_MAGIC_CMD"
14714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14715 if test -n "$MAGIC_CMD"; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14717 $as_echo "$MAGIC_CMD" >&6; }
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14720 $as_echo "no
" >&6; }
14727 if test -z "$lt_cv_path_MAGIC_CMD"; then
14728 if test -n "$ac_tool_prefix"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14730 $as_echo_n "checking
for file...
" >&6; }
14731 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14732 $as_echo_n "(cached
) " >&6
14736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14739 lt_save_MAGIC_CMD="$MAGIC_CMD"
14740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14741 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14742 for ac_dir in $ac_dummy; do
14744 test -z "$ac_dir" && ac_dir=.
14745 if test -f $ac_dir/file; then
14746 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14747 if test -n "$file_magic_test_file"; then
14748 case $deplibs_check_method in
14750 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14752 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14753 $EGREP "$file_magic_regex" > /dev/null; then
14758 *** Warning: the command libtool uses to detect shared libraries,
14759 *** $file_magic_cmd, produces output that libtool cannot recognize.
14760 *** The result is that libtool may fail to recognize shared libraries
14761 *** as such. This will affect the creation of libtool libraries that
14762 *** depend on shared libraries, but programs linked with such libtool
14763 *** libraries will work regardless of this problem. Nevertheless, you
14764 *** may want to report the problem to your system manager and/or to
14765 *** bug-libtool@gnu.org
14775 MAGIC_CMD="$lt_save_MAGIC_CMD"
14780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14781 if test -n "$MAGIC_CMD"; then
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14783 $as_echo "$MAGIC_CMD" >&6; }
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14786 $as_echo "no
" >&6; }
14799 # Use C for the default configuration in the libtool script
14803 ac_cpp='$CPP $CPPFLAGS'
14804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14809 # Source file extension for C test sources.
14812 # Object file extension for compiled C test sources.
14816 # Code to be used in simple compile tests
14817 lt_simple_compile_test_code="int some_variable
= 0;"
14819 # Code to be used in simple link tests
14820 lt_simple_link_test_code='int main(){return(0);}'
14828 # If no C compiler was specified, use CC.
14831 # If no C compiler flags were specified, use CFLAGS.
14832 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14834 # Allow CC to be a program name with arguments.
14837 # Save the default compiler, since it gets overwritten when the other
14838 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14839 compiler_DEFAULT=$CC
14841 # save warnings/boilerplate of simple test code
14842 ac_outfile=conftest.$ac_objext
14843 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14844 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14845 _lt_compiler_boilerplate=`cat conftest.err`
14848 ac_outfile=conftest.$ac_objext
14849 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14850 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14851 _lt_linker_boilerplate=`cat conftest.err`
14856 ## There is no encapsulation within the following macros, do not change
14857 ## the running order or otherwise move them around unless you know exactly
14858 ## what you are doing...
14859 if test -n "$compiler"; then
14861 lt_prog_compiler_no_builtin_flag=
14863 if test "$GCC" = yes; then
14864 case $cc_basename in
14866 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14868 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14872 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14873 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14874 $as_echo_n "(cached
) " >&6
14876 lt_cv_prog_compiler_rtti_exceptions=no
14877 ac_outfile=conftest.$ac_objext
14878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14879 lt_compiler_flag="-fno-rtti -fno-exceptions"
14880 # Insert the option either (1) after the last *FLAGS variable, or
14881 # (2) before a word containing "conftest.
", or (3) at the end.
14882 # Note that $ac_compile itself does not contain backslashes and begins
14883 # with a dollar sign (not a hyphen), so the echo should work correctly.
14884 # The option is referenced via a variable to avoid confusing sed.
14885 lt_compile=`echo "$ac_compile" | $SED \
14886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14888 -e 's:$: $lt_compiler_flag:'`
14889 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14890 (eval "$lt_compile" 2>conftest.err)
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14894 if (exit $ac_status) && test -s "$ac_outfile"; then
14895 # The compiler can only warn and ignore the option if not recognized
14896 # So say no if there are warnings other than the usual output.
14897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14900 lt_cv_prog_compiler_rtti_exceptions=yes
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14907 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14909 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14910 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14922 lt_prog_compiler_wl=
14923 lt_prog_compiler_pic=
14924 lt_prog_compiler_static=
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14927 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14929 if test "$GCC" = yes; then
14930 lt_prog_compiler_wl='-Wl,'
14931 lt_prog_compiler_static='-static'
14935 # All AIX code is PIC.
14936 if test "$host_cpu" = ia64; then
14937 # AIX 5 now supports IA64 processor
14938 lt_prog_compiler_static='-Bstatic'
14940 lt_prog_compiler_pic='-fPIC'
14946 # see comment about AmigaOS4 .so support
14947 lt_prog_compiler_pic='-fPIC'
14950 # FIXME: we need at least 68020 code to build shared libraries, but
14951 # adding the `-m68020' flag to GCC prevents building anything better,
14953 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14958 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14959 # PIC is the default for these OSes.
14962 mingw* | cygwin* | pw32* | os2* | cegcc*)
14963 # This hack is so that the source file can tell whether it is being
14964 # built for inclusion in a dll (and should export symbols for example).
14965 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14966 # (--disable-auto-import) libraries
14967 lt_prog_compiler_pic='-DDLL_EXPORT'
14970 darwin* | rhapsody*)
14971 # PIC is the default on this platform
14972 # Common symbols not allowed in MH_DYLIB files
14973 lt_prog_compiler_pic='-fno-common'
14977 # PIC is the default for Haiku.
14978 # The "-static" flag exists, but is broken.
14979 lt_prog_compiler_static=
14983 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14984 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14985 # sets the default TLS model and affects inlining.
14991 lt_prog_compiler_pic='-fPIC'
14997 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14998 # Instead, we relocate shared libraries at runtime.
15002 # Just because we use GCC doesn't mean we suddenly get shared libraries
15003 # on systems that don't support them.
15004 lt_prog_compiler_can_build_shared=no
15009 # QNX uses GNU C++, but need to define -shared option too, otherwise
15010 # it will coredump.
15011 lt_prog_compiler_pic='-fPIC -shared'
15015 if test -d /usr/nec; then
15016 lt_prog_compiler_pic=-Kconform_pic
15021 lt_prog_compiler_pic='-fPIC'
15025 case $cc_basename in
15026 nvcc*) # Cuda Compiler Driver 2.2
15027 lt_prog_compiler_wl='-Xlinker '
15028 lt_prog_compiler_pic='-Xcompiler -fPIC'
15032 # PORTME Check for flag to pass linker flags through the system compiler.
15035 lt_prog_compiler_wl='-Wl,'
15036 if test "$host_cpu" = ia64; then
15037 # AIX 5 now supports IA64 processor
15038 lt_prog_compiler_static='-Bstatic'
15040 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15044 mingw* | cygwin* | pw32* | os2* | cegcc*)
15045 # This hack is so that the source file can tell whether it is being
15046 # built for inclusion in a dll (and should export symbols for example).
15047 lt_prog_compiler_pic='-DDLL_EXPORT'
15050 hpux9* | hpux10* | hpux11*)
15051 lt_prog_compiler_wl='-Wl,'
15052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15053 # not for PA HP-UX.
15059 lt_prog_compiler_pic='+Z'
15062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15063 lt_prog_compiler_static='${wl}-a ${wl}archive'
15066 irix5* | irix6* | nonstopux*)
15067 lt_prog_compiler_wl='-Wl,'
15068 # PIC (with -KPIC) is the default.
15069 lt_prog_compiler_static='-non_shared'
15072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15073 case $cc_basename in
15074 # old Intel for x86_64 which still supported -KPIC.
15076 lt_prog_compiler_wl='-Wl,'
15077 lt_prog_compiler_pic='-KPIC'
15078 lt_prog_compiler_static='-static'
15080 # icc used to be incompatible with GCC.
15081 # ICC 10 doesn't accept -KPIC any more.
15083 lt_prog_compiler_wl='-Wl,'
15084 lt_prog_compiler_pic='-fPIC'
15085 lt_prog_compiler_static='-static'
15087 # Lahey Fortran 8.1.
15089 lt_prog_compiler_wl='-Wl,'
15090 lt_prog_compiler_pic='--shared'
15091 lt_prog_compiler_static='--static'
15093 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15094 # Portland Group compilers (*not* the Pentium gcc compiler,
15095 # which looks to be a dead project)
15096 lt_prog_compiler_wl='-Wl,'
15097 lt_prog_compiler_pic='-fpic'
15098 lt_prog_compiler_static='-Bstatic'
15101 lt_prog_compiler_wl='-Wl,'
15102 # All Alpha code is PIC.
15103 lt_prog_compiler_static='-non_shared'
15105 xl* | bgxl* | bgf* | mpixl*)
15106 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15107 lt_prog_compiler_wl='-Wl,'
15108 lt_prog_compiler_pic='-qpic'
15109 lt_prog_compiler_static='-qstaticlink'
15112 case `$CC -V 2>&1 | sed 5q` in
15113 *Sun\ F* | *Sun*Fortran*)
15114 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15115 lt_prog_compiler_pic='-KPIC'
15116 lt_prog_compiler_static='-Bstatic'
15117 lt_prog_compiler_wl=''
15121 lt_prog_compiler_pic='-KPIC'
15122 lt_prog_compiler_static='-Bstatic'
15123 lt_prog_compiler_wl='-Wl,'
15131 lt_prog_compiler_pic='-KPIC'
15132 lt_prog_compiler_static='-Bstatic'
15136 # QNX uses GNU C++, but need to define -shared option too, otherwise
15137 # it will coredump.
15138 lt_prog_compiler_pic='-fPIC -shared'
15141 osf3* | osf4* | osf5*)
15142 lt_prog_compiler_wl='-Wl,'
15143 # All OSF/1 code is PIC.
15144 lt_prog_compiler_static='-non_shared'
15148 lt_prog_compiler_static='-non_shared'
15152 lt_prog_compiler_pic='-KPIC'
15153 lt_prog_compiler_static='-Bstatic'
15154 case $cc_basename in
15155 f77* | f90* | f95*)
15156 lt_prog_compiler_wl='-Qoption ld ';;
15158 lt_prog_compiler_wl='-Wl,';;
15163 lt_prog_compiler_wl='-Qoption ld '
15164 lt_prog_compiler_pic='-PIC'
15165 lt_prog_compiler_static='-Bstatic'
15168 sysv4 | sysv4.2uw2* | sysv4.3*)
15169 lt_prog_compiler_wl='-Wl,'
15170 lt_prog_compiler_pic='-KPIC'
15171 lt_prog_compiler_static='-Bstatic'
15175 if test -d /usr/nec ;then
15176 lt_prog_compiler_pic='-Kconform_pic'
15177 lt_prog_compiler_static='-Bstatic'
15181 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15182 lt_prog_compiler_wl='-Wl,'
15183 lt_prog_compiler_pic='-KPIC'
15184 lt_prog_compiler_static='-Bstatic'
15188 lt_prog_compiler_wl='-Wl,'
15189 lt_prog_compiler_can_build_shared=no
15193 lt_prog_compiler_pic='-pic'
15194 lt_prog_compiler_static='-Bstatic'
15198 lt_prog_compiler_can_build_shared=no
15204 # For platforms which do not support PIC, -DPIC is meaningless:
15206 lt_prog_compiler_pic=
15209 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15213 $as_echo "$lt_prog_compiler_pic" >&6; }
15221 # Check to make sure the PIC flag actually works.
15223 if test -n "$lt_prog_compiler_pic"; then
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15225 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15226 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15227 $as_echo_n "(cached
) " >&6
15229 lt_cv_prog_compiler_pic_works=no
15230 ac_outfile=conftest.$ac_objext
15231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15232 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15233 # Insert the option either (1) after the last *FLAGS variable, or
15234 # (2) before a word containing "conftest.
", or (3) at the end.
15235 # Note that $ac_compile itself does not contain backslashes and begins
15236 # with a dollar sign (not a hyphen), so the echo should work correctly.
15237 # The option is referenced via a variable to avoid confusing sed.
15238 lt_compile=`echo "$ac_compile" | $SED \
15239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15241 -e 's:$: $lt_compiler_flag:'`
15242 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15243 (eval "$lt_compile" 2>conftest.err)
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15247 if (exit $ac_status) && test -s "$ac_outfile"; then
15248 # The compiler can only warn and ignore the option if not recognized
15249 # So say no if there are warnings other than the usual output.
15250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15253 lt_cv_prog_compiler_pic_works=yes
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15260 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15262 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15263 case $lt_prog_compiler_pic in
15265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15268 lt_prog_compiler_pic=
15269 lt_prog_compiler_can_build_shared=no
15280 # Check to make sure the static flag actually works.
15282 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15284 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15285 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15286 $as_echo_n "(cached
) " >&6
15288 lt_cv_prog_compiler_static_works=no
15289 save_LDFLAGS="$LDFLAGS"
15290 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15293 # The linker can only warn and ignore the option if not recognized
15294 # So say no if there are warnings
15295 if test -s conftest.err; then
15296 # Append any errors to the config.log.
15297 cat conftest.err 1>&5
15298 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15300 if diff conftest.exp conftest.er2 >/dev/null; then
15301 lt_cv_prog_compiler_static_works=yes
15304 lt_cv_prog_compiler_static_works=yes
15308 LDFLAGS="$save_LDFLAGS"
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15312 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15314 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15317 lt_prog_compiler_static=
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15327 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15328 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15329 $as_echo_n "(cached
) " >&6
15331 lt_cv_prog_compiler_c_o=no
15332 $RM -r conftest 2>/dev/null
15336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15338 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15339 # Insert the option either (1) after the last *FLAGS variable, or
15340 # (2) before a word containing "conftest.
", or (3) at the end.
15341 # Note that $ac_compile itself does not contain backslashes and begins
15342 # with a dollar sign (not a hyphen), so the echo should work correctly.
15343 lt_compile=`echo "$ac_compile" | $SED \
15344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15346 -e 's:$: $lt_compiler_flag:'`
15347 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15348 (eval "$lt_compile" 2>out/conftest.err)
15350 cat out/conftest.err >&5
15351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15354 # The compiler can only warn and ignore the option if not recognized
15355 # So say no if there are warnings
15356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15359 lt_cv_prog_compiler_c_o=yes
15364 # SGI C++ compiler will create directory out/ii_files/ for
15365 # template instantiation
15366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15367 $RM out/* && rmdir out
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15374 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15382 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15383 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15384 $as_echo_n "(cached
) " >&6
15386 lt_cv_prog_compiler_c_o=no
15387 $RM -r conftest 2>/dev/null
15391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15393 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15394 # Insert the option either (1) after the last *FLAGS variable, or
15395 # (2) before a word containing "conftest.
", or (3) at the end.
15396 # Note that $ac_compile itself does not contain backslashes and begins
15397 # with a dollar sign (not a hyphen), so the echo should work correctly.
15398 lt_compile=`echo "$ac_compile" | $SED \
15399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15401 -e 's:$: $lt_compiler_flag:'`
15402 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15403 (eval "$lt_compile" 2>out/conftest.err)
15405 cat out/conftest.err >&5
15406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15409 # The compiler can only warn and ignore the option if not recognized
15410 # So say no if there are warnings
15411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15414 lt_cv_prog_compiler_c_o=yes
15419 # SGI C++ compiler will create directory out/ii_files/ for
15420 # template instantiation
15421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15422 $RM out/* && rmdir out
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15429 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15434 hard_links="nottested
"
15435 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15436 # do not overwrite the value of need_locks provided by the user
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15438 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15443 ln conftest.a conftest.b 2>&5 || hard_links=no
15444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15446 $as_echo "$hard_links" >&6; }
15447 if test "$hard_links" = no; then
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15449 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15462 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15465 allow_undefined_flag=
15466 always_export_symbols=no
15468 archive_expsym_cmds=
15469 compiler_needs_object=no
15470 enable_shared_with_static_runtimes=no
15471 export_dynamic_flag_spec=
15472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15473 hardcode_automatic=no
15475 hardcode_direct_absolute=no
15476 hardcode_libdir_flag_spec=
15477 hardcode_libdir_flag_spec_ld=
15478 hardcode_libdir_separator=
15479 hardcode_minus_L=no
15480 hardcode_shlibpath_var=unsupported
15482 link_all_deplibs=unknown
15484 module_expsym_cmds=
15485 old_archive_from_new_cmds=
15486 old_archive_from_expsyms_cmds=
15487 thread_safe_flag_spec=
15488 whole_archive_flag_spec=
15489 # include_expsyms should be a list of space-separated symbols to be *always*
15490 # included in the symbol list
15492 # exclude_expsyms can be an extended regexp of symbols to exclude
15493 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15495 # as well as any symbol that contains `d'.
15496 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15498 # platforms (ab)use it in PIC code, but their linkers get confused if
15499 # the symbol is explicitly referenced. Since portable code cannot
15500 # rely on this symbol name, it's probably fine to never include it in
15501 # preloaded symbol tables.
15502 # Exclude shared library initialization/finalization symbols.
15503 extract_expsyms_cmds=
15506 cygwin* | mingw* | pw32* | cegcc*)
15507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15508 # When not using gcc, we currently assume that we are using
15509 # Microsoft Visual C++.
15510 if test "$GCC" != yes; then
15515 # we just hope/assume this is gcc and not c89 (= MSVC++)
15525 # On some targets, GNU ld is compatible enough with the native linker
15526 # that we're better off using the native interface for both.
15527 lt_use_gnu_ld_interface=no
15528 if test "$with_gnu_ld" = yes; then
15531 # The AIX port of GNU ld has always aspired to compatibility
15532 # with the native linker. However, as the warning in the GNU ld
15533 # block says, versions before 2.19.5* couldn't really create working
15534 # shared libraries, regardless of the interface used.
15535 case `$LD -v 2>&1` in
15536 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15537 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15538 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15540 lt_use_gnu_ld_interface=yes
15545 lt_use_gnu_ld_interface=yes
15550 if test "$lt_use_gnu_ld_interface" = yes; then
15551 # If archive_cmds runs LD, not CC, wlarc should be empty
15554 # Set some defaults for GNU ld with shared library support. These
15555 # are reset later if shared libraries are not supported. Putting them
15556 # here allows them to be overridden if necessary.
15557 runpath_var=LD_RUN_PATH
15558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15559 export_dynamic_flag_spec='${wl}--export-dynamic'
15560 # ancient GNU ld didn't support --whole-archive et. al.
15561 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15562 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15564 whole_archive_flag_spec=
15566 supports_anon_versioning=no
15567 case `$LD -v 2>&1` in
15568 *GNU\ gold*) supports_anon_versioning=yes ;;
15569 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15570 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15571 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15572 *\ 2.11.*) ;; # other 2.11 versions
15573 *) supports_anon_versioning=yes ;;
15576 # See if GNU ld supports shared libraries.
15579 # On AIX/PPC, the GNU linker is very broken
15580 if test "$host_cpu" != ia64; then
15584 *** Warning: the GNU linker, at least up to release 2.19, is reported
15585 *** to be unable to reliably create shared libraries on AIX.
15586 *** Therefore, libtool is disabling shared libraries support. If you
15587 *** really care for shared libraries, you may want to install binutils
15588 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15589 *** You will then need to restart the configuration process.
15598 # see comment about AmigaOS4 .so support
15599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15600 archive_expsym_cmds=''
15603 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)'
15604 hardcode_libdir_flag_spec
='-L$libdir'
15605 hardcode_minus_L
=yes
15611 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15612 allow_undefined_flag
=unsupported
15613 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15614 # support --undefined. This deserves some investigation. FIXME
15615 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15621 cygwin
* | mingw
* | pw32
* | cegcc
*)
15622 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15623 # as there is no search path for DLLs.
15624 hardcode_libdir_flag_spec
='-L$libdir'
15625 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15626 allow_undefined_flag
=unsupported
15627 always_export_symbols
=no
15628 enable_shared_with_static_runtimes
=yes
15629 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15631 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15632 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15633 # If the export-symbols file already is a .def file (1st line
15634 # is EXPORTS), use it as is; otherwise, prepend...
15635 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15636 cp $export_symbols $output_objdir/$soname.def;
15638 echo EXPORTS > $output_objdir/$soname.def;
15639 cat $export_symbols >> $output_objdir/$soname.def;
15641 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15648 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15649 link_all_deplibs
=yes
15654 hardcode_shlibpath_var
=no
15655 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15656 export_dynamic_flag_spec
='${wl}-E'
15657 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15658 # Instead, shared libraries are loaded at an image base (0x10000000 by
15659 # default) and relocated if they conflict, which is a slow very memory
15660 # consuming and fragmenting process. To avoid this, we pick a random,
15661 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15662 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15663 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15664 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'
15667 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15669 if test "$host_os" = linux-dietlibc
; then
15670 case $cc_basename in
15671 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15674 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15675 && test "$tmp_diet" = no
15678 tmp_sharedflag
='-shared'
15679 case $cc_basename,$host_cpu in
15680 pgcc
*) # Portland Group C compiler
15681 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'
15682 tmp_addflag
=' $pic_flag'
15684 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15685 # Portland Group f77 and f90 compilers
15686 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'
15687 tmp_addflag
=' $pic_flag -Mnomain' ;;
15688 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15689 tmp_addflag
=' -i_dynamic' ;;
15690 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15691 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15692 ifc
* | ifort
*) # Intel Fortran compiler
15693 tmp_addflag
=' -nofor_main' ;;
15694 lf95
*) # Lahey Fortran 8.1
15695 whole_archive_flag_spec
=
15696 tmp_sharedflag
='--shared' ;;
15697 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15698 tmp_sharedflag
='-qmkshrobj'
15700 nvcc
*) # Cuda Compiler Driver 2.2
15701 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'
15702 compiler_needs_object
=yes
15705 case `$CC -V 2>&1 | sed 5q` in
15706 *Sun\ C
*) # Sun C 5.9
15707 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'
15708 compiler_needs_object
=yes
15709 tmp_sharedflag
='-G' ;;
15710 *Sun\ F
*) # Sun Fortran 8.3
15711 tmp_sharedflag
='-G' ;;
15713 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15715 if test "x$supports_anon_versioning" = xyes
; then
15716 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15718 echo "local: *; };" >> $output_objdir/$libname.ver~
15719 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15722 case $cc_basename in
15723 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15724 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15725 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15726 hardcode_libdir_flag_spec
=
15727 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15728 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15729 if test "x$supports_anon_versioning" = xyes
; then
15730 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15732 echo "local: *; };" >> $output_objdir/$libname.ver~
15733 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15743 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15744 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15747 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15748 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15753 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15757 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15758 *** create shared libraries on Solaris systems. Therefore, libtool
15759 *** is disabling shared libraries support. We urge you to upgrade GNU
15760 *** binutils to release 2.9.1 or newer. Another option is to modify
15761 *** your PATH or compiler configuration so that the native linker is
15762 *** used, and then restart.
15765 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15766 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15767 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15773 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15774 case `$LD -v 2>&1` in
15775 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15779 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15780 *** reliably create shared libraries on SCO systems. Therefore, libtool
15781 *** is disabling shared libraries support. We urge you to upgrade GNU
15782 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15783 *** your PATH or compiler configuration so that the native linker is
15784 *** used, and then restart.
15789 # For security reasons, it is highly recommended that you always
15790 # use absolute paths for naming shared libraries, and exclude the
15791 # DT_RUNPATH tag from executables and libraries. But doing so
15792 # requires that you compile everything twice, which is a pain.
15793 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15794 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15795 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15805 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15807 hardcode_direct
=yes
15808 hardcode_shlibpath_var
=no
15812 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15813 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15814 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15821 if test "$ld_shlibs" = no
; then
15823 hardcode_libdir_flag_spec
=
15824 export_dynamic_flag_spec
=
15825 whole_archive_flag_spec
=
15828 # PORTME fill in a description of your system's linker (not GNU ld)
15831 allow_undefined_flag
=unsupported
15832 always_export_symbols
=yes
15833 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'
15834 # Note: this linker hardcodes the directories in LIBPATH if there
15835 # are no directories specified by -L.
15836 hardcode_minus_L
=yes
15837 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15838 # Neither direct hardcoding nor static linking is supported with a
15840 hardcode_direct
=unsupported
15845 if test "$host_cpu" = ia64
; then
15846 # On IA64, the linker does run time linking by default, so we don't
15847 # have to do anything special.
15848 aix_use_runtimelinking
=no
15849 exp_sym_flag
='-Bexport'
15852 # If we're using GNU nm, then we don't want the "-C" option.
15853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15854 # Also, AIX nm treats weak defined symbols like other global
15855 # defined symbols, whereas GNU nm marks them as "W".
15856 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15857 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'
15859 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'
15861 aix_use_runtimelinking
=no
15863 # Test if we are trying to use run time linking or normal
15864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15865 # need to do runtime linking.
15866 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15867 for ld_flag
in $LDFLAGS; do
15868 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15869 aix_use_runtimelinking
=yes
15876 exp_sym_flag
='-bexport'
15877 no_entry_flag
='-bnoentry'
15880 # When large executables or shared objects are built, AIX ld can
15881 # have problems creating the table of contents. If linking a library
15882 # or program results in "error TOC overflow" add -mminimal-toc to
15883 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15884 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15887 hardcode_direct
=yes
15888 hardcode_direct_absolute
=yes
15889 hardcode_libdir_separator
=':'
15890 link_all_deplibs
=yes
15891 file_list_spec
='${wl}-f,'
15893 if test "$GCC" = yes; then
15894 case $host_os in aix4.
[012]|aix4.
[012].
*)
15895 # We only want to do this on AIX 4.2 and lower, the check
15896 # below for broken collect2 doesn't work under 4.3+
15897 collect2name
=`${CC} -print-prog-name=collect2`
15898 if test -f "$collect2name" &&
15899 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15901 # We have reworked collect2
15904 # We have old collect2
15905 hardcode_direct
=unsupported
15906 # It fails to find uninstalled libraries when the uninstalled
15907 # path is not listed in the libpath. Setting hardcode_minus_L
15908 # to unsupported forces relinking
15909 hardcode_minus_L
=yes
15910 hardcode_libdir_flag_spec
='-L$libdir'
15911 hardcode_libdir_separator
=
15915 shared_flag
='-shared'
15916 if test "$aix_use_runtimelinking" = yes; then
15917 shared_flag
="$shared_flag "'${wl}-G'
15921 if test "$host_cpu" = ia64
; then
15922 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15923 # chokes on -Wl,-G. The following line is correct:
15926 if test "$aix_use_runtimelinking" = yes; then
15927 shared_flag
='${wl}-G'
15929 shared_flag
='${wl}-bM:SRE'
15934 export_dynamic_flag_spec
='${wl}-bexpall'
15935 # It seems that -bexpall does not export symbols beginning with
15936 # underscore (_), so it is better to generate a list of symbols to export.
15937 always_export_symbols
=yes
15938 if test "$aix_use_runtimelinking" = yes; then
15939 # Warning - without using the other runtime loading flags (-brtl),
15940 # -berok will link without error, but may produce a broken library.
15941 allow_undefined_flag
='-berok'
15942 # Determine the default libpath from the value encoded in an
15943 # empty executable.
15944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15955 if ac_fn_c_try_link
"$LINENO"; then :
15957 lt_aix_libpath_sed
='
15958 /Import File Strings/,/^$/ {
15964 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15965 # Check for a 64-bit object if we didn't find anything.
15966 if test -z "$aix_libpath"; then
15967 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15970 rm -f core conftest.err conftest.
$ac_objext \
15971 conftest
$ac_exeext conftest.
$ac_ext
15972 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15974 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15975 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"
15977 if test "$host_cpu" = ia64
; then
15978 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15979 allow_undefined_flag
="-z nodefs"
15980 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"
15982 # Determine the default libpath from the value encoded in an
15983 # empty executable.
15984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15995 if ac_fn_c_try_link
"$LINENO"; then :
15997 lt_aix_libpath_sed
='
15998 /Import File Strings/,/^$/ {
16004 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16005 # Check for a 64-bit object if we didn't find anything.
16006 if test -z "$aix_libpath"; then
16007 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16010 rm -f core conftest.err conftest.
$ac_objext \
16011 conftest
$ac_exeext conftest.
$ac_ext
16012 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16014 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16015 # Warning - without using the other run time loading flags,
16016 # -berok will link without error, but may produce a broken library.
16017 no_undefined_flag
=' ${wl}-bernotok'
16018 allow_undefined_flag
=' ${wl}-berok'
16019 if test "$with_gnu_ld" = yes; then
16020 # We only use this code for GNU lds that support --whole-archive.
16021 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16023 # Exported symbols can be pulled into shared objects from archives
16024 whole_archive_flag_spec
='$convenience'
16026 archive_cmds_need_lc
=yes
16027 # This is similar to how AIX traditionally builds its shared libraries.
16028 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'
16036 # see comment about AmigaOS4 .so support
16037 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16038 archive_expsym_cmds
=''
16041 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)'
16042 hardcode_libdir_flag_spec
='-L$libdir'
16043 hardcode_minus_L
=yes
16049 export_dynamic_flag_spec
=-rdynamic
16052 cygwin
* | mingw
* | pw32
* | cegcc
*)
16053 # When not using gcc, we currently assume that we are using
16054 # Microsoft Visual C++.
16055 # hardcode_libdir_flag_spec is actually meaningless, as there is
16056 # no search path for DLLs.
16057 hardcode_libdir_flag_spec
=' '
16058 allow_undefined_flag
=unsupported
16059 # Tell ltmain to make .lib files, not .a files.
16061 # Tell ltmain to make .dll files, not .so files.
16063 # FIXME: Setting linknames here is a bad hack.
16064 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16065 # The linker will automatically build a .lib file if we build a DLL.
16066 old_archive_from_new_cmds
='true'
16067 # FIXME: Should let the user specify the lib program.
16068 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16069 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16070 enable_shared_with_static_runtimes
=yes
16073 darwin
* | rhapsody
*)
16076 archive_cmds_need_lc
=no
16078 hardcode_automatic
=yes
16079 hardcode_shlibpath_var
=unsupported
16080 if test "$lt_cv_ld_force_load" = "yes"; then
16081 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\"`'
16083 whole_archive_flag_spec
=''
16085 link_all_deplibs
=yes
16086 allow_undefined_flag
="$_lt_dar_allow_undefined"
16087 case $cc_basename in
16088 ifort
*) _lt_dar_can_shared
=yes ;;
16089 *) _lt_dar_can_shared
=$GCC ;;
16091 if test "$_lt_dar_can_shared" = "yes"; then
16092 output_verbose_link_cmd
=func_echo_all
16093 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16094 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16095 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}"
16096 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}"
16105 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16106 hardcode_libdir_flag_spec
='-L$libdir'
16107 hardcode_shlibpath_var
=no
16110 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16111 # support. Future versions do this automatically, but an explicit c++rt0.o
16112 # does not break anything, and helps significantly (at the cost of a little
16115 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16116 hardcode_libdir_flag_spec
='-R$libdir'
16117 hardcode_direct
=yes
16118 hardcode_shlibpath_var
=no
16121 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16123 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_direct
=yes
16125 hardcode_minus_L
=yes
16126 hardcode_shlibpath_var
=no
16129 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16130 freebsd
* | dragonfly
*)
16131 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16132 hardcode_libdir_flag_spec
='-R$libdir'
16133 hardcode_direct
=yes
16134 hardcode_shlibpath_var
=no
16138 if test "$GCC" = yes; then
16139 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'
16141 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'
16143 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16144 hardcode_libdir_separator
=:
16145 hardcode_direct
=yes
16147 # hardcode_minus_L: Not really in the search PATH,
16148 # but as the default location of the library.
16149 hardcode_minus_L
=yes
16150 export_dynamic_flag_spec
='${wl}-E'
16154 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16155 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16157 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16159 if test "$with_gnu_ld" = no
; then
16160 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16161 hardcode_libdir_flag_spec_ld
='+b $libdir'
16162 hardcode_libdir_separator
=:
16163 hardcode_direct
=yes
16164 hardcode_direct_absolute
=yes
16165 export_dynamic_flag_spec
='${wl}-E'
16166 # hardcode_minus_L: Not really in the search PATH,
16167 # but as the default location of the library.
16168 hardcode_minus_L
=yes
16173 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16176 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16179 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16182 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16188 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16191 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16195 # Older versions of the 11.00 compiler do not understand -b yet
16196 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16198 $as_echo_n "checking if $CC understands -b... " >&6; }
16199 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16200 $as_echo_n "(cached) " >&6
16202 lt_cv_prog_compiler__b
=no
16203 save_LDFLAGS
="$LDFLAGS"
16204 LDFLAGS
="$LDFLAGS -b"
16205 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16206 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16207 # The linker can only warn and ignore the option if not recognized
16208 # So say no if there are warnings
16209 if test -s conftest.err
; then
16210 # Append any errors to the config.log.
16211 cat conftest.err
1>&5
16212 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16213 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16214 if diff conftest.exp conftest.er2
>/dev
/null
; then
16215 lt_cv_prog_compiler__b
=yes
16218 lt_cv_prog_compiler__b
=yes
16222 LDFLAGS
="$save_LDFLAGS"
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16226 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16228 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16229 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16231 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16237 if test "$with_gnu_ld" = no
; then
16238 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16239 hardcode_libdir_separator
=:
16244 hardcode_shlibpath_var
=no
16247 hardcode_direct
=yes
16248 hardcode_direct_absolute
=yes
16249 export_dynamic_flag_spec
='${wl}-E'
16251 # hardcode_minus_L: Not really in the search PATH,
16252 # but as the default location of the library.
16253 hardcode_minus_L
=yes
16259 irix5
* | irix6
* | nonstopux
*)
16260 if test "$GCC" = yes; then
16261 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'
16262 # Try to use the -exported_symbol ld option, if it does not
16263 # work, assume that -exports_file does not work either and
16264 # implicitly export all symbols.
16265 save_LDFLAGS
="$LDFLAGS"
16266 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16271 if ac_fn_c_try_link
"$LINENO"; then :
16272 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'
16275 rm -f core conftest.err conftest.
$ac_objext \
16276 conftest
$ac_exeext conftest.
$ac_ext
16277 LDFLAGS
="$save_LDFLAGS"
16279 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'
16280 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'
16282 archive_cmds_need_lc
='no'
16283 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16284 hardcode_libdir_separator
=:
16286 link_all_deplibs
=yes
16290 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16291 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16293 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16295 hardcode_libdir_flag_spec
='-R$libdir'
16296 hardcode_direct
=yes
16297 hardcode_shlibpath_var
=no
16301 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16302 hardcode_direct
=yes
16303 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16304 hardcode_libdir_separator
=:
16305 hardcode_shlibpath_var
=no
16312 if test -f /usr
/libexec
/ld.so
; then
16313 hardcode_direct
=yes
16314 hardcode_shlibpath_var
=no
16315 hardcode_direct_absolute
=yes
16316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16317 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16318 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16319 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16320 export_dynamic_flag_spec
='${wl}-E'
16323 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16324 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16325 hardcode_libdir_flag_spec
='-R$libdir'
16328 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16329 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16339 hardcode_libdir_flag_spec
='-L$libdir'
16340 hardcode_minus_L
=yes
16341 allow_undefined_flag
=unsupported
16342 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'
16343 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16347 if test "$GCC" = yes; then
16348 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16349 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'
16351 allow_undefined_flag
=' -expect_unresolved \*'
16352 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'
16354 archive_cmds_need_lc
='no'
16355 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16356 hardcode_libdir_separator
=:
16359 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16360 if test "$GCC" = yes; then
16361 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16362 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'
16363 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16365 allow_undefined_flag
=' -expect_unresolved \*'
16366 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'
16367 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~
16368 $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'
16370 # Both c and cxx compiler support -rpath directly
16371 hardcode_libdir_flag_spec
='-rpath $libdir'
16373 archive_cmds_need_lc
='no'
16374 hardcode_libdir_separator
=:
16378 no_undefined_flag
=' -z defs'
16379 if test "$GCC" = yes; then
16381 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16382 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16383 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16385 case `$CC -V 2>&1` in
16388 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16390 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16394 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16395 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16396 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16400 hardcode_libdir_flag_spec
='-R$libdir'
16401 hardcode_shlibpath_var
=no
16403 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16405 # The compiler driver will combine and reorder linker options,
16406 # but understands `-z linker_flag'. GCC discards it without `$wl',
16407 # but is careful enough not to reorder.
16408 # Supported since Solaris 2.6 (maybe 2.5.1?)
16409 if test "$GCC" = yes; then
16410 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16412 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16416 link_all_deplibs
=yes
16420 if test "x$host_vendor" = xsequent
; then
16421 # Use $CC to link under sequent, because it throws in some extra .o
16422 # files that make .init and .fini sections work.
16423 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16425 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16427 hardcode_libdir_flag_spec
='-L$libdir'
16428 hardcode_direct
=yes
16429 hardcode_minus_L
=yes
16430 hardcode_shlibpath_var
=no
16434 case $host_vendor in
16436 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16437 hardcode_direct
=yes # is this really true???
16440 ## LD is ld it makes a PLAMLIB
16441 ## CC just makes a GrossModule.
16442 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16443 reload_cmds
='$CC -r -o $output$reload_objs'
16447 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16448 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16451 runpath_var
='LD_RUN_PATH'
16452 hardcode_shlibpath_var
=no
16456 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16457 hardcode_shlibpath_var
=no
16458 export_dynamic_flag_spec
='-Bexport'
16462 if test -d /usr
/nec
; then
16463 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16464 hardcode_shlibpath_var
=no
16465 runpath_var
=LD_RUN_PATH
16466 hardcode_runpath_var
=yes
16471 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16472 no_undefined_flag
='${wl}-z,text'
16473 archive_cmds_need_lc
=no
16474 hardcode_shlibpath_var
=no
16475 runpath_var
='LD_RUN_PATH'
16477 if test "$GCC" = yes; then
16478 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16479 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16481 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16482 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16486 sysv5
* | sco3.2v5
* | sco5v6
*)
16487 # Note: We can NOT use -z defs as we might desire, because we do not
16488 # link with -lc, and that would cause any symbols used from libc to
16489 # always be unresolved, which means just about no library would
16490 # ever link correctly. If we're not using GNU ld we use -z text
16491 # though, which does catch some bad symbols but isn't as heavy-handed
16493 no_undefined_flag
='${wl}-z,text'
16494 allow_undefined_flag
='${wl}-z,nodefs'
16495 archive_cmds_need_lc
=no
16496 hardcode_shlibpath_var
=no
16497 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16498 hardcode_libdir_separator
=':'
16499 link_all_deplibs
=yes
16500 export_dynamic_flag_spec
='${wl}-Bexport'
16501 runpath_var
='LD_RUN_PATH'
16503 if test "$GCC" = yes; then
16504 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16505 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16507 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16508 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16513 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16514 hardcode_libdir_flag_spec
='-L$libdir'
16515 hardcode_shlibpath_var
=no
16523 if test x
$host_vendor = xsni
; then
16525 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16526 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16533 $as_echo "$ld_shlibs" >&6; }
16534 test "$ld_shlibs" = no
&& can_build_shared
=no
16536 with_gnu_ld
=$with_gnu_ld
16553 # Do we need to explicitly link libc?
16555 case "x$archive_cmds_need_lc" in
16557 # Assume -lc should be added
16558 archive_cmds_need_lc
=yes
16560 if test "$enable_shared" = yes && test "$GCC" = yes; then
16561 case $archive_cmds in
16563 # FIXME: we may have to deal with multi-command sequences.
16566 # Test whether the compiler implicitly links with -lc since on some
16567 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16568 # to ld, don't add -lc before -lgcc.
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16570 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16571 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16572 $as_echo_n "(cached) " >&6
16575 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16578 (eval $ac_compile) 2>&5
16580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16581 test $ac_status = 0; } 2>conftest.err
; then
16584 libobjs
=conftest.
$ac_objext
16586 wl
=$lt_prog_compiler_wl
16587 pic_flag
=$lt_prog_compiler_pic
16593 lt_save_allow_undefined_flag
=$allow_undefined_flag
16594 allow_undefined_flag
=
16595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16596 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599 test $ac_status = 0; }
16601 lt_cv_archive_cmds_need_lc
=no
16603 lt_cv_archive_cmds_need_lc
=yes
16605 allow_undefined_flag
=$lt_save_allow_undefined_flag
16607 cat conftest.err
1>&5
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16613 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16614 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16778 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16780 if test "$GCC" = yes; then
16782 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16783 *) lt_awk_arg
="/^libraries:/" ;;
16786 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16787 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16789 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16790 case $lt_search_path_spec in
16792 # if the path contains ";" then we assume it to be the separator
16793 # otherwise default to the standard path separator (i.e. ":") - it is
16794 # assumed that no part of a normal pathname contains ";" but that should
16795 # okay in the real world where ";" in dirpaths is itself problematic.
16796 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16799 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16802 # Ok, now we have the path, separated by spaces, we can step through it
16803 # and add multilib dir if necessary.
16804 lt_tmp_lt_search_path_spec
=
16805 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16806 for lt_sys_path
in $lt_search_path_spec; do
16807 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16808 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16810 test -d "$lt_sys_path" && \
16811 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16814 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16815 BEGIN {RS=" "; FS="/|\n";} {
16818 for (lt_i = NF; lt_i > 0; lt_i--) {
16819 if ($lt_i != "" && $lt_i != ".") {
16820 if ($lt_i == "..") {
16823 if (lt_count == 0) {
16824 lt_foo="/" $lt_i lt_foo;
16831 if (lt_foo != "") { lt_freq[lt_foo]++; }
16832 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16834 # AWK program above erroneously prepends '/' to C:/dos/paths
16837 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16838 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16840 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16842 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16844 library_names_spec
=
16845 libname_spec
='lib$name'
16849 postuninstall_cmds
=
16853 shlibpath_overrides_runpath
=unknown
16855 dynamic_linker
="$host_os ld.so"
16856 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16857 need_lib_prefix
=unknown
16858 hardcode_into_libs
=no
16860 # when you set need_version to no, make sure it does not cause -set_version
16861 # flags to be left without arguments
16862 need_version
=unknown
16867 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16868 shlibpath_var
=LIBPATH
16870 # AIX 3 has no versioning support, so we append a major version to the name.
16871 soname_spec
='${libname}${release}${shared_ext}$major'
16878 hardcode_into_libs
=yes
16879 if test "$host_cpu" = ia64
; then
16880 # AIX 5 supports IA64
16881 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16882 shlibpath_var
=LD_LIBRARY_PATH
16884 # With GCC up to 2.95.x, collect2 would create an import file
16885 # for dependence libraries. The import file would start with
16886 # the line `#! .'. This would cause the generated library to
16887 # depend on `.', always an invalid library. This was fixed in
16888 # development snapshots of GCC prior to 3.0.
16890 aix4 | aix4.
[01] | aix4.
[01].
*)
16891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16893 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16896 can_build_shared
=no
16900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16901 # soname into executable. Probably we can add versioning support to
16902 # collect2, so additional links can be useful in future.
16903 if test "$aix_use_runtimelinking" = yes; then
16904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16905 # instead of lib<name>.a to let people know that these are not
16906 # typical AIX shared libraries.
16907 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909 # We preserve .a as extension for shared libraries through AIX4.2
16910 # and later when we are not doing run time linking.
16911 library_names_spec
='${libname}${release}.a $libname.a'
16912 soname_spec
='${libname}${release}${shared_ext}$major'
16914 shlibpath_var
=LIBPATH
16921 # Since July 2007 AmigaOS4 officially supports .so libraries.
16922 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926 library_names_spec
='$libname.ixlibrary $libname.a'
16927 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16928 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'
16934 library_names_spec
='${libname}${shared_ext}'
16935 dynamic_linker
="$host_os ld.so"
16936 shlibpath_var
=LIBRARY_PATH
16942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943 soname_spec
='${libname}${release}${shared_ext}$major'
16944 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16945 shlibpath_var
=LD_LIBRARY_PATH
16946 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16947 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16948 # the default ld.so.conf also contains /usr/contrib/lib and
16949 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16950 # libtool to hard-code these into programs
16953 cygwin
* | mingw
* | pw32
* | cegcc
*)
16954 version_type
=windows
16959 case $GCC,$host_os in
16960 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16961 library_names_spec
='$libname.dll.a'
16962 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16963 postinstall_cmds
='base_file=`basename \${file}`~
16964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16965 dldir=$destdir/`dirname \$dlpath`~
16966 test -d \$dldir || mkdir -p \$dldir~
16967 $install_prog $dir/$dlname \$dldir/$dlname~
16968 chmod a+x \$dldir/$dlname~
16969 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16970 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16972 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16973 dlpath=$dir/\$dldll~
16975 shlibpath_overrides_runpath
=yes
16979 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16980 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16982 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16985 # MinGW DLLs use traditional 'lib' prefix
16986 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16989 # pw32 DLLs use 'pw' prefix rather than 'lib'
16990 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16996 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16999 dynamic_linker
='Win32 ld.exe'
17000 # FIXME: first we should search . and the directory the executable is in
17004 darwin
* | rhapsody
*)
17005 dynamic_linker
="$host_os dyld"
17006 version_type
=darwin
17009 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17010 soname_spec
='${libname}${release}${major}$shared_ext'
17011 shlibpath_overrides_runpath
=yes
17012 shlibpath_var
=DYLD_LIBRARY_PATH
17013 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17015 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17016 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17024 soname_spec
='${libname}${release}${shared_ext}$major'
17025 shlibpath_var
=LD_LIBRARY_PATH
17028 freebsd
* | dragonfly
*)
17029 # DragonFly does not have aout. When/if they implement a new
17030 # versioning mechanism, adjust this.
17031 if test -x /usr
/bin
/objformat
; then
17032 objformat
=`/usr/bin/objformat`
17035 freebsd
[23].
*) objformat
=aout
;;
17036 *) objformat
=elf
;;
17039 version_type
=freebsd-
$objformat
17040 case $version_type in
17042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17047 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17051 shlibpath_var
=LD_LIBRARY_PATH
17054 shlibpath_overrides_runpath
=yes
17056 freebsd3.
[01]* | freebsdelf3.
[01]*)
17057 shlibpath_overrides_runpath
=yes
17058 hardcode_into_libs
=yes
17060 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17061 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17062 shlibpath_overrides_runpath
=no
17063 hardcode_into_libs
=yes
17065 *) # from 4.6 on, and DragonFly
17066 shlibpath_overrides_runpath
=yes
17067 hardcode_into_libs
=yes
17076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17077 soname_spec
='${libname}${release}${shared_ext}$major'
17078 shlibpath_var
=LD_LIBRARY_PATH
17079 hardcode_into_libs
=yes
17086 dynamic_linker
="$host_os runtime_loader"
17087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17088 soname_spec
='${libname}${release}${shared_ext}$major'
17089 shlibpath_var
=LIBRARY_PATH
17090 shlibpath_overrides_runpath
=yes
17091 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17092 hardcode_into_libs
=yes
17095 hpux9
* | hpux10
* | hpux11
*)
17096 # Give a soname corresponding to the major version so that dld.sl refuses to
17097 # link against other versions.
17104 hardcode_into_libs
=yes
17105 dynamic_linker
="$host_os dld.so"
17106 shlibpath_var
=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17109 soname_spec
='${libname}${release}${shared_ext}$major'
17110 if test "X$HPUX_IA64_MODE" = X32
; then
17111 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17113 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17115 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17119 hardcode_into_libs
=yes
17120 dynamic_linker
="$host_os dld.sl"
17121 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17122 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124 soname_spec
='${libname}${release}${shared_ext}$major'
17125 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17126 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17130 dynamic_linker
="$host_os dld.sl"
17131 shlibpath_var
=SHLIB_PATH
17132 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134 soname_spec
='${libname}${release}${shared_ext}$major'
17137 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17138 postinstall_cmds
='chmod 555 $lib'
17139 # or fails outright, so override atomically:
17140 install_override_mode
=555
17147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17148 soname_spec
='${libname}${release}${shared_ext}$major'
17149 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17150 shlibpath_var
=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath
=no
17152 hardcode_into_libs
=yes
17155 irix5
* | irix6
* | nonstopux
*)
17157 nonstopux
*) version_type
=nonstopux
;;
17159 if test "$lt_cv_prog_gnu_ld" = yes; then
17167 soname_spec
='${libname}${release}${shared_ext}$major'
17168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17170 irix5
* | nonstopux
*)
17171 libsuff
= shlibsuff
=
17174 case $LD in # libtool.m4 will add one of these switches to LD
17175 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17176 libsuff
= shlibsuff
= libmagic
=32-bit;;
17177 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17178 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17179 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17180 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17181 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17185 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17186 shlibpath_overrides_runpath
=no
17187 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17188 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17189 hardcode_into_libs
=yes
17192 # No shared lib support for Linux oldld, aout, or coff.
17193 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17197 # This must be Linux ELF.
17198 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17203 soname_spec
='${libname}${release}${shared_ext}$major'
17204 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17205 shlibpath_var
=LD_LIBRARY_PATH
17206 shlibpath_overrides_runpath
=no
17208 # Some binutils ld are patched to set DT_RUNPATH
17209 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17210 $as_echo_n "(cached) " >&6
17212 lt_cv_shlibpath_overrides_runpath
=no
17213 save_LDFLAGS
=$LDFLAGS
17214 save_libdir
=$libdir
17215 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17216 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17218 /* end confdefs.h. */
17228 if ac_fn_c_try_link
"$LINENO"; then :
17229 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17230 lt_cv_shlibpath_overrides_runpath
=yes
17233 rm -f core conftest.err conftest.
$ac_objext \
17234 conftest
$ac_exeext conftest.
$ac_ext
17235 LDFLAGS
=$save_LDFLAGS
17236 libdir
=$save_libdir
17240 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17242 # This implies no fast_install, which is unacceptable.
17243 # Some rework will be needed to allow for fast_install
17244 # before this can be enabled.
17245 hardcode_into_libs
=yes
17247 # Append ld.so.conf contents to the search path
17248 if test -f /etc
/ld.so.conf
; then
17249 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' ' '`
17250 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17253 # We used to test for /lib/ld.so.1 and disable shared libraries on
17254 # powerpc, because MkLinux only supported shared libraries with the
17255 # GNU dynamic linker. Since this was broken with cross compilers,
17256 # most powerpc-linux boxes support dynamic linking these days and
17257 # people can always --disable-shared, the test was removed, and we
17258 # assume the GNU/Linux dynamic linker is in use.
17259 dynamic_linker
='GNU/Linux ld.so'
17266 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17267 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17268 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17269 dynamic_linker
='NetBSD (a.out) ld.so'
17271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17272 soname_spec
='${libname}${release}${shared_ext}$major'
17273 dynamic_linker
='NetBSD ld.elf_so'
17275 shlibpath_var
=LD_LIBRARY_PATH
17276 shlibpath_overrides_runpath
=yes
17277 hardcode_into_libs
=yes
17282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283 shlibpath_var
=LD_LIBRARY_PATH
17284 shlibpath_overrides_runpath
=yes
17291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 soname_spec
='${libname}${release}${shared_ext}$major'
17293 shlibpath_var
=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath
=no
17295 hardcode_into_libs
=yes
17296 dynamic_linker
='ldqnx.so'
17301 sys_lib_dlsearch_path_spec
="/usr/lib"
17303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17305 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17306 *) need_version
=no
;;
17308 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17309 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17310 shlibpath_var
=LD_LIBRARY_PATH
17311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17313 openbsd2.
[89] | openbsd2.
[89].
*)
17314 shlibpath_overrides_runpath
=no
17317 shlibpath_overrides_runpath
=yes
17321 shlibpath_overrides_runpath
=yes
17326 libname_spec
='$name'
17329 library_names_spec
='$libname${shared_ext} $libname.a'
17330 dynamic_linker
='OS/2 ld.exe'
17331 shlibpath_var
=LIBPATH
17334 osf3
* | osf4
* | osf5
*)
17338 soname_spec
='${libname}${release}${shared_ext}$major'
17339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 shlibpath_var
=LD_LIBRARY_PATH
17341 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17342 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354 soname_spec
='${libname}${release}${shared_ext}$major'
17355 shlibpath_var
=LD_LIBRARY_PATH
17356 shlibpath_overrides_runpath
=yes
17357 hardcode_into_libs
=yes
17358 # ldd complains unless libraries are executable
17359 postinstall_cmds
='chmod +x $lib'
17364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17365 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17366 shlibpath_var
=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath
=yes
17368 if test "$with_gnu_ld" = yes; then
17376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec
='${libname}${release}${shared_ext}$major'
17378 shlibpath_var
=LD_LIBRARY_PATH
17379 case $host_vendor in
17381 shlibpath_overrides_runpath
=no
17383 runpath_var
=LD_RUN_PATH
17391 shlibpath_overrides_runpath
=no
17392 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17398 if test -d /usr
/nec
;then
17400 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17401 soname_spec
='$libname${shared_ext}.$major'
17402 shlibpath_var
=LD_LIBRARY_PATH
17406 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17407 version_type
=freebsd-elf
17410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17411 soname_spec
='${libname}${release}${shared_ext}$major'
17412 shlibpath_var
=LD_LIBRARY_PATH
17413 shlibpath_overrides_runpath
=yes
17414 hardcode_into_libs
=yes
17415 if test "$with_gnu_ld" = yes; then
17416 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17418 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17421 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17425 sys_lib_dlsearch_path_spec
='/usr/lib'
17429 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17434 shlibpath_var
=LD_LIBRARY_PATH
17435 shlibpath_overrides_runpath
=no
17436 hardcode_into_libs
=yes
17441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442 soname_spec
='${libname}${release}${shared_ext}$major'
17443 shlibpath_var
=LD_LIBRARY_PATH
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17451 $as_echo "$dynamic_linker" >&6; }
17452 test "$dynamic_linker" = no
&& can_build_shared
=no
17454 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17455 if test "$GCC" = yes; then
17456 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17459 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17460 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17462 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17463 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17558 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17560 if test -n "$hardcode_libdir_flag_spec" ||
17561 test -n "$runpath_var" ||
17562 test "X$hardcode_automatic" = "Xyes" ; then
17564 # We can hardcode non-existent directories.
17565 if test "$hardcode_direct" != no
&&
17566 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17567 # have to relink, otherwise we might link with an installed library
17568 # when we should be linking with a yet-to-be-installed one
17569 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17570 test "$hardcode_minus_L" != no
; then
17571 # Linking always hardcodes the temporary library directory.
17572 hardcode_action
=relink
17574 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17575 hardcode_action
=immediate
17578 # We cannot hardcode anything, or else we can only hardcode existing
17580 hardcode_action
=unsupported
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17583 $as_echo "$hardcode_action" >&6; }
17585 if test "$hardcode_action" = relink ||
17586 test "$inherit_rpath" = yes; then
17587 # Fast installation is not supported
17588 enable_fast_install
=no
17589 elif test "$shlibpath_overrides_runpath" = yes ||
17590 test "$enable_shared" = no
; then
17591 # Fast installation is not necessary
17592 enable_fast_install
=needless
17600 if test "x$enable_dlopen" != xyes
; then
17601 enable_dlopen
=unknown
17602 enable_dlopen_self
=unknown
17603 enable_dlopen_self_static
=unknown
17610 lt_cv_dlopen
="load_add_on"
17612 lt_cv_dlopen_self
=yes
17615 mingw
* | pw32
* | cegcc
*)
17616 lt_cv_dlopen
="LoadLibrary"
17621 lt_cv_dlopen
="dlopen"
17626 # if libdl is installed we need to link against it
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17628 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17629 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17630 $as_echo_n "(cached) " >&6
17632 ac_check_lib_save_LIBS
=$LIBS
17634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17637 /* Override any GCC internal prototype to avoid an error.
17638 Use char because int might match the return type of a GCC
17639 builtin and then its argument prototype would still apply. */
17652 if ac_fn_c_try_link
"$LINENO"; then :
17653 ac_cv_lib_dl_dlopen
=yes
17655 ac_cv_lib_dl_dlopen
=no
17657 rm -f core conftest.err conftest.
$ac_objext \
17658 conftest
$ac_exeext conftest.
$ac_ext
17659 LIBS
=$ac_check_lib_save_LIBS
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17662 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17663 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17664 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17667 lt_cv_dlopen
="dyld"
17669 lt_cv_dlopen_self
=yes
17676 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17677 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17678 lt_cv_dlopen
="shl_load"
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17681 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17682 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17683 $as_echo_n "(cached) " >&6
17685 ac_check_lib_save_LIBS
=$LIBS
17687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17690 /* Override any GCC internal prototype to avoid an error.
17691 Use char because int might match the return type of a GCC
17692 builtin and then its argument prototype would still apply. */
17700 return shl_load ();
17705 if ac_fn_c_try_link
"$LINENO"; then :
17706 ac_cv_lib_dld_shl_load
=yes
17708 ac_cv_lib_dld_shl_load
=no
17710 rm -f core conftest.err conftest.
$ac_objext \
17711 conftest
$ac_exeext conftest.
$ac_ext
17712 LIBS
=$ac_check_lib_save_LIBS
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17715 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17716 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17717 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17719 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17720 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17721 lt_cv_dlopen
="dlopen"
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17724 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17726 $as_echo_n "(cached) " >&6
17728 ac_check_lib_save_LIBS
=$LIBS
17730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17733 /* Override any GCC internal prototype to avoid an error.
17734 Use char because int might match the return type of a GCC
17735 builtin and then its argument prototype would still apply. */
17748 if ac_fn_c_try_link
"$LINENO"; then :
17749 ac_cv_lib_dl_dlopen
=yes
17751 ac_cv_lib_dl_dlopen
=no
17753 rm -f core conftest.err conftest.
$ac_objext \
17754 conftest
$ac_exeext conftest.
$ac_ext
17755 LIBS
=$ac_check_lib_save_LIBS
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17758 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17759 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17760 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17763 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17764 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17765 $as_echo_n "(cached) " >&6
17767 ac_check_lib_save_LIBS
=$LIBS
17768 LIBS
="-lsvld $LIBS"
17769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17770 /* end confdefs.h. */
17772 /* Override any GCC internal prototype to avoid an error.
17773 Use char because int might match the return type of a GCC
17774 builtin and then its argument prototype would still apply. */
17787 if ac_fn_c_try_link
"$LINENO"; then :
17788 ac_cv_lib_svld_dlopen
=yes
17790 ac_cv_lib_svld_dlopen
=no
17792 rm -f core conftest.err conftest.
$ac_objext \
17793 conftest
$ac_exeext conftest.
$ac_ext
17794 LIBS
=$ac_check_lib_save_LIBS
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17797 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17798 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17799 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17802 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17803 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17804 $as_echo_n "(cached) " >&6
17806 ac_check_lib_save_LIBS
=$LIBS
17808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17811 /* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17821 return dld_link ();
17826 if ac_fn_c_try_link
"$LINENO"; then :
17827 ac_cv_lib_dld_dld_link
=yes
17829 ac_cv_lib_dld_dld_link
=no
17831 rm -f core conftest.err conftest.
$ac_objext \
17832 conftest
$ac_exeext conftest.
$ac_ext
17833 LIBS
=$ac_check_lib_save_LIBS
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17836 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17837 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17838 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17859 if test "x$lt_cv_dlopen" != xno
; then
17865 case $lt_cv_dlopen in
17867 save_CPPFLAGS
="$CPPFLAGS"
17868 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17870 save_LDFLAGS
="$LDFLAGS"
17871 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17874 LIBS
="$lt_cv_dlopen_libs $LIBS"
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17877 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17878 if test "${lt_cv_dlopen_self+set}" = set; then :
17879 $as_echo_n "(cached) " >&6
17881 if test "$cross_compiling" = yes; then :
17882 lt_cv_dlopen_self
=cross
17884 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17885 lt_status
=$lt_dlunknown
17886 cat > conftest.
$ac_ext <<_LT_EOF
17887 #line 17881 "configure"
17888 #include "confdefs.h"
17897 # define LT_DLGLOBAL RTLD_GLOBAL
17900 # define LT_DLGLOBAL DL_GLOBAL
17902 # define LT_DLGLOBAL 0
17906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17907 find out it does not work in some platform. */
17908 #ifndef LT_DLLAZY_OR_NOW
17910 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17913 # define LT_DLLAZY_OR_NOW DL_LAZY
17916 # define LT_DLLAZY_OR_NOW RTLD_NOW
17919 # define LT_DLLAZY_OR_NOW DL_NOW
17921 # define LT_DLLAZY_OR_NOW 0
17928 /* When -fvisbility=hidden is used, assume the code has been annotated
17929 correspondingly for the symbols needed. */
17930 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17931 void fnord () __attribute__((visibility("default")));
17934 void fnord () { int i=42; }
17937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17938 int status = $lt_dlunknown;
17942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17945 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17946 else puts (dlerror ());
17948 /* dlclose (self); */
17956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17957 (eval $ac_link) 2>&5
17959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17960 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17961 (.
/conftest
; exit; ) >&5 2>/dev
/null
17963 case x
$lt_status in
17964 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17965 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17966 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17969 # compilation failed
17970 lt_cv_dlopen_self
=no
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17978 $as_echo "$lt_cv_dlopen_self" >&6; }
17980 if test "x$lt_cv_dlopen_self" = xyes
; then
17981 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17983 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17984 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17985 $as_echo_n "(cached) " >&6
17987 if test "$cross_compiling" = yes; then :
17988 lt_cv_dlopen_self_static
=cross
17990 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17991 lt_status
=$lt_dlunknown
17992 cat > conftest.
$ac_ext <<_LT_EOF
17993 #line 17987 "configure"
17994 #include "confdefs.h"
18003 # define LT_DLGLOBAL RTLD_GLOBAL
18006 # define LT_DLGLOBAL DL_GLOBAL
18008 # define LT_DLGLOBAL 0
18012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18013 find out it does not work in some platform. */
18014 #ifndef LT_DLLAZY_OR_NOW
18016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18019 # define LT_DLLAZY_OR_NOW DL_LAZY
18022 # define LT_DLLAZY_OR_NOW RTLD_NOW
18025 # define LT_DLLAZY_OR_NOW DL_NOW
18027 # define LT_DLLAZY_OR_NOW 0
18034 /* When -fvisbility=hidden is used, assume the code has been annotated
18035 correspondingly for the symbols needed. */
18036 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18037 void fnord () __attribute__((visibility("default")));
18040 void fnord () { int i=42; }
18043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18044 int status = $lt_dlunknown;
18048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18051 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18052 else puts (dlerror ());
18054 /* dlclose (self); */
18062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18063 (eval $ac_link) 2>&5
18065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18066 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18067 (.
/conftest
; exit; ) >&5 2>/dev
/null
18069 case x
$lt_status in
18070 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18071 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18072 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18075 # compilation failed
18076 lt_cv_dlopen_self_static
=no
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18084 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18087 CPPFLAGS
="$save_CPPFLAGS"
18088 LDFLAGS
="$save_LDFLAGS"
18093 case $lt_cv_dlopen_self in
18094 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18095 *) enable_dlopen_self
=unknown
;;
18098 case $lt_cv_dlopen_self_static in
18099 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18100 *) enable_dlopen_self_static
=unknown
;;
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18123 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18124 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18125 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18126 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18128 $as_echo "yes" >&6; }
18130 # FIXME - insert some real tests, host_os isn't really good enough
18133 if test -n "$STRIP" ; then
18134 striplib
="$STRIP -x"
18135 old_striplib
="$STRIP -S"
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18137 $as_echo "yes" >&6; }
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18140 $as_echo "no" >&6; }
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18145 $as_echo "no" >&6; }
18161 # Report which library types will actually be built
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18163 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18165 $as_echo "$can_build_shared" >&6; }
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18168 $as_echo_n "checking whether to build shared libraries... " >&6; }
18169 test "$can_build_shared" = "no" && enable_shared
=no
18171 # On AIX, shared libraries and static libraries use the same namespace, and
18172 # are all built from PIC.
18175 test "$enable_shared" = yes && enable_static
=no
18176 if test -n "$RANLIB"; then
18177 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18178 postinstall_cmds
='$RANLIB $lib'
18183 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18184 test "$enable_shared" = yes && enable_static
=no
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18189 $as_echo "$enable_shared" >&6; }
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18192 $as_echo_n "checking whether to build static libraries... " >&6; }
18193 # Make sure either enable_shared or enable_static is yes.
18194 test "$enable_shared" = yes || enable_static
=yes
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18196 $as_echo "$enable_static" >&6; }
18203 ac_cpp
='$CPP $CPPFLAGS'
18204 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18205 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18206 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18210 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18211 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18212 (test "X$CXX" != "Xg++"))) ; then
18214 ac_cpp
='$CXXCPP $CPPFLAGS'
18215 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18216 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18217 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18219 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18220 if test -z "$CXXCPP"; then
18221 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
18224 # Double quotes because CXXCPP needs to be expanded
18225 for CXXCPP
in "$CXX -E" "/lib/cpp"
18227 ac_preproc_ok
=false
18228 for ac_cxx_preproc_warn_flag
in '' yes
18230 # Use a header file that comes with gcc, so configuring glibc
18231 # with a fresh cross-compiler works.
18232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18233 # <limits.h> exists even on freestanding compilers.
18234 # On the NeXT, cc -E runs the code through the compiler's parser,
18235 # not just through cpp. "Syntax error" is here to catch this case.
18236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18239 # include <limits.h>
18241 # include <assert.h>
18245 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18248 # Broken: fails on valid input.
18251 rm -f conftest.err conftest.
$ac_ext
18253 # OK, works on sane cases. Now check whether nonexistent headers
18254 # can be detected and how.
18255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18257 #include <ac_nonexistent.h>
18259 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18260 # Broken: success on invalid input.
18263 # Passes both tests.
18267 rm -f conftest.err conftest.
$ac_ext
18270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18271 rm -f conftest.err conftest.
$ac_ext
18272 if $ac_preproc_ok; then :
18277 ac_cv_prog_CXXCPP
=$CXXCPP
18280 CXXCPP
=$ac_cv_prog_CXXCPP
18282 ac_cv_prog_CXXCPP
=$CXXCPP
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18285 $as_echo "$CXXCPP" >&6; }
18286 ac_preproc_ok
=false
18287 for ac_cxx_preproc_warn_flag
in '' yes
18289 # Use a header file that comes with gcc, so configuring glibc
18290 # with a fresh cross-compiler works.
18291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18292 # <limits.h> exists even on freestanding compilers.
18293 # On the NeXT, cc -E runs the code through the compiler's parser,
18294 # not just through cpp. "Syntax error" is here to catch this case.
18295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18298 # include <limits.h>
18300 # include <assert.h>
18304 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18307 # Broken: fails on valid input.
18310 rm -f conftest.err conftest.
$ac_ext
18312 # OK, works on sane cases. Now check whether nonexistent headers
18313 # can be detected and how.
18314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18316 #include <ac_nonexistent.h>
18318 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18319 # Broken: success on invalid input.
18322 # Passes both tests.
18326 rm -f conftest.err conftest.
$ac_ext
18329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18330 rm -f conftest.err conftest.
$ac_ext
18331 if $ac_preproc_ok; then :
18334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18336 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18337 See \`config.log' for more details." "$LINENO" 5; }
18341 ac_cpp
='$CPP $CPPFLAGS'
18342 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18343 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18344 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18347 _lt_caught_CXX_error
=yes
18351 ac_cpp
='$CXXCPP $CPPFLAGS'
18352 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18353 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18354 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18356 archive_cmds_need_lc_CXX
=no
18357 allow_undefined_flag_CXX
=
18358 always_export_symbols_CXX
=no
18359 archive_expsym_cmds_CXX
=
18360 compiler_needs_object_CXX
=no
18361 export_dynamic_flag_spec_CXX
=
18362 hardcode_direct_CXX
=no
18363 hardcode_direct_absolute_CXX
=no
18364 hardcode_libdir_flag_spec_CXX
=
18365 hardcode_libdir_flag_spec_ld_CXX
=
18366 hardcode_libdir_separator_CXX
=
18367 hardcode_minus_L_CXX
=no
18368 hardcode_shlibpath_var_CXX
=unsupported
18369 hardcode_automatic_CXX
=no
18370 inherit_rpath_CXX
=no
18372 module_expsym_cmds_CXX
=
18373 link_all_deplibs_CXX
=unknown
18374 old_archive_cmds_CXX
=$old_archive_cmds
18375 reload_flag_CXX
=$reload_flag
18376 reload_cmds_CXX
=$reload_cmds
18377 no_undefined_flag_CXX
=
18378 whole_archive_flag_spec_CXX
=
18379 enable_shared_with_static_runtimes_CXX
=no
18381 # Source file extension for C++ test sources.
18384 # Object file extension for compiled C++ test sources.
18388 # No sense in running all these tests if we already determined that
18389 # the CXX compiler isn't working. Some variables (like enable_shared)
18390 # are currently assumed to apply to all compilers on this platform,
18391 # and will be corrupted by setting them based on a non-working compiler.
18392 if test "$_lt_caught_CXX_error" != yes; then
18393 # Code to be used in simple compile tests
18394 lt_simple_compile_test_code
="int some_variable = 0;"
18396 # Code to be used in simple link tests
18397 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18399 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18406 # If no C compiler was specified, use CC.
18409 # If no C compiler flags were specified, use CFLAGS.
18410 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18412 # Allow CC to be a program name with arguments.
18416 # save warnings/boilerplate of simple test code
18417 ac_outfile
=conftest.
$ac_objext
18418 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18419 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18420 _lt_compiler_boilerplate
=`cat conftest.err`
18423 ac_outfile
=conftest.
$ac_objext
18424 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18425 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18426 _lt_linker_boilerplate
=`cat conftest.err`
18430 # Allow CC to be a program name with arguments.
18435 lt_save_with_gnu_ld
=$with_gnu_ld
18436 lt_save_path_LD
=$lt_cv_path_LD
18437 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18438 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18440 $as_unset lt_cv_prog_gnu_ld
18442 if test -n "${lt_cv_path_LDCXX+set}"; then
18443 lt_cv_path_LD
=$lt_cv_path_LDCXX
18445 $as_unset lt_cv_path_LD
18447 test -z "${LDCXX+set}" || LD
=$LDCXX
18451 for cc_temp
in $compiler""; do
18453 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18454 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18459 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18462 if test -n "$compiler"; then
18463 # We don't want -fno-exception when compiling C++ code, so set the
18464 # no_builtin_flag separately
18465 if test "$GXX" = yes; then
18466 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18468 lt_prog_compiler_no_builtin_flag_CXX
=
18471 if test "$GXX" = yes; then
18472 # Set up default GNU C++ configuration
18476 # Check whether --with-gnu-ld was given.
18477 if test "${with_gnu_ld+set}" = set; then :
18478 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18484 if test "$GCC" = yes; then
18485 # Check if gcc -print-prog-name=ld gives a path.
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18487 $as_echo_n "checking for ld used by $CC... " >&6; }
18490 # gcc leaves a trailing carriage return which upsets mingw
18491 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18493 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18496 # Accept absolute paths.
18498 re_direlt
='/[^/][^/]*/\.\./'
18499 # Canonicalize the pathname of ld
18500 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18501 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18502 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18504 test -z "$LD" && LD
="$ac_prog"
18507 # If it fails, then pretend we aren't using GCC.
18511 # If it is relative, then search for the first ld in PATH.
18512 with_gnu_ld
=unknown
18515 elif test "$with_gnu_ld" = yes; then
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18517 $as_echo_n "checking for GNU ld... " >&6; }
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18520 $as_echo_n "checking for non-GNU ld... " >&6; }
18522 if test "${lt_cv_path_LD+set}" = set; then :
18523 $as_echo_n "(cached) " >&6
18525 if test -z "$LD"; then
18526 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18527 for ac_dir
in $PATH; do
18529 test -z "$ac_dir" && ac_dir
=.
18530 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18531 lt_cv_path_LD
="$ac_dir/$ac_prog"
18532 # Check to see if the program is GNU ld. I'd rather use --version,
18533 # but apparently some variants of GNU ld only accept -v.
18534 # Break only if it was the GNU/non-GNU ld that we prefer.
18535 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18536 *GNU
* |
*'with BFD'*)
18537 test "$with_gnu_ld" != no
&& break
18540 test "$with_gnu_ld" != yes && break
18547 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18551 LD
="$lt_cv_path_LD"
18552 if test -n "$LD"; then
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18554 $as_echo "$LD" >&6; }
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18557 $as_echo "no" >&6; }
18559 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18561 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18562 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18563 $as_echo_n "(cached) " >&6
18565 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18566 case `$LD -v 2>&1 </dev/null` in
18567 *GNU
* |
*'with BFD'*)
18568 lt_cv_prog_gnu_ld
=yes
18571 lt_cv_prog_gnu_ld
=no
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18576 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18577 with_gnu_ld
=$lt_cv_prog_gnu_ld
18585 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18586 # archiving commands below assume that GNU ld is being used.
18587 if test "$with_gnu_ld" = yes; then
18588 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18589 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'
18591 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18592 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18594 # If archive_cmds runs LD, not CC, wlarc should be empty
18595 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18596 # investigate it a little bit more. (MM)
18599 # ancient GNU ld didn't support --whole-archive et. al.
18600 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18601 $GREP 'no-whole-archive' > /dev
/null
; then
18602 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18604 whole_archive_flag_spec_CXX
=
18610 # A generic and very simple default shared library creation
18611 # command for GNU C++ for the case where it uses the native
18612 # linker, instead of GNU ld. If possible, this setting should
18613 # overridden to take advantage of the native linker features on
18614 # the platform it is being used on.
18615 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18618 # Commands to make compiler produce verbose output that lists
18619 # what "hidden" libraries, object files and flags are used when
18620 # linking a shared library.
18621 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18629 # PORTME: fill in a description of your system's C++ link characteristics
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18631 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18635 # FIXME: insert proper C++ library support
18639 if test "$host_cpu" = ia64
; then
18640 # On IA64, the linker does run time linking by default, so we don't
18641 # have to do anything special.
18642 aix_use_runtimelinking
=no
18643 exp_sym_flag
='-Bexport'
18646 aix_use_runtimelinking
=no
18648 # Test if we are trying to use run time linking or normal
18649 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18650 # need to do runtime linking.
18651 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18652 for ld_flag
in $LDFLAGS; do
18655 aix_use_runtimelinking
=yes
18663 exp_sym_flag
='-bexport'
18664 no_entry_flag
='-bnoentry'
18667 # When large executables or shared objects are built, AIX ld can
18668 # have problems creating the table of contents. If linking a library
18669 # or program results in "error TOC overflow" add -mminimal-toc to
18670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18673 archive_cmds_CXX
=''
18674 hardcode_direct_CXX
=yes
18675 hardcode_direct_absolute_CXX
=yes
18676 hardcode_libdir_separator_CXX
=':'
18677 link_all_deplibs_CXX
=yes
18678 file_list_spec_CXX
='${wl}-f,'
18680 if test "$GXX" = yes; then
18681 case $host_os in aix4.
[012]|aix4.
[012].
*)
18682 # We only want to do this on AIX 4.2 and lower, the check
18683 # below for broken collect2 doesn't work under 4.3+
18684 collect2name
=`${CC} -print-prog-name=collect2`
18685 if test -f "$collect2name" &&
18686 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18688 # We have reworked collect2
18691 # We have old collect2
18692 hardcode_direct_CXX
=unsupported
18693 # It fails to find uninstalled libraries when the uninstalled
18694 # path is not listed in the libpath. Setting hardcode_minus_L
18695 # to unsupported forces relinking
18696 hardcode_minus_L_CXX
=yes
18697 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18698 hardcode_libdir_separator_CXX
=
18701 shared_flag
='-shared'
18702 if test "$aix_use_runtimelinking" = yes; then
18703 shared_flag
="$shared_flag "'${wl}-G'
18707 if test "$host_cpu" = ia64
; then
18708 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18709 # chokes on -Wl,-G. The following line is correct:
18712 if test "$aix_use_runtimelinking" = yes; then
18713 shared_flag
='${wl}-G'
18715 shared_flag
='${wl}-bM:SRE'
18720 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18721 # It seems that -bexpall does not export symbols beginning with
18722 # underscore (_), so it is better to generate a list of symbols to
18724 always_export_symbols_CXX
=yes
18725 if test "$aix_use_runtimelinking" = yes; then
18726 # Warning - without using the other runtime loading flags (-brtl),
18727 # -berok will link without error, but may produce a broken library.
18728 allow_undefined_flag_CXX
='-berok'
18729 # Determine the default libpath from the value encoded in an empty
18731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18732 /* end confdefs.h. */
18742 if ac_fn_cxx_try_link
"$LINENO"; then :
18744 lt_aix_libpath_sed
='
18745 /Import File Strings/,/^$/ {
18751 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18752 # Check for a 64-bit object if we didn't find anything.
18753 if test -z "$aix_libpath"; then
18754 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18757 rm -f core conftest.err conftest.
$ac_objext \
18758 conftest
$ac_exeext conftest.
$ac_ext
18759 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18761 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18763 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"
18765 if test "$host_cpu" = ia64
; then
18766 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18767 allow_undefined_flag_CXX
="-z nodefs"
18768 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"
18770 # Determine the default libpath from the value encoded in an
18771 # empty executable.
18772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18773 /* end confdefs.h. */
18783 if ac_fn_cxx_try_link
"$LINENO"; then :
18785 lt_aix_libpath_sed
='
18786 /Import File Strings/,/^$/ {
18792 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18793 # Check for a 64-bit object if we didn't find anything.
18794 if test -z "$aix_libpath"; then
18795 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18798 rm -f core conftest.err conftest.
$ac_objext \
18799 conftest
$ac_exeext conftest.
$ac_ext
18800 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18802 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18803 # Warning - without using the other run time loading flags,
18804 # -berok will link without error, but may produce a broken library.
18805 no_undefined_flag_CXX
=' ${wl}-bernotok'
18806 allow_undefined_flag_CXX
=' ${wl}-berok'
18807 if test "$with_gnu_ld" = yes; then
18808 # We only use this code for GNU lds that support --whole-archive.
18809 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18811 # Exported symbols can be pulled into shared objects from archives
18812 whole_archive_flag_spec_CXX
='$convenience'
18814 archive_cmds_need_lc_CXX
=yes
18815 # This is similar to how AIX traditionally builds its shared
18817 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'
18823 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18824 allow_undefined_flag_CXX
=unsupported
18825 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18826 # support --undefined. This deserves some investigation. FIXME
18827 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18834 case $cc_basename in
18836 # FIXME: insert proper C++ library support
18842 cygwin
* | mingw
* | pw32
* | cegcc
*)
18843 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18844 # as there is no search path for DLLs.
18845 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18846 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18847 allow_undefined_flag_CXX
=unsupported
18848 always_export_symbols_CXX
=no
18849 enable_shared_with_static_runtimes_CXX
=yes
18851 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18852 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'
18853 # If the export-symbols file already is a .def file (1st line
18854 # is EXPORTS), use it as is; otherwise, prepend...
18855 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18856 cp $export_symbols $output_objdir/$soname.def;
18858 echo EXPORTS > $output_objdir/$soname.def;
18859 cat $export_symbols >> $output_objdir/$soname.def;
18861 $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'
18866 darwin
* | rhapsody
*)
18869 archive_cmds_need_lc_CXX
=no
18870 hardcode_direct_CXX
=no
18871 hardcode_automatic_CXX
=yes
18872 hardcode_shlibpath_var_CXX
=unsupported
18873 if test "$lt_cv_ld_force_load" = "yes"; then
18874 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\"`'
18876 whole_archive_flag_spec_CXX
=''
18878 link_all_deplibs_CXX
=yes
18879 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18880 case $cc_basename in
18881 ifort
*) _lt_dar_can_shared
=yes ;;
18882 *) _lt_dar_can_shared
=$GCC ;;
18884 if test "$_lt_dar_can_shared" = "yes"; then
18885 output_verbose_link_cmd
=func_echo_all
18886 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}"
18887 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18888 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}"
18889 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}"
18890 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18891 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}"
18892 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}"
18902 case $cc_basename in
18904 # FIXME: insert proper C++ library support
18908 # Green Hills C++ Compiler
18909 # FIXME: insert proper C++ library support
18913 # FIXME: insert proper C++ library support
18920 # C++ shared libraries reported to be fairly broken before
18926 archive_cmds_need_lc_CXX
=no
18929 freebsd
* | dragonfly
*)
18930 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18939 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18940 link_all_deplibs_CXX
=yes
18944 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18945 hardcode_libdir_separator_CXX
=:
18946 export_dynamic_flag_spec_CXX
='${wl}-E'
18947 hardcode_direct_CXX
=yes
18948 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18949 # but as the default
18950 # location of the library.
18952 case $cc_basename in
18954 # FIXME: insert proper C++ library support
18958 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'
18959 # Commands to make compiler produce verbose output that lists
18960 # what "hidden" libraries, object files and flags are used when
18961 # linking a shared library.
18963 # There doesn't appear to be a way to prevent this compiler from
18964 # explicitly linking system object files so we need to strip them
18965 # from the output so that they don't get included in the library
18967 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"'
18970 if test "$GXX" = yes; then
18971 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'
18973 # FIXME: insert proper C++ library support
18981 if test $with_gnu_ld = no
; then
18982 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18983 hardcode_libdir_separator_CXX
=:
18989 export_dynamic_flag_spec_CXX
='${wl}-E'
18995 hardcode_direct_CXX
=no
18996 hardcode_shlibpath_var_CXX
=no
18999 hardcode_direct_CXX
=yes
19000 hardcode_direct_absolute_CXX
=yes
19001 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19002 # but as the default
19003 # location of the library.
19007 case $cc_basename in
19009 # FIXME: insert proper C++ library support
19015 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19018 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19021 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19024 # Commands to make compiler produce verbose output that lists
19025 # what "hidden" libraries, object files and flags are used when
19026 # linking a shared library.
19028 # There doesn't appear to be a way to prevent this compiler from
19029 # explicitly linking system object files so we need to strip them
19030 # from the output so that they don't get included in the library
19032 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"'
19035 if test "$GXX" = yes; then
19036 if test $with_gnu_ld = no
; then
19039 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19042 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19045 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'
19050 # FIXME: insert proper C++ library support
19058 hardcode_direct_CXX
=no
19059 hardcode_shlibpath_var_CXX
=no
19060 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19061 export_dynamic_flag_spec_CXX
='${wl}-E'
19062 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19063 # Instead, shared libraries are loaded at an image base (0x10000000 by
19064 # default) and relocated if they conflict, which is a slow very memory
19065 # consuming and fragmenting process. To avoid this, we pick a random,
19066 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19067 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19068 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'
19069 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'
19072 case $cc_basename in
19075 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'
19077 # Archives containing C++ object files must be created using
19078 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19079 # necessary to make sure instantiated templates are included
19081 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19084 if test "$GXX" = yes; then
19085 if test "$with_gnu_ld" = no
; then
19086 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'
19088 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'
19091 link_all_deplibs_CXX
=yes
19094 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19095 hardcode_libdir_separator_CXX
=:
19096 inherit_rpath_CXX
=yes
19099 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19100 case $cc_basename in
19102 # Kuck and Associates, Inc. (KAI) C++ Compiler
19104 # KCC will only create a shared library if the output file
19105 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19106 # to its proper name (with version) after linking.
19107 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'
19108 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'
19109 # Commands to make compiler produce verbose output that lists
19110 # what "hidden" libraries, object files and flags are used when
19111 # linking a shared library.
19113 # There doesn't appear to be a way to prevent this compiler from
19114 # explicitly linking system object files so we need to strip them
19115 # from the output so that they don't get included in the library
19117 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"'
19119 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19120 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19122 # Archives containing C++ object files must be created using
19123 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19124 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19129 # version 8.0 and above of icpc choke on multiply defined symbols
19130 # if we add $predep_objects and $postdep_objects, however 7.1 and
19131 # earlier do not add the objects themselves.
19132 case `$CC -V 2>&1` in
19134 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19135 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'
19137 *) # Version 8.0 or newer
19140 ia64
*) tmp_idyn
=' -i_dynamic';;
19142 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19143 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'
19146 archive_cmds_need_lc_CXX
=no
19147 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19148 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19149 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19152 # Portland Group C++ compiler
19154 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19155 prelink_cmds_CXX
='tpldir=Template.dir~
19157 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19158 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19159 old_archive_cmds_CXX
='tpldir=Template.dir~
19161 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19162 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19164 archive_cmds_CXX
='tpldir=Template.dir~
19166 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19167 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19168 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19170 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19171 $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'
19173 *) # Version 6 and above use weak symbols
19174 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19175 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'
19179 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19180 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19181 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'
19185 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19186 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'
19188 runpath_var
=LD_RUN_PATH
19189 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19190 hardcode_libdir_separator_CXX
=:
19192 # Commands to make compiler produce verbose output that lists
19193 # what "hidden" libraries, object files and flags are used when
19194 # linking a shared library.
19196 # There doesn't appear to be a way to prevent this compiler from
19197 # explicitly linking system object files so we need to strip them
19198 # from the output so that they don't get included in the library
19200 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'
19202 xl
* | mpixl
* | bgxl
*)
19203 # IBM XL 8.0 on PPC, with GNU ld
19204 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19205 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19206 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19207 if test "x$supports_anon_versioning" = xyes
; then
19208 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19209 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19210 echo "local: *; };" >> $output_objdir/$libname.ver~
19211 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19215 case `$CC -V 2>&1 | sed 5q` in
19218 no_undefined_flag_CXX
=' -zdefs'
19219 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19220 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'
19221 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19222 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'
19223 compiler_needs_object_CXX
=yes
19225 # Not sure whether something based on
19226 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19228 output_verbose_link_cmd
='func_echo_all'
19230 # Archives containing C++ object files must be created using
19231 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19232 # necessary to make sure instantiated templates are included
19234 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19242 # FIXME: insert proper C++ library support
19247 # FIXME: insert proper C++ library support
19252 case $cc_basename in
19254 # FIXME: insert proper C++ library support
19258 # FIXME: insert proper C++ library support
19265 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19266 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19268 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19269 hardcode_direct_CXX
=yes
19270 hardcode_shlibpath_var_CXX
=no
19272 # Workaround some broken pre-1.5 toolchains
19273 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19281 # C++ shared libraries are fairly broken
19286 if test -f /usr
/libexec
/ld.so
; then
19287 hardcode_direct_CXX
=yes
19288 hardcode_shlibpath_var_CXX
=no
19289 hardcode_direct_absolute_CXX
=yes
19290 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19291 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19293 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19294 export_dynamic_flag_spec_CXX
='${wl}-E'
19295 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19297 output_verbose_link_cmd
=func_echo_all
19303 osf3
* | osf4
* | osf5
*)
19304 case $cc_basename in
19306 # Kuck and Associates, Inc. (KAI) C++ Compiler
19308 # KCC will only create a shared library if the output file
19309 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19310 # to its proper name (with version) after linking.
19311 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'
19313 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19314 hardcode_libdir_separator_CXX
=:
19316 # Archives containing C++ object files must be created using
19317 # the KAI C++ compiler.
19319 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19320 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19324 # Rational C++ 2.4.1
19325 # FIXME: insert proper C++ library support
19331 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19332 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'
19333 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19336 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19337 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'
19338 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19339 echo "-hidden">> $lib.exp~
19340 $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~
19342 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19346 hardcode_libdir_separator_CXX
=:
19348 # Commands to make compiler produce verbose output that lists
19349 # what "hidden" libraries, object files and flags are used when
19350 # linking a shared library.
19352 # There doesn't appear to be a way to prevent this compiler from
19353 # explicitly linking system object files so we need to strip them
19354 # from the output so that they don't get included in the library
19356 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"'
19359 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19360 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19363 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'
19366 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'
19370 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19371 hardcode_libdir_separator_CXX
=:
19373 # Commands to make compiler produce verbose output that lists
19374 # what "hidden" libraries, object files and flags are used when
19375 # linking a shared library.
19376 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19379 # FIXME: insert proper C++ library support
19387 # FIXME: insert proper C++ library support
19392 case $cc_basename in
19395 # FIXME: insert proper C++ library support
19400 # FIXME: insert proper C++ library support
19404 # FIXME: insert proper C++ library support
19411 case $cc_basename in
19413 # Sun C++ 4.2, 5.x and Centerline C++
19414 archive_cmds_need_lc_CXX
=yes
19415 no_undefined_flag_CXX
=' -zdefs'
19416 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19417 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19418 $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'
19420 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19421 hardcode_shlibpath_var_CXX
=no
19423 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19425 # The compiler driver will combine and reorder linker options,
19426 # but understands `-z linker_flag'.
19427 # Supported since Solaris 2.6 (maybe 2.5.1?)
19428 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19431 link_all_deplibs_CXX
=yes
19433 output_verbose_link_cmd
='func_echo_all'
19435 # Archives containing C++ object files must be created using
19436 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19437 # necessary to make sure instantiated templates are included
19439 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19442 # Green Hills C++ Compiler
19443 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19445 # The C++ compiler must be used to create the archive.
19446 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19449 # GNU C++ compiler with Solaris linker
19450 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19451 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19452 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19453 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19454 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19455 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19457 # Commands to make compiler produce verbose output that lists
19458 # what "hidden" libraries, object files and flags are used when
19459 # linking a shared library.
19460 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19462 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19464 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19465 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19466 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19468 # Commands to make compiler produce verbose output that lists
19469 # what "hidden" libraries, object files and flags are used when
19470 # linking a shared library.
19471 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19474 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19476 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19478 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19486 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19487 no_undefined_flag_CXX
='${wl}-z,text'
19488 archive_cmds_need_lc_CXX
=no
19489 hardcode_shlibpath_var_CXX
=no
19490 runpath_var
='LD_RUN_PATH'
19492 case $cc_basename in
19494 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19495 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19498 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19499 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19504 sysv5
* | sco3.2v5
* | sco5v6
*)
19505 # Note: We can NOT use -z defs as we might desire, because we do not
19506 # link with -lc, and that would cause any symbols used from libc to
19507 # always be unresolved, which means just about no library would
19508 # ever link correctly. If we're not using GNU ld we use -z text
19509 # though, which does catch some bad symbols but isn't as heavy-handed
19511 no_undefined_flag_CXX
='${wl}-z,text'
19512 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19513 archive_cmds_need_lc_CXX
=no
19514 hardcode_shlibpath_var_CXX
=no
19515 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19516 hardcode_libdir_separator_CXX
=':'
19517 link_all_deplibs_CXX
=yes
19518 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19519 runpath_var
='LD_RUN_PATH'
19521 case $cc_basename in
19523 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19524 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19525 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19526 '"$old_archive_cmds_CXX"
19527 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19528 '"$reload_cmds_CXX"
19531 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19532 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19538 case $cc_basename in
19540 # NonStop-UX NCC 3.20
19541 # FIXME: insert proper C++ library support
19545 # FIXME: insert proper C++ library support
19552 # FIXME: insert proper C++ library support
19557 # FIXME: insert proper C++ library support
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19563 $as_echo "$ld_shlibs_CXX" >&6; }
19564 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19570 ## There is no encapsulation within the following macros, do not change
19571 ## the running order or otherwise move them around unless you know exactly
19572 ## what you are doing...
19573 # Dependencies to place before and after the object being linked:
19574 predep_objects_CXX
=
19575 postdep_objects_CXX
=
19578 compiler_lib_search_path_CXX
=
19580 cat > conftest.
$ac_ext <<_LT_EOF
19584 Foo (void) { a = 0; }
19590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19591 (eval $ac_compile) 2>&5
19593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19594 test $ac_status = 0; }; then
19595 # Parse the compiler output and extract the necessary
19596 # objects, libraries and library flags.
19598 # Sentinel used to keep track of whether or not we are before
19599 # the conftest object file.
19600 pre_test_object_deps_done
=no
19602 for p
in `eval "$output_verbose_link_cmd"`; do
19606 # Some compilers place space between "-{L,R}" and the path.
19607 # Remove the space.
19608 if test $p = "-L" ||
19609 test $p = "-R"; then
19616 if test "$pre_test_object_deps_done" = no
; then
19619 # Internal compiler library paths should come after those
19620 # provided the user. The postdeps already come after the
19621 # user supplied libs so there is no need to process them.
19622 if test -z "$compiler_lib_search_path_CXX"; then
19623 compiler_lib_search_path_CXX
="${prev}${p}"
19625 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19628 # The "-l" case would never come before the object being
19629 # linked, so don't bother handling this case.
19632 if test -z "$postdeps_CXX"; then
19633 postdeps_CXX
="${prev}${p}"
19635 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19641 # This assumes that the test object file only shows up
19642 # once in the compiler output.
19643 if test "$p" = "conftest.$objext"; then
19644 pre_test_object_deps_done
=yes
19648 if test "$pre_test_object_deps_done" = no
; then
19649 if test -z "$predep_objects_CXX"; then
19650 predep_objects_CXX
="$p"
19652 predep_objects_CXX
="$predep_objects_CXX $p"
19655 if test -z "$postdep_objects_CXX"; then
19656 postdep_objects_CXX
="$p"
19658 postdep_objects_CXX
="$postdep_objects_CXX $p"
19663 *) ;; # Ignore the rest.
19671 echo "libtool.m4: error: problem compiling CXX test program"
19674 $RM -f confest.
$objext
19676 # PORTME: override above test on systems where it is broken
19679 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19680 # hack all around it, let's just trust "g++" to DTRT.
19681 predep_objects_CXX
=
19682 postdep_objects_CXX
=
19687 case `$CC -V 2>&1 | sed 5q` in
19691 # The more standards-conforming stlport4 library is
19692 # incompatible with the Cstd library. Avoid specifying
19693 # it if it's in CXXFLAGS. Ignore libCrun as
19694 # -library=stlport4 depends on it.
19695 case " $CXX $CXXFLAGS " in
19696 *" -library=stlport4 "*)
19697 solaris_use_stlport4
=yes
19701 if test "$solaris_use_stlport4" != yes; then
19702 postdeps_CXX
='-library=Cstd -library=Crun'
19709 case $cc_basename in
19711 # The more standards-conforming stlport4 library is
19712 # incompatible with the Cstd library. Avoid specifying
19713 # it if it's in CXXFLAGS. Ignore libCrun as
19714 # -library=stlport4 depends on it.
19715 case " $CXX $CXXFLAGS " in
19716 *" -library=stlport4 "*)
19717 solaris_use_stlport4
=yes
19721 # Adding this requires a known-good setup of shared libraries for
19722 # Sun compiler versions before 5.6, else PIC objects from an old
19723 # archive will be linked into the output, leading to subtle bugs.
19724 if test "$solaris_use_stlport4" != yes; then
19725 postdeps_CXX
='-library=Cstd -library=Crun'
19733 case " $postdeps_CXX " in
19734 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19736 compiler_lib_search_dirs_CXX
=
19737 if test -n "${compiler_lib_search_path_CXX}"; then
19738 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19771 lt_prog_compiler_wl_CXX
=
19772 lt_prog_compiler_pic_CXX
=
19773 lt_prog_compiler_static_CXX
=
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19776 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19778 # C++ specific cases for pic, static, wl, etc.
19779 if test "$GXX" = yes; then
19780 lt_prog_compiler_wl_CXX
='-Wl,'
19781 lt_prog_compiler_static_CXX
='-static'
19785 # All AIX code is PIC.
19786 if test "$host_cpu" = ia64
; then
19787 # AIX 5 now supports IA64 processor
19788 lt_prog_compiler_static_CXX
='-Bstatic'
19790 lt_prog_compiler_pic_CXX
='-fPIC'
19796 # see comment about AmigaOS4 .so support
19797 lt_prog_compiler_pic_CXX
='-fPIC'
19800 # FIXME: we need at least 68020 code to build shared libraries, but
19801 # adding the `-m68020' flag to GCC prevents building anything better,
19803 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19808 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19809 # PIC is the default for these OSes.
19811 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19812 # This hack is so that the source file can tell whether it is being
19813 # built for inclusion in a dll (and should export symbols for example).
19814 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19815 # (--disable-auto-import) libraries
19816 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19818 darwin
* | rhapsody
*)
19819 # PIC is the default on this platform
19820 # Common symbols not allowed in MH_DYLIB files
19821 lt_prog_compiler_pic_CXX
='-fno-common'
19824 # DJGPP does not support shared libraries at all
19825 lt_prog_compiler_pic_CXX
=
19828 # PIC is the default for Haiku.
19829 # The "-static" flag exists, but is broken.
19830 lt_prog_compiler_static_CXX
=
19833 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19834 # Instead, we relocate shared libraries at runtime.
19837 if test -d /usr
/nec
; then
19838 lt_prog_compiler_pic_CXX
=-Kconform_pic
19842 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19843 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19844 # sets the default TLS model and affects inlining.
19849 lt_prog_compiler_pic_CXX
='-fPIC'
19854 # QNX uses GNU C++, but need to define -shared option too, otherwise
19855 # it will coredump.
19856 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19859 lt_prog_compiler_pic_CXX
='-fPIC'
19865 # All AIX code is PIC.
19866 if test "$host_cpu" = ia64
; then
19867 # AIX 5 now supports IA64 processor
19868 lt_prog_compiler_static_CXX
='-Bstatic'
19870 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19874 case $cc_basename in
19876 # Green Hills C++ Compiler
19877 # _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"
19882 case $cc_basename in
19884 lt_prog_compiler_pic_CXX
='-KPIC'
19887 # Green Hills C++ Compiler
19888 lt_prog_compiler_pic_CXX
='-pic'
19894 freebsd
* | dragonfly
*)
19895 # FreeBSD uses GNU C++
19897 hpux9
* | hpux10
* | hpux11
*)
19898 case $cc_basename in
19900 lt_prog_compiler_wl_CXX
='-Wl,'
19901 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19902 if test "$host_cpu" != ia64
; then
19903 lt_prog_compiler_pic_CXX
='+Z'
19907 lt_prog_compiler_wl_CXX
='-Wl,'
19908 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19914 lt_prog_compiler_pic_CXX
='+Z'
19923 # This is c89, which is MS Visual C++ (no shared libs)
19924 # Anyone wants to do a port?
19926 irix5
* | irix6
* | nonstopux
*)
19927 case $cc_basename in
19929 lt_prog_compiler_wl_CXX
='-Wl,'
19930 lt_prog_compiler_static_CXX
='-non_shared'
19931 # CC pic flag -KPIC is the default.
19937 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19938 case $cc_basename in
19941 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19942 lt_prog_compiler_pic_CXX
='-fPIC'
19945 # old Intel C++ for x86_64 which still supported -KPIC.
19946 lt_prog_compiler_wl_CXX
='-Wl,'
19947 lt_prog_compiler_pic_CXX
='-KPIC'
19948 lt_prog_compiler_static_CXX
='-static'
19951 # Intel C++, used to be incompatible with GCC.
19952 # ICC 10 doesn't accept -KPIC any more.
19953 lt_prog_compiler_wl_CXX
='-Wl,'
19954 lt_prog_compiler_pic_CXX
='-fPIC'
19955 lt_prog_compiler_static_CXX
='-static'
19958 # Portland Group C++ compiler
19959 lt_prog_compiler_wl_CXX
='-Wl,'
19960 lt_prog_compiler_pic_CXX
='-fpic'
19961 lt_prog_compiler_static_CXX
='-Bstatic'
19965 # Make sure the PIC flag is empty. It appears that all Alpha
19966 # Linux and Compaq Tru64 Unix objects are PIC.
19967 lt_prog_compiler_pic_CXX
=
19968 lt_prog_compiler_static_CXX
='-non_shared'
19970 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19971 # IBM XL 8.0, 9.0 on PPC and BlueGene
19972 lt_prog_compiler_wl_CXX
='-Wl,'
19973 lt_prog_compiler_pic_CXX
='-qpic'
19974 lt_prog_compiler_static_CXX
='-qstaticlink'
19977 case `$CC -V 2>&1 | sed 5q` in
19980 lt_prog_compiler_pic_CXX
='-KPIC'
19981 lt_prog_compiler_static_CXX
='-Bstatic'
19982 lt_prog_compiler_wl_CXX
='-Qoption ld '
19993 case $cc_basename in
19995 lt_prog_compiler_pic_CXX
='-W c,exportall'
20004 # QNX uses GNU C++, but need to define -shared option too, otherwise
20005 # it will coredump.
20006 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20008 osf3
* | osf4
* | osf5
*)
20009 case $cc_basename in
20011 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20014 # Rational C++ 2.4.1
20015 lt_prog_compiler_pic_CXX
='-pic'
20018 # Digital/Compaq C++
20019 lt_prog_compiler_wl_CXX
='-Wl,'
20020 # Make sure the PIC flag is empty. It appears that all Alpha
20021 # Linux and Compaq Tru64 Unix objects are PIC.
20022 lt_prog_compiler_pic_CXX
=
20023 lt_prog_compiler_static_CXX
='-non_shared'
20032 case $cc_basename in
20034 # Sun C++ 4.2, 5.x and Centerline C++
20035 lt_prog_compiler_pic_CXX
='-KPIC'
20036 lt_prog_compiler_static_CXX
='-Bstatic'
20037 lt_prog_compiler_wl_CXX
='-Qoption ld '
20040 # Green Hills C++ Compiler
20041 lt_prog_compiler_pic_CXX
='-PIC'
20048 case $cc_basename in
20051 lt_prog_compiler_pic_CXX
='-pic'
20052 lt_prog_compiler_static_CXX
='-Bstatic'
20056 lt_prog_compiler_pic_CXX
='-pic'
20062 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20063 case $cc_basename in
20065 lt_prog_compiler_wl_CXX
='-Wl,'
20066 lt_prog_compiler_pic_CXX
='-KPIC'
20067 lt_prog_compiler_static_CXX
='-Bstatic'
20072 case $cc_basename in
20074 # NonStop-UX NCC 3.20
20075 lt_prog_compiler_pic_CXX
='-KPIC'
20084 lt_prog_compiler_can_build_shared_CXX
=no
20090 # For platforms which do not support PIC, -DPIC is meaningless:
20092 lt_prog_compiler_pic_CXX
=
20095 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20099 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20104 # Check to make sure the PIC flag actually works.
20106 if test -n "$lt_prog_compiler_pic_CXX"; then
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20108 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20109 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20110 $as_echo_n "(cached) " >&6
20112 lt_cv_prog_compiler_pic_works_CXX
=no
20113 ac_outfile
=conftest.
$ac_objext
20114 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20115 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20116 # Insert the option either (1) after the last *FLAGS variable, or
20117 # (2) before a word containing "conftest.", or (3) at the end.
20118 # Note that $ac_compile itself does not contain backslashes and begins
20119 # with a dollar sign (not a hyphen), so the echo should work correctly.
20120 # The option is referenced via a variable to avoid confusing sed.
20121 lt_compile
=`echo "$ac_compile" | $SED \
20122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20124 -e 's:$: $lt_compiler_flag:'`
20125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20126 (eval "$lt_compile" 2>conftest.err
)
20128 cat conftest.err
>&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 if (exit $ac_status) && test -s "$ac_outfile"; then
20131 # The compiler can only warn and ignore the option if not recognized
20132 # So say no if there are warnings other than the usual output.
20133 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20134 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20135 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20136 lt_cv_prog_compiler_pic_works_CXX
=yes
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20143 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20145 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20146 case $lt_prog_compiler_pic_CXX in
20148 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20151 lt_prog_compiler_pic_CXX
=
20152 lt_prog_compiler_can_build_shared_CXX
=no
20160 # Check to make sure the static flag actually works.
20162 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20164 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20165 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20166 $as_echo_n "(cached) " >&6
20168 lt_cv_prog_compiler_static_works_CXX
=no
20169 save_LDFLAGS
="$LDFLAGS"
20170 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20171 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20172 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20173 # The linker can only warn and ignore the option if not recognized
20174 # So say no if there are warnings
20175 if test -s conftest.err
; then
20176 # Append any errors to the config.log.
20177 cat conftest.err
1>&5
20178 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20179 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20180 if diff conftest.exp conftest.er2
>/dev
/null
; then
20181 lt_cv_prog_compiler_static_works_CXX
=yes
20184 lt_cv_prog_compiler_static_works_CXX
=yes
20188 LDFLAGS
="$save_LDFLAGS"
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20192 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20194 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20197 lt_prog_compiler_static_CXX
=
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20204 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20205 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20206 $as_echo_n "(cached) " >&6
20208 lt_cv_prog_compiler_c_o_CXX
=no
20209 $RM -r conftest
2>/dev
/null
20213 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20215 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20216 # Insert the option either (1) after the last *FLAGS variable, or
20217 # (2) before a word containing "conftest.", or (3) at the end.
20218 # Note that $ac_compile itself does not contain backslashes and begins
20219 # with a dollar sign (not a hyphen), so the echo should work correctly.
20220 lt_compile
=`echo "$ac_compile" | $SED \
20221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20223 -e 's:$: $lt_compiler_flag:'`
20224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20225 (eval "$lt_compile" 2>out
/conftest.err
)
20227 cat out
/conftest.err
>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20231 # The compiler can only warn and ignore the option if not recognized
20232 # So say no if there are warnings
20233 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20234 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20235 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20236 lt_cv_prog_compiler_c_o_CXX
=yes
20241 # SGI C++ compiler will create directory out/ii_files/ for
20242 # template instantiation
20243 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20244 $RM out
/* && rmdir out
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20251 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20256 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20257 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20258 $as_echo_n "(cached) " >&6
20260 lt_cv_prog_compiler_c_o_CXX
=no
20261 $RM -r conftest
2>/dev
/null
20265 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20267 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20268 # Insert the option either (1) after the last *FLAGS variable, or
20269 # (2) before a word containing "conftest.", or (3) at the end.
20270 # Note that $ac_compile itself does not contain backslashes and begins
20271 # with a dollar sign (not a hyphen), so the echo should work correctly.
20272 lt_compile
=`echo "$ac_compile" | $SED \
20273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20275 -e 's:$: $lt_compiler_flag:'`
20276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20277 (eval "$lt_compile" 2>out
/conftest.err
)
20279 cat out
/conftest.err
>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20283 # The compiler can only warn and ignore the option if not recognized
20284 # So say no if there are warnings
20285 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20286 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20287 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20288 lt_cv_prog_compiler_c_o_CXX
=yes
20293 # SGI C++ compiler will create directory out/ii_files/ for
20294 # template instantiation
20295 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20296 $RM out
/* && rmdir out
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20303 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20308 hard_links
="nottested"
20309 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20310 # do not overwrite the value of need_locks provided by the user
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20312 $as_echo_n "checking if we can lock with hard links... " >&6; }
20315 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20317 ln conftest.a conftest.b
2>&5 || hard_links
=no
20318 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20320 $as_echo "$hard_links" >&6; }
20321 if test "$hard_links" = no
; then
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20323 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20333 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20335 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20338 # If we're using GNU nm, then we don't want the "-C" option.
20339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20340 # Also, AIX nm treats weak defined symbols like other global defined
20341 # symbols, whereas GNU nm marks them as "W".
20342 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20343 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'
20345 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'
20349 export_symbols_cmds_CXX
="$ltdll_cmds"
20351 cygwin
* | mingw
* | cegcc
*)
20352 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'
20355 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20358 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20361 $as_echo "$ld_shlibs_CXX" >&6; }
20362 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20364 with_gnu_ld_CXX
=$with_gnu_ld
20372 # Do we need to explicitly link libc?
20374 case "x$archive_cmds_need_lc_CXX" in
20376 # Assume -lc should be added
20377 archive_cmds_need_lc_CXX
=yes
20379 if test "$enable_shared" = yes && test "$GCC" = yes; then
20380 case $archive_cmds_CXX in
20382 # FIXME: we may have to deal with multi-command sequences.
20385 # Test whether the compiler implicitly links with -lc since on some
20386 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20387 # to ld, don't add -lc before -lgcc.
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20389 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20390 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20391 $as_echo_n "(cached) " >&6
20394 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20397 (eval $ac_compile) 2>&5
20399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20400 test $ac_status = 0; } 2>conftest.err
; then
20403 libobjs
=conftest.
$ac_objext
20405 wl
=$lt_prog_compiler_wl_CXX
20406 pic_flag
=$lt_prog_compiler_pic_CXX
20412 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20413 allow_undefined_flag_CXX
=
20414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20415 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20418 test $ac_status = 0; }
20420 lt_cv_archive_cmds_need_lc_CXX
=no
20422 lt_cv_archive_cmds_need_lc_CXX
=yes
20424 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20426 cat conftest.err
1>&5
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20432 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20433 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20504 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20506 library_names_spec
=
20507 libname_spec
='lib$name'
20511 postuninstall_cmds
=
20515 shlibpath_overrides_runpath
=unknown
20517 dynamic_linker
="$host_os ld.so"
20518 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20519 need_lib_prefix
=unknown
20520 hardcode_into_libs
=no
20522 # when you set need_version to no, make sure it does not cause -set_version
20523 # flags to be left without arguments
20524 need_version
=unknown
20529 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20530 shlibpath_var
=LIBPATH
20532 # AIX 3 has no versioning support, so we append a major version to the name.
20533 soname_spec
='${libname}${release}${shared_ext}$major'
20540 hardcode_into_libs
=yes
20541 if test "$host_cpu" = ia64
; then
20542 # AIX 5 supports IA64
20543 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20544 shlibpath_var
=LD_LIBRARY_PATH
20546 # With GCC up to 2.95.x, collect2 would create an import file
20547 # for dependence libraries. The import file would start with
20548 # the line `#! .'. This would cause the generated library to
20549 # depend on `.', always an invalid library. This was fixed in
20550 # development snapshots of GCC prior to 3.0.
20552 aix4 | aix4.
[01] | aix4.
[01].
*)
20553 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20555 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20558 can_build_shared
=no
20562 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20563 # soname into executable. Probably we can add versioning support to
20564 # collect2, so additional links can be useful in future.
20565 if test "$aix_use_runtimelinking" = yes; then
20566 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20567 # instead of lib<name>.a to let people know that these are not
20568 # typical AIX shared libraries.
20569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20571 # We preserve .a as extension for shared libraries through AIX4.2
20572 # and later when we are not doing run time linking.
20573 library_names_spec
='${libname}${release}.a $libname.a'
20574 soname_spec
='${libname}${release}${shared_ext}$major'
20576 shlibpath_var
=LIBPATH
20583 # Since July 2007 AmigaOS4 officially supports .so libraries.
20584 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20588 library_names_spec
='$libname.ixlibrary $libname.a'
20589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20590 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'
20596 library_names_spec
='${libname}${shared_ext}'
20597 dynamic_linker
="$host_os ld.so"
20598 shlibpath_var
=LIBRARY_PATH
20604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20605 soname_spec
='${libname}${release}${shared_ext}$major'
20606 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20607 shlibpath_var
=LD_LIBRARY_PATH
20608 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20609 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20610 # the default ld.so.conf also contains /usr/contrib/lib and
20611 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20612 # libtool to hard-code these into programs
20615 cygwin
* | mingw
* | pw32
* | cegcc
*)
20616 version_type
=windows
20621 case $GCC,$host_os in
20622 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20623 library_names_spec
='$libname.dll.a'
20624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20625 postinstall_cmds
='base_file=`basename \${file}`~
20626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20627 dldir=$destdir/`dirname \$dlpath`~
20628 test -d \$dldir || mkdir -p \$dldir~
20629 $install_prog $dir/$dlname \$dldir/$dlname~
20630 chmod a+x \$dldir/$dlname~
20631 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20632 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20634 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20635 dlpath=$dir/\$dldll~
20637 shlibpath_overrides_runpath
=yes
20641 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20642 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20646 # MinGW DLLs use traditional 'lib' prefix
20647 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20650 # pw32 DLLs use 'pw' prefix rather than 'lib'
20651 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20657 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20660 dynamic_linker
='Win32 ld.exe'
20661 # FIXME: first we should search . and the directory the executable is in
20665 darwin
* | rhapsody
*)
20666 dynamic_linker
="$host_os dyld"
20667 version_type
=darwin
20670 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20671 soname_spec
='${libname}${release}${major}$shared_ext'
20672 shlibpath_overrides_runpath
=yes
20673 shlibpath_var
=DYLD_LIBRARY_PATH
20674 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20676 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20683 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20684 soname_spec
='${libname}${release}${shared_ext}$major'
20685 shlibpath_var
=LD_LIBRARY_PATH
20688 freebsd
* | dragonfly
*)
20689 # DragonFly does not have aout. When/if they implement a new
20690 # versioning mechanism, adjust this.
20691 if test -x /usr
/bin
/objformat
; then
20692 objformat
=`/usr/bin/objformat`
20695 freebsd
[23].
*) objformat
=aout
;;
20696 *) objformat
=elf
;;
20699 version_type
=freebsd-
$objformat
20700 case $version_type in
20702 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20707 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20711 shlibpath_var
=LD_LIBRARY_PATH
20714 shlibpath_overrides_runpath
=yes
20716 freebsd3.
[01]* | freebsdelf3.
[01]*)
20717 shlibpath_overrides_runpath
=yes
20718 hardcode_into_libs
=yes
20720 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20721 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20722 shlibpath_overrides_runpath
=no
20723 hardcode_into_libs
=yes
20725 *) # from 4.6 on, and DragonFly
20726 shlibpath_overrides_runpath
=yes
20727 hardcode_into_libs
=yes
20736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20737 soname_spec
='${libname}${release}${shared_ext}$major'
20738 shlibpath_var
=LD_LIBRARY_PATH
20739 hardcode_into_libs
=yes
20746 dynamic_linker
="$host_os runtime_loader"
20747 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20748 soname_spec
='${libname}${release}${shared_ext}$major'
20749 shlibpath_var
=LIBRARY_PATH
20750 shlibpath_overrides_runpath
=yes
20751 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20752 hardcode_into_libs
=yes
20755 hpux9
* | hpux10
* | hpux11
*)
20756 # Give a soname corresponding to the major version so that dld.sl refuses to
20757 # link against other versions.
20764 hardcode_into_libs
=yes
20765 dynamic_linker
="$host_os dld.so"
20766 shlibpath_var
=LD_LIBRARY_PATH
20767 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32
; then
20771 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20773 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20775 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20779 hardcode_into_libs
=yes
20780 dynamic_linker
="$host_os dld.sl"
20781 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20782 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20783 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20784 soname_spec
='${libname}${release}${shared_ext}$major'
20785 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20786 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20790 dynamic_linker
="$host_os dld.sl"
20791 shlibpath_var
=SHLIB_PATH
20792 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20793 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20794 soname_spec
='${libname}${release}${shared_ext}$major'
20797 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20798 postinstall_cmds
='chmod 555 $lib'
20799 # or fails outright, so override atomically:
20800 install_override_mode
=555
20807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20808 soname_spec
='${libname}${release}${shared_ext}$major'
20809 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20810 shlibpath_var
=LD_LIBRARY_PATH
20811 shlibpath_overrides_runpath
=no
20812 hardcode_into_libs
=yes
20815 irix5
* | irix6
* | nonstopux
*)
20817 nonstopux
*) version_type
=nonstopux
;;
20819 if test "$lt_cv_prog_gnu_ld" = yes; then
20827 soname_spec
='${libname}${release}${shared_ext}$major'
20828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20830 irix5
* | nonstopux
*)
20831 libsuff
= shlibsuff
=
20834 case $LD in # libtool.m4 will add one of these switches to LD
20835 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20836 libsuff
= shlibsuff
= libmagic
=32-bit;;
20837 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20838 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20839 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20840 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20841 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20845 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20846 shlibpath_overrides_runpath
=no
20847 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20848 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20849 hardcode_into_libs
=yes
20852 # No shared lib support for Linux oldld, aout, or coff.
20853 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20857 # This must be Linux ELF.
20858 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20863 soname_spec
='${libname}${release}${shared_ext}$major'
20864 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20865 shlibpath_var
=LD_LIBRARY_PATH
20866 shlibpath_overrides_runpath
=no
20868 # Some binutils ld are patched to set DT_RUNPATH
20869 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20870 $as_echo_n "(cached) " >&6
20872 lt_cv_shlibpath_overrides_runpath
=no
20873 save_LDFLAGS
=$LDFLAGS
20874 save_libdir
=$libdir
20875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20878 /* end confdefs.h. */
20888 if ac_fn_cxx_try_link
"$LINENO"; then :
20889 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20890 lt_cv_shlibpath_overrides_runpath
=yes
20893 rm -f core conftest.err conftest.
$ac_objext \
20894 conftest
$ac_exeext conftest.
$ac_ext
20895 LDFLAGS
=$save_LDFLAGS
20896 libdir
=$save_libdir
20900 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20902 # This implies no fast_install, which is unacceptable.
20903 # Some rework will be needed to allow for fast_install
20904 # before this can be enabled.
20905 hardcode_into_libs
=yes
20907 # Append ld.so.conf contents to the search path
20908 if test -f /etc
/ld.so.conf
; then
20909 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' ' '`
20910 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20913 # We used to test for /lib/ld.so.1 and disable shared libraries on
20914 # powerpc, because MkLinux only supported shared libraries with the
20915 # GNU dynamic linker. Since this was broken with cross compilers,
20916 # most powerpc-linux boxes support dynamic linking these days and
20917 # people can always --disable-shared, the test was removed, and we
20918 # assume the GNU/Linux dynamic linker is in use.
20919 dynamic_linker
='GNU/Linux ld.so'
20926 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20928 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20929 dynamic_linker
='NetBSD (a.out) ld.so'
20931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20932 soname_spec
='${libname}${release}${shared_ext}$major'
20933 dynamic_linker
='NetBSD ld.elf_so'
20935 shlibpath_var
=LD_LIBRARY_PATH
20936 shlibpath_overrides_runpath
=yes
20937 hardcode_into_libs
=yes
20942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20943 shlibpath_var
=LD_LIBRARY_PATH
20944 shlibpath_overrides_runpath
=yes
20951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20952 soname_spec
='${libname}${release}${shared_ext}$major'
20953 shlibpath_var
=LD_LIBRARY_PATH
20954 shlibpath_overrides_runpath
=no
20955 hardcode_into_libs
=yes
20956 dynamic_linker
='ldqnx.so'
20961 sys_lib_dlsearch_path_spec
="/usr/lib"
20963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20965 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20966 *) need_version
=no
;;
20968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20969 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20970 shlibpath_var
=LD_LIBRARY_PATH
20971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20973 openbsd2.
[89] | openbsd2.
[89].
*)
20974 shlibpath_overrides_runpath
=no
20977 shlibpath_overrides_runpath
=yes
20981 shlibpath_overrides_runpath
=yes
20986 libname_spec
='$name'
20989 library_names_spec
='$libname${shared_ext} $libname.a'
20990 dynamic_linker
='OS/2 ld.exe'
20991 shlibpath_var
=LIBPATH
20994 osf3
* | osf4
* | osf5
*)
20998 soname_spec
='${libname}${release}${shared_ext}$major'
20999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21000 shlibpath_var
=LD_LIBRARY_PATH
21001 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21002 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21014 soname_spec
='${libname}${release}${shared_ext}$major'
21015 shlibpath_var
=LD_LIBRARY_PATH
21016 shlibpath_overrides_runpath
=yes
21017 hardcode_into_libs
=yes
21018 # ldd complains unless libraries are executable
21019 postinstall_cmds
='chmod +x $lib'
21024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21025 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21026 shlibpath_var
=LD_LIBRARY_PATH
21027 shlibpath_overrides_runpath
=yes
21028 if test "$with_gnu_ld" = yes; then
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 case $host_vendor in
21041 shlibpath_overrides_runpath
=no
21043 runpath_var
=LD_RUN_PATH
21051 shlibpath_overrides_runpath
=no
21052 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21058 if test -d /usr
/nec
;then
21060 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21061 soname_spec
='$libname${shared_ext}.$major'
21062 shlibpath_var
=LD_LIBRARY_PATH
21066 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21067 version_type
=freebsd-elf
21070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21071 soname_spec
='${libname}${release}${shared_ext}$major'
21072 shlibpath_var
=LD_LIBRARY_PATH
21073 shlibpath_overrides_runpath
=yes
21074 hardcode_into_libs
=yes
21075 if test "$with_gnu_ld" = yes; then
21076 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21078 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21081 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21085 sys_lib_dlsearch_path_spec
='/usr/lib'
21089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21093 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21094 shlibpath_var
=LD_LIBRARY_PATH
21095 shlibpath_overrides_runpath
=no
21096 hardcode_into_libs
=yes
21101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21102 soname_spec
='${libname}${release}${shared_ext}$major'
21103 shlibpath_var
=LD_LIBRARY_PATH
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21111 $as_echo "$dynamic_linker" >&6; }
21112 test "$dynamic_linker" = no
&& can_build_shared
=no
21114 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21115 if test "$GCC" = yes; then
21116 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21119 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21120 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21122 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21123 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21164 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21165 hardcode_action_CXX
=
21166 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21167 test -n "$runpath_var_CXX" ||
21168 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21170 # We can hardcode non-existent directories.
21171 if test "$hardcode_direct_CXX" != no
&&
21172 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21173 # have to relink, otherwise we might link with an installed library
21174 # when we should be linking with a yet-to-be-installed one
21175 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21176 test "$hardcode_minus_L_CXX" != no
; then
21177 # Linking always hardcodes the temporary library directory.
21178 hardcode_action_CXX
=relink
21180 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21181 hardcode_action_CXX
=immediate
21184 # We cannot hardcode anything, or else we can only hardcode existing
21186 hardcode_action_CXX
=unsupported
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21189 $as_echo "$hardcode_action_CXX" >&6; }
21191 if test "$hardcode_action_CXX" = relink ||
21192 test "$inherit_rpath_CXX" = yes; then
21193 # Fast installation is not supported
21194 enable_fast_install
=no
21195 elif test "$shlibpath_overrides_runpath" = yes ||
21196 test "$enable_shared" = no
; then
21197 # Fast installation is not necessary
21198 enable_fast_install
=needless
21207 fi # test -n "$compiler"
21213 with_gnu_ld
=$lt_save_with_gnu_ld
21214 lt_cv_path_LDCXX
=$lt_cv_path_LD
21215 lt_cv_path_LD
=$lt_save_path_LD
21216 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21217 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21218 fi # test "$_lt_caught_CXX_error" != yes
21221 ac_cpp
='$CPP $CPPFLAGS'
21222 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21223 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21224 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21241 # Only expand once:
21247 # Identify the assembler which will work hand-in-glove with the newly
21248 # built GCC, so that we can examine its features. This is the assembler
21249 # which will be driven by the driver program.
21251 # If build != host, and we aren't building gas in-tree, we identify a
21252 # build->target assembler and hope that it will have the same features
21253 # as the host->target assembler we'll be using.
21254 gcc_cv_gas_major_version
=
21255 gcc_cv_gas_minor_version
=
21256 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21258 if test "${gcc_cv_as+set}" = set; then :
21262 if test -x "$DEFAULT_ASSEMBLER"; then
21263 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21264 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21265 && test -f ..
/gas
/Makefile \
21266 && test x
$build = x
$host; then
21267 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21268 elif test -x as
$build_exeext; then
21269 # Build using assembler in the current directory.
21270 gcc_cv_as
=.
/as
$build_exeext
21271 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21272 gcc_cv_as
="$AS_FOR_TARGET"
21274 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21275 set dummy
$AS_FOR_TARGET; ac_word
=$2
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21277 $as_echo_n "checking for $ac_word... " >&6; }
21278 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21279 $as_echo_n "(cached) " >&6
21283 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21287 for as_dir
in $PATH
21290 test -z "$as_dir" && as_dir
=.
21291 for ac_exec_ext
in '' $ac_executable_extensions; do
21292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21293 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21304 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21305 if test -n "$gcc_cv_as"; then
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21307 $as_echo "$gcc_cv_as" >&6; }
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21310 $as_echo "no" >&6; }
21317 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21319 case "$ORIGINAL_AS_FOR_TARGET" in
21320 .
/as | .
/as
$build_exeext) ;;
21321 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21326 $as_echo_n "checking what assembler to use... " >&6; }
21327 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21328 # Single tree build which includes gas. We want to prefer it
21329 # over whatever linker top-level may have detected, since
21330 # we'll use what we're building after installation anyway.
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21332 $as_echo "newly built gas" >&6; }
21334 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21335 for f
in $gcc_cv_as_bfd_srcdir/configure \
21336 $gcc_cv_as_gas_srcdir/configure \
21337 $gcc_cv_as_gas_srcdir/configure.
in \
21338 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21339 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21340 if test x
$gcc_cv_gas_version != x
; then
21344 case $gcc_cv_gas_version in
21346 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21348 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21349 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21350 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21351 case $gcc_cv_gas_patch_version in
21352 "") gcc_cv_gas_patch_version
="0" ;;
21354 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21355 + $gcc_cv_gas_minor_version \) \* 1000 \
21356 + $gcc_cv_gas_patch_version`
21358 in_tree_gas_is_elf
=no
21359 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21360 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21361 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21363 in_tree_gas_is_elf
=yes
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21367 $as_echo "$gcc_cv_as" >&6; }
21371 # Identify the linker which will work hand-in-glove with the newly
21372 # built GCC, so that we can examine its features. This is the linker
21373 # which will be driven by the driver program.
21375 # If build != host, and we aren't building gas in-tree, we identify a
21376 # build->target linker and hope that it will have the same features
21377 # as the host->target linker we'll be using.
21378 gcc_cv_gld_major_version
=
21379 gcc_cv_gld_minor_version
=
21380 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21381 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21383 if test "${gcc_cv_ld+set}" = set; then :
21387 if test -x "$DEFAULT_LINKER"; then
21388 gcc_cv_ld
="$DEFAULT_LINKER"
21389 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21390 && test -f ..
/ld
/Makefile \
21391 && test x
$build = x
$host; then
21392 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21393 elif test -x collect-ld
$build_exeext; then
21394 # Build using linker in the current directory.
21395 gcc_cv_ld
=.
/collect-ld
$build_exeext
21396 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21397 gcc_cv_ld
="$LD_FOR_TARGET"
21399 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21400 set dummy
$LD_FOR_TARGET; ac_word
=$2
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21402 $as_echo_n "checking for $ac_word... " >&6; }
21403 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21404 $as_echo_n "(cached) " >&6
21408 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21412 for as_dir
in $PATH
21415 test -z "$as_dir" && as_dir
=.
21416 for ac_exec_ext
in '' $ac_executable_extensions; do
21417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21418 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21429 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21430 if test -n "$gcc_cv_ld"; then
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21432 $as_echo "$gcc_cv_ld" >&6; }
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21435 $as_echo "no" >&6; }
21442 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21443 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21444 # if the PLUGIN_LD is set ld-new, just have it as ld
21445 # as that is the installed named.
21446 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21447 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21448 PLUGIN_LD_SUFFIX
=ld
21451 # Check whether --with-plugin-ld was given.
21452 if test "${with_plugin_ld+set}" = set; then :
21453 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21454 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21455 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21461 cat >>confdefs.h
<<_ACEOF
21462 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21466 # Check to see if we are using gold instead of ld
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21468 $as_echo_n "checking whether we are using gold... " >&6; }
21470 if test x
$gcc_cv_ld != x
; then
21471 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21472 |
grep "GNU gold" > /dev
/null
; then
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21477 $as_echo "$ld_is_gold" >&6; }
21479 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21481 case "$ORIGINAL_LD_FOR_TARGET" in
21482 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21483 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21488 $as_echo_n "checking what linker to use... " >&6; }
21489 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21490 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21491 # Single tree build which includes ld. We want to prefer it
21492 # over whatever linker top-level may have detected, since
21493 # we'll use what we're building after installation anyway.
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21495 $as_echo "newly built ld" >&6; }
21497 in_tree_ld_is_elf
=no
21498 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21499 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21500 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21501 in_tree_ld_is_elf
=yes
21502 elif test "$ld_is_gold" = yes; then
21503 in_tree_ld_is_elf
=yes
21505 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
21507 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21508 if test x
$gcc_cv_gld_version != x
; then
21512 case $gcc_cv_gld_version in
21514 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21516 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21517 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21520 $as_echo "$gcc_cv_ld" >&6; }
21524 # Figure out what nm we will be using.
21525 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21526 if test "${gcc_cv_nm+set}" = set; then :
21530 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21531 && test -f ..
/binutils
/Makefile \
21532 && test x
$build = x
$host; then
21533 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21534 elif test -x nm
$build_exeext; then
21535 gcc_cv_nm
=.
/nm
$build_exeext
21536 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21537 gcc_cv_nm
="$NM_FOR_TARGET"
21539 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21540 set dummy
$NM_FOR_TARGET; ac_word
=$2
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21542 $as_echo_n "checking for $ac_word... " >&6; }
21543 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21544 $as_echo_n "(cached) " >&6
21548 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21552 for as_dir
in $PATH
21555 test -z "$as_dir" && as_dir
=.
21556 for ac_exec_ext
in '' $ac_executable_extensions; do
21557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21558 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21569 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21570 if test -n "$gcc_cv_nm"; then
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21572 $as_echo "$gcc_cv_nm" >&6; }
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21575 $as_echo "no" >&6; }
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21583 $as_echo_n "checking what nm to use... " >&6; }
21584 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21585 # Single tree build which includes binutils.
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21587 $as_echo "newly built nm" >&6; }
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21591 $as_echo "$gcc_cv_nm" >&6; }
21595 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21597 case "$ORIGINAL_NM_FOR_TARGET" in
21598 .
/nm | .
/nm
$build_exeext) ;;
21599 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21604 # Figure out what objdump we will be using.
21605 if test "${gcc_cv_objdump+set}" = set; then :
21609 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21610 && test -f ..
/binutils
/Makefile \
21611 && test x
$build = x
$host; then
21612 # Single tree build which includes binutils.
21613 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21614 elif test -x objdump
$build_exeext; then
21615 gcc_cv_objdump
=.
/objdump
$build_exeext
21616 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21617 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21619 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21620 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21622 $as_echo_n "checking for $ac_word... " >&6; }
21623 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21624 $as_echo_n "(cached) " >&6
21626 case $gcc_cv_objdump in
21628 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21632 for as_dir
in $PATH
21635 test -z "$as_dir" && as_dir
=.
21636 for ac_exec_ext
in '' $ac_executable_extensions; do
21637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21638 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21649 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21650 if test -n "$gcc_cv_objdump"; then
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21652 $as_echo "$gcc_cv_objdump" >&6; }
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21655 $as_echo "no" >&6; }
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21663 $as_echo_n "checking what objdump to use... " >&6; }
21664 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21665 # Single tree build which includes binutils.
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21667 $as_echo "newly built objdump" >&6; }
21668 elif test x
$gcc_cv_objdump = x
; then
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21670 $as_echo "not found" >&6; }
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21673 $as_echo "$gcc_cv_objdump" >&6; }
21676 # Figure out what readelf we will be using.
21677 if test "${gcc_cv_readelf+set}" = set; then :
21681 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21682 && test -f ..
/binutils
/Makefile \
21683 && test x
$build = x
$host; then
21684 # Single tree build which includes binutils.
21685 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21686 elif test -x readelf
$build_exeext; then
21687 gcc_cv_readelf
=.
/readelf
$build_exeext
21689 # Extract the first word of "readelf", so it can be a program name with args.
21690 set dummy readelf
; ac_word
=$2
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21692 $as_echo_n "checking for $ac_word... " >&6; }
21693 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21694 $as_echo_n "(cached) " >&6
21696 case $gcc_cv_readelf in
21698 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21702 for as_dir
in $PATH
21705 test -z "$as_dir" && as_dir
=.
21706 for ac_exec_ext
in '' $ac_executable_extensions; do
21707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21708 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21719 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21720 if test -n "$gcc_cv_readelf"; then
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21722 $as_echo "$gcc_cv_readelf" >&6; }
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21725 $as_echo "no" >&6; }
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21733 $as_echo_n "checking what readelf to use... " >&6; }
21734 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21735 # Single tree build which includes binutils.
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21737 $as_echo "newly built readelf" >&6; }
21738 elif test x
$gcc_cv_readelf = x
; then
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21740 $as_echo "not found" >&6; }
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21743 $as_echo "$gcc_cv_readelf" >&6; }
21746 # Figure out what assembler alignment features are present.
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21748 $as_echo_n "checking assembler flags... " >&6; }
21749 if test "${gcc_cv_as_flags+set}" = set; then :
21750 $as_echo_n "(cached) " >&6
21753 i
[34567]86-*-linux*)
21754 gcc_cv_as_flags
="--32"
21756 powerpc
*-*-darwin*)
21757 gcc_cv_as_flags
="-arch ppc"
21760 gcc_cv_as_flags
=" "
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21765 $as_echo "$gcc_cv_as_flags" >&6; }
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21768 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21769 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21770 $as_echo_n "(cached) " >&6
21772 gcc_cv_as_balign_and_p2align
=no
21773 if test $in_tree_gas = yes; then
21774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21775 then gcc_cv_as_balign_and_p2align
=yes
21777 elif test x
$gcc_cv_as != x
; then
21778 $as_echo '.balign 4
21779 .p2align 2' > conftest.s
21780 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21782 (eval $ac_try) 2>&5
21784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21785 test $ac_status = 0; }; }
21787 gcc_cv_as_balign_and_p2align
=yes
21789 echo "configure: failed program was" >&5
21792 rm -f conftest.o conftest.s
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21796 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21797 if test $gcc_cv_as_balign_and_p2align = yes; then
21799 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21804 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21805 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21806 $as_echo_n "(cached) " >&6
21808 gcc_cv_as_max_skip_p2align
=no
21809 if test $in_tree_gas = yes; then
21810 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21811 then gcc_cv_as_max_skip_p2align
=yes
21813 elif test x
$gcc_cv_as != x
; then
21814 $as_echo '.p2align 4,,7' > conftest.s
21815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21817 (eval $ac_try) 2>&5
21819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21820 test $ac_status = 0; }; }
21822 gcc_cv_as_max_skip_p2align
=yes
21824 echo "configure: failed program was" >&5
21827 rm -f conftest.o conftest.s
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21831 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21832 if test $gcc_cv_as_max_skip_p2align = yes; then
21834 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21839 $as_echo_n "checking assembler for .literal16... " >&6; }
21840 if test "${gcc_cv_as_literal16+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21843 gcc_cv_as_literal16
=no
21844 if test $in_tree_gas = yes; then
21845 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21846 then gcc_cv_as_literal16
=yes
21848 elif test x
$gcc_cv_as != x
; then
21849 $as_echo '.literal16' > conftest.s
21850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21852 (eval $ac_try) 2>&5
21854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21855 test $ac_status = 0; }; }
21857 gcc_cv_as_literal16
=yes
21859 echo "configure: failed program was" >&5
21862 rm -f conftest.o conftest.s
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21866 $as_echo "$gcc_cv_as_literal16" >&6; }
21867 if test $gcc_cv_as_literal16 = yes; then
21869 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21874 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21875 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21876 $as_echo_n "(cached) " >&6
21878 gcc_cv_as_subsection_m1
=no
21879 if test $in_tree_gas = yes; then
21880 if test $in_tree_gas_is_elf = yes \
21881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21882 then gcc_cv_as_subsection_m1
=yes
21884 elif test x
$gcc_cv_as != x
; then
21885 $as_echo 'conftest_label1: .word 0
21887 conftest_label2: .word 0
21888 .previous' > conftest.s
21889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21891 (eval $ac_try) 2>&5
21893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21894 test $ac_status = 0; }; }
21896 if test x
$gcc_cv_nm != x
; then
21897 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21898 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21899 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21901 else gcc_cv_as_subsection_m1
=yes
21903 rm -f conftest.nm1 conftest.nm2
21906 echo "configure: failed program was" >&5
21909 rm -f conftest.o conftest.s
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21913 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21914 if test $gcc_cv_as_subsection_m1 = yes; then
21916 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21921 $as_echo_n "checking assembler for .weak... " >&6; }
21922 if test "${gcc_cv_as_weak+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21926 if test $in_tree_gas = yes; then
21927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21928 then gcc_cv_as_weak
=yes
21930 elif test x
$gcc_cv_as != x
; then
21931 $as_echo ' .weak foobar' > conftest.s
21932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21934 (eval $ac_try) 2>&5
21936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21937 test $ac_status = 0; }; }
21941 echo "configure: failed program was" >&5
21944 rm -f conftest.o conftest.s
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21948 $as_echo "$gcc_cv_as_weak" >&6; }
21949 if test $gcc_cv_as_weak = yes; then
21951 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21956 $as_echo_n "checking assembler for .weakref... " >&6; }
21957 if test "${gcc_cv_as_weakref+set}" = set; then :
21958 $as_echo_n "(cached) " >&6
21960 gcc_cv_as_weakref
=no
21961 if test $in_tree_gas = yes; then
21962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21963 then gcc_cv_as_weakref
=yes
21965 elif test x
$gcc_cv_as != x
; then
21966 $as_echo ' .weakref foobar, barfnot' > conftest.s
21967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21969 (eval $ac_try) 2>&5
21971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21972 test $ac_status = 0; }; }
21974 gcc_cv_as_weakref
=yes
21976 echo "configure: failed program was" >&5
21979 rm -f conftest.o conftest.s
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21983 $as_echo "$gcc_cv_as_weakref" >&6; }
21984 if test $gcc_cv_as_weakref = yes; then
21986 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21991 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21992 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21993 $as_echo_n "(cached) " >&6
21995 gcc_cv_as_nsubspa_comdat
=no
21996 if test $in_tree_gas = yes; then
21997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21998 then gcc_cv_as_nsubspa_comdat
=yes
22000 elif test x
$gcc_cv_as != x
; then
22001 $as_echo ' .SPACE $TEXT$
22002 .NSUBSPA $CODE$,COMDAT' > 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; }; }
22010 gcc_cv_as_nsubspa_comdat
=yes
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_nsubspa_comdat" >&5
22019 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22020 if test $gcc_cv_as_nsubspa_comdat = yes; then
22022 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22026 # .hidden needs to be supported in both the assembler and the linker,
22027 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22028 # This is irritatingly difficult to feature test for; we have to check the
22029 # date string after the version number. If we've got an in-tree
22030 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22032 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22034 $as_echo_n "checking assembler for .hidden... " >&6; }
22035 if test "${gcc_cv_as_hidden+set}" = set; then :
22036 $as_echo_n "(cached) " >&6
22038 gcc_cv_as_hidden
=no
22039 if test $in_tree_gas = yes; then
22040 if test $in_tree_gas_is_elf = yes \
22041 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22042 then gcc_cv_as_hidden
=yes
22044 elif test x
$gcc_cv_as != x
; then
22045 $as_echo ' .hidden foobar
22046 foobar:' > conftest.s
22047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22049 (eval $ac_try) 2>&5
22051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22052 test $ac_status = 0; }; }
22055 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22056 # STV_HIDDEN, so disable .hidden support if so.
22057 case "${target}" in
22058 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22059 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22060 cat > conftest.s
<<EOF
22065 .set default,hidden
22067 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22068 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22069 grep '\.hidden default' > /dev
/null
; then
22070 gcc_cv_as_hidden
=no
22072 gcc_cv_as_hidden
=yes
22075 # Assume bug is present if objdump is missing.
22076 gcc_cv_as_hidden
=no
22080 gcc_cv_as_hidden
=yes
22084 echo "configure: failed program was" >&5
22087 rm -f conftest.o conftest.s
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22091 $as_echo "$gcc_cv_as_hidden" >&6; }
22093 case "${target}" in
22095 # Darwin as has some visibility support, though with a different syntax.
22096 gcc_cv_as_hidden
=yes
22100 # gnu_indirect_function type is an extension proposed at
22101 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22102 # selection of function implementation
22103 # Check whether --enable-gnu-indirect-function was given.
22104 if test "${enable_gnu_indirect_function+set}" = set; then :
22105 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22107 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22108 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22111 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22114 if test x
$enable_gnu_indirect_function = xyes
; then
22116 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22120 if test $in_tree_ld != yes ; then
22121 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22122 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22123 if test x
"$ld_is_gold" = xyes
; then
22124 # GNU gold --version looks like this:
22126 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22128 # We extract the binutils version which is more familiar and specific
22129 # than the gold version.
22130 ld_vers
=`echo $ld_ver | sed -n \
22131 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22133 # GNU ld --version looks like this:
22135 # GNU ld (GNU Binutils) 2.21.51.20110225
22136 ld_vers
=`echo $ld_ver | sed -n \
22137 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22139 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'`
22140 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22141 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22142 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22144 case "${target}" in
22146 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22149 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22150 # /usr/ccs/bin/ld has been configured.
22151 ld_ver
=`$gcc_cv_ld -V 2>&1`
22152 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22153 ld_vers
=`echo $ld_ver | sed -n \
22154 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22155 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22156 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22164 $as_echo_n "checking linker for .hidden support... " >&6; }
22165 if test "${gcc_cv_ld_hidden+set}" = set; then :
22166 $as_echo_n "(cached) " >&6
22168 if test $in_tree_ld = yes ; then
22169 gcc_cv_ld_hidden
=no
22170 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 \
22171 && test $in_tree_ld_is_elf = yes; then
22172 gcc_cv_ld_hidden
=yes
22175 gcc_cv_ld_hidden
=yes
22176 if test x
"$ld_is_gold" = xyes
; then
22178 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22179 case "${target}" in
22180 mmix-knuth-mmixware
)
22181 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22182 gcc_cv_ld_hidden
=no
22185 if test 0"$ld_date" -lt 20020404; then
22186 if test -n "$ld_date"; then
22187 # If there was date string, but was earlier than 2002-04-04, fail
22188 gcc_cv_ld_hidden
=no
22189 elif test -z "$ld_vers"; then
22190 # If there was no date string nor ld version number, something is wrong
22191 gcc_cv_ld_hidden
=no
22193 test -z "$ld_vers_patch" && ld_vers_patch
=0
22194 if test "$ld_vers_major" -lt 2; then
22195 gcc_cv_ld_hidden
=no
22196 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22197 gcc_cv_ld_hidden
="no"
22198 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22199 gcc_cv_ld_hidden
=no
22204 case "${target}" in
22206 # Darwin ld has some visibility support.
22207 gcc_cv_ld_hidden
=yes
22209 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22210 gcc_cv_ld_hidden
=yes
22212 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22213 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22214 # .symbolic was only added in Solaris 9 12/02.
22215 gcc_cv_ld_hidden
=yes
22218 gcc_cv_ld_hidden
=no
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22225 $as_echo "$gcc_cv_ld_hidden" >&6; }
22226 libgcc_visibility
=no
22229 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22230 libgcc_visibility
=yes
22232 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22237 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22238 gcc_cv_ld_ro_rw_mix
=unknown
22239 if test $in_tree_ld = yes ; then
22240 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 \
22241 && test $in_tree_ld_is_elf = yes; then
22242 gcc_cv_ld_ro_rw_mix
=read-write
22244 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22245 echo '.section myfoosect, "a"' > conftest1.s
22246 echo '.section myfoosect, "aw"' > conftest2.s
22247 echo '.byte 1' >> conftest2.s
22248 echo '.section myfoosect, "a"' > conftest3.s
22249 echo '.byte 0' >> conftest3.s
22250 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22251 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22252 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22253 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22254 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22255 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22256 | sed -e '/myfoosect/!d' -e N`
22257 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22258 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22259 gcc_cv_ld_ro_rw_mix
=read-only
22261 gcc_cv_ld_ro_rw_mix
=read-write
22265 rm -f conftest.
* conftest
[123].
*
22267 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22269 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22273 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22275 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22276 case "${target}" in
22279 # Solaris 2 ld -V output looks like this for a regular version:
22281 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22283 # but test versions add stuff at the end:
22285 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22287 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22288 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22289 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22290 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22291 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22292 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22298 # Check whether --enable-initfini-array was given.
22299 if test "${enable_initfini_array+set}" = set; then :
22300 enableval
=$enable_initfini_array;
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22304 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22305 if test "${gcc_cv_initfini_array+set}" = set; then :
22306 $as_echo_n "(cached) " >&6
22308 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22309 case "${target}" in
22311 if test "$cross_compiling" = yes; then :
22312 gcc_cv_initfini_array
=no
22314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22315 /* end confdefs.h. */
22318 #error Not an ELF OS
22320 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22321 if it can be used. */
22323 int main (void) { return x; }
22324 int foo (void) { x = 0; }
22325 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22328 if ac_fn_c_try_run
"$LINENO"; then :
22329 gcc_cv_initfini_array
=yes
22331 gcc_cv_initfini_array
=no
22333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22338 gcc_cv_initfini_array
=no
22339 if test $in_tree_ld = yes ; then
22340 if test "$gcc_cv_gld_major_version" -eq 2 \
22341 -a "$gcc_cv_gld_minor_version" -ge 22 \
22342 -o "$gcc_cv_gld_major_version" -gt 2 \
22343 && test $in_tree_ld_is_elf = yes; then
22344 gcc_cv_initfini_array
=yes
22346 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22347 cat > conftest.s
<<\EOF
22348 .section .dtors
,"a",%progbits
22350 .byte
'A', 'A', 'A', 'A'
22351 .section .ctors
,"a",%progbits
22353 .byte
'B', 'B', 'B', 'B'
22354 .section .fini_array
.65530,"a",%progbits
22356 .byte
'C', 'C', 'C', 'C'
22357 .section .init_array
.65530,"a",%progbits
22359 .byte
'D', 'D', 'D', 'D'
22360 .section .dtors
.64528,"a",%progbits
22362 .byte
'E', 'E', 'E', 'E'
22363 .section .ctors
.64528,"a",%progbits
22365 .byte
'F', 'F', 'F', 'F'
22366 .section .fini_array
.01005,"a",%progbits
22368 .byte
'G', 'G', 'G', 'G'
22369 .section .init_array
.01005,"a",%progbits
22371 .byte
'H', 'H', 'H', 'H'
22376 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22377 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22378 && $gcc_cv_objdump -s -j .init_array conftest \
22379 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22380 && $gcc_cv_objdump -s -j .fini_array conftest \
22381 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22382 gcc_cv_initfini_array
=yes
22384 rm -f conftest conftest.
*
22386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22390 # error Not an ELF OS
22392 #include <stdlib.h>
22393 #if defined __GLIBC_PREREQ
22394 # if __GLIBC_PREREQ (2, 4)
22396 # error GLIBC 2.4 required
22399 # if defined __sun__ && defined __svr4__
22400 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22402 # error The C library not known to support .init_array/.fini_array
22407 if ac_fn_c_try_cpp
"$LINENO"; then :
22410 gcc_cv_initfini_array
=no
22412 rm -f conftest.err conftest.
$ac_ext;;
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22416 $as_echo_n "checking cross compile... guessing... " >&6; }
22417 gcc_cv_initfini_array
=no
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22421 $as_echo "$gcc_cv_initfini_array" >&6; }
22422 enable_initfini_array
=$gcc_cv_initfini_array
22426 if test $enable_initfini_array = yes; then
22428 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22432 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22434 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22435 if test "${gcc_cv_as_leb128+set}" = set; then :
22436 $as_echo_n "(cached) " >&6
22438 gcc_cv_as_leb128
=no
22439 if test $in_tree_gas = yes; then
22440 if test $in_tree_gas_is_elf = yes \
22441 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22442 then gcc_cv_as_leb128
=yes
22444 elif test x
$gcc_cv_as != x
; then
22451 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22453 (eval $ac_try) 2>&5
22455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22456 test $ac_status = 0; }; }
22458 # GAS versions before 2.11 do not support uleb128,
22459 # despite appearing to.
22460 # ??? There exists an elf-specific test that will crash
22461 # the assembler. Perhaps it's better to figure out whether
22462 # arbitrary sections are supported and try the test.
22463 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22464 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22465 as_vers
=`echo $as_ver | sed -n \
22466 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22467 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22468 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22469 if test $as_major -eq 2 && test $as_minor -lt 11
22471 else gcc_cv_as_leb128
=yes
22475 echo "configure: failed program was" >&5
22478 rm -f conftest.o conftest.s
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22482 $as_echo "$gcc_cv_as_leb128" >&6; }
22483 if test $gcc_cv_as_leb128 = yes; then
22485 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22489 # Check if we have assembler support for unwind directives.
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22491 $as_echo_n "checking assembler for cfi directives... " >&6; }
22492 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22493 $as_echo_n "(cached) " >&6
22495 gcc_cv_as_cfi_directive
=no
22496 if test x
$gcc_cv_as != x
; then
22502 .cfi_escape 1, 2, 3, 4, 5
22503 .cfi_endproc' > conftest.s
22504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22506 (eval $ac_try) 2>&5
22508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22509 test $ac_status = 0; }; }
22513 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22514 # read-only and read-write sections, we need to make sure that the
22515 # assembler used emits read-write .eh_frame sections.
22516 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22517 if test "x$gcc_cv_objdump" != x
; then
22518 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22519 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22520 gcc_cv_as_cfi_directive
=no
22523 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22524 # On Solaris/x86, make sure that GCC and gas agree on using
22525 # read-only .eh_frame sections for 64-bit.
22526 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22527 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22528 sed -e /.eh_frame
/!d
-e N | \
22529 grep READONLY
> /dev
/null
; then
22530 gcc_cv_as_cfi_directive
=yes
22532 gcc_cv_as_cfi_directive
=no
22536 gcc_cv_as_cfi_directive
=yes
22541 # no objdump, err on the side of caution
22542 gcc_cv_as_cfi_directive
=no
22545 gcc_cv_as_cfi_directive
=yes
22549 gcc_cv_as_cfi_directive
=yes
22553 echo "configure: failed program was" >&5
22556 rm -f conftest.o conftest.s
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22560 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22562 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22564 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22565 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22566 $as_echo_n "(cached) " >&6
22568 gcc_cv_as_cfi_advance_working
=no
22569 if test x
$gcc_cv_as != x
; then
22572 .cfi_adjust_cfa_offset 64
22574 .cfi_adjust_cfa_offset 128
22575 .cfi_endproc' > conftest.s
22576 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22578 (eval $ac_try) 2>&5
22580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22581 test $ac_status = 0; }; }
22584 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22585 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22586 gcc_cv_as_cfi_advance_working
=yes
22590 echo "configure: failed program was" >&5
22593 rm -f conftest.o conftest.s
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22597 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22600 # no objdump, err on the side of caution
22601 gcc_cv_as_cfi_advance_working
=no
22605 cat >>confdefs.h
<<_ACEOF
22606 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22607 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22613 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22614 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22615 $as_echo_n "(cached) " >&6
22617 gcc_cv_as_cfi_personality_directive
=no
22618 if test x
$gcc_cv_as != x
; then
22621 .cfi_personality 0, symbol
22622 .cfi_endproc' > conftest.s
22623 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22625 (eval $ac_try) 2>&5
22627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22628 test $ac_status = 0; }; }
22630 gcc_cv_as_cfi_personality_directive
=yes
22632 echo "configure: failed program was" >&5
22635 rm -f conftest.o conftest.s
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22639 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22642 cat >>confdefs.h
<<_ACEOF
22643 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22644 then echo 1; else echo 0; fi`
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22649 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22650 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22651 $as_echo_n "(cached) " >&6
22653 gcc_cv_as_cfi_sections_directive
=no
22654 if test x
$gcc_cv_as != x
; then
22656 .cfi_sections .debug_frame, .eh_frame
22658 .cfi_endproc' > conftest.s
22659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22661 (eval $ac_try) 2>&5
22663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22664 test $ac_status = 0; }; }
22667 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22668 # Need to check that we generated the correct relocation for the
22669 # .debug_frame section. This was fixed for binutils 2.21.
22670 gcc_cv_as_cfi_sections_directive
=no
22671 if test "x$gcc_cv_objdump" != x
; then
22672 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22673 grep secrel
> /dev
/null
; then
22674 gcc_cv_as_cfi_sections_directive
=yes
22679 gcc_cv_as_cfi_sections_directive
=yes
22683 echo "configure: failed program was" >&5
22686 rm -f conftest.o conftest.s
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22690 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22694 cat >>confdefs.h
<<_ACEOF
22695 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22696 then echo 1; else echo 0; fi`
22700 # GAS versions up to and including 2.11.0 may mis-optimize
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22703 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22704 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22705 $as_echo_n "(cached) " >&6
22707 gcc_cv_as_eh_frame
=no
22708 if test $in_tree_gas = yes; then
22709 if test $in_tree_gas_is_elf = yes \
22710 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22711 then gcc_cv_as_eh_frame
=yes
22713 elif test x
$gcc_cv_as != x
; then
22720 .section .eh_frame,"aw",@progbits
22722 .4byte .LECIE1-.LSCIE1
22736 .4byte .LEFDE1-.LASFDE1
22738 .4byte .LASFDE1-__FRAME_BEGIN__
22745 .LEFDE1:' > conftest.s
22746 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22748 (eval $ac_try) 2>&5
22750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22751 test $ac_status = 0; }; }
22753 cat > conftest.lit
<<EOF
22754 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22755 0010 01000000 12000000 18000000 00000000 ................
22756 0020 08000000 04080000 0044 .........D
22758 cat > conftest.big
<<EOF
22759 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22760 0010 00000001 00000012 00000018 00000000 ................
22761 0020 00000008 04000000 0844 .........D
22763 # If the assembler didn't choke, and we can objdump,
22764 # and we got the correct data, then succeed.
22765 # The text in the here-document typically retains its unix-style line
22766 # endings, while the output of objdump will use host line endings.
22767 # Therefore, use diff -b for the comparisons.
22768 if test x
$gcc_cv_objdump != x \
22769 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22770 |
tail -3 > conftest.got \
22771 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22772 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22774 gcc_cv_as_eh_frame
=yes
22775 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22777 (eval $ac_try) 2>&5
22779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22780 test $ac_status = 0; }; }; then
22781 gcc_cv_as_eh_frame
=buggy
22783 # Uh oh, what do we do now?
22784 gcc_cv_as_eh_frame
=no
22787 echo "configure: failed program was" >&5
22790 rm -f conftest.o conftest.s
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22794 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22797 if test $gcc_cv_as_eh_frame = buggy
; then
22799 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22804 $as_echo_n "checking assembler for section merging support... " >&6; }
22805 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22806 $as_echo_n "(cached) " >&6
22808 gcc_cv_as_shf_merge
=no
22809 if test $in_tree_gas = yes; then
22810 if test $in_tree_gas_is_elf = yes \
22811 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22812 then gcc_cv_as_shf_merge
=yes
22814 elif test x
$gcc_cv_as != x
; then
22815 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22816 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22818 (eval $ac_try) 2>&5
22820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22821 test $ac_status = 0; }; }
22823 gcc_cv_as_shf_merge
=yes
22825 echo "configure: failed program was" >&5
22828 rm -f conftest.o conftest.s
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22832 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22834 if test $gcc_cv_as_shf_merge = no
; then
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22836 $as_echo_n "checking assembler for section merging support... " >&6; }
22837 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22838 $as_echo_n "(cached) " >&6
22840 gcc_cv_as_shf_merge
=no
22841 if test $in_tree_gas = yes; then
22842 if test $in_tree_gas_is_elf = yes \
22843 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22844 then gcc_cv_as_shf_merge
=yes
22846 elif test x
$gcc_cv_as != x
; then
22847 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22848 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22850 (eval $ac_try) 2>&5
22852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22853 test $ac_status = 0; }; }
22855 gcc_cv_as_shf_merge
=yes
22857 echo "configure: failed program was" >&5
22860 rm -f conftest.o conftest.s
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22864 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22868 cat >>confdefs.h
<<_ACEOF
22869 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22874 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22875 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22878 gcc_cv_as_comdat_group
=no
22879 if test $in_tree_gas = yes; then
22880 if test $in_tree_gas_is_elf = yes \
22881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22882 then gcc_cv_as_comdat_group
=yes
22884 elif test x
$gcc_cv_as != x
; then
22885 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22886 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22888 (eval $ac_try) 2>&5
22890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22891 test $ac_status = 0; }; }
22893 gcc_cv_as_comdat_group
=yes
22895 echo "configure: failed program was" >&5
22898 rm -f conftest.o conftest.s
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22902 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22904 if test $gcc_cv_as_comdat_group = yes; then
22905 gcc_cv_as_comdat_group_percent
=no
22906 gcc_cv_as_comdat_group_group
=no
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22909 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22910 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22913 gcc_cv_as_comdat_group_percent
=no
22914 if test $in_tree_gas = yes; then
22915 if test $in_tree_gas_is_elf = yes \
22916 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22917 then gcc_cv_as_comdat_group_percent
=yes
22919 elif test x
$gcc_cv_as != x
; then
22920 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22923 (eval $ac_try) 2>&5
22925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22926 test $ac_status = 0; }; }
22928 gcc_cv_as_comdat_group_percent
=yes
22930 echo "configure: failed program was" >&5
22933 rm -f conftest.o conftest.s
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22937 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22939 if test $gcc_cv_as_comdat_group_percent = yes; then
22940 gcc_cv_as_comdat_group_group
=no
22942 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22943 gcc_cv_as_comdat_group_group
=no
22945 case "${target}" in
22946 # Sun as uses a completely different syntax.
22948 case "${target}" in
22949 sparc
*-*-solaris2*)
22951 .group foo,".text%foo",#comdat
22952 .section ".text%foo", #alloc,#execinstr,#progbits
22957 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22959 .group foo,.text%foo,#comdat
22960 .section .text%foo, "ax", @progbits
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22967 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22968 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22969 $as_echo_n "(cached) " >&6
22971 gcc_cv_as_comdat_group_group
=no
22972 if test x
$gcc_cv_as != x
; then
22973 $as_echo "$conftest_s" > conftest.s
22974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22976 (eval $ac_try) 2>&5
22978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22979 test $ac_status = 0; }; }
22981 gcc_cv_as_comdat_group_group
=yes
22983 echo "configure: failed program was" >&5
22986 rm -f conftest.o conftest.s
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22990 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22996 if test x
"$ld_is_gold" = xyes
; then
22998 elif test $in_tree_ld = yes ; then
23000 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 \
23001 && test $in_tree_ld_is_elf = yes; then
23004 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23006 if test 0"$ld_date" -lt 20050308; then
23007 if test -n "$ld_date"; then
23008 # If there was date string, but was earlier than 2005-03-08, fail
23010 elif test "$ld_vers_major" -lt 2; then
23012 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23017 case "${target}" in
23018 *-*-solaris2.1
[1-9]*)
23020 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23021 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23024 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23025 # least ld version 1.2267.
23026 if test "$ld_vers_major" -gt 1; then
23028 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23030 elif test "$ld_vers_minor" -ge 2267; then
23035 # Assume linkers other than GNU ld don't support COMDAT group.
23040 # Allow overriding the automatic COMDAT group tests above.
23041 # Check whether --enable-comdat was given.
23042 if test "${enable_comdat+set}" = set; then :
23043 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23046 if test $comdat_group = no
; then
23047 gcc_cv_as_comdat_group
=no
23048 gcc_cv_as_comdat_group_percent
=no
23049 gcc_cv_as_comdat_group_group
=no
23052 cat >>confdefs.h
<<_ACEOF
23053 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23054 || test $gcc_cv_as_comdat_group_percent = yes \
23055 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23060 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23061 if test "${gcc_cv_as_discriminator+set}" = set; then :
23062 $as_echo_n "(cached) " >&6
23064 gcc_cv_as_discriminator
=no
23065 if test $in_tree_gas = yes; then
23066 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23067 then gcc_cv_as_discriminator
=yes
23069 elif test x
$gcc_cv_as != x
; then
23072 .loc 1 1 0 discriminator 1' > conftest.s
23073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23075 (eval $ac_try) 2>&5
23077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23078 test $ac_status = 0; }; }
23080 gcc_cv_as_discriminator
=yes
23082 echo "configure: failed program was" >&5
23085 rm -f conftest.o conftest.s
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23089 $as_echo "$gcc_cv_as_discriminator" >&6; }
23090 if test $gcc_cv_as_discriminator = yes; then
23092 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23096 # Thread-local storage - the check is heavily parameterized.
23104 .section ".tdata","awT",@progbits
23107 ldq $27,__tls_get_addr($29) !literal!1
23108 lda $16,foo($29) !tlsgd!1
23109 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23110 ldq $27,__tls_get_addr($29) !literal!2
23111 lda $16,foo($29) !tlsldm!2
23112 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23113 ldq $1,foo($29) !gotdtprel
23114 ldah $2,foo($29) !dtprelhi
23115 lda $3,foo($2) !dtprello
23116 lda $4,foo($29) !dtprel
23117 ldq $1,foo($29) !gottprel
23118 ldah $2,foo($29) !tprelhi
23119 lda $3,foo($2) !tprello
23120 lda $4,foo($29) !tprel'
23123 tls_as_opt
=--fatal-warnings
23125 cris-
*-*|crisv32-
*-*)
23127 .section ".tdata","awT",@progbits
23134 tls_as_opt
=--fatal-warnings
23138 .section ".tdata","awT",@progbits
23141 call #gettlsoff(x)'
23150 .section ".tdata","awT",@progbits
23154 addil LT%foo-$tls_gdidx$,gp
23155 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23158 addil LT%foo-$tls_ldidx$,gp
23160 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23161 addil LR%foo-$tls_dtpoff$,%ret0
23162 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23164 addil LT%foo-$tls_ieoff$,gp
23165 ldw RT%foo-$tls_ieoff$(%r1),%t2
23168 addil LR%foo-$tls_leoff$,%t1
23169 ldo RR%foo-$tls_leoff$(%r1),%t2'
23172 tls_as_opt
=--fatal-warnings
23176 .section ".tdata","awT",%progbits
23179 .word foo(gottpoff)
23187 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23189 i
[34567]86-*-solaris2.
*)
23191 tga_func
=___tls_get_addr
23193 x86_64-
*-solaris2.1
[0-9]*)
23195 tga_func
=__tls_get_addr
23201 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23203 .section .tdata,"awt",@progbits'
23207 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23211 .section ".tdata","awT",@progbits'
23214 tls_as_opt
="--fatal-warnings"
23216 conftest_s
="$conftest_s
23220 leal foo@tlsgd(,%ebx,1), %eax
23221 leal foo@tlsldm(%ebx), %eax
23222 leal foo@dtpoff(%eax), %edx
23223 movl foo@gottpoff(%ebx), %eax
23224 subl foo@gottpoff(%ebx), %eax
23225 addl foo@gotntpoff(%ebx), %eax
23226 movl foo@indntpoff, %eax
23227 movl \$foo@tpoff, %eax
23228 subl \$foo@tpoff, %eax
23229 leal foo@ntpoff(%ecx), %eax"
23233 .section ".tdata","awT",@progbits
23237 leaq foo@TLSGD(%rip), %rdi
23238 leaq foo@TLSLD(%rip), %rdi
23239 leaq foo@DTPOFF(%rax), %rdx
23240 movq foo@GOTTPOFF(%rip), %rax
23241 movq $foo@TPOFF, %rax'
23244 tls_as_opt
=--fatal-warnings
23248 .section ".tdata","awT",@progbits
23251 addl r16 = @ltoff(@dtpmod(foo#)), gp
23252 addl r17 = @ltoff(@dtprel(foo#)), gp
23253 addl r18 = @ltoff(@tprel(foo#)), gp
23254 addl r19 = @dtprel(foo#), gp
23255 adds r21 = @dtprel(foo#), r13
23256 movl r23 = @dtprel(foo#)
23257 addl r20 = @tprel(foo#), gp
23258 adds r22 = @tprel(foo#), r13
23259 movl r24 = @tprel(foo#)'
23262 tls_as_opt
=--fatal-warnings
23266 .section .tdata,"awT",@progbits
23270 addik r5,r20,x@TLSGD
23271 addik r5,r20,x@TLSLDM'
23274 tls_as_opt
='--fatal-warnings'
23278 .section .tdata,"awT",@progbits
23282 addiu $4, $28, %tlsgd(x)
23283 addiu $4, $28, %tlsldm(x)
23284 lui $4, %dtprel_hi(x)
23285 addiu $4, $4, %dtprel_lo(x)
23286 lw $4, %gottprel(x)($28)
23287 lui $4, %tprel_hi(x)
23288 addiu $4, $4, %tprel_lo(x)'
23291 tls_as_opt
='-32 --fatal-warnings'
23295 .section .tdata,"awT",@progbits
23300 move.l x@TLSGD(%a5),%a0
23301 move.l x@TLSLDM(%a5),%a0
23302 move.l x@TLSLDO(%a5),%a0
23303 move.l x@TLSIE(%a5),%a0
23304 move.l x@TLSLE(%a5),%a0'
23307 tls_as_opt
='--fatal-warnings'
23311 .section ".tdata","awT",%progbits
23315 add x0, x0, #:tlsgd_lo12:x
23320 tls_as_opt
='--fatal-warnings'
23324 .extern __get_tpointer
23342 .section ".tdata","awT",@progbits
23350 addi 3,2,ld0@got@tlsgd
23356 addi 3,2,x1@got@tlsld
23362 addis 9,3,x2@dtprel@ha
23363 addi 9,9,x2@dtprel@l
23366 ld 9,x3@got@dtprel(2)
23372 tls_as_opt
="-a64 --fatal-warnings"
23376 .section ".tdata","awT",@progbits
23384 addi 3,31,ld0@got@tlsgd
23386 addi 3,31,x1@got@tlsld
23389 addis 9,3,x2@dtprel@ha
23390 addi 9,9,x2@dtprel@l
23391 lwz 9,x3@got@tprel(31)
23394 addis 9,2,x2@tprel@ha
23395 addi 9,9,x2@tprel@l'
23398 tls_as_opt
="-a32 --fatal-warnings"
23402 .section ".tdata","awT",@progbits
23409 .long foo@GOTNTPOFF
23410 .long foo@INDNTPOFF
23411 l %r1,foo@GOTNTPOFF(%r12)
23412 l %r1,0(%r1):tls_load:foo
23413 bas %r14,0(%r1,%r13):tls_gdcall:foo
23414 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23417 tls_as_opt
="-m31 --fatal-warnings"
23421 .section ".tdata","awT",@progbits
23428 .quad foo@GOTNTPOFF
23429 lg %r1,foo@GOTNTPOFF(%r12)
23430 larl %r1,foo@INDNTPOFF
23431 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23432 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23435 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23437 sh-
*-* | sh
[34]-*-*)
23439 .section ".tdata","awT",@progbits
23449 tls_as_opt
=--fatal-warnings
23453 sparc
*-sun-solaris2.
*)
23455 tga_func
=__tls_get_addr
23461 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23463 .section ".tdata",#alloc,#write,#tls'
23468 .section ".tdata","awT",@progbits'
23471 tls_as_opt
="-32 --fatal-warnings"
23473 conftest_s
="$conftest_s
23476 sethi %tgd_hi22(foo), %o0
23477 add %o0, %tgd_lo10(foo), %o1
23478 add %l7, %o1, %o0, %tgd_add(foo)
23479 call __tls_get_addr, %tgd_call(foo)
23480 sethi %tldm_hi22(foo), %l1
23481 add %l1, %tldm_lo10(foo), %l2
23482 add %l7, %l2, %o0, %tldm_add(foo)
23483 call __tls_get_addr, %tldm_call(foo)
23484 sethi %tldo_hix22(foo), %l3
23485 xor %l3, %tldo_lox10(foo), %l4
23486 add %o0, %l4, %l5, %tldo_add(foo)
23487 sethi %tie_hi22(foo), %o3
23488 add %o3, %tie_lo10(foo), %o3
23489 ld [%l7 + %o3], %o2, %tie_ld(foo)
23490 add %g7, %o2, %o4, %tie_add(foo)
23491 sethi %tle_hix22(foo), %l1
23492 xor %l1, %tle_lox10(foo), %o5
23493 ld [%g7 + %o5], %o1"
23497 .section ".tdata","awT",@progbits
23500 addli r0, zero, tls_gd(foo)
23501 auli r0, zero, tls_gd_ha16(foo)
23502 addli r0, r0, tls_gd_lo16(foo)
23504 addli r0, zero, tls_ie(foo)
23505 auli r0, r0, tls_ie_ha16(foo)
23506 addli r0, r0, tls_ie_lo16(foo)'
23509 tls_as_opt
="--fatal-warnings"
23513 .section ".tdata","awT",@progbits
23516 shl16insli r0, zero, hw0_last_tls_gd(foo)
23517 shl16insli r0, zero, hw1_last_tls_gd(foo)
23518 shl16insli r0, r0, hw0_tls_gd(foo)
23520 shl16insli r0, zero, hw1_last_tls_ie(foo)
23521 shl16insli r0, r0, hw0_tls_ie(foo)'
23524 tls_as_opt
="--fatal-warnings"
23528 .section ".tdata","awT",@progbits
23531 movi a8, foo@TLSFUNC
23532 movi a10, foo@TLSARG
23533 callx8.tls a8, foo@TLSCALL'
23539 if test "x$enable_tls" = xno
; then
23540 : # TLS explicitly disabled.
23541 elif test "x$enable_tls" = xyes
; then
23542 set_have_as_tls
=yes # TLS explicitly enabled.
23543 elif test -z "$tls_first_major"; then
23544 : # If we don't have a check, assume no support.
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23547 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23548 if test "${gcc_cv_as_tls+set}" = set; then :
23549 $as_echo_n "(cached) " >&6
23552 if test $in_tree_gas = yes; then
23553 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23554 then gcc_cv_as_tls
=yes
23556 elif test x
$gcc_cv_as != x
; then
23557 $as_echo "$conftest_s" > conftest.s
23558 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23560 (eval $ac_try) 2>&5
23562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23563 test $ac_status = 0; }; }
23567 echo "configure: failed program was" >&5
23570 rm -f conftest.o conftest.s
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23574 $as_echo "$gcc_cv_as_tls" >&6; }
23575 if test $gcc_cv_as_tls = yes; then
23576 set_have_as_tls
=yes
23580 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23581 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23582 # Sun style that Sun ld and GCC don't support any longer.
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23585 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23587 # Check ld and ld.so.1 TLS support.
23588 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23589 # Assume all interesting versions of GNU ld have TLS support.
23590 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23594 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23596 min_tls_ld_vers_minor
=374
23598 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23599 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23600 min_tls_ld_vers_minor
=343
23603 if test "$ld_vers_major" -gt 1 || \
23604 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23611 $as_echo "$ld_tls_support" >&6; }
23614 save_LDFLAGS
="$LDFLAGS"
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23619 $as_echo_n "checking library containing $tga_func... " >&6; }
23620 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23621 # (32-bit x86) only lived in libthread, so check for that. Keep
23622 # set_have_as_tls if found, disable if not.
23623 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23625 $as_echo_n "checking for library containing $tga_func... " >&6; }
23626 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23627 $as_echo_n "(cached) " >&6
23629 ac_func_search_save_LIBS
=$LIBS
23630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23631 /* end confdefs.h. */
23633 /* Override any GCC internal prototype to avoid an error.
23634 Use char because int might match the return type of a GCC
23635 builtin and then its argument prototype would still apply. */
23643 return $tga_func ();
23648 for ac_lib
in '' thread
; do
23649 if test -z "$ac_lib"; then
23650 ac_res
="none required"
23653 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23655 if ac_fn_c_try_link
"$LINENO"; then :
23656 eval "$as_ac_Search=\$ac_res"
23658 rm -f core conftest.err conftest.
$ac_objext \
23660 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23664 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23667 eval "$as_ac_Search=no"
23669 rm conftest.
$ac_ext
23670 LIBS
=$ac_func_search_save_LIBS
23672 eval ac_res
=\$
$as_ac_Search
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23674 $as_echo "$ac_res" >&6; }
23675 eval ac_res
=\$
$as_ac_Search
23676 if test "$ac_res" != no
; then :
23677 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23683 # Clear LIBS if we cannot support TLS.
23684 if test $set_have_as_tls = no
; then
23687 # Always define LIB_TLS_SPEC, even without TLS support.
23689 cat >>confdefs.h
<<_ACEOF
23690 #define LIB_TLS_SPEC "$LIBS"
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23694 $as_echo "$LIBS" >&6; }
23697 LDFLAGS
="$save_LDFLAGS"
23700 if test $set_have_as_tls = yes ; then
23702 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23706 # Target-specific assembler checks.
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23709 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23710 gcc_cv_ld_static_dynamic
=no
23711 gcc_cv_ld_static_option
='-Bstatic'
23712 gcc_cv_ld_dynamic_option
='-Bdynamic'
23713 if test $in_tree_ld = yes ; then
23714 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
23715 gcc_cv_ld_static_dynamic
=yes
23717 elif test x
$gcc_cv_ld != x
; then
23718 # Check if linker supports -Bstatic/-Bdynamic option
23719 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23720 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23721 gcc_cv_ld_static_dynamic
=yes
23724 # AIX ld uses -b flags
23725 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23726 gcc_cv_ld_static_dynamic
=yes
23727 gcc_cv_ld_static_option
="-bstatic"
23728 gcc_cv_ld_dynamic_option
="-bdynamic"
23730 # HP-UX ld uses -a flags to select between shared and archive.
23732 if test x
"$gnu_ld" = xno
; then
23733 gcc_cv_ld_static_dynamic
=yes
23734 gcc_cv_ld_static_option
="-aarchive_shared"
23735 gcc_cv_ld_dynamic_option
="-adefault"
23738 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23740 gcc_cv_ld_static_dynamic
=yes
23745 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23747 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23750 cat >>confdefs.h
<<_ACEOF
23751 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23755 cat >>confdefs.h
<<_ACEOF
23756 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23761 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23763 if test x
"$demangler_in_ld" = xyes
; then
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23765 $as_echo_n "checking linker --demangle support... " >&6; }
23766 gcc_cv_ld_demangle
=no
23767 if test $in_tree_ld = yes; then
23768 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 \
23769 gcc_cv_ld_demangle
=yes
23771 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23772 # Check if the GNU linker supports --demangle option
23773 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23774 gcc_cv_ld_demangle
=yes
23777 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23779 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23783 $as_echo "$gcc_cv_ld_demangle" >&6; }
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23787 $as_echo_n "checking linker plugin support... " >&6; }
23788 gcc_cv_lto_plugin
=0
23789 if test -f liblto_plugin.la
; then
23790 save_ld_ver
="$ld_ver"
23791 save_ld_vers_major
="$ld_vers_major"
23792 save_ld_vers_minor
="$ld_vers_minor"
23793 save_ld_is_gold
="$ld_is_gold"
23797 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23799 # FIXME: ld_is_gold?
23800 ld_vers_major
="$gcc_cv_gld_major_version"
23801 ld_vers_minor
="$gcc_cv_gld_minor_version"
23803 # Determine plugin linker version.
23804 # FIXME: Partial duplicate from above, generalize.
23805 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23806 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23807 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23809 ld_vers
=`echo $ld_ver | sed -n \
23810 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23812 ld_vers
=`echo $ld_ver | sed -n \
23813 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23815 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23816 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23820 # Determine plugin support.
23821 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23822 # Require GNU ld or gold 2.21+ for plugin support by default.
23823 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23824 gcc_cv_lto_plugin
=2
23825 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23826 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23827 gcc_cv_lto_plugin
=1
23831 ld_ver
="$save_ld_ver"
23832 ld_vers_major
="$save_ld_vers_major"
23833 ld_vers_minor
="$save_ld_vers_minor"
23834 ld_is_gold
="$save_ld_is_gold"
23837 cat >>confdefs.h
<<_ACEOF
23838 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23842 $as_echo "$gcc_cv_lto_plugin" >&6; }
23845 # All TARGET_ABI_OSF targets.
23846 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23848 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23849 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23850 $as_echo_n "(cached) " >&6
23852 gcc_cv_as_alpha_explicit_relocs
=no
23853 if test $in_tree_gas = yes; then
23854 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23855 then gcc_cv_as_alpha_explicit_relocs
=yes
23857 elif test x
$gcc_cv_as != x
; then
23858 $as_echo ' .set nomacro
23860 extbl $3, $2, $3 !lituse_bytoff!1
23861 ldq $2, a($29) !literal!1
23862 ldq $4, b($29) !literal!2
23863 ldq_u $3, 0($2) !lituse_base!1
23864 ldq $27, f($29) !literal!5
23865 jsr $26, ($27), f !lituse_jsr!5
23866 ldah $29, 0($26) !gpdisp!3
23867 lda $0, c($29) !gprel
23868 ldah $1, d($29) !gprelhigh
23869 lda $1, d($1) !gprellow
23870 lda $29, 0($29) !gpdisp!3' > conftest.s
23871 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23873 (eval $ac_try) 2>&5
23875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23876 test $ac_status = 0; }; }
23878 gcc_cv_as_alpha_explicit_relocs
=yes
23880 echo "configure: failed program was" >&5
23883 rm -f conftest.o conftest.s
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23887 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23888 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23890 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23894 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23895 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23896 $as_echo_n "(cached) " >&6
23898 gcc_cv_as_alpha_jsrdirect_relocs
=no
23899 if test $in_tree_gas = yes; then
23900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23901 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23903 elif test x
$gcc_cv_as != x
; then
23904 $as_echo ' .set nomacro
23906 ldq $27, a($29) !literal!1
23907 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23910 (eval $ac_try) 2>&5
23912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23913 test $ac_status = 0; }; }
23915 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23917 echo "configure: failed program was" >&5
23920 rm -f conftest.o conftest.s
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23924 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23925 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23927 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23934 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23935 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23936 $as_echo_n "(cached) " >&6
23938 gcc_cv_as_cris_no_mul_bug
=no
23939 if test $in_tree_gas = yes; then
23940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23941 then gcc_cv_as_cris_no_mul_bug
=yes
23943 elif test x
$gcc_cv_as != x
; then
23944 $as_echo '.text' > conftest.s
23945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23947 (eval $ac_try) 2>&5
23949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23950 test $ac_status = 0; }; }
23952 gcc_cv_as_cris_no_mul_bug
=yes
23954 echo "configure: failed program was" >&5
23957 rm -f conftest.o conftest.s
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23961 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23962 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23964 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23971 $as_echo_n "checking assembler for .register... " >&6; }
23972 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23973 $as_echo_n "(cached) " >&6
23975 gcc_cv_as_sparc_register_op
=no
23976 if test x
$gcc_cv_as != x
; then
23977 $as_echo '.register %g2, #scratch' > conftest.s
23978 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23980 (eval $ac_try) 2>&5
23982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23983 test $ac_status = 0; }; }
23985 gcc_cv_as_sparc_register_op
=yes
23987 echo "configure: failed program was" >&5
23990 rm -f conftest.o conftest.s
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23994 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23995 if test $gcc_cv_as_sparc_register_op = yes; then
23997 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24002 $as_echo_n "checking assembler for #nobits... " >&6; }
24003 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24004 $as_echo_n "(cached) " >&6
24006 gcc_cv_as_sparc_nobits
=no
24007 if test x
$gcc_cv_as != x
; then
24008 $as_echo '.section "nobits",#alloc,#write,#nobits
24009 .section "progbits",#alloc,#write,#progbits' > conftest.s
24010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24017 gcc_cv_as_sparc_nobits
=yes
24019 echo "configure: failed program was" >&5
24022 rm -f conftest.o conftest.s
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24026 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24029 cat >>confdefs.h
<<_ACEOF
24030 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24035 $as_echo_n "checking assembler for -relax option... " >&6; }
24036 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24037 $as_echo_n "(cached) " >&6
24039 gcc_cv_as_sparc_relax
=no
24040 if test x
$gcc_cv_as != x
; then
24041 $as_echo '.text' > conftest.s
24042 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24044 (eval $ac_try) 2>&5
24046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24047 test $ac_status = 0; }; }
24049 gcc_cv_as_sparc_relax
=yes
24051 echo "configure: failed program was" >&5
24054 rm -f conftest.o conftest.s
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24058 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24059 if test $gcc_cv_as_sparc_relax = yes; then
24061 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24066 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24067 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24068 $as_echo_n "(cached) " >&6
24070 gcc_cv_as_sparc_gotdata_op
=no
24071 if test x
$gcc_cv_as != x
; then
24077 sethi %gdop_hix22(foo), %g1
24078 xor %g1, %gdop_lox10(foo), %g1
24079 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24080 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24082 (eval $ac_try) 2>&5
24084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24085 test $ac_status = 0; }; }
24087 if test x
$gcc_cv_ld != x \
24088 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24089 if test x
$gcc_cv_objdump != x
; then
24090 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24091 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24092 gcc_cv_as_sparc_gotdata_op
=no
24094 gcc_cv_as_sparc_gotdata_op
=yes
24100 echo "configure: failed program was" >&5
24103 rm -f conftest.o conftest.s
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24107 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24108 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24110 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24115 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24116 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24117 $as_echo_n "(cached) " >&6
24119 gcc_cv_as_sparc_ua_pcrel
=no
24120 if test x
$gcc_cv_as != x
; then
24127 .uaword %r_disp32(foo)' > conftest.s
24128 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130 (eval $ac_try) 2>&5
24132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133 test $ac_status = 0; }; }
24135 if test x
$gcc_cv_ld != x \
24136 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24137 gcc_cv_as_sparc_ua_pcrel
=yes
24141 echo "configure: failed program was" >&5
24144 rm -f conftest.o conftest.s
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24148 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24149 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24151 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24155 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24156 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24157 $as_echo_n "(cached) " >&6
24159 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24160 if test x
$gcc_cv_as != x
; then
24164 .uaword %r_disp32(foo)
24165 .byte 0x32, 0x33, 0x34
24169 .skip 4' > conftest.s
24170 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24172 (eval $ac_try) 2>&5
24174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24175 test $ac_status = 0; }; }
24177 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24178 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24179 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24180 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24181 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24182 |
grep 'DISP32' > /dev
/null
2>&1; then
24185 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24190 echo "configure: failed program was" >&5
24193 rm -f conftest.o conftest.s
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24197 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24198 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24200 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24204 fi # unaligned pcrel relocs
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24207 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24208 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24209 $as_echo_n "(cached) " >&6
24211 gcc_cv_as_sparc_offsetable_lo10
=no
24212 if test x
$gcc_cv_as != x
; then
24214 or %g1, %lo(ab) + 12, %g1
24215 or %g1, %lo(ab + 12), %g1' > conftest.s
24216 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24218 (eval $ac_try) 2>&5
24220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24221 test $ac_status = 0; }; }
24223 if test x
$gcc_cv_objdump != x \
24224 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24225 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24226 gcc_cv_as_sparc_offsetable_lo10
=yes
24229 echo "configure: failed program was" >&5
24232 rm -f conftest.o conftest.s
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24236 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24237 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24239 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24244 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24245 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24246 $as_echo_n "(cached) " >&6
24248 gcc_cv_as_sparc_fmaf
=no
24249 if test x
$gcc_cv_as != x
; then
24251 .register %g2, #scratch
24252 .register %g3, #scratch
24254 fmaddd %f0, %f2, %f4, %f6
24255 addxccc %g1, %g2, %g3
24256 fsrl32 %f2, %f4, %f8
24257 fnaddd %f10, %f12, %f14' > conftest.s
24258 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24260 (eval $ac_try) 2>&5
24262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24263 test $ac_status = 0; }; }
24265 gcc_cv_as_sparc_fmaf
=yes
24267 echo "configure: failed program was" >&5
24270 rm -f conftest.o conftest.s
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24274 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24275 if test $gcc_cv_as_sparc_fmaf = yes; then
24277 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24282 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24283 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24286 gcc_cv_as_sparc_sparc4
=no
24287 if test x
$gcc_cv_as != x
; then
24289 .register %g2, #scratch
24290 .register %g3, #scratch
24293 1: cwbneg %g2, %g3, 1f
24296 aes_kexpand0 %f4, %f6, %f8
24297 des_round %f38, %f40, %f42, %f44
24298 camellia_f %f54, %f56, %f58, %f60
24299 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24300 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24302 (eval $ac_try) 2>&5
24304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24305 test $ac_status = 0; }; }
24307 gcc_cv_as_sparc_sparc4
=yes
24309 echo "configure: failed program was" >&5
24312 rm -f conftest.o conftest.s
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24316 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24317 if test $gcc_cv_as_sparc_sparc4 = yes; then
24319 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24324 i
[34567]86-*-* | x86_64-
*-*)
24327 # Full C++ conformance when using a shared libstdc++-v3 requires some
24328 # support from the Cygwin DLL, which in more recent versions exports
24329 # wrappers to aid in interposing and redirecting operators new, delete,
24330 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24331 # are configuring for a version of Cygwin that exports the wrappers.
24332 if test x
$host = x
$target; then
24333 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24334 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24335 gcc_ac_cygwin_dll_wrappers
=yes
24337 gcc_ac_cygwin_dll_wrappers
=no
24341 # Can't check presence of libc functions during cross-compile, so
24342 # we just have to assume we're building for an up-to-date target.
24343 gcc_ac_cygwin_dll_wrappers
=yes
24346 cat >>confdefs.h
<<_ACEOF
24347 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24352 cygwin
* | pe | mingw32
* | interix
*)
24353 # Recent binutils allows the three-operand form of ".comm" on PE. This
24354 # definition is used unconditionally to initialise the default state of
24355 # the target option variable that governs usage of the feature.
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24357 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24358 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24359 $as_echo_n "(cached) " >&6
24361 gcc_cv_as_comm_has_align
=no
24362 if test $in_tree_gas = yes; then
24363 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24364 then gcc_cv_as_comm_has_align
=yes
24366 elif test x
$gcc_cv_as != x
; then
24367 $as_echo '.comm foo,1,32' > conftest.s
24368 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24370 (eval $ac_try) 2>&5
24372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24373 test $ac_status = 0; }; }
24375 gcc_cv_as_comm_has_align
=yes
24377 echo "configure: failed program was" >&5
24380 rm -f conftest.o conftest.s
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24384 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24387 cat >>confdefs.h
<<_ACEOF
24388 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24391 # Used for DWARF 2 in PE
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24393 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24394 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24395 $as_echo_n "(cached) " >&6
24397 gcc_cv_as_ix86_pe_secrel32
=no
24398 if test $in_tree_gas = yes; then
24399 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24400 then gcc_cv_as_ix86_pe_secrel32
=yes
24402 elif test x
$gcc_cv_as != x
; then
24406 .secrel32 foo' > conftest.s
24407 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24409 (eval $ac_try) 2>&5
24411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24412 test $ac_status = 0; }; }
24414 if test x
$gcc_cv_ld != x \
24415 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24416 gcc_cv_as_ix86_pe_secrel32
=yes
24420 echo "configure: failed program was" >&5
24423 rm -f conftest.o conftest.s
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24427 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24428 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24430 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24433 # Test if the assembler supports the extended form of the .section
24434 # directive that specifies section alignment. LTO support uses this,
24435 # but normally only after installation, so we warn but don't fail the
24436 # configure if LTO is enabled but the assembler does not support it.
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24438 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24439 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24440 $as_echo_n "(cached) " >&6
24442 gcc_cv_as_section_has_align
=no
24443 if test $in_tree_gas = yes; then
24444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24445 then gcc_cv_as_section_has_align
=yes
24447 elif test x
$gcc_cv_as != x
; then
24448 $as_echo '.section lto_test,"dr0"' > conftest.s
24449 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24451 (eval $ac_try) 2>&5
24453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24454 test $ac_status = 0; }; }
24456 gcc_cv_as_section_has_align
=yes
24458 echo "configure: failed program was" >&5
24461 rm -f conftest.o conftest.s
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24465 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24467 if test x
$gcc_cv_as_section_has_align != xyes
; then
24468 case ",$enable_languages," in
24470 { $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
24471 $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;}
24475 # Test if the assembler supports the section flag 'e' for specifying
24476 # an excluded section.
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24478 $as_echo_n "checking assembler for .section with e... " >&6; }
24479 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24480 $as_echo_n "(cached) " >&6
24482 gcc_cv_as_section_has_e
=no
24483 if test $in_tree_gas = yes; then
24484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24485 then gcc_cv_as_section_has_e
=yes
24487 elif test x
$gcc_cv_as != x
; then
24488 $as_echo '.section foo1,"e"
24489 .byte 0,0,0,0' > conftest.s
24490 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24492 (eval $ac_try) 2>&5
24494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24495 test $ac_status = 0; }; }
24497 gcc_cv_as_section_has_e
=yes
24499 echo "configure: failed program was" >&5
24502 rm -f conftest.o conftest.s
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24506 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24509 cat >>confdefs.h
<<_ACEOF
24510 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24517 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24518 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24519 $as_echo_n "(cached) " >&6
24521 gcc_cv_as_ix86_filds
=no
24522 if test x
$gcc_cv_as != x
; then
24523 $as_echo 'filds mem; fists mem' > conftest.s
24524 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24531 gcc_cv_as_ix86_filds
=yes
24533 echo "configure: failed program was" >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24540 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24541 if test $gcc_cv_as_ix86_filds = yes; then
24543 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24548 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24549 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24550 $as_echo_n "(cached) " >&6
24552 gcc_cv_as_ix86_fildq
=no
24553 if test x
$gcc_cv_as != x
; then
24554 $as_echo 'fildq mem; fistpq mem' > conftest.s
24555 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24557 (eval $ac_try) 2>&5
24559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24560 test $ac_status = 0; }; }
24562 gcc_cv_as_ix86_fildq
=yes
24564 echo "configure: failed program was" >&5
24567 rm -f conftest.o conftest.s
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24571 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24572 if test $gcc_cv_as_ix86_fildq = yes; then
24574 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24579 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24580 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24581 $as_echo_n "(cached) " >&6
24583 gcc_cv_as_ix86_cmov_sun_syntax
=no
24584 if test x
$gcc_cv_as != x
; then
24585 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24586 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24588 (eval $ac_try) 2>&5
24590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24591 test $ac_status = 0; }; }
24593 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24595 echo "configure: failed program was" >&5
24598 rm -f conftest.o conftest.s
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24602 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24603 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24605 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24610 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24611 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24612 $as_echo_n "(cached) " >&6
24614 gcc_cv_as_ix86_ffreep
=no
24615 if test x
$gcc_cv_as != x
; then
24616 $as_echo 'ffreep %st(1)' > conftest.s
24617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24619 (eval $ac_try) 2>&5
24621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24622 test $ac_status = 0; }; }
24624 gcc_cv_as_ix86_ffreep
=yes
24626 echo "configure: failed program was" >&5
24629 rm -f conftest.o conftest.s
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24633 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24634 if test $gcc_cv_as_ix86_ffreep = yes; then
24636 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24641 $as_echo_n "checking assembler for .quad directive... " >&6; }
24642 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24643 $as_echo_n "(cached) " >&6
24645 gcc_cv_as_ix86_quad
=no
24646 if test x
$gcc_cv_as != x
; then
24647 $as_echo '.quad 0' > conftest.s
24648 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24650 (eval $ac_try) 2>&5
24652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24653 test $ac_status = 0; }; }
24655 gcc_cv_as_ix86_quad
=yes
24657 echo "configure: failed program was" >&5
24660 rm -f conftest.o conftest.s
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24664 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24665 if test $gcc_cv_as_ix86_quad = yes; then
24667 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24672 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24673 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24676 gcc_cv_as_ix86_sahf
=no
24677 if test x
$gcc_cv_as != x
; then
24680 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24682 (eval $ac_try) 2>&5
24684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24685 test $ac_status = 0; }; }
24687 gcc_cv_as_ix86_sahf
=yes
24689 echo "configure: failed program was" >&5
24692 rm -f conftest.o conftest.s
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24696 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24697 if test $gcc_cv_as_ix86_sahf = yes; then
24699 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24704 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24705 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24706 $as_echo_n "(cached) " >&6
24708 gcc_cv_as_ix86_hle
=no
24709 if test x
$gcc_cv_as != x
; then
24710 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713 (eval $ac_try) 2>&5
24715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716 test $ac_status = 0; }; }
24718 gcc_cv_as_ix86_hle
=yes
24720 echo "configure: failed program was" >&5
24723 rm -f conftest.o conftest.s
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24727 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24728 if test $gcc_cv_as_ix86_hle = yes; then
24730 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24735 $as_echo_n "checking assembler for swap suffix... " >&6; }
24736 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24739 gcc_cv_as_ix86_swap
=no
24740 if test x
$gcc_cv_as != x
; then
24741 $as_echo 'movl.s %esp, %ebp' > conftest.s
24742 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24744 (eval $ac_try) 2>&5
24746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24747 test $ac_status = 0; }; }
24749 gcc_cv_as_ix86_swap
=yes
24751 echo "configure: failed program was" >&5
24754 rm -f conftest.o conftest.s
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24758 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24759 if test $gcc_cv_as_ix86_swap = yes; then
24761 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24766 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24767 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24768 $as_echo_n "(cached) " >&6
24770 gcc_cv_as_ix86_diff_sect_delta
=no
24771 if test x
$gcc_cv_as != x
; then
24772 $as_echo '.section .rodata
24778 .L2: nop' > conftest.s
24779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24786 gcc_cv_as_ix86_diff_sect_delta
=yes
24788 echo "configure: failed program was" >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24795 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24796 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24798 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24802 # These two are used unconditionally by i386.[ch]; it is to be defined
24803 # to 1 if the feature is present, 0 otherwise.
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24805 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24806 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24809 gcc_cv_as_ix86_gotoff_in_data
=no
24810 if test $in_tree_gas = yes; then
24811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24812 then gcc_cv_as_ix86_gotoff_in_data
=yes
24814 elif test x
$gcc_cv_as != x
; then
24819 .long .L0@GOTOFF' > conftest.s
24820 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24822 (eval $ac_try) 2>&5
24824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24825 test $ac_status = 0; }; }
24827 gcc_cv_as_ix86_gotoff_in_data
=yes
24829 echo "configure: failed program was" >&5
24832 rm -f conftest.o conftest.s
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24836 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24839 cat >>confdefs.h
<<_ACEOF
24840 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24845 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24846 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24849 gcc_cv_as_ix86_rep_lock_prefix
=no
24850 if test x
$gcc_cv_as != x
; then
24851 $as_echo 'rep movsl
24856 lock addl %edi, (%eax,%esi)
24857 lock orl $0, (%esp)' > conftest.s
24858 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24860 (eval $ac_try) 2>&5
24862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24863 test $ac_status = 0; }; }
24865 gcc_cv_as_ix86_rep_lock_prefix
=yes
24867 echo "configure: failed program was" >&5
24870 rm -f conftest.o conftest.s
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24874 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24875 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24877 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24882 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24883 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24884 $as_echo_n "(cached) " >&6
24886 gcc_cv_as_ix86_tlsgdplt
=no
24887 if test x
$gcc_cv_as != x
; then
24888 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24891 (eval $ac_try) 2>&5
24893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24894 test $ac_status = 0; }; }
24896 if test x
$gcc_cv_ld != x \
24897 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24898 gcc_cv_as_ix86_tlsgdplt
=yes
24902 echo "configure: failed program was" >&5
24905 rm -f conftest.o conftest.s
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24909 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24910 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24912 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24917 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24918 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24919 $as_echo_n "(cached) " >&6
24921 gcc_cv_as_ix86_tlsldmplt
=no
24922 if test x
$gcc_cv_as != x
; then
24924 call tls_ld@tlsldmplt' > conftest.s
24925 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24927 (eval $ac_try) 2>&5
24929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24930 test $ac_status = 0; }; }
24932 if test x
$gcc_cv_ld != x \
24933 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24934 gcc_cv_as_ix86_tlsldmplt
=yes
24938 echo "configure: failed program was" >&5
24941 rm -f conftest.o conftest.s
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24945 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24946 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24948 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24956 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24957 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24958 $as_echo_n "(cached) " >&6
24960 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24961 if test $in_tree_gas = yes; then
24962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24963 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24965 elif test x
$gcc_cv_as != x
; then
24967 addl r15 = @ltoffx(x#), gp
24969 ld8.mov r16 = [r15], x#' > conftest.s
24970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; }
24977 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24979 echo "configure: failed program was" >&5
24982 rm -f conftest.o conftest.s
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24986 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24987 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24989 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24997 *-*-aix*) conftest_s
=' .machine "pwr5"
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25002 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25003 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25004 $as_echo_n "(cached) " >&6
25006 gcc_cv_as_machine_directive
=no
25007 if test x
$gcc_cv_as != x
; then
25008 $as_echo ' .machine ppc7400' > conftest.s
25009 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25011 (eval $ac_try) 2>&5
25013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25014 test $ac_status = 0; }; }
25016 gcc_cv_as_machine_directive
=yes
25018 echo "configure: failed program was" >&5
25021 rm -f conftest.o conftest.s
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25025 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25027 if test x
$gcc_cv_as_machine_directive != xyes
; then
25028 echo "*** This target requires an assembler supporting \".machine\"" >&2
25029 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25030 test x
$build = x
$target && exit 1
25034 *) conftest_s
=' .machine power4
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25040 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25041 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25042 $as_echo_n "(cached) " >&6
25044 gcc_cv_as_powerpc_mfcrf
=no
25045 if test $in_tree_gas = yes; then
25046 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25047 then gcc_cv_as_powerpc_mfcrf
=yes
25049 elif test x
$gcc_cv_as != x
; then
25050 $as_echo "$conftest_s" > conftest.s
25051 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25053 (eval $ac_try) 2>&5
25055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25056 test $ac_status = 0; }; }
25058 gcc_cv_as_powerpc_mfcrf
=yes
25060 echo "configure: failed program was" >&5
25063 rm -f conftest.o conftest.s
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25067 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25068 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25070 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25075 *-*-aix*) conftest_s
=' .machine "pwr5"
25078 *) conftest_s
=' .machine power5
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25084 $as_echo_n "checking assembler for popcntb support... " >&6; }
25085 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25088 gcc_cv_as_powerpc_popcntb
=no
25089 if test $in_tree_gas = yes; then
25090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25091 then gcc_cv_as_powerpc_popcntb
=yes
25093 elif test x
$gcc_cv_as != x
; then
25094 $as_echo "$conftest_s" > conftest.s
25095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25097 (eval $ac_try) 2>&5
25099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25100 test $ac_status = 0; }; }
25102 gcc_cv_as_powerpc_popcntb
=yes
25104 echo "configure: failed program was" >&5
25107 rm -f conftest.o conftest.s
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25111 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25112 if test $gcc_cv_as_powerpc_popcntb = yes; then
25114 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25119 *-*-aix*) conftest_s
=' .machine "pwr5x"
25122 *) conftest_s
=' .machine power5
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25128 $as_echo_n "checking assembler for fp round support... " >&6; }
25129 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25132 gcc_cv_as_powerpc_fprnd
=no
25133 if test $in_tree_gas = yes; then
25134 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25135 then gcc_cv_as_powerpc_fprnd
=yes
25137 elif test x
$gcc_cv_as != x
; then
25138 $as_echo "$conftest_s" > conftest.s
25139 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25141 (eval $ac_try) 2>&5
25143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25144 test $ac_status = 0; }; }
25146 gcc_cv_as_powerpc_fprnd
=yes
25148 echo "configure: failed program was" >&5
25151 rm -f conftest.o conftest.s
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25155 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25156 if test $gcc_cv_as_powerpc_fprnd = yes; then
25158 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25163 *-*-aix*) conftest_s
=' .machine "pwr6"
25166 *) conftest_s
=' .machine power6
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25172 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25173 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25174 $as_echo_n "(cached) " >&6
25176 gcc_cv_as_powerpc_mfpgpr
=no
25177 if test $in_tree_gas = yes; then
25178 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25179 then gcc_cv_as_powerpc_mfpgpr
=yes
25181 elif test x
$gcc_cv_as != x
; then
25182 $as_echo "$conftest_s" > conftest.s
25183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25185 (eval $ac_try) 2>&5
25187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25188 test $ac_status = 0; }; }
25190 gcc_cv_as_powerpc_mfpgpr
=yes
25192 echo "configure: failed program was" >&5
25195 rm -f conftest.o conftest.s
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25199 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25200 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25202 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25207 *-*-aix*) conftest_s
=' .csect .text[PR]
25209 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25213 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25214 *) conftest_s
=' .text
25216 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25220 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25221 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25222 $as_echo_n "(cached) " >&6
25224 gcc_cv_as_powerpc_rel16
=no
25225 if test $in_tree_gas = yes; then
25226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25227 then gcc_cv_as_powerpc_rel16
=yes
25229 elif test x
$gcc_cv_as != x
; then
25230 $as_echo "$conftest_s" > conftest.s
25231 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25233 (eval $ac_try) 2>&5
25235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25236 test $ac_status = 0; }; }
25238 gcc_cv_as_powerpc_rel16
=yes
25240 echo "configure: failed program was" >&5
25243 rm -f conftest.o conftest.s
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25247 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25248 if test $gcc_cv_as_powerpc_rel16 = yes; then
25250 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25255 *-*-aix*) conftest_s
=' .machine "pwr6"
25258 *) conftest_s
=' .machine power6
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25264 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25265 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25266 $as_echo_n "(cached) " >&6
25268 gcc_cv_as_powerpc_cmpb
=no
25269 if test $in_tree_gas = yes; then
25270 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25271 then gcc_cv_as_powerpc_cmpb
=yes
25273 elif test x
$gcc_cv_as != x
; then
25274 $as_echo "$conftest_s" > conftest.s
25275 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25277 (eval $ac_try) 2>&5
25279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25280 test $ac_status = 0; }; }
25282 gcc_cv_as_powerpc_cmpb
=yes
25284 echo "configure: failed program was" >&5
25287 rm -f conftest.o conftest.s
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25291 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25292 if test $gcc_cv_as_powerpc_cmpb = yes; then
25294 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25299 *-*-aix*) conftest_s
=' .machine "pwr6"
25302 *) conftest_s
=' .machine power6
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25308 $as_echo_n "checking assembler for decimal float support... " >&6; }
25309 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25310 $as_echo_n "(cached) " >&6
25312 gcc_cv_as_powerpc_dfp
=no
25313 if test $in_tree_gas = yes; then
25314 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25315 then gcc_cv_as_powerpc_dfp
=yes
25317 elif test x
$gcc_cv_as != x
; then
25318 $as_echo "$conftest_s" > conftest.s
25319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25321 (eval $ac_try) 2>&5
25323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25324 test $ac_status = 0; }; }
25326 gcc_cv_as_powerpc_dfp
=yes
25328 echo "configure: failed program was" >&5
25331 rm -f conftest.o conftest.s
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25335 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25336 if test $gcc_cv_as_powerpc_dfp = yes; then
25338 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25343 *-*-aix*) conftest_s
=' .machine "pwr7"
25346 *) conftest_s
=' .machine power7
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25352 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25353 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25354 $as_echo_n "(cached) " >&6
25356 gcc_cv_as_powerpc_vsx
=no
25357 if test $in_tree_gas = yes; then
25358 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25359 then gcc_cv_as_powerpc_vsx
=yes
25361 elif test x
$gcc_cv_as != x
; then
25362 $as_echo "$conftest_s" > conftest.s
25363 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25365 (eval $ac_try) 2>&5
25367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25368 test $ac_status = 0; }; }
25370 gcc_cv_as_powerpc_vsx
=yes
25372 echo "configure: failed program was" >&5
25375 rm -f conftest.o conftest.s
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25379 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25380 if test $gcc_cv_as_powerpc_vsx = yes; then
25382 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25387 *-*-aix*) conftest_s
=' .machine "pwr7"
25390 *) conftest_s
=' .machine power7
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25396 $as_echo_n "checking assembler for popcntd support... " >&6; }
25397 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25398 $as_echo_n "(cached) " >&6
25400 gcc_cv_as_powerpc_popcntd
=no
25401 if test $in_tree_gas = yes; then
25402 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25403 then gcc_cv_as_powerpc_popcntd
=yes
25405 elif test x
$gcc_cv_as != x
; then
25406 $as_echo "$conftest_s" > conftest.s
25407 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25409 (eval $ac_try) 2>&5
25411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25412 test $ac_status = 0; }; }
25414 gcc_cv_as_powerpc_popcntd
=yes
25416 echo "configure: failed program was" >&5
25419 rm -f conftest.o conftest.s
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25423 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25424 if test $gcc_cv_as_powerpc_popcntd = yes; then
25426 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25431 *-*-aix*) conftest_s
=' .machine "pwr8"
25432 .csect .text[PR]';;
25433 *) conftest_s
=' .machine power8
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25438 $as_echo_n "checking assembler for power8 support... " >&6; }
25439 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25440 $as_echo_n "(cached) " >&6
25442 gcc_cv_as_powerpc_power8
=no
25443 if test $in_tree_gas = yes; then
25444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25445 then gcc_cv_as_powerpc_power8
=yes
25447 elif test x
$gcc_cv_as != x
; then
25448 $as_echo "$conftest_s" > conftest.s
25449 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25451 (eval $ac_try) 2>&5
25453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25454 test $ac_status = 0; }; }
25456 gcc_cv_as_powerpc_power8
=yes
25458 echo "configure: failed program was" >&5
25461 rm -f conftest.o conftest.s
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25465 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25466 if test $gcc_cv_as_powerpc_power8 = yes; then
25468 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25473 *-*-aix*) conftest_s
=' .csect .text[PR]
25475 *) conftest_s
=' .text
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25480 $as_echo_n "checking assembler for lwsync support... " >&6; }
25481 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25482 $as_echo_n "(cached) " >&6
25484 gcc_cv_as_powerpc_lwsync
=no
25485 if test $in_tree_gas = yes; then
25486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25487 then gcc_cv_as_powerpc_lwsync
=yes
25489 elif test x
$gcc_cv_as != x
; then
25490 $as_echo "$conftest_s" > conftest.s
25491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25493 (eval $ac_try) 2>&5
25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25496 test $ac_status = 0; }; }
25498 gcc_cv_as_powerpc_lwsync
=yes
25500 echo "configure: failed program was" >&5
25503 rm -f conftest.o conftest.s
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25507 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25508 if test $gcc_cv_as_powerpc_lwsync = yes; then
25510 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25515 *-*-aix*) conftest_s
=' .machine "476"
25518 *) conftest_s
=' .machine "476"
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25524 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25525 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25526 $as_echo_n "(cached) " >&6
25528 gcc_cv_as_powerpc_dci
=no
25529 if test $in_tree_gas = yes; then
25530 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25531 then gcc_cv_as_powerpc_dci
=yes
25533 elif test x
$gcc_cv_as != x
; then
25534 $as_echo "$conftest_s" > conftest.s
25535 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25537 (eval $ac_try) 2>&5
25539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25540 test $ac_status = 0; }; }
25542 gcc_cv_as_powerpc_dci
=yes
25544 echo "configure: failed program was" >&5
25547 rm -f conftest.o conftest.s
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25551 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25552 if test $gcc_cv_as_powerpc_dci = yes; then
25554 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25559 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25560 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25561 $as_echo_n "(cached) " >&6
25563 gcc_cv_as_powerpc_gnu_attribute
=no
25564 if test $in_tree_gas = yes; then
25565 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25566 then gcc_cv_as_powerpc_gnu_attribute
=yes
25568 elif test x
$gcc_cv_as != x
; then
25569 $as_echo '.gnu_attribute 4,1' > conftest.s
25570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }
25577 gcc_cv_as_powerpc_gnu_attribute
=yes
25579 echo "configure: failed program was" >&5
25582 rm -f conftest.o conftest.s
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25586 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25587 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25589 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25594 $as_echo_n "checking assembler for tls marker support... " >&6; }
25595 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25596 $as_echo_n "(cached) " >&6
25598 gcc_cv_as_powerpc_tls_markers
=no
25599 if test $in_tree_gas = yes; then
25600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25601 then gcc_cv_as_powerpc_tls_markers
=yes
25603 elif test x
$gcc_cv_as != x
; then
25604 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25605 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25607 (eval $ac_try) 2>&5
25609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25610 test $ac_status = 0; }; }
25612 gcc_cv_as_powerpc_tls_markers
=yes
25614 echo "configure: failed program was" >&5
25617 rm -f conftest.o conftest.s
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25621 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25622 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25624 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25631 $as_echo_n "checking assembler for .ref support... " >&6; }
25632 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25633 $as_echo_n "(cached) " >&6
25635 gcc_cv_as_aix_ref
=no
25636 if test $in_tree_gas = yes; then
25637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25638 then gcc_cv_as_aix_ref
=yes
25640 elif test x
$gcc_cv_as != x
; then
25641 $as_echo ' .csect stuff[rw]
25647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649 (eval $ac_try) 2>&5
25651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652 test $ac_status = 0; }; }
25654 gcc_cv_as_aix_ref
=yes
25656 echo "configure: failed program was" >&5
25659 rm -f conftest.o conftest.s
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25663 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25664 if test $gcc_cv_as_aix_ref = yes; then
25666 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25675 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25676 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25677 $as_echo_n "(cached) " >&6
25679 gcc_cv_as_mips_explicit_relocs
=no
25680 if test $in_tree_gas = yes; then
25681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25682 then gcc_cv_as_mips_explicit_relocs
=yes
25684 elif test x
$gcc_cv_as != x
; then
25685 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25686 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25688 (eval $ac_try) 2>&5
25690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25691 test $ac_status = 0; }; }
25693 gcc_cv_as_mips_explicit_relocs
=yes
25695 echo "configure: failed program was" >&5
25698 rm -f conftest.o conftest.s
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25702 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25703 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25704 if test x
$target_cpu_default = x
25705 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25706 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25710 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25711 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25712 $as_echo_n "(cached) " >&6
25714 gcc_cv_as_mips_no_shared
=no
25715 if test $in_tree_gas = yes; then
25716 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25717 then gcc_cv_as_mips_no_shared
=yes
25719 elif test x
$gcc_cv_as != x
; then
25720 $as_echo 'nop' > conftest.s
25721 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25723 (eval $ac_try) 2>&5
25725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25726 test $ac_status = 0; }; }
25728 gcc_cv_as_mips_no_shared
=yes
25730 echo "configure: failed program was" >&5
25733 rm -f conftest.o conftest.s
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25737 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25738 if test $gcc_cv_as_mips_no_shared = yes; then
25740 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25745 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25746 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25747 $as_echo_n "(cached) " >&6
25749 gcc_cv_as_mips_gnu_attribute
=no
25750 if test $in_tree_gas = yes; then
25751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25752 then gcc_cv_as_mips_gnu_attribute
=yes
25754 elif test x
$gcc_cv_as != x
; then
25755 $as_echo '.gnu_attribute 4,1' > conftest.s
25756 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25758 (eval $ac_try) 2>&5
25760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25761 test $ac_status = 0; }; }
25763 gcc_cv_as_mips_gnu_attribute
=yes
25765 echo "configure: failed program was" >&5
25768 rm -f conftest.o conftest.s
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25772 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25773 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25775 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25780 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25781 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25782 $as_echo_n "(cached) " >&6
25784 gcc_cv_as_mips_dtprelword
=no
25785 if test $in_tree_gas = yes; then
25786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25787 then gcc_cv_as_mips_dtprelword
=yes
25789 elif test x
$gcc_cv_as != x
; then
25790 $as_echo '.section .tdata,"awT",@progbits
25794 .dtprelword x+0x8000' > conftest.s
25795 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25797 (eval $ac_try) 2>&5
25799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25800 test $ac_status = 0; }; }
25802 gcc_cv_as_mips_dtprelword
=yes
25804 echo "configure: failed program was" >&5
25807 rm -f conftest.o conftest.s
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25811 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25812 if test $gcc_cv_as_mips_dtprelword = yes; then
25814 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25819 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25820 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25821 $as_echo_n "(cached) " >&6
25823 gcc_cv_as_mips_dspr1_mult
=no
25824 if test x
$gcc_cv_as != x
; then
25825 $as_echo ' .set mips32r2
25833 multu $ac3,$4,$5' > conftest.s
25834 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25836 (eval $ac_try) 2>&5
25838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25839 test $ac_status = 0; }; }
25841 gcc_cv_as_mips_dspr1_mult
=yes
25843 echo "configure: failed program was" >&5
25846 rm -f conftest.o conftest.s
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25850 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25851 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25853 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25858 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25859 gcc_cv_as_ld_jalr_reloc
=no
25860 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25861 if test $in_tree_ld = yes ; then
25862 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 \
25863 && test $in_tree_ld_is_elf = yes; then
25864 gcc_cv_as_ld_jalr_reloc
=yes
25866 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25867 echo ' .ent x' > conftest.s
25868 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25869 echo ' ld $25,%call16(y)($28)' >> conftest.s
25870 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25871 echo '1: jalr $25' >> conftest.s
25872 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25873 echo '1: jalr $25' >> conftest.s
25874 echo ' .end x' >> conftest.s
25875 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25876 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25877 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25878 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25879 gcc_cv_as_ld_jalr_reloc
=yes
25885 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25886 if test x
$target_cpu_default = x
; then
25887 target_cpu_default
=MASK_RELAX_PIC_CALLS
25889 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25893 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25896 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25897 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25898 $as_echo_n "(cached) " >&6
25900 gcc_cv_ld_mips_personality_relaxation
=no
25901 if test $in_tree_ld = yes ; then
25902 if test "$gcc_cv_gld_major_version" -eq 2 \
25903 -a "$gcc_cv_gld_minor_version" -ge 21 \
25904 -o "$gcc_cv_gld_major_version" -gt 2; then
25905 gcc_cv_ld_mips_personality_relaxation
=yes
25907 elif test x
$gcc_cv_as != x \
25908 -a x
$gcc_cv_ld != x \
25909 -a x
$gcc_cv_readelf != x
; then
25910 cat > conftest.s
<<EOF
25912 .cfi_personality 0x80,indirect_ptr
25919 .section .data,"aw",@progbits
25923 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25924 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25925 if $gcc_cv_readelf -d conftest
2>&1 \
25926 |
grep TEXTREL
> /dev
/null
2>&1; then
25928 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25929 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25932 gcc_cv_ld_mips_personality_relaxation
=yes
25936 rm -f conftest.s conftest.o conftest
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25939 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25940 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25942 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25948 # Mips and HP-UX need the GNU assembler.
25949 # Linux on IA64 might be able to use the Intel assembler.
25952 mips
*-*-* |
*-*-hpux* )
25953 if test x
$gas_flag = xyes \
25954 ||
test x
"$host" != x
"$build" \
25955 ||
test ! -x "$gcc_cv_as" \
25956 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25959 echo "*** This configuration requires the GNU assembler" >&2
25965 # ??? Not all targets support dwarf2 debug_line, even within a version
25966 # of gas. Moreover, we need to emit a valid instruction to trigger any
25967 # info to the output file. So, as supported targets are added to gas 2.11,
25968 # add some instruction here to (also) show we expect this might work.
25969 # ??? Once 2.11 is released, probably need to add first known working
25970 # version to the per-target configury.
25971 case "$cpu_type" in
25972 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25973 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
25983 if test x
"$insn" != x
; then
25985 .file 1 \"conftest.s\"
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25989 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25990 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25991 $as_echo_n "(cached) " >&6
25993 gcc_cv_as_dwarf2_debug_line
=no
25994 if test $in_tree_gas = yes; then
25995 if test $in_tree_gas_is_elf = yes \
25996 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25997 then gcc_cv_as_dwarf2_debug_line
=yes
25999 elif test x
$gcc_cv_as != x
; then
26000 $as_echo "$conftest_s" > conftest.s
26001 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26003 (eval $ac_try) 2>&5
26005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26006 test $ac_status = 0; }; }
26008 if test x
$gcc_cv_objdump != x \
26009 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26010 |
grep debug_line
> /dev
/null
2>&1; then
26011 gcc_cv_as_dwarf2_debug_line
=yes
26014 echo "configure: failed program was" >&5
26017 rm -f conftest.o conftest.s
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26021 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26024 # The .debug_line file table must be in the exact order that
26025 # we specified the files, since these indices are also used
26026 # by DW_AT_decl_file. Approximate this test by testing if
26027 # the assembler bitches if the same index is assigned twice.
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26029 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26030 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26031 $as_echo_n "(cached) " >&6
26033 gcc_cv_as_dwarf2_file_buggy
=no
26034 if test x
$gcc_cv_as != x
; then
26035 $as_echo ' .file 1 "foo.s"
26036 .file 1 "bar.s"' > conftest.s
26037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26039 (eval $ac_try) 2>&5
26041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26042 test $ac_status = 0; }; }
26044 gcc_cv_as_dwarf2_file_buggy
=yes
26046 echo "configure: failed program was" >&5
26049 rm -f conftest.o conftest.s
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26053 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26056 if test $gcc_cv_as_dwarf2_debug_line = yes \
26057 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26059 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26064 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26065 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26066 $as_echo_n "(cached) " >&6
26068 gcc_cv_as_gdwarf2_flag
=no
26069 if test $in_tree_gas = yes; then
26070 if test $in_tree_gas_is_elf = yes \
26071 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26072 then gcc_cv_as_gdwarf2_flag
=yes
26074 elif test x
$gcc_cv_as != x
; then
26075 $as_echo "$insn" > conftest.s
26076 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26078 (eval $ac_try) 2>&5
26080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26081 test $ac_status = 0; }; }
26083 gcc_cv_as_gdwarf2_flag
=yes
26085 echo "configure: failed program was" >&5
26088 rm -f conftest.o conftest.s
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26092 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26093 if test $gcc_cv_as_gdwarf2_flag = yes; then
26095 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26100 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26101 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26102 $as_echo_n "(cached) " >&6
26104 gcc_cv_as_gstabs_flag
=no
26105 if test $in_tree_gas = yes; then
26106 if test $in_tree_gas_is_elf = yes \
26107 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26108 then gcc_cv_as_gstabs_flag
=yes
26110 elif test x
$gcc_cv_as != x
; then
26111 $as_echo "$insn" > conftest.s
26112 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26114 (eval $ac_try) 2>&5
26116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26117 test $ac_status = 0; }; }
26119 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26120 # and warns about it, but still exits successfully. So check for
26122 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26124 (eval $ac_try) 2>&5
26126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26127 test $ac_status = 0; }; }
26129 else gcc_cv_as_gstabs_flag
=yes
26132 echo "configure: failed program was" >&5
26135 rm -f conftest.o conftest.s
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26139 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26140 if test $gcc_cv_as_gstabs_flag = yes; then
26142 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26147 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26148 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26149 $as_echo_n "(cached) " >&6
26151 gcc_cv_as_debug_prefix_map_flag
=no
26152 if test $in_tree_gas = yes; then
26153 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26154 then gcc_cv_as_debug_prefix_map_flag
=yes
26156 elif test x
$gcc_cv_as != x
; then
26157 $as_echo "$insn" > conftest.s
26158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26160 (eval $ac_try) 2>&5
26162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26163 test $ac_status = 0; }; }
26165 gcc_cv_as_debug_prefix_map_flag
=yes
26167 echo "configure: failed program was" >&5
26170 rm -f conftest.o conftest.s
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26174 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26175 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26177 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26183 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26184 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26185 $as_echo_n "(cached) " >&6
26187 gcc_cv_as_lcomm_with_alignment
=no
26188 if test x
$gcc_cv_as != x
; then
26189 $as_echo '.lcomm bar,4,16' > conftest.s
26190 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26192 (eval $ac_try) 2>&5
26194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26195 test $ac_status = 0; }; }
26197 gcc_cv_as_lcomm_with_alignment
=yes
26199 echo "configure: failed program was" >&5
26202 rm -f conftest.o conftest.s
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26206 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26207 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26209 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26213 # Check whether --enable-gnu-unique-object was given.
26214 if test "${enable_gnu_unique_object+set}" = set; then :
26215 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26217 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26218 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26222 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26223 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26224 $as_echo_n "(cached) " >&6
26226 gcc_cv_as_gnu_unique_object
=no
26227 if test $in_tree_gas = yes; then
26228 if test $in_tree_gas_is_elf = yes \
26229 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26230 then gcc_cv_as_gnu_unique_object
=yes
26232 elif test x
$gcc_cv_as != x
; then
26233 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26234 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26236 (eval $ac_try) 2>&5
26238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26239 test $ac_status = 0; }; }
26241 gcc_cv_as_gnu_unique_object
=yes
26243 echo "configure: failed program was" >&5
26246 rm -f conftest.o conftest.s
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26250 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26251 if test $gcc_cv_as_gnu_unique_object = yes; then
26252 # We need to unquote above to to use the definition from config.gcc.
26253 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26254 if test x
$host = x
$build -a x
$host = x
$target &&
26255 ldd
--version 2>/dev
/null
&&
26256 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26257 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26258 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26259 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26260 if test "$glibcnum" -ge 2011 ; then
26261 enable_gnu_unique_object
=yes
26267 if test x
$enable_gnu_unique_object = xyes
; then
26269 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26274 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26275 if test "${gcc_cv_as_line_zero+set}" = set; then :
26276 $as_echo_n "(cached) " >&6
26278 gcc_cv_as_line_zero
=no
26279 if test $in_tree_gas = yes; then
26280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26281 then gcc_cv_as_line_zero
=yes
26283 elif test "x$gcc_cv_as" != x
; then
26284 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26285 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26287 (eval $ac_try) 2>&5
26289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; } &&
26291 test "x`cat conftest.out`" = x
26293 gcc_cv_as_line_zero
=yes
26295 echo "configure: failed program was" >&5
26297 echo "configure: error output was" >&5
26298 cat conftest.out
>&5
26300 rm -f conftest.o conftest.s conftest.out
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26304 $as_echo "$gcc_cv_as_line_zero" >&6; }
26305 if test "x$gcc_cv_as_line_zero" = xyes
; then
26307 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26312 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26313 gcc_cv_ld_eh_frame_hdr
=no
26314 if test $in_tree_ld = yes ; then
26315 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 \
26316 && test $in_tree_ld_is_elf = yes; then
26317 gcc_cv_ld_eh_frame_hdr
=yes
26319 elif test x
$gcc_cv_ld != x
; then
26320 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26321 # Check if linker supports --eh-frame-hdr option
26322 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26323 gcc_cv_ld_eh_frame_hdr
=yes
26328 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26329 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26330 gcc_cv_ld_eh_frame_hdr
=yes
26337 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26339 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26343 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26346 $as_echo_n "checking linker position independent executable support... " >&6; }
26348 if test $in_tree_ld = yes ; then
26349 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 \
26350 && test $in_tree_ld_is_elf = yes; then
26353 elif test x
$gcc_cv_ld != x
; then
26354 # Check if linker supports -pie option
26355 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26359 if test x
"$gcc_cv_ld_pie" = xyes
; then
26361 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26365 $as_echo "$gcc_cv_ld_pie" >&6; }
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26368 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26369 gcc_cv_ld_eh_gc_sections
=no
26370 if test $in_tree_ld = yes ; then
26371 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 \
26372 && test $in_tree_ld_is_elf = yes; then
26373 gcc_cv_ld_eh_gc_sections
=yes
26375 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26376 cat > conftest.s
<<EOF
26379 .type _start, @function
26382 .size _start, .-_start
26383 .section .text.foo,"ax",@progbits
26384 .type foo, @function
26388 .section .gcc_except_table.foo,"a",@progbits
26391 .section .eh_frame,"a",@progbits
26394 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26395 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26396 |
grep "gc-sections option ignored" > /dev
/null
; then
26397 gcc_cv_ld_eh_gc_sections
=no
26398 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26399 |
grep gcc_except_table
> /dev
/null
; then
26400 gcc_cv_ld_eh_gc_sections
=yes
26401 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26402 if test x
$gcc_cv_as_comdat_group != xyes
; then
26403 gcc_cv_ld_eh_gc_sections
=no
26404 cat > conftest.s
<<EOF
26407 .type _start, @function
26410 .size _start, .-_start
26411 .section .gnu.linkonce.t.foo,"ax",@progbits
26412 .type foo, @function
26416 .section .gcc_except_table.foo,"a",@progbits
26419 .section .eh_frame,"a",@progbits
26422 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26423 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26424 |
grep "gc-sections option ignored" > /dev
/null
; then
26425 gcc_cv_ld_eh_gc_sections
=no
26426 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26427 |
grep gcc_except_table
> /dev
/null
; then
26428 gcc_cv_ld_eh_gc_sections
=yes
26434 rm -f conftest.s conftest.o conftest
26438 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26439 gcc_cv_ld_eh_gc_sections
=no
26442 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26444 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26448 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26451 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26452 gcc_cv_ld_eh_gc_sections_bug
=no
26453 if test $in_tree_ld = yes ; then
26454 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 \
26455 && test $in_tree_ld_is_elf = yes; then
26456 gcc_cv_ld_eh_gc_sections_bug
=yes
26458 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
26459 gcc_cv_ld_eh_gc_sections_bug
=yes
26460 cat > conftest.s
<<EOF
26463 .type _start, @function
26466 .size _start, .-_start
26467 .section .text.startup.foo,"ax",@progbits
26468 .type foo, @function
26472 .section .gcc_except_table.foo,"a",@progbits
26475 .section .eh_frame,"a",@progbits
26478 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26479 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26480 |
grep "gc-sections option ignored" > /dev
/null
; then
26482 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26483 |
grep gcc_except_table
> /dev
/null
; then
26484 gcc_cv_ld_eh_gc_sections_bug
=no
26487 rm -f conftest.s conftest.o conftest
26489 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26491 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26495 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26502 $as_echo_n "checking linker --as-needed support... " >&6; }
26503 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26504 $as_echo_n "(cached) " >&6
26506 gcc_cv_ld_as_needed
=no
26507 if test $in_tree_ld = yes ; then
26508 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 \
26509 && test $in_tree_ld_is_elf = yes; then
26510 gcc_cv_ld_as_needed
=yes
26512 elif test x
$gcc_cv_ld != x
; then
26513 # Check if linker supports --as-needed and --no-as-needed options
26514 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26515 gcc_cv_ld_as_needed
=yes
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26521 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26522 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26524 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26528 case "$target:$tm_file" in
26529 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26532 emul_name
="-melf64lppc"
26535 emul_name
="-melf64ppc"
26538 emul_name
="-melf64ppc_fbsd"
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26542 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26543 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26544 $as_echo_n "(cached) " >&6
26546 gcc_cv_ld_no_dot_syms
=no
26547 if test x
"$ld_is_gold" = xyes
; then
26548 gcc_cv_ld_no_dot_syms
=yes
26549 elif test $in_tree_ld = yes ; then
26550 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
26551 gcc_cv_ld_no_dot_syms
=yes
26553 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26554 cat > conftest1.s
<<EOF
26558 cat > conftest2.s
<<EOF
26559 .section ".opd","aw"
26562 .type foo,@function
26564 .quad .LEfoo,.TOC.@tocbase,0
26570 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26571 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26572 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26573 gcc_cv_ld_no_dot_syms
=yes
26575 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26580 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26581 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26583 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26588 $as_echo_n "checking linker large toc support... " >&6; }
26589 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26590 $as_echo_n "(cached) " >&6
26592 gcc_cv_ld_large_toc
=no
26593 if test x
"$ld_is_gold" = xyes
; then
26594 gcc_cv_ld_large_toc
=yes
26595 elif test $in_tree_ld = yes ; then
26596 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
26597 gcc_cv_ld_large_toc
=yes
26599 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26600 cat > conftest.s
<<EOF
26601 .section ".tbss","awT",@nobits
26607 addis 9,13,ie0@got@tprel@ha
26608 ld 9,ie0@got@tprel@l(9)
26610 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26611 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26612 gcc_cv_ld_large_toc
=yes
26614 rm -f conftest conftest.o conftest.s
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26619 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26620 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26622 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26631 $as_echo_n "checking linker large toc support... " >&6; }
26632 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26633 $as_echo_n "(cached) " >&6
26635 gcc_cv_ld_large_toc
=no
26636 if test x
$gcc_cv_as != x
; then
26637 cat > conftest.s
<<EOF
26647 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26648 gcc_cv_ld_large_toc
=yes
26650 rm -f conftest conftest.o conftest.s
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26655 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26656 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26658 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26665 $as_echo_n "checking linker --build-id support... " >&6; }
26666 if test "${gcc_cv_ld_buildid+set}" = set; then :
26667 $as_echo_n "(cached) " >&6
26669 gcc_cv_ld_buildid
=no
26670 if test $in_tree_ld = yes ; then
26671 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26672 "$gcc_cv_gld_minor_version" -ge 18 -o \
26673 "$gcc_cv_gld_major_version" -gt 2 \
26674 && test $in_tree_ld_is_elf = yes; then
26675 gcc_cv_ld_buildid
=yes
26677 elif test x
$gcc_cv_ld != x
; then
26678 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26679 gcc_cv_ld_buildid
=yes
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26684 $as_echo "$gcc_cv_ld_buildid" >&6; }
26685 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26687 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26691 # Check whether --enable-linker-build-id was given.
26692 if test "${enable_linker_build_id+set}" = set; then :
26693 enableval
=$enable_linker_build_id;
26695 enable_linker_build_id
=no
26699 if test x
"$enable_linker_build_id" = xyes
; then
26700 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26702 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26706 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26710 # In binutils 2.21, GNU ld gained support for new emulations fully
26711 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26713 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26714 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26715 $as_echo_n "(cached) " >&6
26717 gcc_cv_ld_sol2_emulation
=no
26718 if test $in_tree_ld = yes ; then
26719 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26720 "$gcc_cv_gld_minor_version" -ge 21 -o \
26721 "$gcc_cv_gld_major_version" -gt 2 \
26722 && test $in_tree_ld_is_elf = yes; then
26723 gcc_cv_ld_sol2_emulation
=yes
26725 elif test x
$gcc_cv_ld != x
; then
26726 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26727 grep _sol2
> /dev
/null
; then
26728 gcc_cv_ld_sol2_emulation
=yes
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26733 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26734 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26736 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26741 $as_echo_n "checking linker --sysroot support... " >&6; }
26742 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26743 $as_echo_n "(cached) " >&6
26745 gcc_cv_ld_sysroot
=no
26746 if test $in_tree_ld = yes ; then
26747 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
26748 gcc_cv_ld_sysroot
=yes
26750 elif test x
$gcc_cv_ld != x
; then
26751 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26752 gcc_cv_ld_sysroot
=yes
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26757 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26758 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26760 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26764 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26765 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26766 && test "$prefix" != "NONE"; then
26768 cat >>confdefs.h
<<_ACEOF
26769 #define PREFIX_INCLUDE_DIR "$prefix/include"
26774 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26775 if test "x$with_headers" != x
; then
26776 target_header_dir
=$with_headers
26777 elif test "x$with_sysroot" = x
; then
26778 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26779 elif test "x$with_build_sysroot" != "x"; then
26780 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26781 elif test "x$with_sysroot" = xyes
; then
26782 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26784 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26787 target_header_dir
=${native_system_header_dir}
26790 # Test for stack protector support in target C library.
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26792 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26793 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26794 $as_echo_n "(cached) " >&6
26796 gcc_cv_libc_provides_ssp
=no
26798 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26799 # glibc 2.4 and later provides __stack_chk_fail and
26800 # either __stack_chk_guard, or TLS access to stack guard canary.
26801 if test -f $target_header_dir/features.h \
26802 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26803 $target_header_dir/features.h
> /dev
/null
; then
26804 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26805 $target_header_dir/features.h
> /dev
/null
; then
26806 gcc_cv_libc_provides_ssp
=yes
26807 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26808 $target_header_dir/features.h
> /dev
/null \
26809 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26810 $target_header_dir/features.h
> /dev
/null
; then
26811 gcc_cv_libc_provides_ssp
=yes
26812 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26813 $target_header_dir/features.h
> /dev
/null
&& \
26814 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26815 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26816 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26817 gcc_cv_libc_provides_ssp
=yes
26819 # all versions of Bionic support stack protector
26820 elif test -f $target_header_dir/sys
/cdefs.h \
26821 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26822 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26823 gcc_cv_libc_provides_ssp
=yes
26827 # Avoid complicated tests (see
26828 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26829 # simply assert that glibc does provide this, which is true for all
26830 # realistically usable GNU/Hurd configurations.
26831 gcc_cv_libc_provides_ssp
=yes;;
26832 *-*-darwin* |
*-*-freebsd*)
26833 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26834 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26835 gcc_cv_libc_provides_ssp
=yes
26837 echo "no __stack_chk_fail on this target"
26841 *) gcc_cv_libc_provides_ssp
=no
;;
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26845 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26847 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26849 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26853 # Test for <sys/sdt.h> on the target.
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26856 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26858 if test -f $target_header_dir/sys
/sdt.h
; then
26861 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26865 $as_echo "$have_sys_sdt_h" >&6; }
26867 # Check if TFmode long double should be used by default or not.
26868 # Some glibc targets used DFmode long double, but with glibc 2.4
26869 # and later they can use TFmode.
26871 powerpc
*-*-linux* | \
26872 sparc
*-*-linux* | \
26876 # Check whether --with-long-double-128 was given.
26877 if test "${with_long_double_128+set}" = set; then :
26878 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26880 gcc_cv_target_ldbl128
=no
26881 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26882 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26883 && gcc_cv_target_ldbl128
=yes
26889 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26891 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26896 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26897 gcc_cv_target_dl_iterate_phdr
=unknown
26899 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26900 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26901 # libdl there, both complicating its use and breaking compatibility
26902 # between Solaris 10 updates.
26903 *-*-solaris2.1
[1-9]*)
26904 # <link.h> needs both a dl_iterate_phdr declaration and support for
26905 # compilation with largefile support.
26906 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26907 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26908 gcc_cv_target_dl_iterate_phdr
=yes
26910 gcc_cv_target_dl_iterate_phdr
=no
26915 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26917 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26921 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26923 # We no longer support different GC mechanisms. Emit an error if
26924 # the user configures with --with-gc.
26926 # Check whether --with-gc was given.
26927 if test "${with_gc+set}" = set; then :
26928 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
26932 # Libraries to use on the host. This will normally be set by the top
26933 # level Makefile. Here we simply capture the value for our Makefile.
26934 if test -z "${HOST_LIBS+set}"; then
26939 # Use the system's zlib library.
26941 zlibinc
="-I\$(srcdir)/../zlib"
26943 # Check whether --with-system-zlib was given.
26944 if test "${with_system_zlib+set}" = set; then :
26945 withval
=$with_system_zlib; zlibdir
=
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26955 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26956 # Check whether --enable-maintainer-mode was given.
26957 if test "${enable_maintainer_mode+set}" = set; then :
26958 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26965 $as_echo "$maintainer_mode" >&6; }
26967 if test "$maintainer_mode" = "yes"; then
26977 # Make empty files to contain the specs and options for each language.
26978 # Then add #include lines to for a compiler that has specs and/or options.
26984 # These (without "all_") are set in each config-lang.in.
26985 # `language' must be a single word so is spelled singularly.
26988 all_outputs
='Makefile'
26989 # List of language makefile fragments.
26990 all_lang_makefrags
=
26991 # Additional files for gengtype
26992 all_gtfiles
="$target_gtfiles"
26994 # These are the languages that are set in --enable-languages,
26995 # and are available in the GCC tree.
26996 all_selected_languages
=
26998 # Add the language fragments.
26999 # Languages are added via two mechanisms. Some information must be
27000 # recorded in makefile variables, these are defined in config-lang.in.
27001 # We accumulate them and plug them into the main Makefile.
27002 # The other mechanism is a set of hooks for each of the main targets
27003 # like `clean', `install', etc.
27005 language_hooks
="Make-hooks"
27007 for lang
in ${srcdir}/*/config-lang.
in
27009 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27011 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27012 if test "x$lang_alias" = x
27014 echo "$lang doesn't set \$language." 1>&2
27017 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27018 subdirs
="$subdirs $subdir"
27020 # $gcc_subdir is where the gcc integration files are to be found
27021 # for a language, both for internal compiler purposes (compiler
27022 # sources implementing front-end to GCC tree converters), and for
27023 # build infrastructure purposes (Make-lang.in, etc.)
27025 # This will be <subdir> (relative to $srcdir) if a line like
27026 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27027 # is found in <langdir>/config-lang.in, and will remain <langdir>
27030 # Except for the language alias (fetched above), the regular
27031 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27032 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27033 # only this and the language alias.
27035 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27036 if [ "$gcc_subdir" = "" ]; then
27037 gcc_subdir
="$subdir"
27040 case ",$enable_languages," in
27042 all_selected_languages
="$all_selected_languages $lang_alias"
27043 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27044 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27055 .
${srcdir}/$gcc_subdir/config-lang.
in
27056 if test "x$language" = x
27058 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27063 case ",$enable_languages," in
27064 *,$lang_alias,*) ;;
27066 for i
in $subdir_requires; do
27067 test -f "${srcdir}/$i/config-lang.in" && continue
27075 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27076 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27077 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27078 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27080 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27081 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27083 all_languages
="$all_languages $language"
27084 all_compilers
="$all_compilers $compilers"
27085 all_outputs
="$all_outputs $outputs"
27086 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27087 case ",$enable_languages," in
27090 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27100 for language
in $all_selected_languages
27102 check_languages
="$check_languages check-$language"
27105 # We link each language in with a set of hooks, reached indirectly via
27106 # lang.${target}. Only do so for selected languages.
27110 target_list
="all.cross start.encap rest.encap tags \
27111 install-common install-man install-info install-pdf install-html dvi \
27112 pdf html uninstall info man srcextra srcman srcinfo \
27113 mostlyclean clean distclean maintainer-clean install-plugin"
27115 for t
in $target_list
27118 for lang
in $all_selected_languages
27122 echo "lang.$t: $x" >> Make-hooks
27126 # Option include files
27129 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27130 option_includes
="option-includes.mk"
27139 echo "dir ." > .gdbinit
27140 echo "dir ${srcdir}" >> .gdbinit
27141 if test x
$gdb_needs_out_file_path = xyes
27143 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27145 if test "x$subdirs" != x
; then
27148 echo "dir ${srcdir}/$s" >> .gdbinit
27151 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27153 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27157 # Find a directory in which to install a shared libgcc.
27159 # Check whether --enable-version-specific-runtime-libs was given.
27160 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27161 enableval
=$enable_version_specific_runtime_libs;
27165 # Set default prefix canonicalization.
27167 # Check whether --enable-canonical-prefixes was given.
27168 if test "${enable_canonical_prefixes+set}" = set; then :
27169 enableval
=$enable_canonical_prefixes;
27171 enable_canonical_prefixes
=yes
27174 if test x
"$enable_canonical_prefixes" = xyes
; then
27176 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
27180 # Substitute configuration variables
27244 if test x
${build} = x
${host} ; then
27245 if test x
${host} = x
${target} ; then
27246 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27248 echo "Links are now set up to build a cross-compiler" 1>&2
27249 echo " from ${host} to ${target}." 1>&2
27252 if test x
${host} = x
${target} ; then
27253 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27254 echo " for ${target}." 1>&2
27256 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27257 echo " from ${host} to ${target}." 1>&2
27269 if test "x${CLOOGLIBS}" != "x" ; then
27271 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27275 # Check for plugin support
27276 # Check whether --enable-plugin was given.
27277 if test "${enable_plugin+set}" = set; then :
27278 enableval
=$enable_plugin; enable_plugin
=$enableval
27280 enable_plugin
=yes; default_plugin
=yes
27288 if test x
$build = x
$host; then
27289 export_sym_check
="nm${exeext} -g"
27290 elif test x
$host = x
$target; then
27291 export_sym_check
="$gcc_cv_nm -g"
27297 if test x
$build = x
$host; then
27298 export_sym_check
="objdump${exeext} -T"
27299 elif test x
$host = x
$target; then
27300 export_sym_check
="$gcc_cv_objdump -T"
27307 if test x
"$enable_plugin" = x
"yes"; then
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27310 $as_echo_n "checking for exported symbols... " >&6; }
27311 if test "x$export_sym_check" != x
; then
27312 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27313 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27314 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27315 : # No need to use a flag
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27317 $as_echo "yes" >&6; }
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27320 $as_echo "yes" >&6; }
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27322 $as_echo_n "checking for -rdynamic... " >&6; }
27323 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27324 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27325 plugin_rdynamic
=yes
27326 pluginlibs
="-rdynamic"
27331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27332 $as_echo "$plugin_rdynamic" >&6; }
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27336 $as_echo "unable to check" >&6; }
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27342 $as_echo_n "checking for library containing dlopen... " >&6; }
27343 if test "${ac_cv_search_dlopen+set}" = set; then :
27344 $as_echo_n "(cached) " >&6
27346 ac_func_search_save_LIBS
=$LIBS
27347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27348 /* end confdefs.h. */
27350 /* Override any GCC internal prototype to avoid an error.
27351 Use char because int might match the return type of a GCC
27352 builtin and then its argument prototype would still apply. */
27365 for ac_lib
in '' dl
; do
27366 if test -z "$ac_lib"; then
27367 ac_res
="none required"
27370 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27372 if ac_fn_c_try_link
"$LINENO"; then :
27373 ac_cv_search_dlopen
=$ac_res
27375 rm -f core conftest.err conftest.
$ac_objext \
27377 if test "${ac_cv_search_dlopen+set}" = set; then :
27381 if test "${ac_cv_search_dlopen+set}" = set; then :
27384 ac_cv_search_dlopen
=no
27386 rm conftest.
$ac_ext
27387 LIBS
=$ac_func_search_save_LIBS
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27390 $as_echo "$ac_cv_search_dlopen" >&6; }
27391 ac_res
=$ac_cv_search_dlopen
27392 if test "$ac_res" != no
; then :
27393 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27397 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27398 pluginlibs
="$pluginlibs -ldl"
27402 # Check that we can build shared objects with -fPIC -shared
27403 saved_LDFLAGS
="$LDFLAGS"
27404 saved_CFLAGS
="$CFLAGS"
27407 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27408 CFLAGS
="$CFLAGS -fPIC"
27409 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27412 CFLAGS
="$CFLAGS -fPIC"
27413 LDFLAGS
="$LDFLAGS -fPIC -shared"
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27417 $as_echo_n "checking for -fPIC -shared... " >&6; }
27418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27419 /* end confdefs.h. */
27429 if ac_fn_c_try_link
"$LINENO"; then :
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27431 $as_echo "yes" >&6; }; have_pic_shared
=yes
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27434 $as_echo "no" >&6; }; have_pic_shared
=no
27436 rm -f core conftest.err conftest.
$ac_objext \
27437 conftest
$ac_exeext conftest.
$ac_ext
27438 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27442 LDFLAGS
="$saved_LDFLAGS"
27443 CFLAGS
="$saved_CFLAGS"
27445 # If plugin support had been requested but not available, fail.
27446 if test x
"$enable_plugin" = x
"no" ; then
27447 if test x
"$default_plugin" != x
"yes"; then
27449 Building GCC with plugin support requires a host that supports
27450 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27457 if test x
"$enable_plugin" = x
"yes"; then
27459 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27464 # Check whether --enable-libquadmath-support was given.
27465 if test "${enable_libquadmath_support+set}" = set; then :
27466 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27468 ENABLE_LIBQUADMATH_SUPPORT
=yes
27471 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27473 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27478 warn_frame_larger_than_extra_text
=
27480 # Check whether --with-warn-frame-larger-than-extra-text was given.
27481 if test "${with_warn_frame_larger_than_extra_text+set}" = set; then :
27482 withval
=$with_warn_frame_larger_than_extra_text; case "${withval}" in
27483 yes) as_fn_error
"bad value ${withval} given for frame size warning text" "$LINENO" 5 ;;
27485 *) warn_frame_larger_than_extra_text
="$withval" ;;
27490 cat >>confdefs.h
<<_ACEOF
27491 #define WARN_FRAME_LARGER_THAN_EXTRA_TEXT "$warn_frame_larger_than_extra_text"
27496 # Specify what hash style to use by default.
27498 # Check whether --with-linker-hash-style was given.
27499 if test "${with_linker_hash_style+set}" = set; then :
27500 withval
=$with_linker_hash_style; case x
"$withval" in
27502 LINKER_HASH_STYLE
=sysv
27505 LINKER_HASH_STYLE
=gnu
27508 LINKER_HASH_STYLE
=both
27511 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27515 LINKER_HASH_STYLE
=''
27518 if test x
"${LINKER_HASH_STYLE}" != x
; then
27520 cat >>confdefs.h
<<_ACEOF
27521 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27526 # Configure the subdirectories
27527 # AC_CONFIG_SUBDIRS($subdirs)
27529 # Create the Makefile
27530 # and configure language subdirectories
27531 ac_config_files
="$ac_config_files $all_outputs"
27534 ac_config_commands
="$ac_config_commands default"
27536 cat >confcache
<<\_ACEOF
27537 # This file is a shell script that caches the results of configure
27538 # tests run on this system so they can be shared between configure
27539 # scripts and configure runs, see configure's option --config-cache.
27540 # It is not useful on other systems. If it contains results you don't
27541 # want to keep, you may remove or edit it.
27543 # config.status only pays attention to the cache file if you give it
27544 # the --recheck option to rerun configure.
27546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27548 # following values.
27552 # The following way of writing the cache mishandles newlines in values,
27553 # but we know of no workaround that is simple, portable, and efficient.
27554 # So, we kill variables containing newlines.
27555 # Ultrix sh set writes to stderr and can't be redirected directly,
27556 # and sets the high bit in the cache file unless we assign to the vars.
27558 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27559 eval ac_val
=\$
$ac_var
27563 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27564 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27567 _ | IFS | as_nl
) ;; #(
27568 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27569 *) { eval $ac_var=; unset $ac_var;} ;;
27575 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27576 *${as_nl}ac_space
=\
*)
27577 # `set' does not quote correctly, so add quotes: double-quote
27578 # substitution turns \\\\ into \\, and sed turns \\ into \.
27581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27584 # `set' quotes correctly as required by POSIX, so do not add quotes.
27585 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27596 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27598 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27599 if test -w "$cache_file"; then
27600 test "x$cache_file" != "x/dev/null" &&
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27602 $as_echo "$as_me: updating cache $cache_file" >&6;}
27603 cat confcache
>$cache_file
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27606 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27611 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27612 # Let make expand exec_prefix.
27613 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27615 DEFS
=-DHAVE_CONFIG_H
27619 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27620 # 1. Remove the extension, and $U if already installed.
27621 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27622 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27623 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27624 # will be set to the directory where LIBOBJS objects are built.
27625 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27626 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27628 LIBOBJS
=$ac_libobjs
27630 LTLIBOBJS
=$ac_ltlibobjs
27635 : ${CONFIG_STATUS=./config.status}
27637 ac_clean_files_save
=$ac_clean_files
27638 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27640 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27642 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27644 # Generated by $as_me.
27645 # Run this file to recreate the current configuration.
27646 # Compiler output produced by configure, useful for debugging
27647 # configure, is in config.log if it exists.
27650 ac_cs_recheck=false
27653 SHELL=\${CONFIG_SHELL-$SHELL}
27656 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27657 ## -------------------- ##
27658 ## M4sh Initialization. ##
27659 ## -------------------- ##
27661 # Be more Bourne compatible
27662 DUALCASE
=1; export DUALCASE
# for MKS sh
27663 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27666 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27667 # is contrary to our usage. Disable this feature.
27668 alias -g '${1+"$@"}'='"$@"'
27669 setopt NO_GLOB_SUBST
27671 case `(set -o) 2>/dev/null` in #(
27683 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27684 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27686 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27687 # Prefer a ksh shell builtin over an external printf program on Solaris,
27688 # but without wasting forks for bash or zsh.
27689 if test -z "$BASH_VERSION$ZSH_VERSION" \
27690 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27691 as_echo='print
-r --'
27692 as_echo_n='print
-rn --'
27693 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27694 as_echo='printf %s
\n'
27695 as_echo_n='printf %s
'
27697 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27698 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27699 as_echo_n='/usr
/ucb
/echo -n'
27701 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27702 as_echo_n_body='eval
27706 expr "X$arg" : "X\\(.*\\)$as_nl";
27707 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27709 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27711 export as_echo_n_body
27712 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27714 export as_echo_body
27715 as_echo='sh
-c $as_echo_body as_echo
'
27718 # The user is always right.
27719 if test "${PATH_SEPARATOR+set}" != set; then
27721 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27722 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27729 # We need space, tab and new line, in precisely that order. Quoting is
27730 # there to prevent editors from complaining about space-tab.
27731 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27732 # splitting by setting IFS to empty value.)
27735 # Find who we are. Look in the path if we contain no directory separator.
27737 *[\\/]* ) as_myself=$0 ;;
27738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27739 for as_dir in $PATH
27742 test -z "$as_dir" && as_dir=.
27743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27749 # We did not find ourselves, most probably we were run as `sh COMMAND'
27750 # in which case we are not to be found in the path.
27751 if test "x$as_myself" = x
; then
27754 if test ! -f "$as_myself"; then
27755 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27759 # Unset variables that we do not need and which cause bugs (e.g. in
27760 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27761 # suppresses any "Segmentation fault" message there. '((' could
27762 # trigger a bug in pdksh 5.2.14.
27763 for as_var
in BASH_ENV ENV MAIL MAILPATH
27764 do eval test x\
${$as_var+set} = xset \
27765 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27778 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27781 # as_fn_error ERROR [LINENO LOG_FD]
27782 # ---------------------------------
27783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27785 # script with status $?, using 1 if that was 0.
27788 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27790 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27791 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27793 $as_echo "$as_me: error: $1" >&2
27794 as_fn_exit
$as_status
27798 # as_fn_set_status STATUS
27799 # -----------------------
27800 # Set $? to STATUS, without forking.
27801 as_fn_set_status
()
27804 } # as_fn_set_status
27806 # as_fn_exit STATUS
27807 # -----------------
27808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27812 as_fn_set_status
$1
27818 # Portably unset VAR.
27821 { eval $1=; unset $1;}
27823 as_unset
=as_fn_unset
27824 # as_fn_append VAR VALUE
27825 # ----------------------
27826 # Append the text in VALUE to the end of the definition contained in VAR. Take
27827 # advantage of any shell optimizations that allow amortized linear growth over
27828 # repeated appends, instead of the typical quadratic growth present in naive
27830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27831 eval 'as_fn_append ()
27842 # as_fn_arith ARG...
27843 # ------------------
27844 # Perform arithmetic evaluation on the ARGs, and store the result in the
27845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27846 # must be portable across $(()) and expr.
27847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27848 eval 'as_fn_arith ()
27855 as_val
=`expr "$@" || test $? -eq 1`
27860 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27861 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27867 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27868 as_basename
=basename
27873 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27879 as_me
=`$as_basename -- "$0" ||
27880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27881 X"$0" : 'X\(//\)$' \| \
27882 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27884 sed '/^.*\/\([^/][^/]*\)\/*$/{
27898 # Avoid depending upon Character Ranges.
27899 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27900 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27901 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27902 as_cr_digits
='0123456789'
27903 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27905 ECHO_C
= ECHO_N
= ECHO_T
=
27906 case `echo -n x` in #(((((
27908 case `echo 'xy\c'` in
27909 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27911 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27918 rm -f conf$$ conf$$.exe conf$$.
file
27919 if test -d conf$$.dir
; then
27920 rm -f conf$$.dir
/conf$$.
file
27923 mkdir conf$$.dir
2>/dev
/null
27925 if (echo >conf$$.
file) 2>/dev
/null
; then
27926 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27928 # ... but there are two gotchas:
27929 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27930 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27931 # In both cases, we have to default to `cp -p'.
27932 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27934 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27942 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27943 rmdir conf$$.dir
2>/dev
/null
27948 # Create "$as_dir" as a directory, including parents if necessary.
27953 -*) as_dir
=.
/$as_dir;;
27955 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27959 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27960 *) as_qdir
=$as_dir;;
27962 as_dirs
="'$as_qdir' $as_dirs"
27963 as_dir
=`$as_dirname -- "$as_dir" ||
27964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27965 X"$as_dir" : 'X\(//\)[^/]' \| \
27966 X"$as_dir" : 'X\(//\)$' \| \
27967 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27968 $as_echo X"$as_dir" |
27969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27973 /^X\(\/\/\)[^/].*/{
27986 test -d "$as_dir" && break
27988 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27989 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27993 if mkdir
-p .
2>/dev
/null
; then
27994 as_mkdir_p
='mkdir -p "$as_dir"'
27996 test -d .
/-p && rmdir .
/-p
28000 if test -x / >/dev
/null
2>&1; then
28001 as_test_x
='test -x'
28003 if ls -dL / >/dev
/null
2>&1; then
28010 if test -d "$1"; then
28016 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28017 ???[sx]*):;;*)false;;esac;fi
28021 as_executable_p
=$as_test_x
28023 # Sed expression to map a string onto a valid CPP name.
28024 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28026 # Sed expression to map a string onto a valid variable name.
28027 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28031 ## ----------------------------------- ##
28032 ## Main body of $CONFIG_STATUS script. ##
28033 ## ----------------------------------- ##
28035 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28038 # Save the log message, to keep $0 and so on meaningful, and to
28039 # report actual input values of CONFIG_FILES etc. instead of their
28040 # values after options handling.
28042 This file was extended by $as_me, which was
28043 generated by GNU Autoconf 2.64. Invocation command line was
28045 CONFIG_FILES = $CONFIG_FILES
28046 CONFIG_HEADERS = $CONFIG_HEADERS
28047 CONFIG_LINKS = $CONFIG_LINKS
28048 CONFIG_COMMANDS = $CONFIG_COMMANDS
28051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28056 case $ac_config_files in *"
28057 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28060 case $ac_config_headers in *"
28061 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28066 # Files that config.status was made for.
28067 config_files="$ac_config_files"
28068 config_headers="$ac_config_headers"
28069 config_commands="$ac_config_commands"
28073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28075 \`$as_me' instantiates files and other configuration actions
28076 from templates according to the current configuration. Unless the files
28077 and actions are specified as TAGs, all are instantiated by default.
28079 Usage: $0 [OPTION]... [TAG]...
28081 -h, --help print this help, then exit
28082 -V, --version print version number and configuration settings, then exit
28083 -q, --quiet, --silent
28084 do not print progress messages
28085 -d, --debug don't remove temporary files
28086 --recheck update $as_me by reconfiguring in the same conditions
28087 --file=FILE[:TEMPLATE]
28088 instantiate the configuration file FILE
28089 --header=FILE[:TEMPLATE]
28090 instantiate the configuration header FILE
28092 Configuration files:
28095 Configuration headers:
28098 Configuration commands:
28101 Report bugs to the package provider."
28104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28107 configured by $0, generated by GNU Autoconf 2.64,
28108 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28110 Copyright (C) 2009 Free Software Foundation, Inc.
28111 This config.status script is free software; the Free Software Foundation
28112 gives unlimited permission to copy, distribute and modify it."
28117 test -n "\$AWK" || AWK=awk
28120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28121 # The default lists apply if the user does not specify any file.
28127 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28128 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28139 # Handling of the options.
28140 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28142 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28143 $as_echo "$ac_cs_version"; exit ;;
28144 --debug |
--debu |
--deb |
--de |
--d |
-d )
28146 --file |
--fil |
--fi |
--f )
28149 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28151 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28152 ac_need_defaults
=false
;;
28153 --header |
--heade |
--head |
--hea )
28156 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28158 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28159 ac_need_defaults
=false
;;
28161 # Conflict between --help and --header
28162 as_fn_error
"ambiguous option: \`$1'
28163 Try \`$0 --help' for more information.";;
28164 --help |
--hel |
-h )
28165 $as_echo "$ac_cs_usage"; exit ;;
28166 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28167 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28170 # This is an error.
28171 -*) as_fn_error
"unrecognized option: \`$1'
28172 Try \`$0 --help' for more information." ;;
28174 *) as_fn_append ac_config_targets
" $1"
28175 ac_need_defaults
=false
;;
28181 ac_configure_extra_args
=
28183 if $ac_cs_silent; then
28185 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28190 if \$ac_cs_recheck; then
28191 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28193 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28194 CONFIG_SHELL='$SHELL'
28195 export CONFIG_SHELL
28200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28204 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28205 ## Running $as_me. ##
28211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28221 # Handling of arguments.
28222 for ac_config_target
in $ac_config_targets
28224 case $ac_config_target in
28225 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28226 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28227 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28228 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28229 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28230 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28232 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28237 # If the user did not use the arguments to specify the items to instantiate,
28238 # then the envvar interface is used. Set only those that are not.
28239 # We use the long form for the default assignment because of an extremely
28240 # bizarre bug on SunOS 4.1.3.
28241 if $ac_need_defaults; then
28242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28243 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28244 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28247 # Have a temporary directory for convenience. Make it in the build tree
28248 # simply because there is no reason against having it here, and in addition,
28249 # creating and moving files from /tmp can sometimes cause problems.
28250 # Hook for its removal unless debugging.
28251 # Note that there is a small window in which the directory will not be cleaned:
28252 # after its creation but before its name has been assigned to `$tmp'.
28256 trap 'exit_status=$?
28257 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28259 trap 'as_fn_exit 1' 1 2 13 15
28261 # Create a (secure) tmp directory for tmp files.
28264 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28265 test -n "$tmp" && test -d "$tmp"
28268 tmp
=.
/conf$$
-$RANDOM
28269 (umask 077 && mkdir
"$tmp")
28270 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28272 # Set up the scripts for CONFIG_FILES section.
28273 # No need to generate them if there are no CONFIG_FILES.
28274 # This happens for instance with `./config.status config.h'.
28275 if test -n "$CONFIG_FILES"; then
28277 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28278 ac_cs_awk_getline
=:
28279 ac_cs_awk_pipe_init
=
28280 ac_cs_awk_read_file
='
28281 while ((getline aline < (F[key])) > 0)
28284 ac_cs_awk_pipe_fini
=
28286 ac_cs_awk_getline
=false
28287 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28288 ac_cs_awk_read_file
='
28290 print "cat " F[key] " &&"
28291 '$ac_cs_awk_pipe_init
28292 # The final `:' finishes the AND list.
28293 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28295 ac_cr
=`echo X | tr X '\015'`
28296 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28297 # But we know of no other shell where ac_cr would be empty at this
28298 # point, so we can use a bashism as a fallback.
28299 if test "x$ac_cr" = x
; then
28300 eval ac_cr
=\$
\'\\r
\'
28302 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28303 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28306 ac_cs_awk_cr
=$ac_cr
28309 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28312 # Create commands to substitute file output variables.
28314 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28315 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28316 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28319 } >conf$
$files.sh
&&
28320 . .
/conf$
$files.sh ||
28321 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28322 rm -f conf$
$files.sh
28325 echo "cat >conf$$subs.awk <<_ACEOF" &&
28326 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28328 } >conf$$subs.sh ||
28329 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28330 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28332 for ac_last_try in false false false false false :; do
28333 . ./conf$$subs.sh ||
28334 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28336 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28337 if test $ac_delim_n = $ac_delim_num; then
28339 elif $ac_last_try; then
28340 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28342 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28345 rm -f conf$$subs.sh
28347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28348 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28352 s/^/S["/; s
/!.
*/"]=/
28362 s/\(.\{148\}\).*/\1/
28364 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28369 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28376 s/\(.\{148\}\).*/\1/
28378 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28382 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28387 ' <conf$$subs.awk | sed '
28392 ' >>$CONFIG_STATUS || ac_write_fail=1
28393 rm -f conf$$subs.awk
28394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28396 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28397 for (key in S) S_is_set[key] = 1
28399 \$ac_cs_awk_pipe_init
28403 nfields = split(line, field, "@
")
28405 len = length(field[1])
28406 for (i = 2; i < nfields; i++) {
28408 keylen = length(key)
28409 if (S_is_set[key]) {
28411 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28412 len += length(value) + length(field[++i])
28417 if (nfields == 3 && !substed) {
28419 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28420 \$ac_cs_awk_read_file
28426 \$ac_cs_awk_pipe_fini
28429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28430 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28431 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28434 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28435 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28438 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28439 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28440 # trailing colons and then remove the whole line if VPATH becomes empty
28441 # (actually we leave an empty line to preserve line numbers).
28442 if test "x
$srcdir" = x.; then
28443 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28444 s/:*\$(srcdir):*/:/
28445 s/:*\${srcdir}:*/:/
28447 s/^\([^=]*=[ ]*\):*/\1/
28453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28454 fi # test -n "$CONFIG_FILES"
28456 # Set up the scripts for CONFIG_HEADERS section.
28457 # No need to generate them if there are no CONFIG_HEADERS.
28458 # This happens for instance with `./config.status Makefile'.
28459 if test -n "$CONFIG_HEADERS"; then
28460 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28464 # Transform confdefs.h into an awk script `defines.awk', embedded as
28465 # here-document in config.status, that substitutes the proper values into
28466 # config.h.in to produce config.h.
28468 # Create a delimiter string that does not exist in confdefs.h, to ease
28469 # handling of long lines.
28471 for ac_last_try in false false :; do
28472 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28473 if test -z "$ac_t"; then
28475 elif $ac_last_try; then
28476 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28478 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28482 # For the awk script, D is an array of macro values keyed by name,
28483 # likewise P contains macro parameters if any. Preserve backslash
28484 # newline sequences.
28486 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28488 s/.\{148\}/&'"$ac_delim"'/g
28491 s/^[ ]*#[ ]*define[ ][ ]*/ /
28498 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28500 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28505 D["\
1"]=" \
3\\\\\\n
"\\/p
28507 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28512 s/.\{148\}/&'"$ac_delim"'/g
28517 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28520 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28522 ' <confdefs.h | sed '
28523 s/'"$ac_delim"'/"\\\
28524 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28527 for (key in D) D_is_set[key] = 1
28530 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28532 split(line, arg, " ")
28533 if (arg[1] == "#") {
28537 defundef
= substr
(arg
[1], 2)
28540 split(mac1
, mac2
, "(") #)
28542 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28543 if (D_is_set
[macro
]) {
28544 # Preserve the white space surrounding the "#".
28545 print prefix
"define", macro P
[macro
] D
[macro
]
28548 # Replace #undef with comments. This is necessary, for example,
28549 # in the case of _POSIX_SOURCE, which is predefined and required
28550 # on some systems where configure will not decide to define it.
28551 if (defundef
== "undef") {
28552 print
"/*", prefix defundef
, macro
, "*/"
28560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28561 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28562 fi # test -n "$CONFIG_HEADERS"
28565 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28570 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28572 case $ac_mode$ac_tag in
28574 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28575 :[FH
]-) ac_tag
=-:-;;
28576 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28593 -) ac_f
="$tmp/stdin";;
28594 *) # Look for the file first in the build tree, then in the source tree
28595 # (if the path is not absolute). The absolute path cannot be DOS-style,
28596 # because $ac_f cannot contain `:'.
28600 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28602 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28604 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28605 as_fn_append ac_file_inputs
" '$ac_f'"
28608 # Let's still pretend it is `configure' which instantiates (i.e., don't
28609 # use $as_me), people would be surprised to read:
28610 # /* config.h. Generated by config.status. */
28611 configure_input
='Generated from '`
28612 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28614 if test x
"$ac_file" != x-
; then
28615 configure_input
="$ac_file. $configure_input"
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28617 $as_echo "$as_me: creating $ac_file" >&6;}
28619 # Neutralize special characters interpreted by sed in replacement strings.
28620 case $configure_input in #(
28621 *\
&* |
*\|
* |
*\\* )
28622 ac_sed_conf_input
=`$as_echo "$configure_input" |
28623 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28624 *) ac_sed_conf_input
=$configure_input;;
28628 *:-:* |
*:-) cat >"$tmp/stdin" \
28629 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28634 ac_dir
=`$as_dirname -- "$ac_file" ||
28635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28636 X"$ac_file" : 'X\(//\)[^/]' \| \
28637 X"$ac_file" : 'X\(//\)$' \| \
28638 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28639 $as_echo X"$ac_file" |
28640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28644 /^X\(\/\/\)[^/].*/{
28657 as_dir
="$ac_dir"; as_fn_mkdir_p
28661 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28663 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28664 # A ".." for each directory in $ac_dir_suffix.
28665 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28666 case $ac_top_builddir_sub in
28667 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28668 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28671 ac_abs_top_builddir
=$ac_pwd
28672 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28673 # for backward compatibility:
28674 ac_top_builddir
=$ac_top_build_prefix
28677 .
) # We are building in place.
28679 ac_top_srcdir
=$ac_top_builddir_sub
28680 ac_abs_top_srcdir
=$ac_pwd ;;
28681 [\\/]* | ?
:[\\/]* ) # Absolute name.
28682 ac_srcdir
=$srcdir$ac_dir_suffix;
28683 ac_top_srcdir
=$srcdir
28684 ac_abs_top_srcdir
=$srcdir ;;
28685 *) # Relative name.
28686 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28687 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28688 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28690 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28702 # If the template does not know about datarootdir, expand it.
28703 # FIXME: This hack should be removed a few years after 2.60.
28704 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28715 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28716 *datarootdir
*) ac_datarootdir_seen
=yes;;
28717 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28719 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28722 ac_datarootdir_hack='
28723 s&@datadir@&$datadir&g
28724 s&@docdir@&$docdir&g
28725 s&@infodir@&$infodir&g
28726 s&@localedir@&$localedir&g
28727 s&@mandir@&$mandir&g
28728 s&\\\${datarootdir}&$datarootdir&g' ;;
28732 # Neutralize VPATH when `$srcdir' = `.'.
28733 # Shell code in configure.ac might set extrasub.
28734 # FIXME: do we really want to maintain this feature?
28735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28736 ac_sed_extra="$ac_vpsub
28739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28741 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28742 s|@configure_input@|
$ac_sed_conf_input|
;t t
28743 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28744 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28745 s
&@srcdir@
&$ac_srcdir&;t t
28746 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28747 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28748 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28749 s
&@builddir@
&$ac_builddir&;t t
28750 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28751 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28752 $ac_datarootdir_hack
28754 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28755 if $ac_cs_awk_getline; then
28756 $AWK -f "$tmp/subs.
awk"
28758 $AWK -f "$tmp/subs.
awk" | $SHELL
28760 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28763 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28766 which seems to be undefined. Please make sure it is defined." >&5
28767 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28768 which seems to be undefined. Please make sure it is defined." >&2;}
28772 -) cat "$tmp/out" && rm -f "$tmp/out";;
28773 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28775 || as_fn_error "could not create $ac_file" "$LINENO" 5
28781 if test x"$ac_file" != x-; then
28783 $as_echo "/* $configure_input */" \
28784 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28785 } >"$tmp/config.h" \
28786 || as_fn_error "could not create $ac_file" "$LINENO" 5
28787 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28789 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28792 mv "$tmp/config.h" "$ac_file" \
28793 || as_fn_error "could not create $ac_file" "$LINENO" 5
28796 $as_echo "/* $configure_input */" \
28797 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28798 || as_fn_error "could not create -" "$LINENO" 5
28802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28803 $as_echo "$as_me: executing $ac_file commands" >&6;}
28808 case $ac_file$ac_mode in
28809 "as":F) chmod +x as ;;
28810 "collect-ld":F) chmod +x collect-ld ;;
28811 "nm":F) chmod +x nm ;;
28813 case ${CONFIG_HEADERS} in
28814 *auto-host.h:config.in*)
28817 # Make sure all the subdirs exist.
28818 for d in $subdirs doc build common c-family
28820 test -d $d || mkdir $d
28830 ac_clean_files=$ac_clean_files_save
28832 test $ac_write_fail = 0 ||
28833 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28836 # configure is writing to config.log, and then calls config.status.
28837 # config.status does its own redirection, appending to config.log.
28838 # Unfortunately, on DOS this fails, as config.log is still kept open
28839 # by configure, so config.status won't be able to
write to it
; its
28840 # output is simply discarded. So we exec the FD to /dev/null,
28841 # effectively closing config.log, so it can be properly (re)opened and
28842 # appended to by config.status. When coming back to configure, we
28843 # need to make the FD available again.
28844 if test "$no_create" != yes; then
28846 ac_config_status_args
=
28847 test "$silent" = yes &&
28848 ac_config_status_args
="$ac_config_status_args --quiet"
28850 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28852 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28853 # would make configure fail if this is the last instruction.
28854 $ac_cs_success || as_fn_exit $?
28856 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28858 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}